Skip to content

track_description_metadata

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

Notes

Metadata accessor (track_description) that attaches the speed and lane count of a street or track type to its construction menu entry.

TrackDescriptionMetadata

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

global record TrackDescriptionMetadata

Load: local track_description_metadata = ug_require "::/gui/construction/track_description_metadata.tl"

Notes

Metadata accessor that stores a street or track type's speed and lane count in the metadata of its construction menu entry.

Details

The construction menu writes it with constructionDesc.make{speed = ...} for street and track definitions; ConstructionDescReactUtil.collectNumbers reads it back to show the top speed (speedLimit) and number of lanes.

Fields

Name Type Description
constructionDesc MetadataAccessor<ConstructionDescMetadata, TrackDetails> Accessor registered as track_description on construction description metadata (get reads, make creates the entry). used 3× in the base game

TrackDescriptionMetadata.TrackDetails

record base/tealdef/gui/construction/track_description_metadata.d.tl:4

record TrackDetails

Notes

Data stored by the track_description metadata.

Used in the base game: 1 time in 1 file

base/content/gui/gui/construction/track_description_metadata.tl:4

constructionDesc = metadata_util.constructionDesc.register("track_description") as MetadataAccessor<ConstructionDescMetadata, TrackDescriptionMetadata.TrackDeta

Fields

Name Type Description
speed number Speed of the first lane of the street or track type; shown as "Top Speed" in the info panel.
numLanes integer Number of lanes.