[
  {"id":"$rranim0_00","type":"animation","frames":[{"x":420,"y":338,"w":16,"h":21,"offset x": 2048,"offset y": 1024,"handle x":-16,"handle y":13}],"light":true, "light switching":true},
  {"id":"$rranim0_01","type":"animation","frames":[{"x":404,"y":338,"w":16,"h":21,"offset x": 2048,"offset y": 1024,"handle y":13}],"light":true, "light switching":true},
  {"id":"$rranim0_02","type":"animation","frames":[{"x":436,"y":338,"w":16,"h":21,"offset x": 2048,"offset y": 1024,"handle y":13}],"light":true, "light switching":true},
  {"id":"$rranim0_03","type":"animation","frames":[{"x":452,"y":338,"w":16,"h":21,"offset x": 2048,"offset y": 1024,"handle x":-16,"handle y":13}],"light":true, "light switching":true},

  // Rail type is deprecated
  {
    "id":"$rail00",
    "type":"rail",
    "category":"$cat_elevatedtrain00",
    "frames":[
      {"x":512,"y":822,"w":32,"h":21,"count":16},
      {"x":512,"y":843,"w":32,"h":21,"count":16}
    ],
    "on ground":false,
    "pile frames":[{"x":512,"y":1312,"w":32,"h":42}],
    "pile height":21,
    "pile distance":4,
    "price":100,
    "monthly price":1,
    "requirements": [{
      "type": "RANK",
      "lvl": 9
    }],
    "ordinal":200
  },
  {
    "id": "$rail01",
    "type": "rail",
    "frames": [
      {"x":0,"y":384,"w":32,"h":21,"count":16,"offset y":3072},
      {"x":0,"y":405,"w":32,"h":21,"count":16,"offset y":3072}
    ],
    "on ground": false,
    "pile frames":[{"x":768,"y":727,"w":32,"h":42}],
    "pile height":21,
    "pile distance":4,
    "price": 450,
    "monthly price": 5,
    "ordinal": 201,
    "speed":2,
    "author": "-LeoLeo-",
    "separator": true,
    "requirements": [{
      "type": "RANK",
      "lvl": 11
    }],
    /*"animation":[
      {"id":"$rranim0_00"},
      {"id":"$rranim0_02"},
      {"id":"$rranim0_01"},
      {"id":"$rranim0_03"}
    ],
    "frame animation indices":[
      [0,1,2,3],[0,2],[1,3],[1,2],
      [0,2],[0,2],[2,3],[2],
      [1,3],[0,1],[1,3],[1],
      [0,3],[0],[3],[]
    ],*/
    "category": "$cat_elevatedtrain00"
  },

  {
    "id":"$animationrailwaystation00roof00",
    "type":"animation",
    "frames":[
      {"x":832,"y":866,"w":96,"h":48,"count":2, "handle y":55},
      {"x":832,"y":866,"w":96,"h":48,"count":2, "handle y":55}
    ],
    "rotation aware":true
  },

  {
    // Deprecated
    "hidden": true,

    "id":"$railwaystation00",
    "type":"railway station",
    "category":"$cat_elevatedtrain00",
    "width":3,
    "height":3,
    "influence passenger train": 20,
    "frames":[
      {"x":640,"y":866,"w":96,"h":78,"count":2},
      {"x":640,"y":866,"w":96,"h":78,"count":2}
    ],
    "animation":[
      {"id":"$animationrailwaystation00clock00","x":27,"y":-13},
      {"id":"$animationrailwaystation00clock01","x":65,"y":-13}
    ],
    "animation fg":[
      {"id":"$animationrailwaystation00roof00","x":0,"y":0}
    ],
    "price":6000,
    "monthly price":20,
    "rotation aware":true,
    "water":0,
    "needs road":false,
    "capacity":300,
    "requirements": [{
      "type": "RANK",
      "lvl": 9
    }],
    "ordinal":201,
    "meta":{"tags":{
      "build rail":{"id":"$rail00"},
      "spawn train":{"id":"$train00"},
      "railway":{"levels":[1]}
    }}
  },



  {
    "id": "$nativerailwaystation00roof00",
    "type": "animation",
    "frames": [
      {"x":576,"y":768,"w":32,"h":24,"count":2,"handle y":4},
      {"x":576,"y":768,"w":32,"h":24,"count":2,"handle y":4}
    ],
    "rotation aware": true
  },
  {
    // Deprecated
    "hidden": true,

    "id": "$nativerailwaystation01",
    "type": "railway station",
    "width": 1,
    "height": 1,
    "influence passenger train": 100,
    "frames": [
      {"x":640,"y":731,"w":32,"h":44,"count":2},
      {"x":640,"y":731,"w":32,"h":44,"count":2}
    ],
    "animation fg":[{"id":"$nativerailwaystation00roof00","y":-36,"rotation aware": true}],
    "price":10000,
    "monthly price":50,
    "rotation aware":true,
    "water": 0,
    "needs road": false,
    "capacity": 90,
    "requirements": [{
      "type": "RANK",
      "lvl": 11
    }],
    "ordinal": 301,
    "draw ground": true,
    "author": "-leoleo-",
    "category": "$cat_elevatedtrain00",
    "meta": {
      "tags": {
        "build rail": {"id": "$rail01"},
        "spawn train": {"id": "$train01"},
        "railway":{"levels":[1]}
      }
    }
  },




  // New ts system based drafts
  {
    "id": "$template_elevated_train_base00",
    "type": "template",
    "category": "$cat_elevatedtrain00",
    // We don't use build time since stations are compositions
    "build time": 0,
    "requirements": [{
      "type": "RANK",
      "lvl": 9
    }],
    "needs road": false,
    "water": 0
  },
  {
    "id": "$template_elevated_train_base01",
    "type": "template",
    "template": "$template_elevated_train_base00",
    "requirements": [{
      "type": "RANK",
      "lvl": 11
    }]
  },

  {
    "id": "$elevated_train_station_deco_anim00",
    "type": "animation",
    "frames": {"x": 527, "y": 912, "w": 32, "h": 41, "handle y": 9, "offset x": 1024, "offset y": 2048}
  },
  {
    "id": "$elevated_train_station_deco_anim01",
    "type": "animation",
    "frames": {"x": 559, "y": 912, "w": 32, "h": 41, "handle y": 9, "offset x": 1024, "offset y": 2048}
  },
  {
    "id": "$elevated_train_anim_track00_walls00",
    "type": "animation",
    "frames": [
      {"x":512,"y":843,"w":32,"h":21,"count":16, "handle y": 10}
    ],
    "rotation aware": false,
    "speed": 0
  },
  {
    "id": "$elevated_train_anim_track01_walls00",
    "type": "animation",
    "frames": [
      {"x":0,"y":405,"w":32,"h":21,"count":16, "handle y": 10,"offset y":3072}
    ],
    "rotation aware": false,
    "speed": 0
  },

  {
    "id": "$elevated_train_track00",
    "title id": "draft_rail00_title",
    "text id": "draft_rail00_text",
    "type": "road",
    "ordinal": 0,
    "template": "$template_elevated_train_base00",
    "frames":[
      {"x":512,"y":822,"w":32,"h":21,"count":16, "handle y": 10}
    ],
    "bridge frames":[
      // Slopes
      {"x": 527, "y": 755, "w": 32, "h": 34, "handle y": 22, "count": 4, "offset x": 1024, "offset y": 2048},
      // Small railing
      null, null, null, null,
      // Bottom pile
      {"x": 512, "y": 302, "w": 32, "h": 28, "offset y": 1024},
      {"x": 544, "y": 290, "w": 32, "h": 28, "offset y": 1024},
      // Bottom pile water
      {"x": 576, "y": 290, "w": 32, "h": 28, "offset y": 1024},
      {"x": 608, "y": 290, "w": 32, "h": 28, "offset y": 1024},
      // Mid pile
      {"x": 640, "y": 296, "w": 32, "h": 28, "count": 2, "offset y": 1024},
      // Ramp under road for bridge slopes
      null, null, null, null
    ],
    "frames per bridge": 18,
    "animation fg": [
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track00_walls00", "seed": 0 }
    ],
    "frame animation fg indices": [
      [0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15]
    ],
    "speed": 1.8,
    "min level": 2,
    "max level": 3,
    "diagonal cars": true,
    "join group": "elevated train track",
    "flag normal": false,
    "flag elevated train": true,
    "pile distant":4,
    "price":1000,
    "monthly price":10,
    "allow bus stop": true,
    "meta": { "tags": { "elevated_track": {} }}
  },
  {
    "id": "$elevated_train_track01",
    "title id": "draft_rail01_title",
    "text id": "draft_rail01_text",
    "type": "road",
    "ordinal": 10,
    "template": "$template_elevated_train_base01",
    "frames":[
      {"x":0,"y":384,"w":32,"h":21,"count":16, "handle y": 10,"offset y":3072}
    ],
    "bridge frames":[
      // Slopes
      {"x": 527, "y": 721, "w": 32, "h": 34, "handle y": 22, "count": 4, "offset x": 1024, "offset y": 2048},
      // Small railing
      null, null, null, null,
      // Bottom pile
      {"x":768,"y":727,"w":32,"h":42},
      {"x":768,"y":727,"w":32,"h":42},
      // Bottom pile water
      {"x":768,"y":727,"w":32,"h":42},
      {"x":768,"y":727,"w":32,"h":42},
      // Mid pile
      {"x":768,"y":735,"w":32,"h":12},
      {"x":768,"y":735,"w":32,"h":12},
      // Ramp under road for bridge slopes
      null, null, null, null
    ],
    "frames per bridge": 18,
    "animation fg": [
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 },
      { "id": "$elevated_train_anim_track01_walls00", "seed": 0 }
    ],
    "frame animation fg indices": [
      [0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15]
    ],
    "speed": 2,
    "min level": 2,
    "max level": 4,
    "pile distant": 4,
    "price": 4500,
    "monthly price": 50,
    "author": "-LeoLeo-",
    "diagonal cars": true,
    "join group": "elevated train track",
    "flag normal": false,
    "flag elevated train": true,
    "allow bus stop": true,
    "meta": { "tags": { "elevated_track": {} }}
  },

  {
    "id": "$elevated_train_platform00",
    "type": "railway station",
    "hidden": true,
    "title id": "draft_railwaystation00_title",
    "text id": "draft_railwaystation00_text",
    "template": "$template_elevated_train_base00",
    "width": 1,
    "height": 1,
    "frames": {"x": 527, "y": 789, "w": 32, "h": 41, "count": 4, "offset x": 1024, "offset y": 2048},
    "rotation aware": true,
    "animation": [
      {"id": "$animationrailwaystation00roof00", "x": -32, "y": -16}
    ],
    "frame animation indices": [[0], [], [], []],
    "meta": { "tags": { "elevated_train_platform": {} }}
  },
  {
    "id": "$elevated_train_platform01",
    "type": "railway station",
    "hidden": true,
    "title id": "draft_railwaystation00_title",
    "text id": "draft_railwaystation00_text",
    "template": "$template_elevated_train_base00",
    "width": 1,
    "height": 1,
    "frames": {"x": 527, "y": 830, "w": 32, "h": 41, "count": 4, "offset x": 1024, "offset y": 2048},
    "rotation aware": true,
    "animation": [
      {"id": "$animationrailwaystation00roof00", "x": -32, "y": -16}
    ],
    "frame animation indices": [[], [], [], [0]],
    "meta": { "tags": { "elevated_train_platform": {} }}
  },
  {
    "id": "$elevated_train_station00",
    "type": "railway station",
    "hidden": true,
    "title id": "draft_railwaystation00_title",
    "text id": "draft_railwaystation00_text",
    "template": "$template_elevated_train_base00",
    "influence passenger train": 80,
    "width": 1,
    "height": 1,
    "frames": {"x": 527, "y": 871, "w": 32, "h": 41, "count": 4, "offset x": 1024, "offset y": 2048},
    "rotation aware": true,
    "animation":[
      {"id":"$animationrailwaystation00clock00","x":11,"y":-21, "shift": 0},
      {"id":"$animationrailwaystation00clock01","x":17,"y":-21, "shift": 0},
      {"id":"$animationrailwaystation00clock00","x":7,"y":-18, "shift": 0},
      {"id":"$animationrailwaystation00clock01","x":21,"y":-18, "shift": 0}
    ],
    "capacity": 300,
    "car min level": 2,
    "car max level": 2,
    "frame animation indices":[[0], [1], [2], [3]],
    "requirements": [{
      "type": "RANK",
      "lvl": 9
    }],
    "monthly price": 50,
    "meta": { "tags": { "elevated_train_station": {} }}
  },

  {
    "id": "$elevated_train_station_deco00",
    "type": "road decoration",
    "hidden": true,
    "template": "$template_elevated_train_base00",
    "title id": "draft_railwaystation00_title",
    "text id": "draft_railwaystation00_text",
    "width": 1,
    "height": 1,
    "animation": [
      {"id": "$elevated_train_station_deco_anim00"},
      {"id": "$elevated_train_station_deco_anim01"}
    ],
    "frame animation indices": [
      [0], [0], [1], [0],
      [0], [0], [0], [0],
      [1], [0], [1], [0],
      [0], [0], [0], [0]
    ],
    "rotation aware": true,
    "min level": 2,
    "max level": 2,
    "min dirs": 1,
    "max dirs": 2,
    "speed": 0.5,
    "preview road": "$elevated_train_track00",
    "required flag normal": false,
    "required flag elevated train": true,
    "meta": { "tags": { "elevated_train_road_deco": {} }}
  },


  {
    "id": "$elevated_train_busstop00_anim00",
    "type": "animation",
    "frames": [ {"x":576,"y":768,"w":32,"h":24,"handle y":16} ]
  },
  {
    "id": "$elevated_train_busstop00_anim01",
    "type": "animation",
    "frames": [ {"x":608,"y":768,"w":32,"h":24,"handle y":16} ]
  },
  {
    "id": "$elevated_train_busstop00",
    "type": "bus stop",
    "hidden": true,
    "title id": "draft_nativerailwaystation01_title",
    "text id": "draft_nativerailwaystation01_text",
    "template": "$template_elevated_train_base01",
    "influence passenger train": 80,
    "frames": [
      null,
      {"x": 640, "y": 731, "w": 32, "h": 44, "handle y": 12},
      {"x": 672, "y": 731, "w": 32, "h": 44, "handle y": 12},
      null
    ],
    "animation fg": [
      {"id": "$elevated_train_busstop00_anim00"},
      {"id": "$elevated_train_busstop00_anim01"}
    ],
    "frame animation fg indices":[
      [],  [0], [1], [],
      [0], [0], [],  [],
      [1], [],  [1], [],
      [],  [],  [],  []
    ],
    "capacity": 90,
    "required flag normal": false,
    "required flag elevated train": true,
    "min level": 2,
    "max level": 2,
    "max dirs": 3,
    "symmetric dirs": true,
    "requirements": [{
      "type": "RANK",
      "lvl": 11
    }],
    "monthly price": 80,
    "meta": { "tags": { "elevated_train_busstop": {} } }
  },

  // Compositions
  {
    "id": "$elevated_train_station_composition00",
    "title id": "draft_railwaystation00_title",
    "text id": "draft_railwaystation00_text",
    "type": "railway station",
    "template": "$template_elevated_train_base00",
    "ordinal": 5,
    "width": 5,
    "height": 3,
    "build height": 7,
    "price": 6000,
    "requirements": [{
      "type": "RANK",
      "lvl": 9
    }],
    "composition": [
      {"id": "$elevated_train_platform00", "x": 3, "y": 0, "frame": 0},
      {"id": "$elevated_train_platform00", "x": 1, "y": 2, "frame": 2},
      {"id": "$elevated_train_platform01", "x": 1, "y": 0, "frame": 2},
      {"id": "$elevated_train_platform01", "x": 3, "y": 2, "frame": 0},
      {"id": "$elevated_train_station00", "x": 2, "y": 0, "frame": 0},
      {"id": "$elevated_train_station00", "x": 2, "y": 2, "frame": 2},
      {"id": "$elevated_train_track00", "x0": 0, "y0": 1, "x1": 2, "y1": 1, "l0": 2, "l1": 2},
      {"id": "$elevated_train_track00", "x0": 2, "y0": 1, "x1": 4, "y1": 1, "l0": 2, "l1": 2},
      {"id": "$elevated_train_station_deco00", "x": 1, "y": 1, "level": 2},
      {"id": "$elevated_train_station_deco00", "x": 2, "y": 1, "level": 2},
      {"id": "$elevated_train_station_deco00", "x": 3, "y": 1, "level": 2}
    ]
  },
  {
    "id": "$elevated_train_station_composition01",
    "title id": "draft_nativerailwaystation01_title",
    "text id": "draft_nativerailwaystation01_text",
    "type": "railway station",
    "template": "$template_elevated_train_base01",
    "ordinal": 15,
    "width": 3,
    "height": 1,
    "build height": 5,
    "price": 16000,
    "requirements": [{
      "type": "RANK",
      "lvl": 11
    }],
    "composition":[
      {"id": "$elevated_train_track01", "x0": 0, "y0": 0, "x1": 2, "y1": 0, "l0": 2, "l1": 2},
      {"id": "$elevated_train_busstop00", "x": 1, "y": 0, "level": 2}
    ]
  }
]
