This shows you the differences between two versions of the page.
modding:developerinfo:tunnels [2019/03/19 10:18] |
modding:developerinfo:tunnels [2019/03/19 10:18] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Tunnels ===== | ||
+ | |||
+ | ==== Overview ==== | ||
+ | |||
+ | A bridge configuration files specifies a set of parameters to define the properties, dimension, features, and visuals of tracks. They are stored in ''.lua'' files in the folder ''res\config\tunnel\''. | ||
+ | |||
+ | The file has the following format: | ||
+ | |||
+ | <code lua> | ||
+ | function data() | ||
+ | return { | ||
+ | name = _("Standard tunnel"), | ||
+ | carriers = { "ROAD" }, -- or { "RAIL" } | ||
+ | portals = { | ||
+ | { "railroad/tunnel_old.mdl" }, | ||
+ | { "railroad/tunnel_double_old.mdl" }, | ||
+ | { "railroad/tunnel_large_start.mdl", "railroad/tunnel_large_rep.mdl", "railroad/tunnel_large_end.mdl" }, | ||
+ | }, | ||
+ | cost = 1200.0 | ||
+ | } | ||
+ | end | ||
+ | |||
+ | </code> | ||
+ | |||