introspection Reference
Module defined in `lua/common/introspection.lua`. Gathers method information from all globally registered classes and built-in modules for runtime reflection.
Module defined in lua/common/introspection.lua. Gathers method information from all globally registered classes and built-in modules for runtime reflection.
Exports
Functions
M.gather_methods()
Scans all global variables for C++/Lua bound classes (identified by ___type field) and collects their method signatures. Also gathers methods from built-in modules (table, math, string, etc.).
- Returns: table - Array of method descriptors
Return structure:
{
{
class_name = "ClassName", -- string
method_name = "methodName", -- string
signature = "methodName (Lua)", -- string with debug info
is_static = false -- boolean
},
...
}Internal Notes
- Classes are identified by having a
___typefield matchingclass<X>orstatic_class<X> - Skips keys starting with
__(metamethods) - Also checks metatables for methods
- The
extensionsglobal is explicitly excluded from scanning - Built-in modules scanned: table, math, string, coroutine, os, io, debug, package
interpolatedMap Reference
Module defined in `lua/common/interpolatedMap.lua`. Provides 2D bilinear interpolation on structured data maps. Useful for looking up values in 2D tables like torque curves, gear ratio maps, etc.
jbeamWriter Reference
Module defined in `lua/common/jbeamWriter.lua`. A specialized JSON pretty-printer for jbeam files that formats objects with indentation up to a configurable depth, then falls back to compact encoding