Module ascii_names

Module ascii_names 

Source
Expand description

ASCII name registry for controllers, classifications, and node types. ASCII MDL name registry for controllers, classifications, and node types.

Provides bidirectional mappings between binary format codes and the ASCII field name strings used by the engine’s text-mode MDL parser. Controller type codes are node-type-specific – the same numeric code has different ASCII names on different node types (e.g., code 100 is selfillumcolor on mesh, verticaldisplacement on light, and drag on emitter).

Controller name strings sourced from mdledit ReturnControllerName (MDL.cpp:1333) and cross-referenced with the engine’s InternalParseField dispatch table. All 48 emitter codes verified against MdlNodeEmitter::InternalParseField at 0x004658b0 via Ghidra.

Enums§

NodeTypeContext
Node type context for disambiguating controller names.

Functions§

classification_from_ascii
Returns the classification byte for an ASCII classification string.
classification_to_ascii
Returns the ASCII classification string for a classification byte.
controller_ascii_name
Returns the ASCII name for a controller type in a given node context.
controller_from_ascii_name
Returns the controller type code for an ASCII name in a given node context.
is_non_controller_keyword
Returns true for ASCII MDL keywords that should NOT be interpreted as inline controllers, even if they could parse as float values.
node_data_from_ascii_name
Returns the default MdlNodeData variant for an ASCII node type string.
node_type_ascii_name
Returns the ASCII node type string for a node data variant.
node_type_context
Returns the NodeTypeContext for a node data variant.