{
  "params": {
    "piece": {
      "type": "choice",
      "options": [
        "straight",
        "curve",
        "crossing",
        "buffer"
      ],
      "default": "straight",
      "label": "Piece",
      "describe": "straight: track along Z. curve: a quarter turn from the south edge to the east edge of a 2 x 2 cell board. crossing: two straights crossing at right angles. buffer: a straight that ends in a buffer stop at +Z."
    },
    "length": {
      "type": "range",
      "min": 1,
      "max": 4,
      "step": 1,
      "default": 1,
      "label": "Length",
      "describe": "Straight and buffer pieces only: length in 4 m grid cells."
    },
    "ground": {
      "type": "choice",
      "options": [
        "grass",
        "gravel",
        "sand",
        "snow"
      ],
      "default": "grass",
      "label": "Ground",
      "describe": "The board under the ballast: grass, gravel (yard), sand (desert line), snow."
    },
    "sleepers": {
      "type": "choice",
      "options": [
        "timber",
        "concrete"
      ],
      "default": "timber",
      "label": "Sleepers",
      "describe": "Sleeper (tie) material: timber (brown, branch line) or concrete (grey, main line)."
    }
  },
  "presets": {
    "curve": {
      "piece": "curve"
    },
    "yard end": {
      "piece": "buffer",
      "ground": "gravel",
      "sleepers": "concrete"
    },
    "snowy main line": {
      "piece": "straight",
      "length": 3,
      "ground": "snow",
      "sleepers": "concrete"
    }
  },
  "night": {
    "lamp": {
      "zone": "lamp",
      "color": "#ff3a2a",
      "intensity": 1.6,
      "describe": "The buffer stop lamp glows red."
    }
  }
}