Skip to content

track_modifier_metadata

Source: base/tealdef/gui/construction/track_modifier_metadata.d.tl

Notes

Metadata accessor (track_modifier) that attaches the noise, pollution and speed modifiers of a street type or edge decoration to its construction menu entry.

TrackModifierMetadata

record global base/tealdef/gui/construction/track_modifier_metadata.d.tl:3

global record TrackModifierMetadata

Notes

Metadata accessor that stores noise, pollution and speed modifiers in the metadata of a construction menu entry.

Details

Written for street types (their modifiers plus those of their default edge decorations) and for edge decorations; ConstructionDescReactUtil.collectNumbers turns noiseModifier, pollutionModifier and maxSpeedModifier into effects shown in the info panel.

Fields

Name Type Description
constructionDesc MetadataAccessor<ConstructionDescMetadata, Modifiers> Accessor registered as track_modifier on construction description metadata.