{ "type": "File", "start": 0, "end": 3765, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 113, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 3765, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 113, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 49, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 49 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 9, "end": 21, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 21 } }, "imported": { "type": "Identifier", "start": 9, "end": 21, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 21 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "local": { "type": "Identifier", "start": 9, "end": 21, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 21 }, "identifierName": "globalConfig" }, "name": "globalConfig" } } ], "source": { "type": "StringLiteral", "start": 29, "end": 48, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 48 } }, "extra": { "rawValue": "../../core/config", "raw": "\"../../core/config\"" }, "value": "../../core/config" } }, { "type": "ImportDeclaration", "start": 51, "end": 104, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 53 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 60, "end": 65, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 14 } }, "imported": { "type": "Identifier", "start": 60, "end": 65, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 14 }, "identifierName": "types" }, "name": "types" }, "local": { "type": "Identifier", "start": 60, "end": 65, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 14 }, "identifierName": "types" }, "name": "types" } } ], "source": { "type": "StringLiteral", "start": 73, "end": 103, "loc": { "start": { "line": 2, "column": 22 }, "end": { "line": 2, "column": 52 } }, "extra": { "rawValue": "../../savegame/serialization", "raw": "\"../../savegame/serialization\"" }, "value": "../../savegame/serialization" } }, { "type": "ImportDeclaration", "start": 106, "end": 146, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 40 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 115, "end": 123, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 17 } }, "imported": { "type": "Identifier", "start": 115, "end": 123, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 17 }, "identifierName": "BaseItem" }, "name": "BaseItem" }, "local": { "type": "Identifier", "start": 115, "end": 123, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 17 }, "identifierName": "BaseItem" }, "name": "BaseItem" } } ], "source": { "type": "StringLiteral", "start": 131, "end": 145, "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 39 } }, "extra": { "rawValue": "../base_item", "raw": "\"../base_item\"" }, "value": "../base_item" } }, { "type": "ImportDeclaration", "start": 148, "end": 189, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 41 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 157, "end": 166, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 18 } }, "imported": { "type": "Identifier", "start": 157, "end": 166, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 18 }, "identifierName": "Component" }, "name": "Component" }, "local": { "type": "Identifier", "start": 157, "end": 166, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 18 }, "identifierName": "Component" }, "name": "Component" } } ], "source": { "type": "StringLiteral", "start": 174, "end": 188, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 40 } }, "extra": { "rawValue": "../component", "raw": "\"../component\"" }, "value": "../component" } }, { "type": "ImportDeclaration", "start": 191, "end": 226, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 35 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 200, "end": 206, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 } }, "imported": { "type": "Identifier", "start": 200, "end": 206, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 }, "identifierName": "Entity" }, "name": "Entity" }, "local": { "type": "Identifier", "start": 200, "end": 206, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 }, "identifierName": "Entity" }, "name": "Entity" } } ], "source": { "type": "StringLiteral", "start": 214, "end": 225, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 34 } }, "extra": { "rawValue": "../entity", "raw": "\"../entity\"" }, "value": "../entity" } }, { "type": "ImportDeclaration", "start": 228, "end": 281, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 53 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 237, "end": 254, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 26 } }, "imported": { "type": "Identifier", "start": 237, "end": 254, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 26 }, "identifierName": "typeItemSingleton" }, "name": "typeItemSingleton" }, "local": { "type": "Identifier", "start": 237, "end": 254, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 26 }, "identifierName": "typeItemSingleton" }, "name": "typeItemSingleton" } } ], "source": { "type": "StringLiteral", "start": 262, "end": 280, "loc": { "start": { "line": 6, "column": 34 }, "end": { "line": 6, "column": 52 } }, "extra": { "rawValue": "../item_resolver", "raw": "\"../item_resolver\"" }, "value": "../item_resolver" }, "trailingComments": [ { "type": "CommentBlock", "value": "* @enum {string} ", "start": 285, "end": 306, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 21 } } } ] }, { "type": "ExportNamedDeclaration", "start": 308, "end": 402, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 12, "column": 2 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 315, "end": 402, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 12, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 321, "end": 401, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 12, "column": 1 } }, "id": { "type": "Identifier", "start": 321, "end": 344, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 36 }, "identifierName": "enumUndergroundBeltMode" }, "name": "enumUndergroundBeltMode", "leadingComments": null }, "init": { "type": "ObjectExpression", "start": 347, "end": 401, "loc": { "start": { "line": 9, "column": 39 }, "end": { "line": 12, "column": 1 } }, "properties": [ { "type": "ObjectProperty", "start": 354, "end": 370, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 20 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 354, "end": 360, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 10 }, "identifierName": "sender" }, "name": "sender" }, "value": { "type": "StringLiteral", "start": 362, "end": 370, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 20 } }, "extra": { "rawValue": "sender", "raw": "\"sender\"" }, "value": "sender" } }, { "type": "ObjectProperty", "start": 377, "end": 397, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 24 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 377, "end": 385, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 12 }, "identifierName": "receiver" }, "name": "receiver" }, "value": { "type": "StringLiteral", "start": 387, "end": 397, "loc": { "start": { "line": 11, "column": 14 }, "end": { "line": 11, "column": 24 } }, "extra": { "rawValue": "receiver", "raw": "\"receiver\"" }, "value": "receiver" } } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "* @enum {string} ", "start": 285, "end": 306, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 21 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * @typedef {{\r\n * entity: Entity,\r\n * distance: number\r\n * }} LinkedUndergroundBelt\r\n ", "start": 406, "end": 504, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 19, "column": 3 } } } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "* @enum {string} ", "start": 285, "end": 306, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 21 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * @typedef {{\r\n * entity: Entity,\r\n * distance: number\r\n * }} LinkedUndergroundBelt\r\n ", "start": 406, "end": 504, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 19, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "start": 508, "end": 3763, "loc": { "start": { "line": 21, "column": 0 }, "end": { "line": 112, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 515, "end": 3763, "loc": { "start": { "line": 21, "column": 7 }, "end": { "line": 112, "column": 1 } }, "id": { "type": "Identifier", "start": 521, "end": 545, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 37 }, "identifierName": "UndergroundBeltComponent" }, "name": "UndergroundBeltComponent", "leadingComments": null }, "superClass": { "type": "Identifier", "start": 554, "end": 563, "loc": { "start": { "line": 21, "column": 46 }, "end": { "line": 21, "column": 55 }, "identifierName": "Component" }, "name": "Component" }, "body": { "type": "ClassBody", "start": 564, "end": 3763, "loc": { "start": { "line": 21, "column": 56 }, "end": { "line": 112, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 571, "end": 629, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 24, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 578, "end": 583, "loc": { "start": { "line": 22, "column": 11 }, "end": { "line": 22, "column": 16 }, "identifierName": "getId" }, "name": "getId" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 586, "end": 629, "loc": { "start": { "line": 22, "column": 19 }, "end": { "line": 24, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 597, "end": 622, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 33 } }, "argument": { "type": "StringLiteral", "start": 604, "end": 621, "loc": { "start": { "line": 23, "column": 15 }, "end": { "line": 23, "column": 32 } }, "extra": { "rawValue": "UndergroundBelt", "raw": "\"UndergroundBelt\"" }, "value": "UndergroundBelt" } } ], "directives": [] } }, { "type": "ClassMethod", "start": 637, "end": 778, "loc": { "start": { "line": 26, "column": 4 }, "end": { "line": 30, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 644, "end": 653, "loc": { "start": { "line": 26, "column": 11 }, "end": { "line": 26, "column": 20 }, "identifierName": "getSchema" }, "name": "getSchema" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 656, "end": 778, "loc": { "start": { "line": 26, "column": 23 }, "end": { "line": 30, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 667, "end": 771, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 29, "column": 10 } }, "argument": { "type": "ObjectExpression", "start": 674, "end": 770, "loc": { "start": { "line": 27, "column": 15 }, "end": { "line": 29, "column": 9 } }, "properties": [ { "type": "ObjectProperty", "start": 689, "end": 758, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 81 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 689, "end": 701, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 24 }, "identifierName": "pendingItems" }, "name": "pendingItems" }, "value": { "type": "CallExpression", "start": 703, "end": 758, "loc": { "start": { "line": 28, "column": 26 }, "end": { "line": 28, "column": 81 } }, "callee": { "type": "MemberExpression", "start": 703, "end": 714, "loc": { "start": { "line": 28, "column": 26 }, "end": { "line": 28, "column": 37 } }, "object": { "type": "Identifier", "start": 703, "end": 708, "loc": { "start": { "line": 28, "column": 26 }, "end": { "line": 28, "column": 31 }, "identifierName": "types" }, "name": "types" }, "property": { "type": "Identifier", "start": 709, "end": 714, "loc": { "start": { "line": 28, "column": 32 }, "end": { "line": 28, "column": 37 }, "identifierName": "array" }, "name": "array" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 715, "end": 757, "loc": { "start": { "line": 28, "column": 38 }, "end": { "line": 28, "column": 80 } }, "callee": { "type": "MemberExpression", "start": 715, "end": 725, "loc": { "start": { "line": 28, "column": 38 }, "end": { "line": 28, "column": 48 } }, "object": { "type": "Identifier", "start": 715, "end": 720, "loc": { "start": { "line": 28, "column": 38 }, "end": { "line": 28, "column": 43 }, "identifierName": "types" }, "name": "types" }, "property": { "type": "Identifier", "start": 721, "end": 725, "loc": { "start": { "line": 28, "column": 44 }, "end": { "line": 28, "column": 48 }, "identifierName": "pair" }, "name": "pair" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 726, "end": 743, "loc": { "start": { "line": 28, "column": 49 }, "end": { "line": 28, "column": 66 }, "identifierName": "typeItemSingleton" }, "name": "typeItemSingleton" }, { "type": "MemberExpression", "start": 745, "end": 756, "loc": { "start": { "line": 28, "column": 68 }, "end": { "line": 28, "column": 79 } }, "object": { "type": "Identifier", "start": 745, "end": 750, "loc": { "start": { "line": 28, "column": 68 }, "end": { "line": 28, "column": 73 }, "identifierName": "types" }, "name": "types" }, "property": { "type": "Identifier", "start": 751, "end": 756, "loc": { "start": { "line": 28, "column": 74 }, "end": { "line": 28, "column": 79 }, "identifierName": "float" }, "name": "float" }, "computed": false } ] } ] } } ] } } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {object} param0\r\n * @param {enumUndergroundBeltMode=} param0.mode As which type of belt the entity acts\r\n * @param {number=} param0.tier\r\n ", "start": 786, "end": 966, "loc": { "start": { "line": 32, "column": 4 }, "end": { "line": 37, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 972, "end": 1859, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 61, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 972, "end": 983, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 15 }, "identifierName": "constructor" }, "name": "constructor", "leadingComments": null }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "ObjectPattern", "start": 984, "end": 1035, "loc": { "start": { "line": 38, "column": 16 }, "end": { "line": 38, "column": 67 } }, "properties": [ { "type": "ObjectProperty", "start": 986, "end": 1023, "loc": { "start": { "line": 38, "column": 18 }, "end": { "line": 38, "column": 55 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 986, "end": 990, "loc": { "start": { "line": 38, "column": 18 }, "end": { "line": 38, "column": 22 }, "identifierName": "mode" }, "name": "mode" }, "value": { "type": "AssignmentPattern", "start": 986, "end": 1023, "loc": { "start": { "line": 38, "column": 18 }, "end": { "line": 38, "column": 55 } }, "left": { "type": "Identifier", "start": 986, "end": 990, "loc": { "start": { "line": 38, "column": 18 }, "end": { "line": 38, "column": 22 }, "identifierName": "mode" }, "name": "mode" }, "right": { "type": "MemberExpression", "start": 993, "end": 1023, "loc": { "start": { "line": 38, "column": 25 }, "end": { "line": 38, "column": 55 } }, "object": { "type": "Identifier", "start": 993, "end": 1016, "loc": { "start": { "line": 38, "column": 25 }, "end": { "line": 38, "column": 48 }, "identifierName": "enumUndergroundBeltMode" }, "name": "enumUndergroundBeltMode" }, "property": { "type": "Identifier", "start": 1017, "end": 1023, "loc": { "start": { "line": 38, "column": 49 }, "end": { "line": 38, "column": 55 }, "identifierName": "sender" }, "name": "sender" }, "computed": false } }, "extra": { "shorthand": true } }, { "type": "ObjectProperty", "start": 1025, "end": 1033, "loc": { "start": { "line": 38, "column": 57 }, "end": { "line": 38, "column": 65 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 1025, "end": 1029, "loc": { "start": { "line": 38, "column": 57 }, "end": { "line": 38, "column": 61 }, "identifierName": "tier" }, "name": "tier" }, "value": { "type": "AssignmentPattern", "start": 1025, "end": 1033, "loc": { "start": { "line": 38, "column": 57 }, "end": { "line": 38, "column": 65 } }, "left": { "type": "Identifier", "start": 1025, "end": 1029, "loc": { "start": { "line": 38, "column": 57 }, "end": { "line": 38, "column": 61 }, "identifierName": "tier" }, "name": "tier" }, "right": { "type": "NumericLiteral", "start": 1032, "end": 1033, "loc": { "start": { "line": 38, "column": 64 }, "end": { "line": 38, "column": 65 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, "extra": { "shorthand": true } } ] } ], "body": { "type": "BlockStatement", "start": 1037, "end": 1859, "loc": { "start": { "line": 38, "column": 69 }, "end": { "line": 61, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 1048, "end": 1056, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 16 } }, "expression": { "type": "CallExpression", "start": 1048, "end": 1055, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 15 } }, "callee": { "type": "Super", "start": 1048, "end": 1053, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 1068, "end": 1085, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 41, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 1068, "end": 1084, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 41, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1068, "end": 1077, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 41, "column": 17 } }, "object": { "type": "ThisExpression", "start": 1068, "end": 1072, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 41, "column": 12 } } }, "property": { "type": "Identifier", "start": 1073, "end": 1077, "loc": { "start": { "line": 41, "column": 13 }, "end": { "line": 41, "column": 17 }, "identifierName": "mode" }, "name": "mode" }, "computed": false }, "right": { "type": "Identifier", "start": 1080, "end": 1084, "loc": { "start": { "line": 41, "column": 20 }, "end": { "line": 41, "column": 24 }, "identifierName": "mode" }, "name": "mode" } } }, { "type": "ExpressionStatement", "start": 1095, "end": 1112, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 1095, "end": 1111, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1095, "end": 1104, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 17 } }, "object": { "type": "ThisExpression", "start": 1095, "end": 1099, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 12 } } }, "property": { "type": "Identifier", "start": 1100, "end": 1104, "loc": { "start": { "line": 42, "column": 13 }, "end": { "line": 42, "column": 17 }, "identifierName": "tier" }, "name": "tier" }, "computed": false }, "right": { "type": "Identifier", "start": 1107, "end": 1111, "loc": { "start": { "line": 42, "column": 20 }, "end": { "line": 42, "column": 24 }, "identifierName": "tier" }, "name": "tier" } }, "trailingComments": [ { "type": "CommentBlock", "value": "* @type {Array<{ item: BaseItem, progress: number }>} ", "start": 1124, "end": 1182, "loc": { "start": { "line": 44, "column": 8 }, "end": { "line": 44, "column": 66 } } } ] }, { "type": "ExpressionStatement", "start": 1192, "end": 1224, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 45, "column": 40 } }, "expression": { "type": "AssignmentExpression", "start": 1192, "end": 1223, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 45, "column": 39 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1192, "end": 1218, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 45, "column": 34 } }, "object": { "type": "ThisExpression", "start": 1192, "end": 1196, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 45, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 1197, "end": 1218, "loc": { "start": { "line": 45, "column": 13 }, "end": { "line": 45, "column": 34 }, "identifierName": "consumptionAnimations" }, "name": "consumptionAnimations" }, "computed": false, "leadingComments": null }, "right": { "type": "ArrayExpression", "start": 1221, "end": 1223, "loc": { "start": { "line": 45, "column": 37 }, "end": { "line": 45, "column": 39 } }, "elements": [] }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {Array<{ item: BaseItem, progress: number }>} ", "start": 1124, "end": 1182, "loc": { "start": { "line": 44, "column": 8 }, "end": { "line": 44, "column": 66 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Used on both receiver and sender.\r\n * Reciever: Used to store the next item to transfer, and to block input while doing this\r\n * Sender: Used to store which items are currently \"travelling\"\r\n * @type {Array<[BaseItem, number]>} Format is [Item, ingame time to eject the item]\r\n ", "start": 1236, "end": 1564, "loc": { "start": { "line": 47, "column": 8 }, "end": { "line": 52, "column": 11 } } } ] }, { "type": "ExpressionStatement", "start": 1574, "end": 1597, "loc": { "start": { "line": 53, "column": 8 }, "end": { "line": 53, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 1574, "end": 1596, "loc": { "start": { "line": 53, "column": 8 }, "end": { "line": 53, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1574, "end": 1591, "loc": { "start": { "line": 53, "column": 8 }, "end": { "line": 53, "column": 25 } }, "object": { "type": "ThisExpression", "start": 1574, "end": 1578, "loc": { "start": { "line": 53, "column": 8 }, "end": { "line": 53, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 1579, "end": 1591, "loc": { "start": { "line": 53, "column": 13 }, "end": { "line": 53, "column": 25 }, "identifierName": "pendingItems" }, "name": "pendingItems" }, "computed": false, "leadingComments": null }, "right": { "type": "ArrayExpression", "start": 1594, "end": 1596, "loc": { "start": { "line": 53, "column": 28 }, "end": { "line": 53, "column": 30 } }, "elements": [] }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Used on both receiver and sender.\r\n * Reciever: Used to store the next item to transfer, and to block input while doing this\r\n * Sender: Used to store which items are currently \"travelling\"\r\n * @type {Array<[BaseItem, number]>} Format is [Item, ingame time to eject the item]\r\n ", "start": 1236, "end": 1564, "loc": { "start": { "line": 47, "column": 8 }, "end": { "line": 52, "column": 11 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * The linked entity, used to speed up performance. This contains either\r\n * the entrance or exit depending on the tunnel type\r\n * @type {LinkedUndergroundBelt}\r\n ", "start": 1609, "end": 1811, "loc": { "start": { "line": 55, "column": 8 }, "end": { "line": 59, "column": 11 } } } ] }, { "type": "ExpressionStatement", "start": 1821, "end": 1852, "loc": { "start": { "line": 60, "column": 8 }, "end": { "line": 60, "column": 39 } }, "expression": { "type": "AssignmentExpression", "start": 1821, "end": 1851, "loc": { "start": { "line": 60, "column": 8 }, "end": { "line": 60, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1821, "end": 1844, "loc": { "start": { "line": 60, "column": 8 }, "end": { "line": 60, "column": 31 } }, "object": { "type": "ThisExpression", "start": 1821, "end": 1825, "loc": { "start": { "line": 60, "column": 8 }, "end": { "line": 60, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 1826, "end": 1844, "loc": { "start": { "line": 60, "column": 13 }, "end": { "line": 60, "column": 31 }, "identifierName": "cachedLinkedEntity" }, "name": "cachedLinkedEntity" }, "computed": false, "leadingComments": null }, "right": { "type": "NullLiteral", "start": 1847, "end": 1851, "loc": { "start": { "line": 60, "column": 34 }, "end": { "line": 60, "column": 38 } } }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * The linked entity, used to speed up performance. This contains either\r\n * the entrance or exit depending on the tunnel type\r\n * @type {LinkedUndergroundBelt}\r\n ", "start": 1609, "end": 1811, "loc": { "start": { "line": 55, "column": 8 }, "end": { "line": 59, "column": 11 } } } ] } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {object} param0\r\n * @param {enumUndergroundBeltMode=} param0.mode As which type of belt the entity acts\r\n * @param {number=} param0.tier\r\n ", "start": 786, "end": 966, "loc": { "start": { "line": 32, "column": 4 }, "end": { "line": 37, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Tries to accept an item from an external source like a regular belt or building\r\n * @param {BaseItem} item\r\n * @param {number} beltSpeed How fast this item travels\r\n ", "start": 1867, "end": 2059, "loc": { "start": { "line": 63, "column": 4 }, "end": { "line": 67, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 2065, "end": 2464, "loc": { "start": { "line": 68, "column": 4 }, "end": { "line": 81, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2065, "end": 2086, "loc": { "start": { "line": 68, "column": 4 }, "end": { "line": 68, "column": 25 }, "identifierName": "tryAcceptExternalItem" }, "name": "tryAcceptExternalItem", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2087, "end": 2091, "loc": { "start": { "line": 68, "column": 26 }, "end": { "line": 68, "column": 30 }, "identifierName": "item" }, "name": "item" }, { "type": "Identifier", "start": 2093, "end": 2102, "loc": { "start": { "line": 68, "column": 32 }, "end": { "line": 68, "column": 41 }, "identifierName": "beltSpeed" }, "name": "beltSpeed" } ], "body": { "type": "BlockStatement", "start": 2104, "end": 2464, "loc": { "start": { "line": 68, "column": 43 }, "end": { "line": 81, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 2115, "end": 2255, "loc": { "start": { "line": 69, "column": 8 }, "end": { "line": 72, "column": 9 } }, "test": { "type": "BinaryExpression", "start": 2119, "end": 2163, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 56 } }, "left": { "type": "MemberExpression", "start": 2119, "end": 2128, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 21 } }, "object": { "type": "ThisExpression", "start": 2119, "end": 2123, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 16 } } }, "property": { "type": "Identifier", "start": 2124, "end": 2128, "loc": { "start": { "line": 69, "column": 17 }, "end": { "line": 69, "column": 21 }, "identifierName": "mode" }, "name": "mode" }, "computed": false }, "operator": "!==", "right": { "type": "MemberExpression", "start": 2133, "end": 2163, "loc": { "start": { "line": 69, "column": 26 }, "end": { "line": 69, "column": 56 } }, "object": { "type": "Identifier", "start": 2133, "end": 2156, "loc": { "start": { "line": 69, "column": 26 }, "end": { "line": 69, "column": 49 }, "identifierName": "enumUndergroundBeltMode" }, "name": "enumUndergroundBeltMode" }, "property": { "type": "Identifier", "start": 2157, "end": 2163, "loc": { "start": { "line": 69, "column": 50 }, "end": { "line": 69, "column": 56 }, "identifierName": "sender" }, "name": "sender" }, "computed": false } }, "consequent": { "type": "BlockStatement", "start": 2165, "end": 2255, "loc": { "start": { "line": 69, "column": 58 }, "end": { "line": 72, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 2231, "end": 2244, "loc": { "start": { "line": 71, "column": 12 }, "end": { "line": 71, "column": 25 } }, "argument": { "type": "BooleanLiteral", "start": 2238, "end": 2243, "loc": { "start": { "line": 71, "column": 19 }, "end": { "line": 71, "column": 24 } }, "value": false, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Only senders accept external items", "start": 2180, "end": 2217, "loc": { "start": { "line": 70, "column": 12 }, "end": { "line": 70, "column": 49 } } } ] } ], "directives": [] }, "alternate": null }, { "type": "IfStatement", "start": 2267, "end": 2389, "loc": { "start": { "line": 74, "column": 8 }, "end": { "line": 77, "column": 9 } }, "test": { "type": "BinaryExpression", "start": 2271, "end": 2299, "loc": { "start": { "line": 74, "column": 12 }, "end": { "line": 74, "column": 40 } }, "left": { "type": "MemberExpression", "start": 2271, "end": 2295, "loc": { "start": { "line": 74, "column": 12 }, "end": { "line": 74, "column": 36 } }, "object": { "type": "MemberExpression", "start": 2271, "end": 2288, "loc": { "start": { "line": 74, "column": 12 }, "end": { "line": 74, "column": 29 } }, "object": { "type": "ThisExpression", "start": 2271, "end": 2275, "loc": { "start": { "line": 74, "column": 12 }, "end": { "line": 74, "column": 16 } } }, "property": { "type": "Identifier", "start": 2276, "end": 2288, "loc": { "start": { "line": 74, "column": 17 }, "end": { "line": 74, "column": 29 }, "identifierName": "pendingItems" }, "name": "pendingItems" }, "computed": false }, "property": { "type": "Identifier", "start": 2289, "end": 2295, "loc": { "start": { "line": 74, "column": 30 }, "end": { "line": 74, "column": 36 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": ">", "right": { "type": "NumericLiteral", "start": 2298, "end": 2299, "loc": { "start": { "line": 74, "column": 39 }, "end": { "line": 74, "column": 40 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, "consequent": { "type": "BlockStatement", "start": 2301, "end": 2389, "loc": { "start": { "line": 74, "column": 42 }, "end": { "line": 77, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 2365, "end": 2378, "loc": { "start": { "line": 76, "column": 12 }, "end": { "line": 76, "column": 25 } }, "argument": { "type": "BooleanLiteral", "start": 2372, "end": 2377, "loc": { "start": { "line": 76, "column": 19 }, "end": { "line": 76, "column": 24 } }, "value": false, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " We currently have a pending item", "start": 2316, "end": 2351, "loc": { "start": { "line": 75, "column": 12 }, "end": { "line": 75, "column": 47 } } } ] } ], "directives": [] }, "alternate": null }, { "type": "ExpressionStatement", "start": 2401, "end": 2435, "loc": { "start": { "line": 79, "column": 8 }, "end": { "line": 79, "column": 42 } }, "expression": { "type": "CallExpression", "start": 2401, "end": 2434, "loc": { "start": { "line": 79, "column": 8 }, "end": { "line": 79, "column": 41 } }, "callee": { "type": "MemberExpression", "start": 2401, "end": 2423, "loc": { "start": { "line": 79, "column": 8 }, "end": { "line": 79, "column": 30 } }, "object": { "type": "MemberExpression", "start": 2401, "end": 2418, "loc": { "start": { "line": 79, "column": 8 }, "end": { "line": 79, "column": 25 } }, "object": { "type": "ThisExpression", "start": 2401, "end": 2405, "loc": { "start": { "line": 79, "column": 8 }, "end": { "line": 79, "column": 12 } } }, "property": { "type": "Identifier", "start": 2406, "end": 2418, "loc": { "start": { "line": 79, "column": 13 }, "end": { "line": 79, "column": 25 }, "identifierName": "pendingItems" }, "name": "pendingItems" }, "computed": false }, "property": { "type": "Identifier", "start": 2419, "end": 2423, "loc": { "start": { "line": 79, "column": 26 }, "end": { "line": 79, "column": 30 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 2424, "end": 2433, "loc": { "start": { "line": 79, "column": 31 }, "end": { "line": 79, "column": 40 } }, "elements": [ { "type": "Identifier", "start": 2425, "end": 2429, "loc": { "start": { "line": 79, "column": 32 }, "end": { "line": 79, "column": 36 }, "identifierName": "item" }, "name": "item" }, { "type": "NumericLiteral", "start": 2431, "end": 2432, "loc": { "start": { "line": 79, "column": 38 }, "end": { "line": 79, "column": 39 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } ] } ] } }, { "type": "ReturnStatement", "start": 2445, "end": 2457, "loc": { "start": { "line": 80, "column": 8 }, "end": { "line": 80, "column": 20 } }, "argument": { "type": "BooleanLiteral", "start": 2452, "end": 2456, "loc": { "start": { "line": 80, "column": 15 }, "end": { "line": 80, "column": 19 } }, "value": true } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Tries to accept an item from an external source like a regular belt or building\r\n * @param {BaseItem} item\r\n * @param {number} beltSpeed How fast this item travels\r\n ", "start": 1867, "end": 2059, "loc": { "start": { "line": 63, "column": 4 }, "end": { "line": 67, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Tries to accept a tunneled item\r\n * @param {BaseItem} item\r\n * @param {number} travelDistance How many tiles this item has to travel\r\n * @param {number} beltSpeed How fast this item travels\r\n * @param {number} now Current ingame time\r\n ", "start": 2472, "end": 2742, "loc": { "start": { "line": 83, "column": 4 }, "end": { "line": 89, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 2748, "end": 3760, "loc": { "start": { "line": 90, "column": 4 }, "end": { "line": 111, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2748, "end": 2769, "loc": { "start": { "line": 90, "column": 4 }, "end": { "line": 90, "column": 25 }, "identifierName": "tryAcceptTunneledItem" }, "name": "tryAcceptTunneledItem", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2770, "end": 2774, "loc": { "start": { "line": 90, "column": 26 }, "end": { "line": 90, "column": 30 }, "identifierName": "item" }, "name": "item" }, { "type": "Identifier", "start": 2776, "end": 2790, "loc": { "start": { "line": 90, "column": 32 }, "end": { "line": 90, "column": 46 }, "identifierName": "travelDistance" }, "name": "travelDistance" }, { "type": "Identifier", "start": 2792, "end": 2801, "loc": { "start": { "line": 90, "column": 48 }, "end": { "line": 90, "column": 57 }, "identifierName": "beltSpeed" }, "name": "beltSpeed" }, { "type": "Identifier", "start": 2803, "end": 2806, "loc": { "start": { "line": 90, "column": 59 }, "end": { "line": 90, "column": 62 }, "identifierName": "now" }, "name": "now" } ], "body": { "type": "BlockStatement", "start": 2808, "end": 3760, "loc": { "start": { "line": 90, "column": 64 }, "end": { "line": 111, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 2819, "end": 2967, "loc": { "start": { "line": 91, "column": 8 }, "end": { "line": 94, "column": 9 } }, "test": { "type": "BinaryExpression", "start": 2823, "end": 2869, "loc": { "start": { "line": 91, "column": 12 }, "end": { "line": 91, "column": 58 } }, "left": { "type": "MemberExpression", "start": 2823, "end": 2832, "loc": { "start": { "line": 91, "column": 12 }, "end": { "line": 91, "column": 21 } }, "object": { "type": "ThisExpression", "start": 2823, "end": 2827, "loc": { "start": { "line": 91, "column": 12 }, "end": { "line": 91, "column": 16 } } }, "property": { "type": "Identifier", "start": 2828, "end": 2832, "loc": { "start": { "line": 91, "column": 17 }, "end": { "line": 91, "column": 21 }, "identifierName": "mode" }, "name": "mode" }, "computed": false }, "operator": "!==", "right": { "type": "MemberExpression", "start": 2837, "end": 2869, "loc": { "start": { "line": 91, "column": 26 }, "end": { "line": 91, "column": 58 } }, "object": { "type": "Identifier", "start": 2837, "end": 2860, "loc": { "start": { "line": 91, "column": 26 }, "end": { "line": 91, "column": 49 }, "identifierName": "enumUndergroundBeltMode" }, "name": "enumUndergroundBeltMode" }, "property": { "type": "Identifier", "start": 2861, "end": 2869, "loc": { "start": { "line": 91, "column": 50 }, "end": { "line": 91, "column": 58 }, "identifierName": "receiver" }, "name": "receiver" }, "computed": false } }, "consequent": { "type": "BlockStatement", "start": 2871, "end": 2967, "loc": { "start": { "line": 91, "column": 60 }, "end": { "line": 94, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 2943, "end": 2956, "loc": { "start": { "line": 93, "column": 12 }, "end": { "line": 93, "column": 25 } }, "argument": { "type": "BooleanLiteral", "start": 2950, "end": 2955, "loc": { "start": { "line": 93, "column": 19 }, "end": { "line": 93, "column": 24 } }, "value": false, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Only receivers can accept tunneled items", "start": 2886, "end": 2929, "loc": { "start": { "line": 92, "column": 12 }, "end": { "line": 92, "column": 55 } } } ] } ], "directives": [], "trailingComments": null }, "alternate": null, "trailingComments": [ { "type": "CommentLine", "value": " Notice: We assume that for all items the travel distance is the same", "start": 2979, "end": 3050, "loc": { "start": { "line": 96, "column": 8 }, "end": { "line": 96, "column": 79 } } } ] }, { "type": "VariableDeclaration", "start": 3060, "end": 3140, "loc": { "start": { "line": 97, "column": 8 }, "end": { "line": 97, "column": 88 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3066, "end": 3139, "loc": { "start": { "line": 97, "column": 14 }, "end": { "line": 97, "column": 87 } }, "id": { "type": "Identifier", "start": 3066, "end": 3082, "loc": { "start": { "line": 97, "column": 14 }, "end": { "line": 97, "column": 30 }, "identifierName": "maxItemsInTunnel" }, "name": "maxItemsInTunnel", "leadingComments": null }, "init": { "type": "BinaryExpression", "start": 3085, "end": 3139, "loc": { "start": { "line": 97, "column": 33 }, "end": { "line": 97, "column": 87 } }, "left": { "type": "BinaryExpression", "start": 3086, "end": 3104, "loc": { "start": { "line": 97, "column": 34 }, "end": { "line": 97, "column": 52 } }, "left": { "type": "NumericLiteral", "start": 3086, "end": 3087, "loc": { "start": { "line": 97, "column": 34 }, "end": { "line": 97, "column": 35 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 }, "operator": "+", "right": { "type": "Identifier", "start": 3090, "end": 3104, "loc": { "start": { "line": 97, "column": 38 }, "end": { "line": 97, "column": 52 }, "identifierName": "travelDistance" }, "name": "travelDistance" }, "extra": { "parenthesized": true, "parenStart": 3085 } }, "operator": "/", "right": { "type": "MemberExpression", "start": 3108, "end": 3139, "loc": { "start": { "line": 97, "column": 56 }, "end": { "line": 97, "column": 87 } }, "object": { "type": "Identifier", "start": 3108, "end": 3120, "loc": { "start": { "line": 97, "column": 56 }, "end": { "line": 97, "column": 68 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 3121, "end": 3139, "loc": { "start": { "line": 97, "column": 69 }, "end": { "line": 97, "column": 87 }, "identifierName": "itemSpacingOnBelts" }, "name": "itemSpacingOnBelts" }, "computed": false } }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Notice: We assume that for all items the travel distance is the same", "start": 2979, "end": 3050, "loc": { "start": { "line": 96, "column": 8 }, "end": { "line": 96, "column": 79 } } } ] }, { "type": "IfStatement", "start": 3150, "end": 3306, "loc": { "start": { "line": 98, "column": 8 }, "end": { "line": 101, "column": 9 } }, "test": { "type": "BinaryExpression", "start": 3154, "end": 3198, "loc": { "start": { "line": 98, "column": 12 }, "end": { "line": 98, "column": 56 } }, "left": { "type": "MemberExpression", "start": 3154, "end": 3178, "loc": { "start": { "line": 98, "column": 12 }, "end": { "line": 98, "column": 36 } }, "object": { "type": "MemberExpression", "start": 3154, "end": 3171, "loc": { "start": { "line": 98, "column": 12 }, "end": { "line": 98, "column": 29 } }, "object": { "type": "ThisExpression", "start": 3154, "end": 3158, "loc": { "start": { "line": 98, "column": 12 }, "end": { "line": 98, "column": 16 } } }, "property": { "type": "Identifier", "start": 3159, "end": 3171, "loc": { "start": { "line": 98, "column": 17 }, "end": { "line": 98, "column": 29 }, "identifierName": "pendingItems" }, "name": "pendingItems" }, "computed": false }, "property": { "type": "Identifier", "start": 3172, "end": 3178, "loc": { "start": { "line": 98, "column": 30 }, "end": { "line": 98, "column": 36 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": ">=", "right": { "type": "Identifier", "start": 3182, "end": 3198, "loc": { "start": { "line": 98, "column": 40 }, "end": { "line": 98, "column": 56 }, "identifierName": "maxItemsInTunnel" }, "name": "maxItemsInTunnel" } }, "consequent": { "type": "BlockStatement", "start": 3200, "end": 3306, "loc": { "start": { "line": 98, "column": 58 }, "end": { "line": 101, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 3282, "end": 3295, "loc": { "start": { "line": 100, "column": 12 }, "end": { "line": 100, "column": 25 } }, "argument": { "type": "BooleanLiteral", "start": 3289, "end": 3294, "loc": { "start": { "line": 100, "column": 19 }, "end": { "line": 100, "column": 24 } }, "value": false, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Simulate a real belt which gets full at some point", "start": 3215, "end": 3268, "loc": { "start": { "line": 99, "column": 12 }, "end": { "line": 99, "column": 65 } } } ] } ], "directives": [], "trailingComments": null }, "alternate": null, "trailingComments": [ { "type": "CommentLine", "value": " NOTICE:", "start": 3318, "end": 3328, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 103, "column": 18 } } }, { "type": "CommentLine", "value": " This corresponds to the item ejector - it needs 0.5 additional tiles to eject the item.", "start": 3338, "end": 3428, "loc": { "start": { "line": 104, "column": 8 }, "end": { "line": 104, "column": 98 } } }, { "type": "CommentLine", "value": " So instead of adding 1 we add 0.5 only.", "start": 3438, "end": 3480, "loc": { "start": { "line": 105, "column": 8 }, "end": { "line": 105, "column": 50 } } }, { "type": "CommentLine", "value": " Additionally it takes 1 tile for the acceptor which we just add on top.", "start": 3490, "end": 3564, "loc": { "start": { "line": 106, "column": 8 }, "end": { "line": 106, "column": 82 } } } ] }, { "type": "VariableDeclaration", "start": 3574, "end": 3666, "loc": { "start": { "line": 107, "column": 8 }, "end": { "line": 107, "column": 100 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3580, "end": 3665, "loc": { "start": { "line": 107, "column": 14 }, "end": { "line": 107, "column": 99 } }, "id": { "type": "Identifier", "start": 3580, "end": 3594, "loc": { "start": { "line": 107, "column": 14 }, "end": { "line": 107, "column": 28 }, "identifierName": "travelDuration" }, "name": "travelDuration", "leadingComments": null }, "init": { "type": "BinaryExpression", "start": 3597, "end": 3665, "loc": { "start": { "line": 107, "column": 31 }, "end": { "line": 107, "column": 99 } }, "left": { "type": "BinaryExpression", "start": 3597, "end": 3631, "loc": { "start": { "line": 107, "column": 31 }, "end": { "line": 107, "column": 65 } }, "left": { "type": "BinaryExpression", "start": 3598, "end": 3618, "loc": { "start": { "line": 107, "column": 32 }, "end": { "line": 107, "column": 52 } }, "left": { "type": "Identifier", "start": 3598, "end": 3612, "loc": { "start": { "line": 107, "column": 32 }, "end": { "line": 107, "column": 46 }, "identifierName": "travelDistance" }, "name": "travelDistance" }, "operator": "+", "right": { "type": "NumericLiteral", "start": 3615, "end": 3618, "loc": { "start": { "line": 107, "column": 49 }, "end": { "line": 107, "column": 52 } }, "extra": { "rawValue": 1.5, "raw": "1.5" }, "value": 1.5 }, "extra": { "parenthesized": true, "parenStart": 3597 } }, "operator": "/", "right": { "type": "Identifier", "start": 3622, "end": 3631, "loc": { "start": { "line": 107, "column": 56 }, "end": { "line": 107, "column": 65 }, "identifierName": "beltSpeed" }, "name": "beltSpeed" } }, "operator": "/", "right": { "type": "MemberExpression", "start": 3634, "end": 3665, "loc": { "start": { "line": 107, "column": 68 }, "end": { "line": 107, "column": 99 } }, "object": { "type": "Identifier", "start": 3634, "end": 3646, "loc": { "start": { "line": 107, "column": 68 }, "end": { "line": 107, "column": 80 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 3647, "end": 3665, "loc": { "start": { "line": 107, "column": 81 }, "end": { "line": 107, "column": 99 }, "identifierName": "itemSpacingOnBelts" }, "name": "itemSpacingOnBelts" }, "computed": false } }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " NOTICE:", "start": 3318, "end": 3328, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 103, "column": 18 } } }, { "type": "CommentLine", "value": " This corresponds to the item ejector - it needs 0.5 additional tiles to eject the item.", "start": 3338, "end": 3428, "loc": { "start": { "line": 104, "column": 8 }, "end": { "line": 104, "column": 98 } } }, { "type": "CommentLine", "value": " So instead of adding 1 we add 0.5 only.", "start": 3438, "end": 3480, "loc": { "start": { "line": 105, "column": 8 }, "end": { "line": 105, "column": 50 } } }, { "type": "CommentLine", "value": " Additionally it takes 1 tile for the acceptor which we just add on top.", "start": 3490, "end": 3564, "loc": { "start": { "line": 106, "column": 8 }, "end": { "line": 106, "column": 82 } } } ] }, { "type": "ExpressionStatement", "start": 3678, "end": 3731, "loc": { "start": { "line": 109, "column": 8 }, "end": { "line": 109, "column": 61 } }, "expression": { "type": "CallExpression", "start": 3678, "end": 3730, "loc": { "start": { "line": 109, "column": 8 }, "end": { "line": 109, "column": 60 } }, "callee": { "type": "MemberExpression", "start": 3678, "end": 3700, "loc": { "start": { "line": 109, "column": 8 }, "end": { "line": 109, "column": 30 } }, "object": { "type": "MemberExpression", "start": 3678, "end": 3695, "loc": { "start": { "line": 109, "column": 8 }, "end": { "line": 109, "column": 25 } }, "object": { "type": "ThisExpression", "start": 3678, "end": 3682, "loc": { "start": { "line": 109, "column": 8 }, "end": { "line": 109, "column": 12 } } }, "property": { "type": "Identifier", "start": 3683, "end": 3695, "loc": { "start": { "line": 109, "column": 13 }, "end": { "line": 109, "column": 25 }, "identifierName": "pendingItems" }, "name": "pendingItems" }, "computed": false }, "property": { "type": "Identifier", "start": 3696, "end": 3700, "loc": { "start": { "line": 109, "column": 26 }, "end": { "line": 109, "column": 30 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 3701, "end": 3729, "loc": { "start": { "line": 109, "column": 31 }, "end": { "line": 109, "column": 59 } }, "elements": [ { "type": "Identifier", "start": 3702, "end": 3706, "loc": { "start": { "line": 109, "column": 32 }, "end": { "line": 109, "column": 36 }, "identifierName": "item" }, "name": "item" }, { "type": "BinaryExpression", "start": 3708, "end": 3728, "loc": { "start": { "line": 109, "column": 38 }, "end": { "line": 109, "column": 58 } }, "left": { "type": "Identifier", "start": 3708, "end": 3711, "loc": { "start": { "line": 109, "column": 38 }, "end": { "line": 109, "column": 41 }, "identifierName": "now" }, "name": "now" }, "operator": "+", "right": { "type": "Identifier", "start": 3714, "end": 3728, "loc": { "start": { "line": 109, "column": 44 }, "end": { "line": 109, "column": 58 }, "identifierName": "travelDuration" }, "name": "travelDuration" } } ] } ] } }, { "type": "ReturnStatement", "start": 3741, "end": 3753, "loc": { "start": { "line": 110, "column": 8 }, "end": { "line": 110, "column": 20 } }, "argument": { "type": "BooleanLiteral", "start": 3748, "end": 3752, "loc": { "start": { "line": 110, "column": 15 }, "end": { "line": 110, "column": 19 } }, "value": true } } ], "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Tries to accept a tunneled item\r\n * @param {BaseItem} item\r\n * @param {number} travelDistance How many tiles this item has to travel\r\n * @param {number} beltSpeed How fast this item travels\r\n * @param {number} now Current ingame time\r\n ", "start": 2472, "end": 2742, "loc": { "start": { "line": 83, "column": 4 }, "end": { "line": 89, "column": 7 } } } ] } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * @typedef {{\r\n * entity: Entity,\r\n * distance: number\r\n * }} LinkedUndergroundBelt\r\n ", "start": 406, "end": 504, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 19, "column": 3 } } } ], "trailingComments": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * @typedef {{\r\n * entity: Entity,\r\n * distance: number\r\n * }} LinkedUndergroundBelt\r\n ", "start": 406, "end": 504, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 19, "column": 3 } } } ] } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "* @enum {string} ", "start": 285, "end": 306, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 21 } } }, { "type": "CommentBlock", "value": "*\r\n * @typedef {{\r\n * entity: Entity,\r\n * distance: number\r\n * }} LinkedUndergroundBelt\r\n ", "start": 406, "end": 504, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 19, "column": 3 } } }, { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {object} param0\r\n * @param {enumUndergroundBeltMode=} param0.mode As which type of belt the entity acts\r\n * @param {number=} param0.tier\r\n ", "start": 786, "end": 966, "loc": { "start": { "line": 32, "column": 4 }, "end": { "line": 37, "column": 7 } } }, { "type": "CommentBlock", "value": "* @type {Array<{ item: BaseItem, progress: number }>} ", "start": 1124, "end": 1182, "loc": { "start": { "line": 44, "column": 8 }, "end": { "line": 44, "column": 66 } } }, { "type": "CommentBlock", "value": "*\r\n * Used on both receiver and sender.\r\n * Reciever: Used to store the next item to transfer, and to block input while doing this\r\n * Sender: Used to store which items are currently \"travelling\"\r\n * @type {Array<[BaseItem, number]>} Format is [Item, ingame time to eject the item]\r\n ", "start": 1236, "end": 1564, "loc": { "start": { "line": 47, "column": 8 }, "end": { "line": 52, "column": 11 } } }, { "type": "CommentBlock", "value": "*\r\n * The linked entity, used to speed up performance. This contains either\r\n * the entrance or exit depending on the tunnel type\r\n * @type {LinkedUndergroundBelt}\r\n ", "start": 1609, "end": 1811, "loc": { "start": { "line": 55, "column": 8 }, "end": { "line": 59, "column": 11 } } }, { "type": "CommentBlock", "value": "*\r\n * Tries to accept an item from an external source like a regular belt or building\r\n * @param {BaseItem} item\r\n * @param {number} beltSpeed How fast this item travels\r\n ", "start": 1867, "end": 2059, "loc": { "start": { "line": 63, "column": 4 }, "end": { "line": 67, "column": 7 } } }, { "type": "CommentLine", "value": " Only senders accept external items", "start": 2180, "end": 2217, "loc": { "start": { "line": 70, "column": 12 }, "end": { "line": 70, "column": 49 } } }, { "type": "CommentLine", "value": " We currently have a pending item", "start": 2316, "end": 2351, "loc": { "start": { "line": 75, "column": 12 }, "end": { "line": 75, "column": 47 } } }, { "type": "CommentBlock", "value": "*\r\n * Tries to accept a tunneled item\r\n * @param {BaseItem} item\r\n * @param {number} travelDistance How many tiles this item has to travel\r\n * @param {number} beltSpeed How fast this item travels\r\n * @param {number} now Current ingame time\r\n ", "start": 2472, "end": 2742, "loc": { "start": { "line": 83, "column": 4 }, "end": { "line": 89, "column": 7 } } }, { "type": "CommentLine", "value": " Only receivers can accept tunneled items", "start": 2886, "end": 2929, "loc": { "start": { "line": 92, "column": 12 }, "end": { "line": 92, "column": 55 } } }, { "type": "CommentLine", "value": " Notice: We assume that for all items the travel distance is the same", "start": 2979, "end": 3050, "loc": { "start": { "line": 96, "column": 8 }, "end": { "line": 96, "column": 79 } } }, { "type": "CommentLine", "value": " Simulate a real belt which gets full at some point", "start": 3215, "end": 3268, "loc": { "start": { "line": 99, "column": 12 }, "end": { "line": 99, "column": 65 } } }, { "type": "CommentLine", "value": " NOTICE:", "start": 3318, "end": 3328, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 103, "column": 18 } } }, { "type": "CommentLine", "value": " This corresponds to the item ejector - it needs 0.5 additional tiles to eject the item.", "start": 3338, "end": 3428, "loc": { "start": { "line": 104, "column": 8 }, "end": { "line": 104, "column": 98 } } }, { "type": "CommentLine", "value": " So instead of adding 1 we add 0.5 only.", "start": 3438, "end": 3480, "loc": { "start": { "line": 105, "column": 8 }, "end": { "line": 105, "column": 50 } } }, { "type": "CommentLine", "value": " Additionally it takes 1 tile for the acceptor which we just add on top.", "start": 3490, "end": 3564, "loc": { "start": { "line": 106, "column": 8 }, "end": { "line": 106, "column": 82 } } } ], "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": "globalConfig", "start": 9, "end": 21, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 22, "end": 23, "loc": { "start": { "line": 1, "column": 22 }, "end": { "line": 1, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 24, "end": 28, "loc": { "start": { "line": 1, "column": 24 }, "end": { "line": 1, "column": 28 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../../core/config", "start": 29, "end": 48, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 48 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 48, "end": 49, "loc": { "start": { "line": 1, "column": 48 }, "end": { "line": 1, "column": 49 } } }, { "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": 51, "end": 57, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 58, "end": 59, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "types", "start": 60, "end": 65, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 14 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 66, "end": 67, "loc": { "start": { "line": 2, "column": 15 }, "end": { "line": 2, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 68, "end": 72, "loc": { "start": { "line": 2, "column": 17 }, "end": { "line": 2, "column": 21 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../../savegame/serialization", "start": 73, "end": 103, "loc": { "start": { "line": 2, "column": 22 }, "end": { "line": 2, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 103, "end": 104, "loc": { "start": { "line": 2, "column": 52 }, "end": { "line": 2, "column": 53 } } }, { "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": 106, "end": 112, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 113, "end": 114, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BaseItem", "start": 115, "end": 123, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 124, "end": 125, "loc": { "start": { "line": 3, "column": 18 }, "end": { "line": 3, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 126, "end": 130, "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 24 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../base_item", "start": 131, "end": 145, "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 145, "end": 146, "loc": { "start": { "line": 3, "column": 39 }, "end": { "line": 3, "column": 40 } } }, { "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": 148, "end": 154, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 155, "end": 156, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Component", "start": 157, "end": 166, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 18 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 167, "end": 168, "loc": { "start": { "line": 4, "column": 19 }, "end": { "line": 4, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 169, "end": 173, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "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": 174, "end": 188, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 188, "end": 189, "loc": { "start": { "line": 4, "column": 40 }, "end": { "line": 4, "column": 41 } } }, { "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": 191, "end": 197, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 198, "end": 199, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Entity", "start": 200, "end": 206, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 207, "end": 208, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 209, "end": 213, "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 22 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../entity", "start": 214, "end": 225, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 34 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 225, "end": 226, "loc": { "start": { "line": 5, "column": 34 }, "end": { "line": 5, "column": 35 } } }, { "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": 228, "end": 234, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 235, "end": 236, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "typeItemSingleton", "start": 237, "end": 254, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 26 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 255, "end": 256, "loc": { "start": { "line": 6, "column": 27 }, "end": { "line": 6, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 257, "end": 261, "loc": { "start": { "line": 6, "column": 29 }, "end": { "line": 6, "column": 33 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../item_resolver", "start": 262, "end": 280, "loc": { "start": { "line": 6, "column": 34 }, "end": { "line": 6, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 280, "end": 281, "loc": { "start": { "line": 6, "column": 52 }, "end": { "line": 6, "column": 53 } } }, { "type": "CommentBlock", "value": "* @enum {string} ", "start": 285, "end": 306, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "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": 308, "end": 314, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "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": 315, "end": 320, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 9, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumUndergroundBeltMode", "start": 321, "end": 344, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 36 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 345, "end": 346, "loc": { "start": { "line": 9, "column": 37 }, "end": { "line": 9, "column": 38 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 347, "end": 348, "loc": { "start": { "line": 9, "column": 39 }, "end": { "line": 9, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "sender", "start": 354, "end": 360, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 10 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 360, "end": 361, "loc": { "start": { "line": 10, "column": 10 }, "end": { "line": 10, "column": 11 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "sender", "start": 362, "end": 370, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 20 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 370, "end": 371, "loc": { "start": { "line": 10, "column": 20 }, "end": { "line": 10, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "receiver", "start": 377, "end": 385, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 12 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 385, "end": 386, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 13 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "receiver", "start": 387, "end": 397, "loc": { "start": { "line": 11, "column": 14 }, "end": { "line": 11, "column": 24 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 397, "end": 398, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 400, "end": 401, "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 1 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 401, "end": 402, "loc": { "start": { "line": 12, "column": 1 }, "end": { "line": 12, "column": 2 } } }, { "type": "CommentBlock", "value": "*\r\n * @typedef {{\r\n * entity: Entity,\r\n * distance: number\r\n * }} LinkedUndergroundBelt\r\n ", "start": 406, "end": 504, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 19, "column": 3 } } }, { "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": 508, "end": 514, "loc": { "start": { "line": 21, "column": 0 }, "end": { "line": 21, "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": 515, "end": 520, "loc": { "start": { "line": 21, "column": 7 }, "end": { "line": 21, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "UndergroundBeltComponent", "start": 521, "end": 545, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 37 } } }, { "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": 546, "end": 553, "loc": { "start": { "line": 21, "column": 38 }, "end": { "line": 21, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Component", "start": 554, "end": 563, "loc": { "start": { "line": 21, "column": 46 }, "end": { "line": 21, "column": 55 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 564, "end": 565, "loc": { "start": { "line": 21, "column": 56 }, "end": { "line": 21, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 571, "end": 577, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getId", "start": 578, "end": 583, "loc": { "start": { "line": 22, "column": 11 }, "end": { "line": 22, "column": 16 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 583, "end": 584, "loc": { "start": { "line": 22, "column": 16 }, "end": { "line": 22, "column": 17 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 584, "end": 585, "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 18 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 586, "end": 587, "loc": { "start": { "line": 22, "column": 19 }, "end": { "line": 22, "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": 597, "end": 603, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 14 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "UndergroundBelt", "start": 604, "end": 621, "loc": { "start": { "line": 23, "column": 15 }, "end": { "line": 23, "column": 32 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 621, "end": 622, "loc": { "start": { "line": 23, "column": 32 }, "end": { "line": 23, "column": 33 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 628, "end": 629, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 637, "end": 643, "loc": { "start": { "line": 26, "column": 4 }, "end": { "line": 26, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getSchema", "start": 644, "end": 653, "loc": { "start": { "line": 26, "column": 11 }, "end": { "line": 26, "column": 20 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 653, "end": 654, "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 654, "end": 655, "loc": { "start": { "line": 26, "column": 21 }, "end": { "line": 26, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 656, "end": 657, "loc": { "start": { "line": 26, "column": 23 }, "end": { "line": 26, "column": 24 } } }, { "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": 667, "end": 673, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 14 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 674, "end": 675, "loc": { "start": { "line": 27, "column": 15 }, "end": { "line": 27, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pendingItems", "start": 689, "end": 701, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 24 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 701, "end": 702, "loc": { "start": { "line": 28, "column": 24 }, "end": { "line": 28, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "types", "start": 703, "end": 708, "loc": { "start": { "line": 28, "column": 26 }, "end": { "line": 28, "column": 31 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 708, "end": 709, "loc": { "start": { "line": 28, "column": 31 }, "end": { "line": 28, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "array", "start": 709, "end": 714, "loc": { "start": { "line": 28, "column": 32 }, "end": { "line": 28, "column": 37 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 714, "end": 715, "loc": { "start": { "line": 28, "column": 37 }, "end": { "line": 28, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "types", "start": 715, "end": 720, "loc": { "start": { "line": 28, "column": 38 }, "end": { "line": 28, "column": 43 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 720, "end": 721, "loc": { "start": { "line": 28, "column": 43 }, "end": { "line": 28, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pair", "start": 721, "end": 725, "loc": { "start": { "line": 28, "column": 44 }, "end": { "line": 28, "column": 48 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 725, "end": 726, "loc": { "start": { "line": 28, "column": 48 }, "end": { "line": 28, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "typeItemSingleton", "start": 726, "end": 743, "loc": { "start": { "line": 28, "column": 49 }, "end": { "line": 28, "column": 66 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 743, "end": 744, "loc": { "start": { "line": 28, "column": 66 }, "end": { "line": 28, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "types", "start": 745, "end": 750, "loc": { "start": { "line": 28, "column": 68 }, "end": { "line": 28, "column": 73 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 750, "end": 751, "loc": { "start": { "line": 28, "column": 73 }, "end": { "line": 28, "column": 74 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "float", "start": 751, "end": 756, "loc": { "start": { "line": 28, "column": 74 }, "end": { "line": 28, "column": 79 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 756, "end": 757, "loc": { "start": { "line": 28, "column": 79 }, "end": { "line": 28, "column": 80 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 757, "end": 758, "loc": { "start": { "line": 28, "column": 80 }, "end": { "line": 28, "column": 81 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 758, "end": 759, "loc": { "start": { "line": 28, "column": 81 }, "end": { "line": 28, "column": 82 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 769, "end": 770, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 9 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 770, "end": 771, "loc": { "start": { "line": 29, "column": 9 }, "end": { "line": 29, "column": 10 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 777, "end": 778, "loc": { "start": { "line": 30, "column": 4 }, "end": { "line": 30, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {object} param0\r\n * @param {enumUndergroundBeltMode=} param0.mode As which type of belt the entity acts\r\n * @param {number=} param0.tier\r\n ", "start": 786, "end": 966, "loc": { "start": { "line": 32, "column": 4 }, "end": { "line": 37, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 972, "end": 983, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 983, "end": 984, "loc": { "start": { "line": 38, "column": 15 }, "end": { "line": 38, "column": 16 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 984, "end": 985, "loc": { "start": { "line": 38, "column": 16 }, "end": { "line": 38, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mode", "start": 986, "end": 990, "loc": { "start": { "line": 38, "column": 18 }, "end": { "line": 38, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 991, "end": 992, "loc": { "start": { "line": 38, "column": 23 }, "end": { "line": 38, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumUndergroundBeltMode", "start": 993, "end": 1016, "loc": { "start": { "line": 38, "column": 25 }, "end": { "line": 38, "column": 48 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1016, "end": 1017, "loc": { "start": { "line": 38, "column": 48 }, "end": { "line": 38, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "sender", "start": 1017, "end": 1023, "loc": { "start": { "line": 38, "column": 49 }, "end": { "line": 38, "column": 55 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1023, "end": 1024, "loc": { "start": { "line": 38, "column": 55 }, "end": { "line": 38, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tier", "start": 1025, "end": 1029, "loc": { "start": { "line": 38, "column": 57 }, "end": { "line": 38, "column": 61 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1030, "end": 1031, "loc": { "start": { "line": 38, "column": 62 }, "end": { "line": 38, "column": 63 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 1032, "end": 1033, "loc": { "start": { "line": 38, "column": 64 }, "end": { "line": 38, "column": 65 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1034, "end": 1035, "loc": { "start": { "line": 38, "column": 66 }, "end": { "line": 38, "column": 67 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1035, "end": 1036, "loc": { "start": { "line": 38, "column": 67 }, "end": { "line": 38, "column": 68 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1037, "end": 1038, "loc": { "start": { "line": 38, "column": 69 }, "end": { "line": 38, "column": 70 } } }, { "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": 1048, "end": 1053, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1053, "end": 1054, "loc": { "start": { "line": 39, "column": 13 }, "end": { "line": 39, "column": 14 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1054, "end": 1055, "loc": { "start": { "line": 39, "column": 14 }, "end": { "line": 39, "column": 15 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1055, "end": 1056, "loc": { "start": { "line": 39, "column": 15 }, "end": { "line": 39, "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": 1068, "end": 1072, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 41, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1072, "end": 1073, "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mode", "start": 1073, "end": 1077, "loc": { "start": { "line": 41, "column": 13 }, "end": { "line": 41, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1078, "end": 1079, "loc": { "start": { "line": 41, "column": 18 }, "end": { "line": 41, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mode", "start": 1080, "end": 1084, "loc": { "start": { "line": 41, "column": 20 }, "end": { "line": 41, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1084, "end": 1085, "loc": { "start": { "line": 41, "column": 24 }, "end": { "line": 41, "column": 25 } } }, { "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": 1095, "end": 1099, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1099, "end": 1100, "loc": { "start": { "line": 42, "column": 12 }, "end": { "line": 42, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tier", "start": 1100, "end": 1104, "loc": { "start": { "line": 42, "column": 13 }, "end": { "line": 42, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1105, "end": 1106, "loc": { "start": { "line": 42, "column": 18 }, "end": { "line": 42, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tier", "start": 1107, "end": 1111, "loc": { "start": { "line": 42, "column": 20 }, "end": { "line": 42, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1111, "end": 1112, "loc": { "start": { "line": 42, "column": 24 }, "end": { "line": 42, "column": 25 } } }, { "type": "CommentBlock", "value": "* @type {Array<{ item: BaseItem, progress: number }>} ", "start": 1124, "end": 1182, "loc": { "start": { "line": 44, "column": 8 }, "end": { "line": 44, "column": 66 } } }, { "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": 1192, "end": 1196, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 45, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1196, "end": 1197, "loc": { "start": { "line": 45, "column": 12 }, "end": { "line": 45, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "consumptionAnimations", "start": 1197, "end": 1218, "loc": { "start": { "line": 45, "column": 13 }, "end": { "line": 45, "column": 34 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1219, "end": 1220, "loc": { "start": { "line": 45, "column": 35 }, "end": { "line": 45, "column": 36 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1221, "end": 1222, "loc": { "start": { "line": 45, "column": 37 }, "end": { "line": 45, "column": 38 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1222, "end": 1223, "loc": { "start": { "line": 45, "column": 38 }, "end": { "line": 45, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1223, "end": 1224, "loc": { "start": { "line": 45, "column": 39 }, "end": { "line": 45, "column": 40 } } }, { "type": "CommentBlock", "value": "*\r\n * Used on both receiver and sender.\r\n * Reciever: Used to store the next item to transfer, and to block input while doing this\r\n * Sender: Used to store which items are currently \"travelling\"\r\n * @type {Array<[BaseItem, number]>} Format is [Item, ingame time to eject the item]\r\n ", "start": 1236, "end": 1564, "loc": { "start": { "line": 47, "column": 8 }, "end": { "line": 52, "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": 1574, "end": 1578, "loc": { "start": { "line": 53, "column": 8 }, "end": { "line": 53, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1578, "end": 1579, "loc": { "start": { "line": 53, "column": 12 }, "end": { "line": 53, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pendingItems", "start": 1579, "end": 1591, "loc": { "start": { "line": 53, "column": 13 }, "end": { "line": 53, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1592, "end": 1593, "loc": { "start": { "line": 53, "column": 26 }, "end": { "line": 53, "column": 27 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1594, "end": 1595, "loc": { "start": { "line": 53, "column": 28 }, "end": { "line": 53, "column": 29 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1595, "end": 1596, "loc": { "start": { "line": 53, "column": 29 }, "end": { "line": 53, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1596, "end": 1597, "loc": { "start": { "line": 53, "column": 30 }, "end": { "line": 53, "column": 31 } } }, { "type": "CommentBlock", "value": "*\r\n * The linked entity, used to speed up performance. This contains either\r\n * the entrance or exit depending on the tunnel type\r\n * @type {LinkedUndergroundBelt}\r\n ", "start": 1609, "end": 1811, "loc": { "start": { "line": 55, "column": 8 }, "end": { "line": 59, "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": 1821, "end": 1825, "loc": { "start": { "line": 60, "column": 8 }, "end": { "line": 60, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1825, "end": 1826, "loc": { "start": { "line": 60, "column": 12 }, "end": { "line": 60, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cachedLinkedEntity", "start": 1826, "end": 1844, "loc": { "start": { "line": 60, "column": 13 }, "end": { "line": 60, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1845, "end": 1846, "loc": { "start": { "line": 60, "column": 32 }, "end": { "line": 60, "column": 33 } } }, { "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": 1847, "end": 1851, "loc": { "start": { "line": 60, "column": 34 }, "end": { "line": 60, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1851, "end": 1852, "loc": { "start": { "line": 60, "column": 38 }, "end": { "line": 60, "column": 39 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1858, "end": 1859, "loc": { "start": { "line": 61, "column": 4 }, "end": { "line": 61, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Tries to accept an item from an external source like a regular belt or building\r\n * @param {BaseItem} item\r\n * @param {number} beltSpeed How fast this item travels\r\n ", "start": 1867, "end": 2059, "loc": { "start": { "line": 63, "column": 4 }, "end": { "line": 67, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tryAcceptExternalItem", "start": 2065, "end": 2086, "loc": { "start": { "line": 68, "column": 4 }, "end": { "line": 68, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2086, "end": 2087, "loc": { "start": { "line": 68, "column": 25 }, "end": { "line": 68, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 2087, "end": 2091, "loc": { "start": { "line": 68, "column": 26 }, "end": { "line": 68, "column": 30 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2091, "end": 2092, "loc": { "start": { "line": 68, "column": 30 }, "end": { "line": 68, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beltSpeed", "start": 2093, "end": 2102, "loc": { "start": { "line": 68, "column": 32 }, "end": { "line": 68, "column": 41 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2102, "end": 2103, "loc": { "start": { "line": 68, "column": 41 }, "end": { "line": 68, "column": 42 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2104, "end": 2105, "loc": { "start": { "line": 68, "column": 43 }, "end": { "line": 68, "column": 44 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 2115, "end": 2117, "loc": { "start": { "line": 69, "column": 8 }, "end": { "line": 69, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2118, "end": 2119, "loc": { "start": { "line": 69, "column": 11 }, "end": { "line": 69, "column": 12 } } }, { "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": 2119, "end": 2123, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2123, "end": 2124, "loc": { "start": { "line": 69, "column": 16 }, "end": { "line": 69, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mode", "start": 2124, "end": 2128, "loc": { "start": { "line": 69, "column": 17 }, "end": { "line": 69, "column": 21 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 2129, "end": 2132, "loc": { "start": { "line": 69, "column": 22 }, "end": { "line": 69, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumUndergroundBeltMode", "start": 2133, "end": 2156, "loc": { "start": { "line": 69, "column": 26 }, "end": { "line": 69, "column": 49 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2156, "end": 2157, "loc": { "start": { "line": 69, "column": 49 }, "end": { "line": 69, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "sender", "start": 2157, "end": 2163, "loc": { "start": { "line": 69, "column": 50 }, "end": { "line": 69, "column": 56 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2163, "end": 2164, "loc": { "start": { "line": 69, "column": 56 }, "end": { "line": 69, "column": 57 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2165, "end": 2166, "loc": { "start": { "line": 69, "column": 58 }, "end": { "line": 69, "column": 59 } } }, { "type": "CommentLine", "value": " Only senders accept external items", "start": 2180, "end": 2217, "loc": { "start": { "line": 70, "column": 12 }, "end": { "line": 70, "column": 49 } } }, { "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": 2231, "end": 2237, "loc": { "start": { "line": 71, "column": 12 }, "end": { "line": 71, "column": 18 } } }, { "type": { "label": "false", "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "false", "start": 2238, "end": 2243, "loc": { "start": { "line": 71, "column": 19 }, "end": { "line": 71, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2243, "end": 2244, "loc": { "start": { "line": 71, "column": 24 }, "end": { "line": 71, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2254, "end": 2255, "loc": { "start": { "line": 72, "column": 8 }, "end": { "line": 72, "column": 9 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 2267, "end": 2269, "loc": { "start": { "line": 74, "column": 8 }, "end": { "line": 74, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2270, "end": 2271, "loc": { "start": { "line": 74, "column": 11 }, "end": { "line": 74, "column": 12 } } }, { "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": 2271, "end": 2275, "loc": { "start": { "line": 74, "column": 12 }, "end": { "line": 74, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2275, "end": 2276, "loc": { "start": { "line": 74, "column": 16 }, "end": { "line": 74, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pendingItems", "start": 2276, "end": 2288, "loc": { "start": { "line": 74, "column": 17 }, "end": { "line": 74, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2288, "end": 2289, "loc": { "start": { "line": 74, "column": 29 }, "end": { "line": 74, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 2289, "end": 2295, "loc": { "start": { "line": 74, "column": 30 }, "end": { "line": 74, "column": 36 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": ">", "start": 2296, "end": 2297, "loc": { "start": { "line": 74, "column": 37 }, "end": { "line": 74, "column": 38 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 2298, "end": 2299, "loc": { "start": { "line": 74, "column": 39 }, "end": { "line": 74, "column": 40 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2299, "end": 2300, "loc": { "start": { "line": 74, "column": 40 }, "end": { "line": 74, "column": 41 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2301, "end": 2302, "loc": { "start": { "line": 74, "column": 42 }, "end": { "line": 74, "column": 43 } } }, { "type": "CommentLine", "value": " We currently have a pending item", "start": 2316, "end": 2351, "loc": { "start": { "line": 75, "column": 12 }, "end": { "line": 75, "column": 47 } } }, { "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": 2365, "end": 2371, "loc": { "start": { "line": 76, "column": 12 }, "end": { "line": 76, "column": 18 } } }, { "type": { "label": "false", "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "false", "start": 2372, "end": 2377, "loc": { "start": { "line": 76, "column": 19 }, "end": { "line": 76, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2377, "end": 2378, "loc": { "start": { "line": 76, "column": 24 }, "end": { "line": 76, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2388, "end": 2389, "loc": { "start": { "line": 77, "column": 8 }, "end": { "line": 77, "column": 9 } } }, { "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": 2401, "end": 2405, "loc": { "start": { "line": 79, "column": 8 }, "end": { "line": 79, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2405, "end": 2406, "loc": { "start": { "line": 79, "column": 12 }, "end": { "line": 79, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pendingItems", "start": 2406, "end": 2418, "loc": { "start": { "line": 79, "column": 13 }, "end": { "line": 79, "column": 25 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2418, "end": 2419, "loc": { "start": { "line": 79, "column": 25 }, "end": { "line": 79, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 2419, "end": 2423, "loc": { "start": { "line": 79, "column": 26 }, "end": { "line": 79, "column": 30 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2423, "end": 2424, "loc": { "start": { "line": 79, "column": 30 }, "end": { "line": 79, "column": 31 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2424, "end": 2425, "loc": { "start": { "line": 79, "column": 31 }, "end": { "line": 79, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 2425, "end": 2429, "loc": { "start": { "line": 79, "column": 32 }, "end": { "line": 79, "column": 36 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2429, "end": 2430, "loc": { "start": { "line": 79, "column": 36 }, "end": { "line": 79, "column": 37 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 2431, "end": 2432, "loc": { "start": { "line": 79, "column": 38 }, "end": { "line": 79, "column": 39 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2432, "end": 2433, "loc": { "start": { "line": 79, "column": 39 }, "end": { "line": 79, "column": 40 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2433, "end": 2434, "loc": { "start": { "line": 79, "column": 40 }, "end": { "line": 79, "column": 41 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2434, "end": 2435, "loc": { "start": { "line": 79, "column": 41 }, "end": { "line": 79, "column": 42 } } }, { "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": 2445, "end": 2451, "loc": { "start": { "line": 80, "column": 8 }, "end": { "line": 80, "column": 14 } } }, { "type": { "label": "true", "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "true", "start": 2452, "end": 2456, "loc": { "start": { "line": 80, "column": 15 }, "end": { "line": 80, "column": 19 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2456, "end": 2457, "loc": { "start": { "line": 80, "column": 19 }, "end": { "line": 80, "column": 20 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2463, "end": 2464, "loc": { "start": { "line": 81, "column": 4 }, "end": { "line": 81, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Tries to accept a tunneled item\r\n * @param {BaseItem} item\r\n * @param {number} travelDistance How many tiles this item has to travel\r\n * @param {number} beltSpeed How fast this item travels\r\n * @param {number} now Current ingame time\r\n ", "start": 2472, "end": 2742, "loc": { "start": { "line": 83, "column": 4 }, "end": { "line": 89, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tryAcceptTunneledItem", "start": 2748, "end": 2769, "loc": { "start": { "line": 90, "column": 4 }, "end": { "line": 90, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2769, "end": 2770, "loc": { "start": { "line": 90, "column": 25 }, "end": { "line": 90, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 2770, "end": 2774, "loc": { "start": { "line": 90, "column": 26 }, "end": { "line": 90, "column": 30 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2774, "end": 2775, "loc": { "start": { "line": 90, "column": 30 }, "end": { "line": 90, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "travelDistance", "start": 2776, "end": 2790, "loc": { "start": { "line": 90, "column": 32 }, "end": { "line": 90, "column": 46 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2790, "end": 2791, "loc": { "start": { "line": 90, "column": 46 }, "end": { "line": 90, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beltSpeed", "start": 2792, "end": 2801, "loc": { "start": { "line": 90, "column": 48 }, "end": { "line": 90, "column": 57 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2801, "end": 2802, "loc": { "start": { "line": 90, "column": 57 }, "end": { "line": 90, "column": 58 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "now", "start": 2803, "end": 2806, "loc": { "start": { "line": 90, "column": 59 }, "end": { "line": 90, "column": 62 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2806, "end": 2807, "loc": { "start": { "line": 90, "column": 62 }, "end": { "line": 90, "column": 63 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2808, "end": 2809, "loc": { "start": { "line": 90, "column": 64 }, "end": { "line": 90, "column": 65 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 2819, "end": 2821, "loc": { "start": { "line": 91, "column": 8 }, "end": { "line": 91, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2822, "end": 2823, "loc": { "start": { "line": 91, "column": 11 }, "end": { "line": 91, "column": 12 } } }, { "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": 2823, "end": 2827, "loc": { "start": { "line": 91, "column": 12 }, "end": { "line": 91, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2827, "end": 2828, "loc": { "start": { "line": 91, "column": 16 }, "end": { "line": 91, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mode", "start": 2828, "end": 2832, "loc": { "start": { "line": 91, "column": 17 }, "end": { "line": 91, "column": 21 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 2833, "end": 2836, "loc": { "start": { "line": 91, "column": 22 }, "end": { "line": 91, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumUndergroundBeltMode", "start": 2837, "end": 2860, "loc": { "start": { "line": 91, "column": 26 }, "end": { "line": 91, "column": 49 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2860, "end": 2861, "loc": { "start": { "line": 91, "column": 49 }, "end": { "line": 91, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "receiver", "start": 2861, "end": 2869, "loc": { "start": { "line": 91, "column": 50 }, "end": { "line": 91, "column": 58 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2869, "end": 2870, "loc": { "start": { "line": 91, "column": 58 }, "end": { "line": 91, "column": 59 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2871, "end": 2872, "loc": { "start": { "line": 91, "column": 60 }, "end": { "line": 91, "column": 61 } } }, { "type": "CommentLine", "value": " Only receivers can accept tunneled items", "start": 2886, "end": 2929, "loc": { "start": { "line": 92, "column": 12 }, "end": { "line": 92, "column": 55 } } }, { "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": 2943, "end": 2949, "loc": { "start": { "line": 93, "column": 12 }, "end": { "line": 93, "column": 18 } } }, { "type": { "label": "false", "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "false", "start": 2950, "end": 2955, "loc": { "start": { "line": 93, "column": 19 }, "end": { "line": 93, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2955, "end": 2956, "loc": { "start": { "line": 93, "column": 24 }, "end": { "line": 93, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2966, "end": 2967, "loc": { "start": { "line": 94, "column": 8 }, "end": { "line": 94, "column": 9 } } }, { "type": "CommentLine", "value": " Notice: We assume that for all items the travel distance is the same", "start": 2979, "end": 3050, "loc": { "start": { "line": 96, "column": 8 }, "end": { "line": 96, "column": 79 } } }, { "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": 3060, "end": 3065, "loc": { "start": { "line": 97, "column": 8 }, "end": { "line": 97, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "maxItemsInTunnel", "start": 3066, "end": 3082, "loc": { "start": { "line": 97, "column": 14 }, "end": { "line": 97, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3083, "end": 3084, "loc": { "start": { "line": 97, "column": 31 }, "end": { "line": 97, "column": 32 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3085, "end": 3086, "loc": { "start": { "line": 97, "column": 33 }, "end": { "line": 97, "column": 34 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 2, "start": 3086, "end": 3087, "loc": { "start": { "line": 97, "column": 34 }, "end": { "line": 97, "column": 35 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 3088, "end": 3089, "loc": { "start": { "line": 97, "column": 36 }, "end": { "line": 97, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "travelDistance", "start": 3090, "end": 3104, "loc": { "start": { "line": 97, "column": 38 }, "end": { "line": 97, "column": 52 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3104, "end": 3105, "loc": { "start": { "line": 97, "column": 52 }, "end": { "line": 97, "column": 53 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 3106, "end": 3107, "loc": { "start": { "line": 97, "column": 54 }, "end": { "line": 97, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 3108, "end": 3120, "loc": { "start": { "line": 97, "column": 56 }, "end": { "line": 97, "column": 68 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3120, "end": 3121, "loc": { "start": { "line": 97, "column": 68 }, "end": { "line": 97, "column": 69 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemSpacingOnBelts", "start": 3121, "end": 3139, "loc": { "start": { "line": 97, "column": 69 }, "end": { "line": 97, "column": 87 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3139, "end": 3140, "loc": { "start": { "line": 97, "column": 87 }, "end": { "line": 97, "column": 88 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 3150, "end": 3152, "loc": { "start": { "line": 98, "column": 8 }, "end": { "line": 98, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3153, "end": 3154, "loc": { "start": { "line": 98, "column": 11 }, "end": { "line": 98, "column": 12 } } }, { "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": 3154, "end": 3158, "loc": { "start": { "line": 98, "column": 12 }, "end": { "line": 98, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3158, "end": 3159, "loc": { "start": { "line": 98, "column": 16 }, "end": { "line": 98, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pendingItems", "start": 3159, "end": 3171, "loc": { "start": { "line": 98, "column": 17 }, "end": { "line": 98, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3171, "end": 3172, "loc": { "start": { "line": 98, "column": 29 }, "end": { "line": 98, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 3172, "end": 3178, "loc": { "start": { "line": 98, "column": 30 }, "end": { "line": 98, "column": 36 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": ">=", "start": 3179, "end": 3181, "loc": { "start": { "line": 98, "column": 37 }, "end": { "line": 98, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "maxItemsInTunnel", "start": 3182, "end": 3198, "loc": { "start": { "line": 98, "column": 40 }, "end": { "line": 98, "column": 56 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3198, "end": 3199, "loc": { "start": { "line": 98, "column": 56 }, "end": { "line": 98, "column": 57 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3200, "end": 3201, "loc": { "start": { "line": 98, "column": 58 }, "end": { "line": 98, "column": 59 } } }, { "type": "CommentLine", "value": " Simulate a real belt which gets full at some point", "start": 3215, "end": 3268, "loc": { "start": { "line": 99, "column": 12 }, "end": { "line": 99, "column": 65 } } }, { "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": 3282, "end": 3288, "loc": { "start": { "line": 100, "column": 12 }, "end": { "line": 100, "column": 18 } } }, { "type": { "label": "false", "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "false", "start": 3289, "end": 3294, "loc": { "start": { "line": 100, "column": 19 }, "end": { "line": 100, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3294, "end": 3295, "loc": { "start": { "line": 100, "column": 24 }, "end": { "line": 100, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3305, "end": 3306, "loc": { "start": { "line": 101, "column": 8 }, "end": { "line": 101, "column": 9 } } }, { "type": "CommentLine", "value": " NOTICE:", "start": 3318, "end": 3328, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 103, "column": 18 } } }, { "type": "CommentLine", "value": " This corresponds to the item ejector - it needs 0.5 additional tiles to eject the item.", "start": 3338, "end": 3428, "loc": { "start": { "line": 104, "column": 8 }, "end": { "line": 104, "column": 98 } } }, { "type": "CommentLine", "value": " So instead of adding 1 we add 0.5 only.", "start": 3438, "end": 3480, "loc": { "start": { "line": 105, "column": 8 }, "end": { "line": 105, "column": 50 } } }, { "type": "CommentLine", "value": " Additionally it takes 1 tile for the acceptor which we just add on top.", "start": 3490, "end": 3564, "loc": { "start": { "line": 106, "column": 8 }, "end": { "line": 106, "column": 82 } } }, { "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": 3574, "end": 3579, "loc": { "start": { "line": 107, "column": 8 }, "end": { "line": 107, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "travelDuration", "start": 3580, "end": 3594, "loc": { "start": { "line": 107, "column": 14 }, "end": { "line": 107, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3595, "end": 3596, "loc": { "start": { "line": 107, "column": 29 }, "end": { "line": 107, "column": 30 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3597, "end": 3598, "loc": { "start": { "line": 107, "column": 31 }, "end": { "line": 107, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "travelDistance", "start": 3598, "end": 3612, "loc": { "start": { "line": 107, "column": 32 }, "end": { "line": 107, "column": 46 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 3613, "end": 3614, "loc": { "start": { "line": 107, "column": 47 }, "end": { "line": 107, "column": 48 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1.5, "start": 3615, "end": 3618, "loc": { "start": { "line": 107, "column": 49 }, "end": { "line": 107, "column": 52 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3618, "end": 3619, "loc": { "start": { "line": 107, "column": 52 }, "end": { "line": 107, "column": 53 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 3620, "end": 3621, "loc": { "start": { "line": 107, "column": 54 }, "end": { "line": 107, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beltSpeed", "start": 3622, "end": 3631, "loc": { "start": { "line": 107, "column": 56 }, "end": { "line": 107, "column": 65 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 3632, "end": 3633, "loc": { "start": { "line": 107, "column": 66 }, "end": { "line": 107, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 3634, "end": 3646, "loc": { "start": { "line": 107, "column": 68 }, "end": { "line": 107, "column": 80 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3646, "end": 3647, "loc": { "start": { "line": 107, "column": 80 }, "end": { "line": 107, "column": 81 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemSpacingOnBelts", "start": 3647, "end": 3665, "loc": { "start": { "line": 107, "column": 81 }, "end": { "line": 107, "column": 99 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3665, "end": 3666, "loc": { "start": { "line": 107, "column": 99 }, "end": { "line": 107, "column": 100 } } }, { "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": 3678, "end": 3682, "loc": { "start": { "line": 109, "column": 8 }, "end": { "line": 109, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3682, "end": 3683, "loc": { "start": { "line": 109, "column": 12 }, "end": { "line": 109, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pendingItems", "start": 3683, "end": 3695, "loc": { "start": { "line": 109, "column": 13 }, "end": { "line": 109, "column": 25 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3695, "end": 3696, "loc": { "start": { "line": 109, "column": 25 }, "end": { "line": 109, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 3696, "end": 3700, "loc": { "start": { "line": 109, "column": 26 }, "end": { "line": 109, "column": 30 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3700, "end": 3701, "loc": { "start": { "line": 109, "column": 30 }, "end": { "line": 109, "column": 31 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3701, "end": 3702, "loc": { "start": { "line": 109, "column": 31 }, "end": { "line": 109, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 3702, "end": 3706, "loc": { "start": { "line": 109, "column": 32 }, "end": { "line": 109, "column": 36 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3706, "end": 3707, "loc": { "start": { "line": 109, "column": 36 }, "end": { "line": 109, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "now", "start": 3708, "end": 3711, "loc": { "start": { "line": 109, "column": 38 }, "end": { "line": 109, "column": 41 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 3712, "end": 3713, "loc": { "start": { "line": 109, "column": 42 }, "end": { "line": 109, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "travelDuration", "start": 3714, "end": 3728, "loc": { "start": { "line": 109, "column": 44 }, "end": { "line": 109, "column": 58 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3728, "end": 3729, "loc": { "start": { "line": 109, "column": 58 }, "end": { "line": 109, "column": 59 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3729, "end": 3730, "loc": { "start": { "line": 109, "column": 59 }, "end": { "line": 109, "column": 60 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3730, "end": 3731, "loc": { "start": { "line": 109, "column": 60 }, "end": { "line": 109, "column": 61 } } }, { "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": 3741, "end": 3747, "loc": { "start": { "line": 110, "column": 8 }, "end": { "line": 110, "column": 14 } } }, { "type": { "label": "true", "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "true", "start": 3748, "end": 3752, "loc": { "start": { "line": 110, "column": 15 }, "end": { "line": 110, "column": 19 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3752, "end": 3753, "loc": { "start": { "line": 110, "column": 19 }, "end": { "line": 110, "column": 20 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3759, "end": 3760, "loc": { "start": { "line": 111, "column": 4 }, "end": { "line": 111, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3762, "end": 3763, "loc": { "start": { "line": 112, "column": 0 }, "end": { "line": 112, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3765, "end": 3765, "loc": { "start": { "line": 113, "column": 0 }, "end": { "line": 113, "column": 0 } } } ] }