File: 021_grf_parameter.nml

package info (click to toggle)
nml 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,688 kB
  • sloc: python: 12,961; makefile: 37
file content (45 lines) | stat: -rw-r--r-- 1,298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// define the newgrf
grf {
    grfid: "test";
    name: string(STR_REGRESSION_NAME);
    desc: string(STR_REGRESSION_DESC);
    version: 1;
    min_compatible_version: 0;
    param (0) {
        param_NoGrid {
            type:    bool;
            name:    string(STR_PARAM_NOGRID);
            desc:    string(STR_PARAM_NOGRID_DESC);
            def_value: 1;
            bit:       0;
        }
        transmitter2rock {
            type:    bool;
            name:    string(STR_PARAM_TRANSMITTER);
            desc:    string(STR_PARAM_TRANSMITTER_DESC);
            def_value: 0;
            bit:       1;
        }
    }
    param (1) {
        param_landscape {
            type:   int;
            name:   string(STR_PARAM_LANDSCAPE);
            desc:   string(STR_PARAM_LANDSCAPE_DESC);
            def_value: 0;
            min_value: 0;
            max_value: 1;
            names: {
                0: string(STR_PARAM_LANDSCAPE_NORMAL);
                1: string(STR_PARAM_LANDSCAPE_ALPINE);
                2: string(STR_PARAM_LANDSCAPE_TEMPERATE);
                3: string(STR_PARAM_LANDSCAPE_ARCTIC);
                4: string(STR_PARAM_LANDSCAPE_TROPICAL);
                5: string(STR_PARAM_LANDSCAPE_TOYLAND);
            };
        }
    }
}

param[10] = param_landscape;