NML:Property: Difference between revisions

From GRFSpecs
Jump to navigation Jump to search
Content deleted Content added
FooBar (talk | contribs)
content of nml r1625
 
redirect to item page
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
#REDIRECT [[NML:Item]]
property {
(<ID>: (<string>|(<expression> [<unit>]));)+
}

This one looks a lot more complicated than it actually is. A property-block contains one or more assignments. Each assignment starts with the name of the property that is changed followed by a colon. After the colon follows the value and you end the line with a semicolon. The type of the value depends on the property, some properties require a string as value and some an expression. For some properties you can optionally specify a unit that is used to convert the value to the unit that is written to the output file. You can only use a unit if the expression is constant. [[NML:Units|List of valid units]]

Latest revision as of 00:29, 9 September 2011

Redirect to: