Master Spline - Jump Tables
Utility module containing jump tables (dispatch maps) for fast cross-tool operations between the Master Spline and compatible linked spline tools (Mesh, Assembly, Decal, Road splines).
Utility module containing jump tables (dispatch maps) for fast cross-tool operations between the Master Spline and compatible linked spline tools (Mesh, Assembly, Decal, Road splines).
Public API
| Field | Type | Description |
|---|---|---|
M.setLinkJumpTable | table | Maps tool prefix → setLink(id, masterSplineId, isLink) |
M.setNameJumpTable | table | Maps tool prefix → function to rename a linked spline |
M.createJumpTable | table | Maps tool prefix → function to create a new spline |
M.getLastCreatedSplineJumpTable | table | Maps tool prefix → function returning the last created spline |
M.restoreJumpTable | table | Maps tool prefix → function to restore a spline from deep copy |
M.unlinkJumpTable | table | Maps tool prefix → function to unlink a spline |
M.removeJumpTable | table | Maps tool prefix → function to remove a linked spline |
M.setLinkedSplineDirtyJumpTable | table | Maps tool prefix → function to set isDirty on a linked spline |
M.serializeJumpTable | table | Maps tool prefix → function to deep-copy/serialize a linked spline |
M.toolNavigation | table | Maps tool prefix → { uiModule, getModeKey, getSplines, getIdToIdxMap } |
Supported Tool Prefixes
| Tool | Prefix String | Source Module |
|---|---|---|
| Mesh Spline | meshSplineLink.getToolPrefixStr() | editor/meshSpline/splineMgr |
| Assembly Spline | assemblySplineLink.getToolPrefixStr() | editor/assemblySpline/splineMgr |
| Decal Spline | decalSplineLink.getToolPrefixStr() | editor/decalSpline/splineMgr |
| Road Spline | roadSplineLink.getToolPrefixStr() | editor/roadSpline/groupMgr |
Usage Example
local jumps = require('editor/masterSpline/jumpTables')
-- Link a mesh spline to a master spline
jumps.setLinkJumpTable["Mesh Spline"](meshSplineId, masterSplineId, true)
-- Navigate to a linked spline's editor tool
local toolInfo = jumps.toolNavigation["Mesh Spline"]
editor.selectEditMode(editor.editModes[toolInfo.getModeKey()])Dependencies
editor/meshSpline/splineMgreditor/assemblySpline/splineMgreditor/decalSpline/splineMgreditor/roadSpline/groupMgreditor/toolUtilities/util
See Also
- Master Spline - Auto Road Generation - Related reference
- Master Spline - Homologation - Related reference
- Master Spline - Layer Manager - Related reference
- World Editor Guide - Guide
Master Spline - Homologation
Analyses and optimizes a master spline against road design presets to ensure geometric compliance (slope, corner radius, banking, width gradient). Provides per-frame iterative optimizers.
Master Spline - Layer Manager
Manages the layer system for master splines. Each layer represents a linked child spline (mesh, assembly, decal, or road) with lateral offset, flip, and width-tracking options.