1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00
tobspr_shapez.io/docs/ast/source/game/components/wire.js.json
2021-02-26 15:20:37 +01:00

3871 lines
94 KiB
JSON

{
"type": "File",
"start": 0,
"end": 992,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 37,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 992,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 37,
"column": 1
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 41
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
},
"identifierName": "Component"
},
"name": "Component"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
},
"identifierName": "Component"
},
"name": "Component"
}
}
],
"source": {
"type": "StringLiteral",
"start": 26,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 40
}
},
"extra": {
"rawValue": "../component",
"raw": "\"../component\""
},
"value": "../component"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 45,
"end": 66,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 21
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 68,
"end": 187,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 9,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 75,
"end": 187,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 9,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 81,
"end": 186,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 9,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 81,
"end": 93,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 25
},
"identifierName": "enumWireType"
},
"name": "enumWireType",
"leadingComments": null
},
"init": {
"type": "ObjectExpression",
"start": 96,
"end": 186,
"loc": {
"start": {
"line": 4,
"column": 28
},
"end": {
"line": 9,
"column": 1
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 103,
"end": 121,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 22
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 103,
"end": 110,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 11
},
"identifierName": "forward"
},
"name": "forward"
},
"value": {
"type": "StringLiteral",
"start": 112,
"end": 121,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 22
}
},
"extra": {
"rawValue": "forward",
"raw": "\"forward\""
},
"value": "forward"
}
},
{
"type": "ObjectProperty",
"start": 128,
"end": 140,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 16
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 128,
"end": 132,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 8
},
"identifierName": "turn"
},
"name": "turn"
},
"value": {
"type": "StringLiteral",
"start": 134,
"end": 140,
"loc": {
"start": {
"line": 6,
"column": 10
},
"end": {
"line": 6,
"column": 16
}
},
"extra": {
"rawValue": "turn",
"raw": "\"turn\""
},
"value": "turn"
}
},
{
"type": "ObjectProperty",
"start": 147,
"end": 161,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 18
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 147,
"end": 152,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 9
},
"identifierName": "split"
},
"name": "split"
},
"value": {
"type": "StringLiteral",
"start": 154,
"end": 161,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 18
}
},
"extra": {
"rawValue": "split",
"raw": "\"split\""
},
"value": "split"
}
},
{
"type": "ObjectProperty",
"start": 168,
"end": 182,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 18
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 168,
"end": 173,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 9
},
"identifierName": "cross"
},
"name": "cross"
},
"value": {
"type": "StringLiteral",
"start": 175,
"end": 182,
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 8,
"column": 18
}
},
"extra": {
"rawValue": "cross",
"raw": "\"cross\""
},
"value": "cross"
}
}
]
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 45,
"end": 66,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 21
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 45,
"end": 66,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 21
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 191,
"end": 992,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 37,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 198,
"end": 992,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 37,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 204,
"end": 217,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 26
},
"identifierName": "WireComponent"
},
"name": "WireComponent"
},
"superClass": {
"type": "Identifier",
"start": 226,
"end": 235,
"loc": {
"start": {
"line": 11,
"column": 35
},
"end": {
"line": 11,
"column": 44
},
"identifierName": "Component"
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 236,
"end": 992,
"loc": {
"start": {
"line": 11,
"column": 45
},
"end": {
"line": 37,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 243,
"end": 290,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 14,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 250,
"end": 255,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 16
},
"identifierName": "getId"
},
"name": "getId"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 258,
"end": 290,
"loc": {
"start": {
"line": 12,
"column": 19
},
"end": {
"line": 14,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 269,
"end": 283,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 22
}
},
"argument": {
"type": "StringLiteral",
"start": 276,
"end": 282,
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 21
}
},
"extra": {
"rawValue": "Wire",
"raw": "\"Wire\""
},
"value": "Wire"
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @param {object} param0\r\n * @param {enumWireType=} param0.type\r\n * @param {import(\"../buildings/wire\").MetaWireBuilding.wireVariants=} param0.variant\r\n ",
"start": 298,
"end": 475,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 20,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " @ts-ignore",
"start": 481,
"end": 494,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 17
}
}
}
]
},
{
"type": "ClassMethod",
"start": 500,
"end": 989,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 36,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 500,
"end": 511,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "ObjectPattern",
"start": 512,
"end": 602,
"loc": {
"start": {
"line": 22,
"column": 16
},
"end": {
"line": 22,
"column": 106
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 514,
"end": 541,
"loc": {
"start": {
"line": 22,
"column": 18
},
"end": {
"line": 22,
"column": 45
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 514,
"end": 518,
"loc": {
"start": {
"line": 22,
"column": 18
},
"end": {
"line": 22,
"column": 22
},
"identifierName": "type"
},
"name": "type"
},
"value": {
"type": "AssignmentPattern",
"start": 514,
"end": 541,
"loc": {
"start": {
"line": 22,
"column": 18
},
"end": {
"line": 22,
"column": 45
}
},
"left": {
"type": "Identifier",
"start": 514,
"end": 518,
"loc": {
"start": {
"line": 22,
"column": 18
},
"end": {
"line": 22,
"column": 22
},
"identifierName": "type"
},
"name": "type"
},
"right": {
"type": "MemberExpression",
"start": 521,
"end": 541,
"loc": {
"start": {
"line": 22,
"column": 25
},
"end": {
"line": 22,
"column": 45
}
},
"object": {
"type": "Identifier",
"start": 521,
"end": 533,
"loc": {
"start": {
"line": 22,
"column": 25
},
"end": {
"line": 22,
"column": 37
},
"identifierName": "enumWireType"
},
"name": "enumWireType"
},
"property": {
"type": "Identifier",
"start": 534,
"end": 541,
"loc": {
"start": {
"line": 22,
"column": 38
},
"end": {
"line": 22,
"column": 45
},
"identifierName": "forward"
},
"name": "forward"
},
"computed": false
}
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start": 543,
"end": 560,
"loc": {
"start": {
"line": 22,
"column": 47
},
"end": {
"line": 22,
"column": 64
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 543,
"end": 550,
"loc": {
"start": {
"line": 22,
"column": 47
},
"end": {
"line": 22,
"column": 54
},
"identifierName": "variant"
},
"name": "variant"
},
"value": {
"type": "AssignmentPattern",
"start": 543,
"end": 560,
"loc": {
"start": {
"line": 22,
"column": 47
},
"end": {
"line": 22,
"column": 64
}
},
"left": {
"type": "Identifier",
"start": 543,
"end": 550,
"loc": {
"start": {
"line": 22,
"column": 47
},
"end": {
"line": 22,
"column": 54
},
"identifierName": "variant"
},
"name": "variant"
},
"right": {
"type": "StringLiteral",
"start": 553,
"end": 560,
"loc": {
"start": {
"line": 22,
"column": 57
},
"end": {
"line": 22,
"column": 64
}
},
"extra": {
"rawValue": "first",
"raw": "\"first\""
},
"value": "first",
"leadingComments": null,
"trailingComments": null
},
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "MetaWireBuilding.wireVariants.first",
"start": 561,
"end": 600,
"loc": {
"start": {
"line": 22,
"column": 65
},
"end": {
"line": 22,
"column": 104
}
}
}
],
"extra": {
"shorthand": true
}
}
]
}
],
"body": {
"type": "BlockStatement",
"start": 604,
"end": 989,
"loc": {
"start": {
"line": 22,
"column": 108
},
"end": {
"line": 36,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 615,
"end": 623,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 615,
"end": 622,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 615,
"end": 620,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 13
}
}
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 633,
"end": 650,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 633,
"end": 649,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 24
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 633,
"end": 642,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 633,
"end": 637,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 638,
"end": 642,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 17
},
"identifierName": "type"
},
"name": "type"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 645,
"end": 649,
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 24,
"column": 24
},
"identifierName": "type"
},
"name": "type"
}
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * The variant of the wire, different variants do not connect\r\n * @type {import(\"../buildings/wire\").MetaWireBuilding.wireVariants}\r\n ",
"start": 662,
"end": 827,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 29,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 837,
"end": 860,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 31
}
},
"expression": {
"type": "AssignmentExpression",
"start": 837,
"end": 859,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 30
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 837,
"end": 849,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 837,
"end": 841,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 842,
"end": 849,
"loc": {
"start": {
"line": 30,
"column": 13
},
"end": {
"line": 30,
"column": 20
},
"identifierName": "variant"
},
"name": "variant"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 852,
"end": 859,
"loc": {
"start": {
"line": 30,
"column": 23
},
"end": {
"line": 30,
"column": 30
},
"identifierName": "variant"
},
"name": "variant"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * The variant of the wire, different variants do not connect\r\n * @type {import(\"../buildings/wire\").MetaWireBuilding.wireVariants}\r\n ",
"start": 662,
"end": 827,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 29,
"column": 11
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @type {import(\"../systems/wire\").WireNetwork}\r\n ",
"start": 872,
"end": 946,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 34,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 956,
"end": 982,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 34
}
},
"expression": {
"type": "AssignmentExpression",
"start": 956,
"end": 981,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 956,
"end": 974,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 956,
"end": 960,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 961,
"end": 974,
"loc": {
"start": {
"line": 35,
"column": 13
},
"end": {
"line": 35,
"column": 26
},
"identifierName": "linkedNetwork"
},
"name": "linkedNetwork"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NullLiteral",
"start": 977,
"end": 981,
"loc": {
"start": {
"line": 35,
"column": 29
},
"end": {
"line": 35,
"column": 33
}
}
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @type {import(\"../systems/wire\").WireNetwork}\r\n ",
"start": 872,
"end": 946,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 34,
"column": 11
}
}
}
]
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @param {object} param0\r\n * @param {enumWireType=} param0.type\r\n * @param {import(\"../buildings/wire\").MetaWireBuilding.wireVariants=} param0.variant\r\n ",
"start": 298,
"end": 475,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 20,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " @ts-ignore",
"start": 481,
"end": 494,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 17
}
}
}
]
}
]
},
"leadingComments": [],
"trailingComments": []
}
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 45,
"end": 66,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 21
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @param {object} param0\r\n * @param {enumWireType=} param0.type\r\n * @param {import(\"../buildings/wire\").MetaWireBuilding.wireVariants=} param0.variant\r\n ",
"start": 298,
"end": 475,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 20,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " @ts-ignore",
"start": 481,
"end": 494,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 17
}
}
},
{
"type": "CommentBlock",
"value": "MetaWireBuilding.wireVariants.first",
"start": 561,
"end": 600,
"loc": {
"start": {
"line": 22,
"column": 65
},
"end": {
"line": 22,
"column": 104
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * The variant of the wire, different variants do not connect\r\n * @type {import(\"../buildings/wire\").MetaWireBuilding.wireVariants}\r\n ",
"start": 662,
"end": 827,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 29,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @type {import(\"../systems/wire\").WireNetwork}\r\n ",
"start": 872,
"end": 946,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 34,
"column": 11
}
}
}
],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Component",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 19,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 21,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 25
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../component",
"start": 26,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 40
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 40,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 40
},
"end": {
"line": 1,
"column": 41
}
}
},
{
"type": "CommentBlock",
"value": "* @enum {string} ",
"start": 45,
"end": 66,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 21
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 68,
"end": 74,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 6
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 75,
"end": 80,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumWireType",
"start": 81,
"end": 93,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 94,
"end": 95,
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 96,
"end": 97,
"loc": {
"start": {
"line": 4,
"column": 28
},
"end": {
"line": 4,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "forward",
"start": 103,
"end": 110,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 11
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 110,
"end": 111,
"loc": {
"start": {
"line": 5,
"column": 11
},
"end": {
"line": 5,
"column": 12
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "forward",
"start": 112,
"end": 121,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 22
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 121,
"end": 122,
"loc": {
"start": {
"line": 5,
"column": 22
},
"end": {
"line": 5,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "turn",
"start": 128,
"end": 132,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 8
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 132,
"end": 133,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 9
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "turn",
"start": 134,
"end": 140,
"loc": {
"start": {
"line": 6,
"column": 10
},
"end": {
"line": 6,
"column": 16
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 140,
"end": 141,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "split",
"start": 147,
"end": 152,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 9
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 152,
"end": 153,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 10
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "split",
"start": 154,
"end": 161,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 18
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 161,
"end": 162,
"loc": {
"start": {
"line": 7,
"column": 18
},
"end": {
"line": 7,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cross",
"start": 168,
"end": 173,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 9
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 173,
"end": 174,
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 10
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "cross",
"start": 175,
"end": 182,
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 8,
"column": 18
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 182,
"end": 183,
"loc": {
"start": {
"line": 8,
"column": 18
},
"end": {
"line": 8,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 185,
"end": 186,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 186,
"end": 187,
"loc": {
"start": {
"line": 9,
"column": 1
},
"end": {
"line": 9,
"column": 2
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 191,
"end": 197,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 6
}
}
},
{
"type": {
"label": "class",
"keyword": "class",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "class",
"start": 198,
"end": 203,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 11,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "WireComponent",
"start": 204,
"end": 217,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 26
}
}
},
{
"type": {
"label": "extends",
"keyword": "extends",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "extends",
"start": 218,
"end": 225,
"loc": {
"start": {
"line": 11,
"column": 27
},
"end": {
"line": 11,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Component",
"start": 226,
"end": 235,
"loc": {
"start": {
"line": 11,
"column": 35
},
"end": {
"line": 11,
"column": 44
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 236,
"end": 237,
"loc": {
"start": {
"line": 11,
"column": 45
},
"end": {
"line": 11,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 243,
"end": 249,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getId",
"start": 250,
"end": 255,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 255,
"end": 256,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 256,
"end": 257,
"loc": {
"start": {
"line": 12,
"column": 17
},
"end": {
"line": 12,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 258,
"end": 259,
"loc": {
"start": {
"line": 12,
"column": 19
},
"end": {
"line": 12,
"column": 20
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 269,
"end": 275,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 14
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Wire",
"start": 276,
"end": 282,
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 21
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 282,
"end": 283,
"loc": {
"start": {
"line": 13,
"column": 21
},
"end": {
"line": 13,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 289,
"end": 290,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @param {object} param0\r\n * @param {enumWireType=} param0.type\r\n * @param {import(\"../buildings/wire\").MetaWireBuilding.wireVariants=} param0.variant\r\n ",
"start": 298,
"end": 475,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 20,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " @ts-ignore",
"start": 481,
"end": 494,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 500,
"end": 511,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 511,
"end": 512,
"loc": {
"start": {
"line": 22,
"column": 15
},
"end": {
"line": 22,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 512,
"end": 513,
"loc": {
"start": {
"line": 22,
"column": 16
},
"end": {
"line": 22,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 514,
"end": 518,
"loc": {
"start": {
"line": 22,
"column": 18
},
"end": {
"line": 22,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 519,
"end": 520,
"loc": {
"start": {
"line": 22,
"column": 23
},
"end": {
"line": 22,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enumWireType",
"start": 521,
"end": 533,
"loc": {
"start": {
"line": 22,
"column": 25
},
"end": {
"line": 22,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 533,
"end": 534,
"loc": {
"start": {
"line": 22,
"column": 37
},
"end": {
"line": 22,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "forward",
"start": 534,
"end": 541,
"loc": {
"start": {
"line": 22,
"column": 38
},
"end": {
"line": 22,
"column": 45
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 541,
"end": 542,
"loc": {
"start": {
"line": 22,
"column": 45
},
"end": {
"line": 22,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "variant",
"start": 543,
"end": 550,
"loc": {
"start": {
"line": 22,
"column": 47
},
"end": {
"line": 22,
"column": 54
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 551,
"end": 552,
"loc": {
"start": {
"line": 22,
"column": 55
},
"end": {
"line": 22,
"column": 56
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "first",
"start": 553,
"end": 560,
"loc": {
"start": {
"line": 22,
"column": 57
},
"end": {
"line": 22,
"column": 64
}
}
},
{
"type": "CommentBlock",
"value": "MetaWireBuilding.wireVariants.first",
"start": 561,
"end": 600,
"loc": {
"start": {
"line": 22,
"column": 65
},
"end": {
"line": 22,
"column": 104
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 601,
"end": 602,
"loc": {
"start": {
"line": 22,
"column": 105
},
"end": {
"line": 22,
"column": 106
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 602,
"end": 603,
"loc": {
"start": {
"line": 22,
"column": 106
},
"end": {
"line": 22,
"column": 107
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 604,
"end": 605,
"loc": {
"start": {
"line": 22,
"column": 108
},
"end": {
"line": 22,
"column": 109
}
}
},
{
"type": {
"label": "super",
"keyword": "super",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "super",
"start": 615,
"end": 620,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 620,
"end": 621,
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 621,
"end": 622,
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 23,
"column": 15
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 622,
"end": 623,
"loc": {
"start": {
"line": 23,
"column": 15
},
"end": {
"line": 23,
"column": 16
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 633,
"end": 637,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 637,
"end": 638,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 638,
"end": 642,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 643,
"end": 644,
"loc": {
"start": {
"line": 24,
"column": 18
},
"end": {
"line": 24,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 645,
"end": 649,
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 24,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 649,
"end": 650,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 25
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * The variant of the wire, different variants do not connect\r\n * @type {import(\"../buildings/wire\").MetaWireBuilding.wireVariants}\r\n ",
"start": 662,
"end": 827,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 29,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 837,
"end": 841,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 841,
"end": 842,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "variant",
"start": 842,
"end": 849,
"loc": {
"start": {
"line": 30,
"column": 13
},
"end": {
"line": 30,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 850,
"end": 851,
"loc": {
"start": {
"line": 30,
"column": 21
},
"end": {
"line": 30,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "variant",
"start": 852,
"end": 859,
"loc": {
"start": {
"line": 30,
"column": 23
},
"end": {
"line": 30,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 859,
"end": 860,
"loc": {
"start": {
"line": 30,
"column": 30
},
"end": {
"line": 30,
"column": 31
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @type {import(\"../systems/wire\").WireNetwork}\r\n ",
"start": 872,
"end": 946,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 34,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 956,
"end": 960,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 960,
"end": 961,
"loc": {
"start": {
"line": 35,
"column": 12
},
"end": {
"line": 35,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "linkedNetwork",
"start": 961,
"end": 974,
"loc": {
"start": {
"line": 35,
"column": 13
},
"end": {
"line": 35,
"column": 26
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 975,
"end": 976,
"loc": {
"start": {
"line": 35,
"column": 27
},
"end": {
"line": 35,
"column": 28
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 977,
"end": 981,
"loc": {
"start": {
"line": 35,
"column": 29
},
"end": {
"line": 35,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 981,
"end": 982,
"loc": {
"start": {
"line": 35,
"column": 33
},
"end": {
"line": 35,
"column": 34
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 988,
"end": 989,
"loc": {
"start": {
"line": 36,
"column": 4
},
"end": {
"line": 36,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 991,
"end": 992,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 37,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 992,
"end": 992,
"loc": {
"start": {
"line": 37,
"column": 1
},
"end": {
"line": 37,
"column": 1
}
}
}
]
}