{ "type": "File", "start": 0, "end": 11476, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 300, "column": 1 } }, "program": { "type": "Program", "start": 0, "end": 11476, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 300, "column": 1 } }, "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": 111, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 60 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 60, "end": 74, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 23 } }, "imported": { "type": "Identifier", "start": 60, "end": 74, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 23 }, "identifierName": "DrawParameters" }, "name": "DrawParameters" }, "local": { "type": "Identifier", "start": 60, "end": 74, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 23 }, "identifierName": "DrawParameters" }, "name": "DrawParameters" } } ], "source": { "type": "StringLiteral", "start": 82, "end": 110, "loc": { "start": { "line": 2, "column": 31 }, "end": { "line": 2, "column": 59 } }, "extra": { "rawValue": "../../core/draw_parameters", "raw": "\"../../core/draw_parameters\"" }, "value": "../../core/draw_parameters" } }, { "type": "ImportDeclaration", "start": 113, "end": 156, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 43 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 122, "end": 128, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 15 } }, "imported": { "type": "Identifier", "start": 122, "end": 128, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 15 }, "identifierName": "Loader" }, "name": "Loader" }, "local": { "type": "Identifier", "start": 122, "end": 128, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 15 }, "identifierName": "Loader" }, "name": "Loader" } } ], "source": { "type": "StringLiteral", "start": 136, "end": 155, "loc": { "start": { "line": 3, "column": 23 }, "end": { "line": 3, "column": 42 } }, "extra": { "rawValue": "../../core/loader", "raw": "\"../../core/loader\"" }, "value": "../../core/loader" } }, { "type": "ImportDeclaration", "start": 158, "end": 207, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 49 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 167, "end": 176, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 18 } }, "imported": { "type": "Identifier", "start": 167, "end": 176, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 18 }, "identifierName": "Rectangle" }, "name": "Rectangle" }, "local": { "type": "Identifier", "start": 167, "end": 176, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 18 }, "identifierName": "Rectangle" }, "name": "Rectangle" } } ], "source": { "type": "StringLiteral", "start": 184, "end": 206, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 48 } }, "extra": { "rawValue": "../../core/rectangle", "raw": "\"../../core/rectangle\"" }, "value": "../../core/rectangle" } }, { "type": "ImportDeclaration", "start": 209, "end": 261, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 52 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 218, "end": 232, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 } }, "imported": { "type": "Identifier", "start": 218, "end": 232, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 }, "identifierName": "FULL_CLIP_RECT" }, "name": "FULL_CLIP_RECT" }, "local": { "type": "Identifier", "start": 218, "end": 232, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 }, "identifierName": "FULL_CLIP_RECT" }, "name": "FULL_CLIP_RECT" } } ], "source": { "type": "StringLiteral", "start": 240, "end": 260, "loc": { "start": { "line": 5, "column": 31 }, "end": { "line": 5, "column": 51 } }, "extra": { "rawValue": "../../core/sprites", "raw": "\"../../core/sprites\"" }, "value": "../../core/sprites" } }, { "type": "ImportDeclaration", "start": 263, "end": 330, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 67 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 272, "end": 289, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 26 } }, "imported": { "type": "Identifier", "start": 272, "end": 289, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 26 }, "identifierName": "StaleAreaDetector" }, "name": "StaleAreaDetector" }, "local": { "type": "Identifier", "start": 272, "end": 289, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 26 }, "identifierName": "StaleAreaDetector" }, "name": "StaleAreaDetector" } } ], "source": { "type": "StringLiteral", "start": 297, "end": 329, "loc": { "start": { "line": 6, "column": 34 }, "end": { "line": 6, "column": 66 } }, "extra": { "rawValue": "../../core/stale_area_detector", "raw": "\"../../core/stale_area_detector\"" }, "value": "../../core/stale_area_detector" } }, { "type": "ImportDeclaration", "start": 332, "end": 486, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 13, "column": 27 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 346, "end": 359, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 17 } }, "imported": { "type": "Identifier", "start": 346, "end": 359, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 17 }, "identifierName": "enumDirection" }, "name": "enumDirection" }, "local": { "type": "Identifier", "start": 346, "end": 359, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 17 }, "identifierName": "enumDirection" }, "name": "enumDirection" } }, { "type": "ImportSpecifier", "start": 366, "end": 386, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 24 } }, "imported": { "type": "Identifier", "start": 366, "end": 386, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 24 }, "identifierName": "enumDirectionToAngle" }, "name": "enumDirectionToAngle" }, "local": { "type": "Identifier", "start": 366, "end": 386, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 24 }, "identifierName": "enumDirectionToAngle" }, "name": "enumDirectionToAngle" } }, { "type": "ImportSpecifier", "start": 393, "end": 414, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 25 } }, "imported": { "type": "Identifier", "start": 393, "end": 414, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 25 }, "identifierName": "enumDirectionToVector" }, "name": "enumDirectionToVector" }, "local": { "type": "Identifier", "start": 393, "end": 414, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 25 }, "identifierName": "enumDirectionToVector" }, "name": "enumDirectionToVector" } }, { "type": "ImportSpecifier", "start": 421, "end": 443, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 26 } }, "imported": { "type": "Identifier", "start": 421, "end": 443, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 26 }, "identifierName": "enumInvertedDirections" }, "name": "enumInvertedDirections" }, "local": { "type": "Identifier", "start": 421, "end": 443, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 26 }, "identifierName": "enumInvertedDirections" }, "name": "enumInvertedDirections" } }, { "type": "ImportSpecifier", "start": 450, "end": 456, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 10 } }, "imported": { "type": "Identifier", "start": 450, "end": 456, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 10 }, "identifierName": "Vector" }, "name": "Vector" }, "local": { "type": "Identifier", "start": 450, "end": 456, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 10 }, "identifierName": "Vector" }, "name": "Vector" } } ], "source": { "type": "StringLiteral", "start": 466, "end": 485, "loc": { "start": { "line": 13, "column": 7 }, "end": { "line": 13, "column": 26 } }, "extra": { "rawValue": "../../core/vector", "raw": "\"../../core/vector\"" }, "value": "../../core/vector" } }, { "type": "ImportDeclaration", "start": 488, "end": 539, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 51 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 497, "end": 510, "loc": { "start": { "line": 14, "column": 9 }, "end": { "line": 14, "column": 22 } }, "imported": { "type": "Identifier", "start": 497, "end": 510, "loc": { "start": { "line": 14, "column": 9 }, "end": { "line": 14, "column": 22 }, "identifierName": "BeltComponent" }, "name": "BeltComponent" }, "local": { "type": "Identifier", "start": 497, "end": 510, "loc": { "start": { "line": 14, "column": 9 }, "end": { "line": 14, "column": 22 }, "identifierName": "BeltComponent" }, "name": "BeltComponent" } } ], "source": { "type": "StringLiteral", "start": 518, "end": 538, "loc": { "start": { "line": 14, "column": 30 }, "end": { "line": 14, "column": 50 } }, "extra": { "rawValue": "../components/belt", "raw": "\"../components/belt\"" }, "value": "../components/belt" } }, { "type": "ImportDeclaration", "start": 541, "end": 640, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 99 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 550, "end": 572, "loc": { "start": { "line": 15, "column": 9 }, "end": { "line": 15, "column": 31 } }, "imported": { "type": "Identifier", "start": 550, "end": 572, "loc": { "start": { "line": 15, "column": 9 }, "end": { "line": 15, "column": 31 }, "identifierName": "BeltUnderlaysComponent" }, "name": "BeltUnderlaysComponent" }, "local": { "type": "Identifier", "start": 550, "end": 572, "loc": { "start": { "line": 15, "column": 9 }, "end": { "line": 15, "column": 31 }, "identifierName": "BeltUnderlaysComponent" }, "name": "BeltUnderlaysComponent" } }, { "type": "ImportSpecifier", "start": 574, "end": 601, "loc": { "start": { "line": 15, "column": 33 }, "end": { "line": 15, "column": 60 } }, "imported": { "type": "Identifier", "start": 574, "end": 601, "loc": { "start": { "line": 15, "column": 33 }, "end": { "line": 15, "column": 60 }, "identifierName": "enumClippedBeltUnderlayType" }, "name": "enumClippedBeltUnderlayType" }, "local": { "type": "Identifier", "start": 574, "end": 601, "loc": { "start": { "line": 15, "column": 33 }, "end": { "line": 15, "column": 60 }, "identifierName": "enumClippedBeltUnderlayType" }, "name": "enumClippedBeltUnderlayType" } } ], "source": { "type": "StringLiteral", "start": 609, "end": 639, "loc": { "start": { "line": 15, "column": 68 }, "end": { "line": 15, "column": 98 } }, "extra": { "rawValue": "../components/belt_underlays", "raw": "\"../components/belt_underlays\"" }, "value": "../components/belt_underlays" } }, { "type": "ImportDeclaration", "start": 642, "end": 710, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 68 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 651, "end": 672, "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 30 } }, "imported": { "type": "Identifier", "start": 651, "end": 672, "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 30 }, "identifierName": "ItemAcceptorComponent" }, "name": "ItemAcceptorComponent" }, "local": { "type": "Identifier", "start": 651, "end": 672, "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 30 }, "identifierName": "ItemAcceptorComponent" }, "name": "ItemAcceptorComponent" } } ], "source": { "type": "StringLiteral", "start": 680, "end": 709, "loc": { "start": { "line": 16, "column": 38 }, "end": { "line": 16, "column": 67 } }, "extra": { "rawValue": "../components/item_acceptor", "raw": "\"../components/item_acceptor\"" }, "value": "../components/item_acceptor" } }, { "type": "ImportDeclaration", "start": 712, "end": 778, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 66 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 721, "end": 741, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 29 } }, "imported": { "type": "Identifier", "start": 721, "end": 741, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 29 }, "identifierName": "ItemEjectorComponent" }, "name": "ItemEjectorComponent" }, "local": { "type": "Identifier", "start": 721, "end": 741, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 29 }, "identifierName": "ItemEjectorComponent" }, "name": "ItemEjectorComponent" } } ], "source": { "type": "StringLiteral", "start": 749, "end": 777, "loc": { "start": { "line": 17, "column": 37 }, "end": { "line": 17, "column": 65 } }, "extra": { "rawValue": "../components/item_ejector", "raw": "\"../components/item_ejector\"" }, "value": "../components/item_ejector" } }, { "type": "ImportDeclaration", "start": 780, "end": 815, "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 18, "column": 35 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 789, "end": 795, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 15 } }, "imported": { "type": "Identifier", "start": 789, "end": 795, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 15 }, "identifierName": "Entity" }, "name": "Entity" }, "local": { "type": "Identifier", "start": 789, "end": 795, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 15 }, "identifierName": "Entity" }, "name": "Entity" } } ], "source": { "type": "StringLiteral", "start": 803, "end": 814, "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 18, "column": 34 } }, "extra": { "rawValue": "../entity", "raw": "\"../entity\"" }, "value": "../entity" } }, { "type": "ImportDeclaration", "start": 817, "end": 883, "loc": { "start": { "line": 19, "column": 0 }, "end": { "line": 19, "column": 66 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 826, "end": 846, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 29 } }, "imported": { "type": "Identifier", "start": 826, "end": 846, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 29 }, "identifierName": "GameSystemWithFilter" }, "name": "GameSystemWithFilter" }, "local": { "type": "Identifier", "start": 826, "end": 846, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 29 }, "identifierName": "GameSystemWithFilter" }, "name": "GameSystemWithFilter" } } ], "source": { "type": "StringLiteral", "start": 854, "end": 882, "loc": { "start": { "line": 19, "column": 37 }, "end": { "line": 19, "column": 65 } }, "extra": { "rawValue": "../game_system_with_filter", "raw": "\"../game_system_with_filter\"" }, "value": "../game_system_with_filter" } }, { "type": "ImportDeclaration", "start": 885, "end": 934, "loc": { "start": { "line": 20, "column": 0 }, "end": { "line": 20, "column": 49 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 894, "end": 906, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 21 } }, "imported": { "type": "Identifier", "start": 894, "end": 906, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 21 }, "identifierName": "MapChunkView" }, "name": "MapChunkView" }, "local": { "type": "Identifier", "start": 894, "end": 906, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 21 }, "identifierName": "MapChunkView" }, "name": "MapChunkView" } } ], "source": { "type": "StringLiteral", "start": 914, "end": 933, "loc": { "start": { "line": 20, "column": 29 }, "end": { "line": 20, "column": 48 } }, "extra": { "rawValue": "../map_chunk_view", "raw": "\"../map_chunk_view\"" }, "value": "../map_chunk_view" } }, { "type": "ImportDeclaration", "start": 936, "end": 977, "loc": { "start": { "line": 21, "column": 0 }, "end": { "line": 21, "column": 41 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 945, "end": 960, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 24 } }, "imported": { "type": "Identifier", "start": 945, "end": 960, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 24 }, "identifierName": "BELT_ANIM_COUNT" }, "name": "BELT_ANIM_COUNT" }, "local": { "type": "Identifier", "start": 945, "end": 960, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 24 }, "identifierName": "BELT_ANIM_COUNT" }, "name": "BELT_ANIM_COUNT" } } ], "source": { "type": "StringLiteral", "start": 968, "end": 976, "loc": { "start": { "line": 21, "column": 32 }, "end": { "line": 21, "column": 40 } }, "extra": { "rawValue": "./belt", "raw": "\"./belt\"" }, "value": "./belt" }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Mapping from underlay type to clip rect\r\n * @type {Object}\r\n ", "start": 981, "end": 1092, "loc": { "start": { "line": 23, "column": 0 }, "end": { "line": 26, "column": 3 } } } ] }, { "type": "VariableDeclaration", "start": 1094, "end": 1389, "loc": { "start": { "line": 27, "column": 0 }, "end": { "line": 32, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1100, "end": 1388, "loc": { "start": { "line": 27, "column": 6 }, "end": { "line": 32, "column": 1 } }, "id": { "type": "Identifier", "start": 1100, "end": 1126, "loc": { "start": { "line": 27, "column": 6 }, "end": { "line": 27, "column": 32 }, "identifierName": "enumUnderlayTypeToClipRect" }, "name": "enumUnderlayTypeToClipRect", "leadingComments": null }, "init": { "type": "ObjectExpression", "start": 1129, "end": 1388, "loc": { "start": { "line": 27, "column": 35 }, "end": { "line": 32, "column": 1 } }, "properties": [ { "type": "ObjectProperty", "start": 1136, "end": 1176, "loc": { "start": { "line": 28, "column": 4 }, "end": { "line": 28, "column": 44 } }, "method": false, "shorthand": false, "computed": true, "key": { "type": "MemberExpression", "start": 1137, "end": 1169, "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 37 } }, "object": { "type": "Identifier", "start": 1137, "end": 1164, "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 32 }, "identifierName": "enumClippedBeltUnderlayType" }, "name": "enumClippedBeltUnderlayType" }, "property": { "type": "Identifier", "start": 1165, "end": 1169, "loc": { "start": { "line": 28, "column": 33 }, "end": { "line": 28, "column": 37 }, "identifierName": "none" }, "name": "none" }, "computed": false }, "value": { "type": "NullLiteral", "start": 1172, "end": 1176, "loc": { "start": { "line": 28, "column": 40 }, "end": { "line": 28, "column": 44 } } } }, { "type": "ObjectProperty", "start": 1183, "end": 1233, "loc": { "start": { "line": 29, "column": 4 }, "end": { "line": 29, "column": 54 } }, "method": false, "shorthand": false, "computed": true, "key": { "type": "MemberExpression", "start": 1184, "end": 1216, "loc": { "start": { "line": 29, "column": 5 }, "end": { "line": 29, "column": 37 } }, "object": { "type": "Identifier", "start": 1184, "end": 1211, "loc": { "start": { "line": 29, "column": 5 }, "end": { "line": 29, "column": 32 }, "identifierName": "enumClippedBeltUnderlayType" }, "name": "enumClippedBeltUnderlayType" }, "property": { "type": "Identifier", "start": 1212, "end": 1216, "loc": { "start": { "line": 29, "column": 33 }, "end": { "line": 29, "column": 37 }, "identifierName": "full" }, "name": "full" }, "computed": false }, "value": { "type": "Identifier", "start": 1219, "end": 1233, "loc": { "start": { "line": 29, "column": 40 }, "end": { "line": 29, "column": 54 }, "identifierName": "FULL_CLIP_RECT" }, "name": "FULL_CLIP_RECT" } }, { "type": "ObjectProperty", "start": 1240, "end": 1306, "loc": { "start": { "line": 30, "column": 4 }, "end": { "line": 30, "column": 70 } }, "method": false, "shorthand": false, "computed": true, "key": { "type": "MemberExpression", "start": 1241, "end": 1276, "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 30, "column": 40 } }, "object": { "type": "Identifier", "start": 1241, "end": 1268, "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 30, "column": 32 }, "identifierName": "enumClippedBeltUnderlayType" }, "name": "enumClippedBeltUnderlayType" }, "property": { "type": "Identifier", "start": 1269, "end": 1276, "loc": { "start": { "line": 30, "column": 33 }, "end": { "line": 30, "column": 40 }, "identifierName": "topOnly" }, "name": "topOnly" }, "computed": false }, "value": { "type": "NewExpression", "start": 1279, "end": 1306, "loc": { "start": { "line": 30, "column": 43 }, "end": { "line": 30, "column": 70 } }, "callee": { "type": "Identifier", "start": 1283, "end": 1292, "loc": { "start": { "line": 30, "column": 47 }, "end": { "line": 30, "column": 56 }, "identifierName": "Rectangle" }, "name": "Rectangle" }, "arguments": [ { "type": "NumericLiteral", "start": 1293, "end": 1294, "loc": { "start": { "line": 30, "column": 57 }, "end": { "line": 30, "column": 58 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, { "type": "NumericLiteral", "start": 1296, "end": 1297, "loc": { "start": { "line": 30, "column": 60 }, "end": { "line": 30, "column": 61 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, { "type": "NumericLiteral", "start": 1299, "end": 1300, "loc": { "start": { "line": 30, "column": 63 }, "end": { "line": 30, "column": 64 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "NumericLiteral", "start": 1302, "end": 1305, "loc": { "start": { "line": 30, "column": 66 }, "end": { "line": 30, "column": 69 } }, "extra": { "rawValue": 0.5, "raw": "0.5" }, "value": 0.5 } ] } }, { "type": "ObjectProperty", "start": 1313, "end": 1384, "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 31, "column": 75 } }, "method": false, "shorthand": false, "computed": true, "key": { "type": "MemberExpression", "start": 1314, "end": 1352, "loc": { "start": { "line": 31, "column": 5 }, "end": { "line": 31, "column": 43 } }, "object": { "type": "Identifier", "start": 1314, "end": 1341, "loc": { "start": { "line": 31, "column": 5 }, "end": { "line": 31, "column": 32 }, "identifierName": "enumClippedBeltUnderlayType" }, "name": "enumClippedBeltUnderlayType" }, "property": { "type": "Identifier", "start": 1342, "end": 1352, "loc": { "start": { "line": 31, "column": 33 }, "end": { "line": 31, "column": 43 }, "identifierName": "bottomOnly" }, "name": "bottomOnly" }, "computed": false }, "value": { "type": "NewExpression", "start": 1355, "end": 1384, "loc": { "start": { "line": 31, "column": 46 }, "end": { "line": 31, "column": 75 } }, "callee": { "type": "Identifier", "start": 1359, "end": 1368, "loc": { "start": { "line": 31, "column": 50 }, "end": { "line": 31, "column": 59 }, "identifierName": "Rectangle" }, "name": "Rectangle" }, "arguments": [ { "type": "NumericLiteral", "start": 1369, "end": 1370, "loc": { "start": { "line": 31, "column": 60 }, "end": { "line": 31, "column": 61 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, { "type": "NumericLiteral", "start": 1372, "end": 1375, "loc": { "start": { "line": 31, "column": 63 }, "end": { "line": 31, "column": 66 } }, "extra": { "rawValue": 0.5, "raw": "0.5" }, "value": 0.5 }, { "type": "NumericLiteral", "start": 1377, "end": 1378, "loc": { "start": { "line": 31, "column": 68 }, "end": { "line": 31, "column": 69 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "NumericLiteral", "start": 1380, "end": 1383, "loc": { "start": { "line": 31, "column": 71 }, "end": { "line": 31, "column": 74 } }, "extra": { "rawValue": 0.5, "raw": "0.5" }, "value": 0.5 } ] } } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Mapping from underlay type to clip rect\r\n * @type {Object}\r\n ", "start": 981, "end": 1092, "loc": { "start": { "line": 23, "column": 0 }, "end": { "line": 26, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "start": 1393, "end": 11476, "loc": { "start": { "line": 34, "column": 0 }, "end": { "line": 300, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 1400, "end": 11476, "loc": { "start": { "line": 34, "column": 7 }, "end": { "line": 300, "column": 1 } }, "id": { "type": "Identifier", "start": 1406, "end": 1425, "loc": { "start": { "line": 34, "column": 13 }, "end": { "line": 34, "column": 32 }, "identifierName": "BeltUnderlaysSystem" }, "name": "BeltUnderlaysSystem" }, "superClass": { "type": "Identifier", "start": 1434, "end": 1454, "loc": { "start": { "line": 34, "column": 41 }, "end": { "line": 34, "column": 61 }, "identifierName": "GameSystemWithFilter" }, "name": "GameSystemWithFilter" }, "body": { "type": "ClassBody", "start": 1455, "end": 11476, "loc": { "start": { "line": 34, "column": 62 }, "end": { "line": 300, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 1462, "end": 2160, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 55, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1462, "end": 1473, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 35, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1474, "end": 1478, "loc": { "start": { "line": 35, "column": 16 }, "end": { "line": 35, "column": 20 }, "identifierName": "root" }, "name": "root" } ], "body": { "type": "BlockStatement", "start": 1480, "end": 2160, "loc": { "start": { "line": 35, "column": 22 }, "end": { "line": 55, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 1491, "end": 1529, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 46 } }, "expression": { "type": "CallExpression", "start": 1491, "end": 1528, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 45 } }, "callee": { "type": "Super", "start": 1491, "end": 1496, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 13 } } }, "arguments": [ { "type": "Identifier", "start": 1497, "end": 1501, "loc": { "start": { "line": 36, "column": 14 }, "end": { "line": 36, "column": 18 }, "identifierName": "root" }, "name": "root" }, { "type": "ArrayExpression", "start": 1503, "end": 1527, "loc": { "start": { "line": 36, "column": 20 }, "end": { "line": 36, "column": 44 } }, "elements": [ { "type": "Identifier", "start": 1504, "end": 1526, "loc": { "start": { "line": 36, "column": 21 }, "end": { "line": 36, "column": 43 }, "identifierName": "BeltUnderlaysComponent" }, "name": "BeltUnderlaysComponent" } ] } ] } }, { "type": "ExpressionStatement", "start": 1541, "end": 1571, "loc": { "start": { "line": 38, "column": 8 }, "end": { "line": 38, "column": 38 } }, "expression": { "type": "AssignmentExpression", "start": 1541, "end": 1570, "loc": { "start": { "line": 38, "column": 8 }, "end": { "line": 38, "column": 37 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1541, "end": 1565, "loc": { "start": { "line": 38, "column": 8 }, "end": { "line": 38, "column": 32 } }, "object": { "type": "ThisExpression", "start": 1541, "end": 1545, "loc": { "start": { "line": 38, "column": 8 }, "end": { "line": 38, "column": 12 } } }, "property": { "type": "Identifier", "start": 1546, "end": 1565, "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 38, "column": 32 }, "identifierName": "underlayBeltSprites" }, "name": "underlayBeltSprites" }, "computed": false }, "right": { "type": "ArrayExpression", "start": 1568, "end": 1570, "loc": { "start": { "line": 38, "column": 35 }, "end": { "line": 38, "column": 37 } }, "elements": [] } } }, { "type": "ForStatement", "start": 1583, "end": 1743, "loc": { "start": { "line": 40, "column": 8 }, "end": { "line": 42, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 1588, "end": 1597, "loc": { "start": { "line": 40, "column": 13 }, "end": { "line": 40, "column": 22 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1592, "end": 1597, "loc": { "start": { "line": 40, "column": 17 }, "end": { "line": 40, "column": 22 } }, "id": { "type": "Identifier", "start": 1592, "end": 1593, "loc": { "start": { "line": 40, "column": 17 }, "end": { "line": 40, "column": 18 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 1596, "end": 1597, "loc": { "start": { "line": 40, "column": 21 }, "end": { "line": 40, "column": 22 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 1599, "end": 1618, "loc": { "start": { "line": 40, "column": 24 }, "end": { "line": 40, "column": 43 } }, "left": { "type": "Identifier", "start": 1599, "end": 1600, "loc": { "start": { "line": 40, "column": 24 }, "end": { "line": 40, "column": 25 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "Identifier", "start": 1603, "end": 1618, "loc": { "start": { "line": 40, "column": 28 }, "end": { "line": 40, "column": 43 }, "identifierName": "BELT_ANIM_COUNT" }, "name": "BELT_ANIM_COUNT" } }, "update": { "type": "UpdateExpression", "start": 1620, "end": 1623, "loc": { "start": { "line": 40, "column": 45 }, "end": { "line": 40, "column": 48 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 1622, "end": 1623, "loc": { "start": { "line": 40, "column": 47 }, "end": { "line": 40, "column": 48 }, "identifierName": "i" }, "name": "i" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 1625, "end": 1743, "loc": { "start": { "line": 40, "column": 50 }, "end": { "line": 42, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 1640, "end": 1732, "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 104 } }, "expression": { "type": "CallExpression", "start": 1640, "end": 1731, "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 103 } }, "callee": { "type": "MemberExpression", "start": 1640, "end": 1669, "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 41 } }, "object": { "type": "MemberExpression", "start": 1640, "end": 1664, "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 36 } }, "object": { "type": "ThisExpression", "start": 1640, "end": 1644, "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 16 } } }, "property": { "type": "Identifier", "start": 1645, "end": 1664, "loc": { "start": { "line": 41, "column": 17 }, "end": { "line": 41, "column": 36 }, "identifierName": "underlayBeltSprites" }, "name": "underlayBeltSprites" }, "computed": false }, "property": { "type": "Identifier", "start": 1665, "end": 1669, "loc": { "start": { "line": 41, "column": 37 }, "end": { "line": 41, "column": 41 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 1670, "end": 1730, "loc": { "start": { "line": 41, "column": 42 }, "end": { "line": 41, "column": 102 } }, "callee": { "type": "MemberExpression", "start": 1670, "end": 1686, "loc": { "start": { "line": 41, "column": 42 }, "end": { "line": 41, "column": 58 } }, "object": { "type": "Identifier", "start": 1670, "end": 1676, "loc": { "start": { "line": 41, "column": 42 }, "end": { "line": 41, "column": 48 }, "identifierName": "Loader" }, "name": "Loader" }, "property": { "type": "Identifier", "start": 1677, "end": 1686, "loc": { "start": { "line": 41, "column": 49 }, "end": { "line": 41, "column": 58 }, "identifierName": "getSprite" }, "name": "getSprite" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 1687, "end": 1729, "loc": { "start": { "line": 41, "column": 59 }, "end": { "line": 41, "column": 101 } }, "left": { "type": "BinaryExpression", "start": 1687, "end": 1720, "loc": { "start": { "line": 41, "column": 59 }, "end": { "line": 41, "column": 92 } }, "left": { "type": "StringLiteral", "start": 1687, "end": 1716, "loc": { "start": { "line": 41, "column": 59 }, "end": { "line": 41, "column": 88 } }, "extra": { "rawValue": "sprites/belt/built/forward_", "raw": "\"sprites/belt/built/forward_\"" }, "value": "sprites/belt/built/forward_" }, "operator": "+", "right": { "type": "Identifier", "start": 1719, "end": 1720, "loc": { "start": { "line": 41, "column": 91 }, "end": { "line": 41, "column": 92 }, "identifierName": "i" }, "name": "i" } }, "operator": "+", "right": { "type": "StringLiteral", "start": 1723, "end": 1729, "loc": { "start": { "line": 41, "column": 95 }, "end": { "line": 41, "column": 101 } }, "extra": { "rawValue": ".png", "raw": "\".png\"" }, "value": ".png" } } ] } ] } } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentLine", "value": " Automatically recompute areas", "start": 1755, "end": 1787, "loc": { "start": { "line": 44, "column": 8 }, "end": { "line": 44, "column": 40 } } } ] }, { "type": "ExpressionStatement", "start": 1797, "end": 1971, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 49, "column": 11 } }, "expression": { "type": "AssignmentExpression", "start": 1797, "end": 1970, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 49, "column": 10 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1797, "end": 1811, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 45, "column": 22 } }, "object": { "type": "ThisExpression", "start": 1797, "end": 1801, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 45, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 1802, "end": 1811, "loc": { "start": { "line": 45, "column": 13 }, "end": { "line": 45, "column": 22 }, "identifierName": "staleArea" }, "name": "staleArea" }, "computed": false, "leadingComments": null }, "right": { "type": "NewExpression", "start": 1814, "end": 1970, "loc": { "start": { "line": 45, "column": 25 }, "end": { "line": 49, "column": 10 } }, "callee": { "type": "Identifier", "start": 1818, "end": 1835, "loc": { "start": { "line": 45, "column": 29 }, "end": { "line": 45, "column": 46 }, "identifierName": "StaleAreaDetector" }, "name": "StaleAreaDetector" }, "arguments": [ { "type": "ObjectExpression", "start": 1836, "end": 1969, "loc": { "start": { "line": 45, "column": 47 }, "end": { "line": 49, "column": 9 } }, "properties": [ { "type": "ObjectProperty", "start": 1851, "end": 1855, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 16 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 1851, "end": 1855, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 16 }, "identifierName": "root" }, "name": "root" }, "value": { "type": "Identifier", "start": 1851, "end": 1855, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 16 }, "identifierName": "root" }, "name": "root" }, "extra": { "shorthand": true } }, { "type": "ObjectProperty", "start": 1870, "end": 1891, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 33 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 1870, "end": 1874, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 16 }, "identifierName": "name" }, "name": "name" }, "value": { "type": "StringLiteral", "start": 1876, "end": 1891, "loc": { "start": { "line": 47, "column": 18 }, "end": { "line": 47, "column": 33 } }, "extra": { "rawValue": "belt-underlay", "raw": "\"belt-underlay\"" }, "value": "belt-underlay" } }, { "type": "ObjectProperty", "start": 1906, "end": 1957, "loc": { "start": { "line": 48, "column": 12 }, "end": { "line": 48, "column": 63 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 1906, "end": 1921, "loc": { "start": { "line": 48, "column": 12 }, "end": { "line": 48, "column": 27 }, "identifierName": "recomputeMethod" }, "name": "recomputeMethod" }, "value": { "type": "CallExpression", "start": 1923, "end": 1957, "loc": { "start": { "line": 48, "column": 29 }, "end": { "line": 48, "column": 63 } }, "callee": { "type": "MemberExpression", "start": 1923, "end": 1951, "loc": { "start": { "line": 48, "column": 29 }, "end": { "line": 48, "column": 57 } }, "object": { "type": "MemberExpression", "start": 1923, "end": 1946, "loc": { "start": { "line": 48, "column": 29 }, "end": { "line": 48, "column": 52 } }, "object": { "type": "ThisExpression", "start": 1923, "end": 1927, "loc": { "start": { "line": 48, "column": 29 }, "end": { "line": 48, "column": 33 } } }, "property": { "type": "Identifier", "start": 1928, "end": 1946, "loc": { "start": { "line": 48, "column": 34 }, "end": { "line": 48, "column": 52 }, "identifierName": "recomputeStaleArea" }, "name": "recomputeStaleArea" }, "computed": false }, "property": { "type": "Identifier", "start": 1947, "end": 1951, "loc": { "start": { "line": 48, "column": 53 }, "end": { "line": 48, "column": 57 }, "identifierName": "bind" }, "name": "bind" }, "computed": false }, "arguments": [ { "type": "ThisExpression", "start": 1952, "end": 1956, "loc": { "start": { "line": 48, "column": 58 }, "end": { "line": 48, "column": 62 } } } ] } } ] } ] }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Automatically recompute areas", "start": 1755, "end": 1787, "loc": { "start": { "line": 44, "column": 8 }, "end": { "line": 44, "column": 40 } } } ] }, { "type": "ExpressionStatement", "start": 1983, "end": 2153, "loc": { "start": { "line": 51, "column": 8 }, "end": { "line": 54, "column": 10 } }, "expression": { "type": "CallExpression", "start": 1983, "end": 2152, "loc": { "start": { "line": 51, "column": 8 }, "end": { "line": 54, "column": 9 } }, "callee": { "type": "MemberExpression", "start": 1983, "end": 2026, "loc": { "start": { "line": 51, "column": 8 }, "end": { "line": 51, "column": 51 } }, "object": { "type": "MemberExpression", "start": 1983, "end": 1997, "loc": { "start": { "line": 51, "column": 8 }, "end": { "line": 51, "column": 22 } }, "object": { "type": "ThisExpression", "start": 1983, "end": 1987, "loc": { "start": { "line": 51, "column": 8 }, "end": { "line": 51, "column": 12 } } }, "property": { "type": "Identifier", "start": 1988, "end": 1997, "loc": { "start": { "line": 51, "column": 13 }, "end": { "line": 51, "column": 22 }, "identifierName": "staleArea" }, "name": "staleArea" }, "computed": false }, "property": { "type": "Identifier", "start": 1998, "end": 2026, "loc": { "start": { "line": 51, "column": 23 }, "end": { "line": 51, "column": 51 }, "identifierName": "recomputeOnComponentsChanged" }, "name": "recomputeOnComponentsChanged" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 2041, "end": 2125, "loc": { "start": { "line": 52, "column": 12 }, "end": { "line": 52, "column": 96 } }, "elements": [ { "type": "Identifier", "start": 2042, "end": 2064, "loc": { "start": { "line": 52, "column": 13 }, "end": { "line": 52, "column": 35 }, "identifierName": "BeltUnderlaysComponent" }, "name": "BeltUnderlaysComponent" }, { "type": "Identifier", "start": 2066, "end": 2079, "loc": { "start": { "line": 52, "column": 37 }, "end": { "line": 52, "column": 50 }, "identifierName": "BeltComponent" }, "name": "BeltComponent" }, { "type": "Identifier", "start": 2081, "end": 2102, "loc": { "start": { "line": 52, "column": 52 }, "end": { "line": 52, "column": 73 }, "identifierName": "ItemAcceptorComponent" }, "name": "ItemAcceptorComponent" }, { "type": "Identifier", "start": 2104, "end": 2124, "loc": { "start": { "line": 52, "column": 75 }, "end": { "line": 52, "column": 95 }, "identifierName": "ItemEjectorComponent" }, "name": "ItemEjectorComponent" } ] }, { "type": "NumericLiteral", "start": 2140, "end": 2141, "loc": { "start": { "line": 53, "column": 12 }, "end": { "line": 53, "column": 13 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } ] } } ], "directives": [] } }, { "type": "ClassMethod", "start": 2168, "end": 2224, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 59, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 2175, "end": 2180, "loc": { "start": { "line": 57, "column": 11 }, "end": { "line": 57, "column": 16 }, "identifierName": "getId" }, "name": "getId" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 2183, "end": 2224, "loc": { "start": { "line": 57, "column": 19 }, "end": { "line": 59, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 2194, "end": 2217, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 31 } }, "argument": { "type": "StringLiteral", "start": 2201, "end": 2216, "loc": { "start": { "line": 58, "column": 15 }, "end": { "line": 58, "column": 30 } }, "extra": { "rawValue": "beltUnderlays", "raw": "\"beltUnderlays\"" }, "value": "beltUnderlays" } } ], "directives": [] } }, { "type": "ClassMethod", "start": 2232, "end": 2283, "loc": { "start": { "line": 61, "column": 4 }, "end": { "line": 63, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2232, "end": 2238, "loc": { "start": { "line": 61, "column": 4 }, "end": { "line": 61, "column": 10 }, "identifierName": "update" }, "name": "update" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 2241, "end": 2283, "loc": { "start": { "line": 61, "column": 13 }, "end": { "line": 63, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2252, "end": 2276, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 32 } }, "expression": { "type": "CallExpression", "start": 2252, "end": 2275, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 31 } }, "callee": { "type": "MemberExpression", "start": 2252, "end": 2273, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 29 } }, "object": { "type": "MemberExpression", "start": 2252, "end": 2266, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 22 } }, "object": { "type": "ThisExpression", "start": 2252, "end": 2256, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 12 } } }, "property": { "type": "Identifier", "start": 2257, "end": 2266, "loc": { "start": { "line": 62, "column": 13 }, "end": { "line": 62, "column": 22 }, "identifierName": "staleArea" }, "name": "staleArea" }, "computed": false }, "property": { "type": "Identifier", "start": 2267, "end": 2273, "loc": { "start": { "line": 62, "column": 23 }, "end": { "line": 62, "column": 29 }, "identifierName": "update" }, "name": "update" }, "computed": false }, "arguments": [] } } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Called when an area changed - Resets all caches in the given area\r\n * @param {Rectangle} area\r\n ", "start": 2291, "end": 2409, "loc": { "start": { "line": 65, "column": 4 }, "end": { "line": 68, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 2415, "end": 3115, "loc": { "start": { "line": 69, "column": 4 }, "end": { "line": 85, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2415, "end": 2433, "loc": { "start": { "line": 69, "column": 4 }, "end": { "line": 69, "column": 22 }, "identifierName": "recomputeStaleArea" }, "name": "recomputeStaleArea", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2434, "end": 2438, "loc": { "start": { "line": 69, "column": 23 }, "end": { "line": 69, "column": 27 }, "identifierName": "area" }, "name": "area" } ], "body": { "type": "BlockStatement", "start": 2440, "end": 3115, "loc": { "start": { "line": 69, "column": 29 }, "end": { "line": 85, "column": 5 } }, "body": [ { "type": "ForStatement", "start": 2451, "end": 3108, "loc": { "start": { "line": 70, "column": 8 }, "end": { "line": 84, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 2456, "end": 2465, "loc": { "start": { "line": 70, "column": 13 }, "end": { "line": 70, "column": 22 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2460, "end": 2465, "loc": { "start": { "line": 70, "column": 17 }, "end": { "line": 70, "column": 22 } }, "id": { "type": "Identifier", "start": 2460, "end": 2461, "loc": { "start": { "line": 70, "column": 17 }, "end": { "line": 70, "column": 18 }, "identifierName": "x" }, "name": "x" }, "init": { "type": "NumericLiteral", "start": 2464, "end": 2465, "loc": { "start": { "line": 70, "column": 21 }, "end": { "line": 70, "column": 22 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 2467, "end": 2477, "loc": { "start": { "line": 70, "column": 24 }, "end": { "line": 70, "column": 34 } }, "left": { "type": "Identifier", "start": 2467, "end": 2468, "loc": { "start": { "line": 70, "column": 24 }, "end": { "line": 70, "column": 25 }, "identifierName": "x" }, "name": "x" }, "operator": "<", "right": { "type": "MemberExpression", "start": 2471, "end": 2477, "loc": { "start": { "line": 70, "column": 28 }, "end": { "line": 70, "column": 34 } }, "object": { "type": "Identifier", "start": 2471, "end": 2475, "loc": { "start": { "line": 70, "column": 28 }, "end": { "line": 70, "column": 32 }, "identifierName": "area" }, "name": "area" }, "property": { "type": "Identifier", "start": 2476, "end": 2477, "loc": { "start": { "line": 70, "column": 33 }, "end": { "line": 70, "column": 34 }, "identifierName": "w" }, "name": "w" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 2479, "end": 2482, "loc": { "start": { "line": 70, "column": 36 }, "end": { "line": 70, "column": 39 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 2481, "end": 2482, "loc": { "start": { "line": 70, "column": 38 }, "end": { "line": 70, "column": 39 }, "identifierName": "x" }, "name": "x" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 2484, "end": 3108, "loc": { "start": { "line": 70, "column": 41 }, "end": { "line": 84, "column": 9 } }, "body": [ { "type": "ForStatement", "start": 2499, "end": 3097, "loc": { "start": { "line": 71, "column": 12 }, "end": { "line": 83, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 2504, "end": 2513, "loc": { "start": { "line": 71, "column": 17 }, "end": { "line": 71, "column": 26 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2508, "end": 2513, "loc": { "start": { "line": 71, "column": 21 }, "end": { "line": 71, "column": 26 } }, "id": { "type": "Identifier", "start": 2508, "end": 2509, "loc": { "start": { "line": 71, "column": 21 }, "end": { "line": 71, "column": 22 }, "identifierName": "y" }, "name": "y" }, "init": { "type": "NumericLiteral", "start": 2512, "end": 2513, "loc": { "start": { "line": 71, "column": 25 }, "end": { "line": 71, "column": 26 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 2515, "end": 2525, "loc": { "start": { "line": 71, "column": 28 }, "end": { "line": 71, "column": 38 } }, "left": { "type": "Identifier", "start": 2515, "end": 2516, "loc": { "start": { "line": 71, "column": 28 }, "end": { "line": 71, "column": 29 }, "identifierName": "y" }, "name": "y" }, "operator": "<", "right": { "type": "MemberExpression", "start": 2519, "end": 2525, "loc": { "start": { "line": 71, "column": 32 }, "end": { "line": 71, "column": 38 } }, "object": { "type": "Identifier", "start": 2519, "end": 2523, "loc": { "start": { "line": 71, "column": 32 }, "end": { "line": 71, "column": 36 }, "identifierName": "area" }, "name": "area" }, "property": { "type": "Identifier", "start": 2524, "end": 2525, "loc": { "start": { "line": 71, "column": 37 }, "end": { "line": 71, "column": 38 }, "identifierName": "h" }, "name": "h" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 2527, "end": 2530, "loc": { "start": { "line": 71, "column": 40 }, "end": { "line": 71, "column": 43 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 2529, "end": 2530, "loc": { "start": { "line": 71, "column": 42 }, "end": { "line": 71, "column": 43 }, "identifierName": "y" }, "name": "y" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 2532, "end": 3097, "loc": { "start": { "line": 71, "column": 45 }, "end": { "line": 83, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 2551, "end": 2576, "loc": { "start": { "line": 72, "column": 16 }, "end": { "line": 72, "column": 41 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2557, "end": 2575, "loc": { "start": { "line": 72, "column": 22 }, "end": { "line": 72, "column": 40 } }, "id": { "type": "Identifier", "start": 2557, "end": 2562, "loc": { "start": { "line": 72, "column": 22 }, "end": { "line": 72, "column": 27 }, "identifierName": "tileX" }, "name": "tileX" }, "init": { "type": "BinaryExpression", "start": 2565, "end": 2575, "loc": { "start": { "line": 72, "column": 30 }, "end": { "line": 72, "column": 40 } }, "left": { "type": "MemberExpression", "start": 2565, "end": 2571, "loc": { "start": { "line": 72, "column": 30 }, "end": { "line": 72, "column": 36 } }, "object": { "type": "Identifier", "start": 2565, "end": 2569, "loc": { "start": { "line": 72, "column": 30 }, "end": { "line": 72, "column": 34 }, "identifierName": "area" }, "name": "area" }, "property": { "type": "Identifier", "start": 2570, "end": 2571, "loc": { "start": { "line": 72, "column": 35 }, "end": { "line": 72, "column": 36 }, "identifierName": "x" }, "name": "x" }, "computed": false }, "operator": "+", "right": { "type": "Identifier", "start": 2574, "end": 2575, "loc": { "start": { "line": 72, "column": 39 }, "end": { "line": 72, "column": 40 }, "identifierName": "x" }, "name": "x" } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 2594, "end": 2619, "loc": { "start": { "line": 73, "column": 16 }, "end": { "line": 73, "column": 41 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2600, "end": 2618, "loc": { "start": { "line": 73, "column": 22 }, "end": { "line": 73, "column": 40 } }, "id": { "type": "Identifier", "start": 2600, "end": 2605, "loc": { "start": { "line": 73, "column": 22 }, "end": { "line": 73, "column": 27 }, "identifierName": "tileY" }, "name": "tileY" }, "init": { "type": "BinaryExpression", "start": 2608, "end": 2618, "loc": { "start": { "line": 73, "column": 30 }, "end": { "line": 73, "column": 40 } }, "left": { "type": "MemberExpression", "start": 2608, "end": 2614, "loc": { "start": { "line": 73, "column": 30 }, "end": { "line": 73, "column": 36 } }, "object": { "type": "Identifier", "start": 2608, "end": 2612, "loc": { "start": { "line": 73, "column": 30 }, "end": { "line": 73, "column": 34 }, "identifierName": "area" }, "name": "area" }, "property": { "type": "Identifier", "start": 2613, "end": 2614, "loc": { "start": { "line": 73, "column": 35 }, "end": { "line": 73, "column": 36 }, "identifierName": "y" }, "name": "y" }, "computed": false }, "operator": "+", "right": { "type": "Identifier", "start": 2617, "end": 2618, "loc": { "start": { "line": 73, "column": 39 }, "end": { "line": 73, "column": 40 }, "identifierName": "y" }, "name": "y" } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 2637, "end": 2709, "loc": { "start": { "line": 74, "column": 16 }, "end": { "line": 74, "column": 88 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2643, "end": 2708, "loc": { "start": { "line": 74, "column": 22 }, "end": { "line": 74, "column": 87 } }, "id": { "type": "Identifier", "start": 2643, "end": 2649, "loc": { "start": { "line": 74, "column": 22 }, "end": { "line": 74, "column": 28 }, "identifierName": "entity" }, "name": "entity" }, "init": { "type": "CallExpression", "start": 2652, "end": 2708, "loc": { "start": { "line": 74, "column": 31 }, "end": { "line": 74, "column": 87 } }, "callee": { "type": "MemberExpression", "start": 2652, "end": 2683, "loc": { "start": { "line": 74, "column": 31 }, "end": { "line": 74, "column": 62 } }, "object": { "type": "MemberExpression", "start": 2652, "end": 2665, "loc": { "start": { "line": 74, "column": 31 }, "end": { "line": 74, "column": 44 } }, "object": { "type": "MemberExpression", "start": 2652, "end": 2661, "loc": { "start": { "line": 74, "column": 31 }, "end": { "line": 74, "column": 40 } }, "object": { "type": "ThisExpression", "start": 2652, "end": 2656, "loc": { "start": { "line": 74, "column": 31 }, "end": { "line": 74, "column": 35 } } }, "property": { "type": "Identifier", "start": 2657, "end": 2661, "loc": { "start": { "line": 74, "column": 36 }, "end": { "line": 74, "column": 40 }, "identifierName": "root" }, "name": "root" }, "computed": false }, "property": { "type": "Identifier", "start": 2662, "end": 2665, "loc": { "start": { "line": 74, "column": 41 }, "end": { "line": 74, "column": 44 }, "identifierName": "map" }, "name": "map" }, "computed": false }, "property": { "type": "Identifier", "start": 2666, "end": 2683, "loc": { "start": { "line": 74, "column": 45 }, "end": { "line": 74, "column": 62 }, "identifierName": "getLayerContentXY" }, "name": "getLayerContentXY" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 2684, "end": 2689, "loc": { "start": { "line": 74, "column": 63 }, "end": { "line": 74, "column": 68 }, "identifierName": "tileX" }, "name": "tileX" }, { "type": "Identifier", "start": 2691, "end": 2696, "loc": { "start": { "line": 74, "column": 70 }, "end": { "line": 74, "column": 75 }, "identifierName": "tileY" }, "name": "tileY" }, { "type": "StringLiteral", "start": 2698, "end": 2707, "loc": { "start": { "line": 74, "column": 77 }, "end": { "line": 74, "column": 86 } }, "extra": { "rawValue": "regular", "raw": "\"regular\"" }, "value": "regular" } ] } } ], "kind": "const" }, { "type": "IfStatement", "start": 2727, "end": 3082, "loc": { "start": { "line": 75, "column": 16 }, "end": { "line": 82, "column": 17 } }, "test": { "type": "Identifier", "start": 2731, "end": 2737, "loc": { "start": { "line": 75, "column": 20 }, "end": { "line": 75, "column": 26 }, "identifierName": "entity" }, "name": "entity" }, "consequent": { "type": "BlockStatement", "start": 2739, "end": 3082, "loc": { "start": { "line": 75, "column": 28 }, "end": { "line": 82, "column": 17 } }, "body": [ { "type": "VariableDeclaration", "start": 2762, "end": 2815, "loc": { "start": { "line": 76, "column": 20 }, "end": { "line": 76, "column": 73 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2768, "end": 2814, "loc": { "start": { "line": 76, "column": 26 }, "end": { "line": 76, "column": 72 } }, "id": { "type": "Identifier", "start": 2768, "end": 2780, "loc": { "start": { "line": 76, "column": 26 }, "end": { "line": 76, "column": 38 }, "identifierName": "underlayComp" }, "name": "underlayComp" }, "init": { "type": "MemberExpression", "start": 2783, "end": 2814, "loc": { "start": { "line": 76, "column": 41 }, "end": { "line": 76, "column": 72 } }, "object": { "type": "MemberExpression", "start": 2783, "end": 2800, "loc": { "start": { "line": 76, "column": 41 }, "end": { "line": 76, "column": 58 } }, "object": { "type": "Identifier", "start": 2783, "end": 2789, "loc": { "start": { "line": 76, "column": 41 }, "end": { "line": 76, "column": 47 }, "identifierName": "entity" }, "name": "entity" }, "property": { "type": "Identifier", "start": 2790, "end": 2800, "loc": { "start": { "line": 76, "column": 48 }, "end": { "line": 76, "column": 58 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 2801, "end": 2814, "loc": { "start": { "line": 76, "column": 59 }, "end": { "line": 76, "column": 72 }, "identifierName": "BeltUnderlays" }, "name": "BeltUnderlays" }, "computed": false } } ], "kind": "const" }, { "type": "IfStatement", "start": 2837, "end": 3063, "loc": { "start": { "line": 77, "column": 20 }, "end": { "line": 81, "column": 21 } }, "test": { "type": "Identifier", "start": 2841, "end": 2853, "loc": { "start": { "line": 77, "column": 24 }, "end": { "line": 77, "column": 36 }, "identifierName": "underlayComp" }, "name": "underlayComp" }, "consequent": { "type": "BlockStatement", "start": 2855, "end": 3063, "loc": { "start": { "line": 77, "column": 38 }, "end": { "line": 81, "column": 21 } }, "body": [ { "type": "ForStatement", "start": 2882, "end": 3040, "loc": { "start": { "line": 78, "column": 24 }, "end": { "line": 80, "column": 25 } }, "init": { "type": "VariableDeclaration", "start": 2887, "end": 2896, "loc": { "start": { "line": 78, "column": 29 }, "end": { "line": 78, "column": 38 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2891, "end": 2896, "loc": { "start": { "line": 78, "column": 33 }, "end": { "line": 78, "column": 38 } }, "id": { "type": "Identifier", "start": 2891, "end": 2892, "loc": { "start": { "line": 78, "column": 33 }, "end": { "line": 78, "column": 34 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 2895, "end": 2896, "loc": { "start": { "line": 78, "column": 37 }, "end": { "line": 78, "column": 38 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 2898, "end": 2931, "loc": { "start": { "line": 78, "column": 40 }, "end": { "line": 78, "column": 73 } }, "left": { "type": "Identifier", "start": 2898, "end": 2899, "loc": { "start": { "line": 78, "column": 40 }, "end": { "line": 78, "column": 41 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "MemberExpression", "start": 2902, "end": 2931, "loc": { "start": { "line": 78, "column": 44 }, "end": { "line": 78, "column": 73 } }, "object": { "type": "MemberExpression", "start": 2902, "end": 2924, "loc": { "start": { "line": 78, "column": 44 }, "end": { "line": 78, "column": 66 } }, "object": { "type": "Identifier", "start": 2902, "end": 2914, "loc": { "start": { "line": 78, "column": 44 }, "end": { "line": 78, "column": 56 }, "identifierName": "underlayComp" }, "name": "underlayComp" }, "property": { "type": "Identifier", "start": 2915, "end": 2924, "loc": { "start": { "line": 78, "column": 57 }, "end": { "line": 78, "column": 66 }, "identifierName": "underlays" }, "name": "underlays" }, "computed": false }, "property": { "type": "Identifier", "start": 2925, "end": 2931, "loc": { "start": { "line": 78, "column": 67 }, "end": { "line": 78, "column": 73 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 2933, "end": 2936, "loc": { "start": { "line": 78, "column": 75 }, "end": { "line": 78, "column": 78 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 2935, "end": 2936, "loc": { "start": { "line": 78, "column": 77 }, "end": { "line": 78, "column": 78 }, "identifierName": "i" }, "name": "i" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 2938, "end": 3040, "loc": { "start": { "line": 78, "column": 80 }, "end": { "line": 80, "column": 25 } }, "body": [ { "type": "ExpressionStatement", "start": 2969, "end": 3013, "loc": { "start": { "line": 79, "column": 28 }, "end": { "line": 79, "column": 72 } }, "expression": { "type": "AssignmentExpression", "start": 2969, "end": 3012, "loc": { "start": { "line": 79, "column": 28 }, "end": { "line": 79, "column": 71 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 2969, "end": 3005, "loc": { "start": { "line": 79, "column": 28 }, "end": { "line": 79, "column": 64 } }, "object": { "type": "MemberExpression", "start": 2969, "end": 2994, "loc": { "start": { "line": 79, "column": 28 }, "end": { "line": 79, "column": 53 } }, "object": { "type": "MemberExpression", "start": 2969, "end": 2991, "loc": { "start": { "line": 79, "column": 28 }, "end": { "line": 79, "column": 50 } }, "object": { "type": "Identifier", "start": 2969, "end": 2981, "loc": { "start": { "line": 79, "column": 28 }, "end": { "line": 79, "column": 40 }, "identifierName": "underlayComp" }, "name": "underlayComp" }, "property": { "type": "Identifier", "start": 2982, "end": 2991, "loc": { "start": { "line": 79, "column": 41 }, "end": { "line": 79, "column": 50 }, "identifierName": "underlays" }, "name": "underlays" }, "computed": false }, "property": { "type": "Identifier", "start": 2992, "end": 2993, "loc": { "start": { "line": 79, "column": 51 }, "end": { "line": 79, "column": 52 }, "identifierName": "i" }, "name": "i" }, "computed": true }, "property": { "type": "Identifier", "start": 2995, "end": 3005, "loc": { "start": { "line": 79, "column": 54 }, "end": { "line": 79, "column": 64 }, "identifierName": "cachedType" }, "name": "cachedType" }, "computed": false }, "right": { "type": "NullLiteral", "start": 3008, "end": 3012, "loc": { "start": { "line": 79, "column": 67 }, "end": { "line": 79, "column": 71 } } } } } ], "directives": [] } } ], "directives": [] }, "alternate": null } ], "directives": [] }, "alternate": null } ], "directives": [] } } ], "directives": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Called when an area changed - Resets all caches in the given area\r\n * @param {Rectangle} area\r\n ", "start": 2291, "end": 2409, "loc": { "start": { "line": 65, "column": 4 }, "end": { "line": 68, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if a given tile is connected and has an acceptor\r\n * @param {Vector} tile\r\n * @param {enumDirection} fromDirection\r\n * @returns {boolean}\r\n ", "start": 3123, "end": 3300, "loc": { "start": { "line": 87, "column": 4 }, "end": { "line": 92, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 3306, "end": 4784, "loc": { "start": { "line": 93, "column": 4 }, "end": { "line": 131, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 3306, "end": 3330, "loc": { "start": { "line": 93, "column": 4 }, "end": { "line": 93, "column": 28 }, "identifierName": "checkIsAcceptorConnected" }, "name": "checkIsAcceptorConnected", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 3331, "end": 3335, "loc": { "start": { "line": 93, "column": 29 }, "end": { "line": 93, "column": 33 }, "identifierName": "tile" }, "name": "tile" }, { "type": "Identifier", "start": 3337, "end": 3350, "loc": { "start": { "line": 93, "column": 35 }, "end": { "line": 93, "column": 48 }, "identifierName": "fromDirection" }, "name": "fromDirection" } ], "body": { "type": "BlockStatement", "start": 3352, "end": 4784, "loc": { "start": { "line": 93, "column": 50 }, "end": { "line": 131, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 3363, "end": 3439, "loc": { "start": { "line": 94, "column": 8 }, "end": { "line": 94, "column": 84 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3369, "end": 3438, "loc": { "start": { "line": 94, "column": 14 }, "end": { "line": 94, "column": 83 } }, "id": { "type": "Identifier", "start": 3369, "end": 3377, "loc": { "start": { "line": 94, "column": 14 }, "end": { "line": 94, "column": 22 }, "identifierName": "contents" }, "name": "contents" }, "init": { "type": "CallExpression", "start": 3380, "end": 3438, "loc": { "start": { "line": 94, "column": 25 }, "end": { "line": 94, "column": 83 } }, "callee": { "type": "MemberExpression", "start": 3380, "end": 3411, "loc": { "start": { "line": 94, "column": 25 }, "end": { "line": 94, "column": 56 } }, "object": { "type": "MemberExpression", "start": 3380, "end": 3393, "loc": { "start": { "line": 94, "column": 25 }, "end": { "line": 94, "column": 38 } }, "object": { "type": "MemberExpression", "start": 3380, "end": 3389, "loc": { "start": { "line": 94, "column": 25 }, "end": { "line": 94, "column": 34 } }, "object": { "type": "ThisExpression", "start": 3380, "end": 3384, "loc": { "start": { "line": 94, "column": 25 }, "end": { "line": 94, "column": 29 } } }, "property": { "type": "Identifier", "start": 3385, "end": 3389, "loc": { "start": { "line": 94, "column": 30 }, "end": { "line": 94, "column": 34 }, "identifierName": "root" }, "name": "root" }, "computed": false }, "property": { "type": "Identifier", "start": 3390, "end": 3393, "loc": { "start": { "line": 94, "column": 35 }, "end": { "line": 94, "column": 38 }, "identifierName": "map" }, "name": "map" }, "computed": false }, "property": { "type": "Identifier", "start": 3394, "end": 3411, "loc": { "start": { "line": 94, "column": 39 }, "end": { "line": 94, "column": 56 }, "identifierName": "getLayerContentXY" }, "name": "getLayerContentXY" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 3412, "end": 3418, "loc": { "start": { "line": 94, "column": 57 }, "end": { "line": 94, "column": 63 } }, "object": { "type": "Identifier", "start": 3412, "end": 3416, "loc": { "start": { "line": 94, "column": 57 }, "end": { "line": 94, "column": 61 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 3417, "end": 3418, "loc": { "start": { "line": 94, "column": 62 }, "end": { "line": 94, "column": 63 }, "identifierName": "x" }, "name": "x" }, "computed": false }, { "type": "MemberExpression", "start": 3420, "end": 3426, "loc": { "start": { "line": 94, "column": 65 }, "end": { "line": 94, "column": 71 } }, "object": { "type": "Identifier", "start": 3420, "end": 3424, "loc": { "start": { "line": 94, "column": 65 }, "end": { "line": 94, "column": 69 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 3425, "end": 3426, "loc": { "start": { "line": 94, "column": 70 }, "end": { "line": 94, "column": 71 }, "identifierName": "y" }, "name": "y" }, "computed": false }, { "type": "StringLiteral", "start": 3428, "end": 3437, "loc": { "start": { "line": 94, "column": 73 }, "end": { "line": 94, "column": 82 } }, "extra": { "rawValue": "regular", "raw": "\"regular\"" }, "value": "regular" } ] } } ], "kind": "const" }, { "type": "IfStatement", "start": 3449, "end": 3503, "loc": { "start": { "line": 95, "column": 8 }, "end": { "line": 97, "column": 9 } }, "test": { "type": "UnaryExpression", "start": 3453, "end": 3462, "loc": { "start": { "line": 95, "column": 12 }, "end": { "line": 95, "column": 21 } }, "operator": "!", "prefix": true, "argument": { "type": "Identifier", "start": 3454, "end": 3462, "loc": { "start": { "line": 95, "column": 13 }, "end": { "line": 95, "column": 21 }, "identifierName": "contents" }, "name": "contents" }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 3464, "end": 3503, "loc": { "start": { "line": 95, "column": 23 }, "end": { "line": 97, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 3479, "end": 3492, "loc": { "start": { "line": 96, "column": 12 }, "end": { "line": 96, "column": 25 } }, "argument": { "type": "BooleanLiteral", "start": 3486, "end": 3491, "loc": { "start": { "line": 96, "column": 19 }, "end": { "line": 96, "column": 24 } }, "value": false } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 3515, "end": 3570, "loc": { "start": { "line": 99, "column": 8 }, "end": { "line": 99, "column": 63 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3521, "end": 3569, "loc": { "start": { "line": 99, "column": 14 }, "end": { "line": 99, "column": 62 } }, "id": { "type": "Identifier", "start": 3521, "end": 3531, "loc": { "start": { "line": 99, "column": 14 }, "end": { "line": 99, "column": 24 }, "identifierName": "staticComp" }, "name": "staticComp" }, "init": { "type": "MemberExpression", "start": 3534, "end": 3569, "loc": { "start": { "line": 99, "column": 27 }, "end": { "line": 99, "column": 62 } }, "object": { "type": "MemberExpression", "start": 3534, "end": 3553, "loc": { "start": { "line": 99, "column": 27 }, "end": { "line": 99, "column": 46 } }, "object": { "type": "Identifier", "start": 3534, "end": 3542, "loc": { "start": { "line": 99, "column": 27 }, "end": { "line": 99, "column": 35 }, "identifierName": "contents" }, "name": "contents" }, "property": { "type": "Identifier", "start": 3543, "end": 3553, "loc": { "start": { "line": 99, "column": 36 }, "end": { "line": 99, "column": 46 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 3554, "end": 3569, "loc": { "start": { "line": 99, "column": 47 }, "end": { "line": 99, "column": 62 }, "identifierName": "StaticMapEntity" }, "name": "StaticMapEntity" }, "computed": false } } ], "kind": "const", "trailingComments": [ { "type": "CommentLine", "value": " Check if its a belt, since then its simple", "start": 3582, "end": 3627, "loc": { "start": { "line": 101, "column": 8 }, "end": { "line": 101, "column": 53 } } } ] }, { "type": "VariableDeclaration", "start": 3637, "end": 3679, "loc": { "start": { "line": 102, "column": 8 }, "end": { "line": 102, "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3643, "end": 3678, "loc": { "start": { "line": 102, "column": 14 }, "end": { "line": 102, "column": 49 } }, "id": { "type": "Identifier", "start": 3643, "end": 3651, "loc": { "start": { "line": 102, "column": 14 }, "end": { "line": 102, "column": 22 }, "identifierName": "beltComp" }, "name": "beltComp", "leadingComments": null }, "init": { "type": "MemberExpression", "start": 3654, "end": 3678, "loc": { "start": { "line": 102, "column": 25 }, "end": { "line": 102, "column": 49 } }, "object": { "type": "MemberExpression", "start": 3654, "end": 3673, "loc": { "start": { "line": 102, "column": 25 }, "end": { "line": 102, "column": 44 } }, "object": { "type": "Identifier", "start": 3654, "end": 3662, "loc": { "start": { "line": 102, "column": 25 }, "end": { "line": 102, "column": 33 }, "identifierName": "contents" }, "name": "contents" }, "property": { "type": "Identifier", "start": 3663, "end": 3673, "loc": { "start": { "line": 102, "column": 34 }, "end": { "line": 102, "column": 44 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 3674, "end": 3678, "loc": { "start": { "line": 102, "column": 45 }, "end": { "line": 102, "column": 49 }, "identifierName": "Belt" }, "name": "Belt" }, "computed": false }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Check if its a belt, since then its simple", "start": 3582, "end": 3627, "loc": { "start": { "line": 101, "column": 8 }, "end": { "line": 101, "column": 53 } } } ] }, { "type": "IfStatement", "start": 3689, "end": 3809, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 105, "column": 9 } }, "test": { "type": "Identifier", "start": 3693, "end": 3701, "loc": { "start": { "line": 103, "column": 12 }, "end": { "line": 103, "column": 20 }, "identifierName": "beltComp" }, "name": "beltComp" }, "consequent": { "type": "BlockStatement", "start": 3703, "end": 3809, "loc": { "start": { "line": 103, "column": 22 }, "end": { "line": 105, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 3718, "end": 3798, "loc": { "start": { "line": 104, "column": 12 }, "end": { "line": 104, "column": 92 } }, "argument": { "type": "BinaryExpression", "start": 3725, "end": 3797, "loc": { "start": { "line": 104, "column": 19 }, "end": { "line": 104, "column": 91 } }, "left": { "type": "CallExpression", "start": 3725, "end": 3779, "loc": { "start": { "line": 104, "column": 19 }, "end": { "line": 104, "column": 73 } }, "callee": { "type": "MemberExpression", "start": 3725, "end": 3757, "loc": { "start": { "line": 104, "column": 19 }, "end": { "line": 104, "column": 51 } }, "object": { "type": "Identifier", "start": 3725, "end": 3735, "loc": { "start": { "line": 104, "column": 19 }, "end": { "line": 104, "column": 29 }, "identifierName": "staticComp" }, "name": "staticComp" }, "property": { "type": "Identifier", "start": 3736, "end": 3757, "loc": { "start": { "line": 104, "column": 30 }, "end": { "line": 104, "column": 51 }, "identifierName": "localDirectionToWorld" }, "name": "localDirectionToWorld" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 3758, "end": 3778, "loc": { "start": { "line": 104, "column": 52 }, "end": { "line": 104, "column": 72 } }, "object": { "type": "Identifier", "start": 3758, "end": 3771, "loc": { "start": { "line": 104, "column": 52 }, "end": { "line": 104, "column": 65 }, "identifierName": "enumDirection" }, "name": "enumDirection" }, "property": { "type": "Identifier", "start": 3772, "end": 3778, "loc": { "start": { "line": 104, "column": 66 }, "end": { "line": 104, "column": 72 }, "identifierName": "bottom" }, "name": "bottom" }, "computed": false } ] }, "operator": "===", "right": { "type": "Identifier", "start": 3784, "end": 3797, "loc": { "start": { "line": 104, "column": 78 }, "end": { "line": 104, "column": 91 }, "identifierName": "fromDirection" }, "name": "fromDirection" } } } ], "directives": [], "trailingComments": null }, "alternate": null, "trailingComments": [ { "type": "CommentLine", "value": " Check if there's an item acceptor", "start": 3821, "end": 3857, "loc": { "start": { "line": 107, "column": 8 }, "end": { "line": 107, "column": 44 } } } ] }, { "type": "VariableDeclaration", "start": 3867, "end": 3921, "loc": { "start": { "line": 108, "column": 8 }, "end": { "line": 108, "column": 62 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3873, "end": 3920, "loc": { "start": { "line": 108, "column": 14 }, "end": { "line": 108, "column": 61 } }, "id": { "type": "Identifier", "start": 3873, "end": 3885, "loc": { "start": { "line": 108, "column": 14 }, "end": { "line": 108, "column": 26 }, "identifierName": "acceptorComp" }, "name": "acceptorComp", "leadingComments": null }, "init": { "type": "MemberExpression", "start": 3888, "end": 3920, "loc": { "start": { "line": 108, "column": 29 }, "end": { "line": 108, "column": 61 } }, "object": { "type": "MemberExpression", "start": 3888, "end": 3907, "loc": { "start": { "line": 108, "column": 29 }, "end": { "line": 108, "column": 48 } }, "object": { "type": "Identifier", "start": 3888, "end": 3896, "loc": { "start": { "line": 108, "column": 29 }, "end": { "line": 108, "column": 37 }, "identifierName": "contents" }, "name": "contents" }, "property": { "type": "Identifier", "start": 3897, "end": 3907, "loc": { "start": { "line": 108, "column": 38 }, "end": { "line": 108, "column": 48 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 3908, "end": 3920, "loc": { "start": { "line": 108, "column": 49 }, "end": { "line": 108, "column": 61 }, "identifierName": "ItemAcceptor" }, "name": "ItemAcceptor" }, "computed": false }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Check if there's an item acceptor", "start": 3821, "end": 3857, "loc": { "start": { "line": 107, "column": 8 }, "end": { "line": 107, "column": 44 } } } ] }, { "type": "IfStatement", "start": 3931, "end": 4752, "loc": { "start": { "line": 109, "column": 8 }, "end": { "line": 128, "column": 9 } }, "test": { "type": "Identifier", "start": 3935, "end": 3947, "loc": { "start": { "line": 109, "column": 12 }, "end": { "line": 109, "column": 24 }, "identifierName": "acceptorComp" }, "name": "acceptorComp" }, "consequent": { "type": "BlockStatement", "start": 3949, "end": 4752, "loc": { "start": { "line": 109, "column": 26 }, "end": { "line": 128, "column": 9 } }, "body": [ { "type": "ForStatement", "start": 4020, "end": 4741, "loc": { "start": { "line": 111, "column": 12 }, "end": { "line": 127, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 4025, "end": 4034, "loc": { "start": { "line": 111, "column": 17 }, "end": { "line": 111, "column": 26 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4029, "end": 4034, "loc": { "start": { "line": 111, "column": 21 }, "end": { "line": 111, "column": 26 } }, "id": { "type": "Identifier", "start": 4029, "end": 4030, "loc": { "start": { "line": 111, "column": 21 }, "end": { "line": 111, "column": 22 }, "identifierName": "i" }, "name": "i", "leadingComments": null }, "init": { "type": "NumericLiteral", "start": 4033, "end": 4034, "loc": { "start": { "line": 111, "column": 25 }, "end": { "line": 111, "column": 26 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "leadingComments": null } ], "kind": "let", "leadingComments": null }, "test": { "type": "BinaryExpression", "start": 4036, "end": 4065, "loc": { "start": { "line": 111, "column": 28 }, "end": { "line": 111, "column": 57 } }, "left": { "type": "Identifier", "start": 4036, "end": 4037, "loc": { "start": { "line": 111, "column": 28 }, "end": { "line": 111, "column": 29 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "MemberExpression", "start": 4040, "end": 4065, "loc": { "start": { "line": 111, "column": 32 }, "end": { "line": 111, "column": 57 } }, "object": { "type": "MemberExpression", "start": 4040, "end": 4058, "loc": { "start": { "line": 111, "column": 32 }, "end": { "line": 111, "column": 50 } }, "object": { "type": "Identifier", "start": 4040, "end": 4052, "loc": { "start": { "line": 111, "column": 32 }, "end": { "line": 111, "column": 44 }, "identifierName": "acceptorComp" }, "name": "acceptorComp" }, "property": { "type": "Identifier", "start": 4053, "end": 4058, "loc": { "start": { "line": 111, "column": 45 }, "end": { "line": 111, "column": 50 }, "identifierName": "slots" }, "name": "slots" }, "computed": false }, "property": { "type": "Identifier", "start": 4059, "end": 4065, "loc": { "start": { "line": 111, "column": 51 }, "end": { "line": 111, "column": 57 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 4067, "end": 4070, "loc": { "start": { "line": 111, "column": 59 }, "end": { "line": 111, "column": 62 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 4069, "end": 4070, "loc": { "start": { "line": 111, "column": 61 }, "end": { "line": 111, "column": 62 }, "identifierName": "i" }, "name": "i" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 4072, "end": 4741, "loc": { "start": { "line": 111, "column": 64 }, "end": { "line": 127, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 4091, "end": 4126, "loc": { "start": { "line": 112, "column": 16 }, "end": { "line": 112, "column": 51 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4097, "end": 4125, "loc": { "start": { "line": 112, "column": 22 }, "end": { "line": 112, "column": 50 } }, "id": { "type": "Identifier", "start": 4097, "end": 4101, "loc": { "start": { "line": 112, "column": 22 }, "end": { "line": 112, "column": 26 }, "identifierName": "slot" }, "name": "slot" }, "init": { "type": "MemberExpression", "start": 4104, "end": 4125, "loc": { "start": { "line": 112, "column": 29 }, "end": { "line": 112, "column": 50 } }, "object": { "type": "MemberExpression", "start": 4104, "end": 4122, "loc": { "start": { "line": 112, "column": 29 }, "end": { "line": 112, "column": 47 } }, "object": { "type": "Identifier", "start": 4104, "end": 4116, "loc": { "start": { "line": 112, "column": 29 }, "end": { "line": 112, "column": 41 }, "identifierName": "acceptorComp" }, "name": "acceptorComp" }, "property": { "type": "Identifier", "start": 4117, "end": 4122, "loc": { "start": { "line": 112, "column": 42 }, "end": { "line": 112, "column": 47 }, "identifierName": "slots" }, "name": "slots" }, "computed": false }, "property": { "type": "Identifier", "start": 4123, "end": 4124, "loc": { "start": { "line": 112, "column": 48 }, "end": { "line": 112, "column": 49 }, "identifierName": "i" }, "name": "i" }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 4144, "end": 4199, "loc": { "start": { "line": 113, "column": 16 }, "end": { "line": 113, "column": 71 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4150, "end": 4198, "loc": { "start": { "line": 113, "column": 22 }, "end": { "line": 113, "column": 70 } }, "id": { "type": "Identifier", "start": 4150, "end": 4158, "loc": { "start": { "line": 113, "column": 22 }, "end": { "line": 113, "column": 30 }, "identifierName": "slotTile" }, "name": "slotTile" }, "init": { "type": "CallExpression", "start": 4161, "end": 4198, "loc": { "start": { "line": 113, "column": 33 }, "end": { "line": 113, "column": 70 } }, "callee": { "type": "MemberExpression", "start": 4161, "end": 4188, "loc": { "start": { "line": 113, "column": 33 }, "end": { "line": 113, "column": 60 } }, "object": { "type": "Identifier", "start": 4161, "end": 4171, "loc": { "start": { "line": 113, "column": 33 }, "end": { "line": 113, "column": 43 }, "identifierName": "staticComp" }, "name": "staticComp" }, "property": { "type": "Identifier", "start": 4172, "end": 4188, "loc": { "start": { "line": 113, "column": 44 }, "end": { "line": 113, "column": 60 }, "identifierName": "localTileToWorld" }, "name": "localTileToWorld" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 4189, "end": 4197, "loc": { "start": { "line": 113, "column": 61 }, "end": { "line": 113, "column": 69 } }, "object": { "type": "Identifier", "start": 4189, "end": 4193, "loc": { "start": { "line": 113, "column": 61 }, "end": { "line": 113, "column": 65 }, "identifierName": "slot" }, "name": "slot" }, "property": { "type": "Identifier", "start": 4194, "end": 4197, "loc": { "start": { "line": 113, "column": 66 }, "end": { "line": 113, "column": 69 }, "identifierName": "pos" }, "name": "pos" }, "computed": false } ] } } ], "kind": "const", "trailingComments": [ { "type": "CommentLine", "value": " Step 1: Check if the tile matches", "start": 4219, "end": 4255, "loc": { "start": { "line": 115, "column": 16 }, "end": { "line": 115, "column": 52 } } } ] }, { "type": "IfStatement", "start": 4273, "end": 4352, "loc": { "start": { "line": 116, "column": 16 }, "end": { "line": 118, "column": 17 } }, "test": { "type": "UnaryExpression", "start": 4277, "end": 4299, "loc": { "start": { "line": 116, "column": 20 }, "end": { "line": 116, "column": 42 } }, "operator": "!", "prefix": true, "argument": { "type": "CallExpression", "start": 4278, "end": 4299, "loc": { "start": { "line": 116, "column": 21 }, "end": { "line": 116, "column": 42 } }, "callee": { "type": "MemberExpression", "start": 4278, "end": 4293, "loc": { "start": { "line": 116, "column": 21 }, "end": { "line": 116, "column": 36 } }, "object": { "type": "Identifier", "start": 4278, "end": 4286, "loc": { "start": { "line": 116, "column": 21 }, "end": { "line": 116, "column": 29 }, "identifierName": "slotTile" }, "name": "slotTile", "leadingComments": null }, "property": { "type": "Identifier", "start": 4287, "end": 4293, "loc": { "start": { "line": 116, "column": 30 }, "end": { "line": 116, "column": 36 }, "identifierName": "equals" }, "name": "equals" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "Identifier", "start": 4294, "end": 4298, "loc": { "start": { "line": 116, "column": 37 }, "end": { "line": 116, "column": 41 }, "identifierName": "tile" }, "name": "tile" } ], "leadingComments": null }, "extra": { "parenthesizedArgument": false }, "leadingComments": null }, "consequent": { "type": "BlockStatement", "start": 4301, "end": 4352, "loc": { "start": { "line": 116, "column": 44 }, "end": { "line": 118, "column": 17 } }, "body": [ { "type": "ContinueStatement", "start": 4324, "end": 4333, "loc": { "start": { "line": 117, "column": 20 }, "end": { "line": 117, "column": 29 } }, "label": null } ], "directives": [], "trailingComments": null }, "alternate": null, "leadingComments": [ { "type": "CommentLine", "value": " Step 1: Check if the tile matches", "start": 4219, "end": 4255, "loc": { "start": { "line": 115, "column": 16 }, "end": { "line": 115, "column": 52 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " Step 2: Check if any of the directions matches", "start": 4372, "end": 4421, "loc": { "start": { "line": 120, "column": 16 }, "end": { "line": 120, "column": 65 } } } ] }, { "type": "ForStatement", "start": 4439, "end": 4726, "loc": { "start": { "line": 121, "column": 16 }, "end": { "line": 126, "column": 17 } }, "init": { "type": "VariableDeclaration", "start": 4444, "end": 4453, "loc": { "start": { "line": 121, "column": 21 }, "end": { "line": 121, "column": 30 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4448, "end": 4453, "loc": { "start": { "line": 121, "column": 25 }, "end": { "line": 121, "column": 30 } }, "id": { "type": "Identifier", "start": 4448, "end": 4449, "loc": { "start": { "line": 121, "column": 25 }, "end": { "line": 121, "column": 26 }, "identifierName": "j" }, "name": "j", "leadingComments": null }, "init": { "type": "NumericLiteral", "start": 4452, "end": 4453, "loc": { "start": { "line": 121, "column": 29 }, "end": { "line": 121, "column": 30 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "leadingComments": null } ], "kind": "let", "leadingComments": null }, "test": { "type": "BinaryExpression", "start": 4455, "end": 4481, "loc": { "start": { "line": 121, "column": 32 }, "end": { "line": 121, "column": 58 } }, "left": { "type": "Identifier", "start": 4455, "end": 4456, "loc": { "start": { "line": 121, "column": 32 }, "end": { "line": 121, "column": 33 }, "identifierName": "j" }, "name": "j" }, "operator": "<", "right": { "type": "MemberExpression", "start": 4459, "end": 4481, "loc": { "start": { "line": 121, "column": 36 }, "end": { "line": 121, "column": 58 } }, "object": { "type": "MemberExpression", "start": 4459, "end": 4474, "loc": { "start": { "line": 121, "column": 36 }, "end": { "line": 121, "column": 51 } }, "object": { "type": "Identifier", "start": 4459, "end": 4463, "loc": { "start": { "line": 121, "column": 36 }, "end": { "line": 121, "column": 40 }, "identifierName": "slot" }, "name": "slot" }, "property": { "type": "Identifier", "start": 4464, "end": 4474, "loc": { "start": { "line": 121, "column": 41 }, "end": { "line": 121, "column": 51 }, "identifierName": "directions" }, "name": "directions" }, "computed": false }, "property": { "type": "Identifier", "start": 4475, "end": 4481, "loc": { "start": { "line": 121, "column": 52 }, "end": { "line": 121, "column": 58 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 4483, "end": 4486, "loc": { "start": { "line": 121, "column": 60 }, "end": { "line": 121, "column": 63 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 4485, "end": 4486, "loc": { "start": { "line": 121, "column": 62 }, "end": { "line": 121, "column": 63 }, "identifierName": "j" }, "name": "j" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 4488, "end": 4726, "loc": { "start": { "line": 121, "column": 65 }, "end": { "line": 126, "column": 17 } }, "body": [ { "type": "VariableDeclaration", "start": 4511, "end": 4586, "loc": { "start": { "line": 122, "column": 20 }, "end": { "line": 122, "column": 95 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4517, "end": 4585, "loc": { "start": { "line": 122, "column": 26 }, "end": { "line": 122, "column": 94 } }, "id": { "type": "Identifier", "start": 4517, "end": 4530, "loc": { "start": { "line": 122, "column": 26 }, "end": { "line": 122, "column": 39 }, "identifierName": "slotDirection" }, "name": "slotDirection" }, "init": { "type": "CallExpression", "start": 4533, "end": 4585, "loc": { "start": { "line": 122, "column": 42 }, "end": { "line": 122, "column": 94 } }, "callee": { "type": "MemberExpression", "start": 4533, "end": 4565, "loc": { "start": { "line": 122, "column": 42 }, "end": { "line": 122, "column": 74 } }, "object": { "type": "Identifier", "start": 4533, "end": 4543, "loc": { "start": { "line": 122, "column": 42 }, "end": { "line": 122, "column": 52 }, "identifierName": "staticComp" }, "name": "staticComp" }, "property": { "type": "Identifier", "start": 4544, "end": 4565, "loc": { "start": { "line": 122, "column": 53 }, "end": { "line": 122, "column": 74 }, "identifierName": "localDirectionToWorld" }, "name": "localDirectionToWorld" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 4566, "end": 4584, "loc": { "start": { "line": 122, "column": 75 }, "end": { "line": 122, "column": 93 } }, "object": { "type": "MemberExpression", "start": 4566, "end": 4581, "loc": { "start": { "line": 122, "column": 75 }, "end": { "line": 122, "column": 90 } }, "object": { "type": "Identifier", "start": 4566, "end": 4570, "loc": { "start": { "line": 122, "column": 75 }, "end": { "line": 122, "column": 79 }, "identifierName": "slot" }, "name": "slot" }, "property": { "type": "Identifier", "start": 4571, "end": 4581, "loc": { "start": { "line": 122, "column": 80 }, "end": { "line": 122, "column": 90 }, "identifierName": "directions" }, "name": "directions" }, "computed": false }, "property": { "type": "Identifier", "start": 4582, "end": 4583, "loc": { "start": { "line": 122, "column": 91 }, "end": { "line": 122, "column": 92 }, "identifierName": "j" }, "name": "j" }, "computed": true } ] } } ], "kind": "const" }, { "type": "IfStatement", "start": 4608, "end": 4707, "loc": { "start": { "line": 123, "column": 20 }, "end": { "line": 125, "column": 21 } }, "test": { "type": "BinaryExpression", "start": 4612, "end": 4643, "loc": { "start": { "line": 123, "column": 24 }, "end": { "line": 123, "column": 55 } }, "left": { "type": "Identifier", "start": 4612, "end": 4625, "loc": { "start": { "line": 123, "column": 24 }, "end": { "line": 123, "column": 37 }, "identifierName": "slotDirection" }, "name": "slotDirection" }, "operator": "===", "right": { "type": "Identifier", "start": 4630, "end": 4643, "loc": { "start": { "line": 123, "column": 42 }, "end": { "line": 123, "column": 55 }, "identifierName": "fromDirection" }, "name": "fromDirection" } }, "consequent": { "type": "BlockStatement", "start": 4645, "end": 4707, "loc": { "start": { "line": 123, "column": 57 }, "end": { "line": 125, "column": 21 } }, "body": [ { "type": "ReturnStatement", "start": 4672, "end": 4684, "loc": { "start": { "line": 124, "column": 24 }, "end": { "line": 124, "column": 36 } }, "argument": { "type": "BooleanLiteral", "start": 4679, "end": 4683, "loc": { "start": { "line": 124, "column": 31 }, "end": { "line": 124, "column": 35 } }, "value": true } } ], "directives": [] }, "alternate": null } ], "directives": [] }, "leadingComments": [ { "type": "CommentLine", "value": " Step 2: Check if any of the directions matches", "start": 4372, "end": 4421, "loc": { "start": { "line": 120, "column": 16 }, "end": { "line": 120, "column": 65 } } } ] } ], "directives": [] }, "leadingComments": [ { "type": "CommentLine", "value": " Check each slot to see if its connected", "start": 3964, "end": 4006, "loc": { "start": { "line": 110, "column": 12 }, "end": { "line": 110, "column": 54 } } } ] } ], "directives": [] }, "alternate": null }, { "type": "ReturnStatement", "start": 4764, "end": 4777, "loc": { "start": { "line": 130, "column": 8 }, "end": { "line": 130, "column": 21 } }, "argument": { "type": "BooleanLiteral", "start": 4771, "end": 4776, "loc": { "start": { "line": 130, "column": 15 }, "end": { "line": 130, "column": 20 } }, "value": false } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if a given tile is connected and has an acceptor\r\n * @param {Vector} tile\r\n * @param {enumDirection} fromDirection\r\n * @returns {boolean}\r\n ", "start": 3123, "end": 3300, "loc": { "start": { "line": 87, "column": 4 }, "end": { "line": 92, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if a given tile is connected and has an ejector\r\n * @param {Vector} tile\r\n * @param {enumDirection} toDirection\r\n * @returns {boolean}\r\n ", "start": 4792, "end": 4966, "loc": { "start": { "line": 133, "column": 4 }, "end": { "line": 138, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 4972, "end": 6308, "loc": { "start": { "line": 139, "column": 4 }, "end": { "line": 175, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 4972, "end": 4995, "loc": { "start": { "line": 139, "column": 4 }, "end": { "line": 139, "column": 27 }, "identifierName": "checkIsEjectorConnected" }, "name": "checkIsEjectorConnected", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 4996, "end": 5000, "loc": { "start": { "line": 139, "column": 28 }, "end": { "line": 139, "column": 32 }, "identifierName": "tile" }, "name": "tile" }, { "type": "Identifier", "start": 5002, "end": 5013, "loc": { "start": { "line": 139, "column": 34 }, "end": { "line": 139, "column": 45 }, "identifierName": "toDirection" }, "name": "toDirection" } ], "body": { "type": "BlockStatement", "start": 5015, "end": 6308, "loc": { "start": { "line": 139, "column": 47 }, "end": { "line": 175, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 5026, "end": 5102, "loc": { "start": { "line": 140, "column": 8 }, "end": { "line": 140, "column": 84 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5032, "end": 5101, "loc": { "start": { "line": 140, "column": 14 }, "end": { "line": 140, "column": 83 } }, "id": { "type": "Identifier", "start": 5032, "end": 5040, "loc": { "start": { "line": 140, "column": 14 }, "end": { "line": 140, "column": 22 }, "identifierName": "contents" }, "name": "contents" }, "init": { "type": "CallExpression", "start": 5043, "end": 5101, "loc": { "start": { "line": 140, "column": 25 }, "end": { "line": 140, "column": 83 } }, "callee": { "type": "MemberExpression", "start": 5043, "end": 5074, "loc": { "start": { "line": 140, "column": 25 }, "end": { "line": 140, "column": 56 } }, "object": { "type": "MemberExpression", "start": 5043, "end": 5056, "loc": { "start": { "line": 140, "column": 25 }, "end": { "line": 140, "column": 38 } }, "object": { "type": "MemberExpression", "start": 5043, "end": 5052, "loc": { "start": { "line": 140, "column": 25 }, "end": { "line": 140, "column": 34 } }, "object": { "type": "ThisExpression", "start": 5043, "end": 5047, "loc": { "start": { "line": 140, "column": 25 }, "end": { "line": 140, "column": 29 } } }, "property": { "type": "Identifier", "start": 5048, "end": 5052, "loc": { "start": { "line": 140, "column": 30 }, "end": { "line": 140, "column": 34 }, "identifierName": "root" }, "name": "root" }, "computed": false }, "property": { "type": "Identifier", "start": 5053, "end": 5056, "loc": { "start": { "line": 140, "column": 35 }, "end": { "line": 140, "column": 38 }, "identifierName": "map" }, "name": "map" }, "computed": false }, "property": { "type": "Identifier", "start": 5057, "end": 5074, "loc": { "start": { "line": 140, "column": 39 }, "end": { "line": 140, "column": 56 }, "identifierName": "getLayerContentXY" }, "name": "getLayerContentXY" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 5075, "end": 5081, "loc": { "start": { "line": 140, "column": 57 }, "end": { "line": 140, "column": 63 } }, "object": { "type": "Identifier", "start": 5075, "end": 5079, "loc": { "start": { "line": 140, "column": 57 }, "end": { "line": 140, "column": 61 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 5080, "end": 5081, "loc": { "start": { "line": 140, "column": 62 }, "end": { "line": 140, "column": 63 }, "identifierName": "x" }, "name": "x" }, "computed": false }, { "type": "MemberExpression", "start": 5083, "end": 5089, "loc": { "start": { "line": 140, "column": 65 }, "end": { "line": 140, "column": 71 } }, "object": { "type": "Identifier", "start": 5083, "end": 5087, "loc": { "start": { "line": 140, "column": 65 }, "end": { "line": 140, "column": 69 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 5088, "end": 5089, "loc": { "start": { "line": 140, "column": 70 }, "end": { "line": 140, "column": 71 }, "identifierName": "y" }, "name": "y" }, "computed": false }, { "type": "StringLiteral", "start": 5091, "end": 5100, "loc": { "start": { "line": 140, "column": 73 }, "end": { "line": 140, "column": 82 } }, "extra": { "rawValue": "regular", "raw": "\"regular\"" }, "value": "regular" } ] } } ], "kind": "const" }, { "type": "IfStatement", "start": 5112, "end": 5166, "loc": { "start": { "line": 141, "column": 8 }, "end": { "line": 143, "column": 9 } }, "test": { "type": "UnaryExpression", "start": 5116, "end": 5125, "loc": { "start": { "line": 141, "column": 12 }, "end": { "line": 141, "column": 21 } }, "operator": "!", "prefix": true, "argument": { "type": "Identifier", "start": 5117, "end": 5125, "loc": { "start": { "line": 141, "column": 13 }, "end": { "line": 141, "column": 21 }, "identifierName": "contents" }, "name": "contents" }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 5127, "end": 5166, "loc": { "start": { "line": 141, "column": 23 }, "end": { "line": 143, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 5142, "end": 5155, "loc": { "start": { "line": 142, "column": 12 }, "end": { "line": 142, "column": 25 } }, "argument": { "type": "BooleanLiteral", "start": 5149, "end": 5154, "loc": { "start": { "line": 142, "column": 19 }, "end": { "line": 142, "column": 24 } }, "value": false } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 5178, "end": 5233, "loc": { "start": { "line": 145, "column": 8 }, "end": { "line": 145, "column": 63 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5184, "end": 5232, "loc": { "start": { "line": 145, "column": 14 }, "end": { "line": 145, "column": 62 } }, "id": { "type": "Identifier", "start": 5184, "end": 5194, "loc": { "start": { "line": 145, "column": 14 }, "end": { "line": 145, "column": 24 }, "identifierName": "staticComp" }, "name": "staticComp" }, "init": { "type": "MemberExpression", "start": 5197, "end": 5232, "loc": { "start": { "line": 145, "column": 27 }, "end": { "line": 145, "column": 62 } }, "object": { "type": "MemberExpression", "start": 5197, "end": 5216, "loc": { "start": { "line": 145, "column": 27 }, "end": { "line": 145, "column": 46 } }, "object": { "type": "Identifier", "start": 5197, "end": 5205, "loc": { "start": { "line": 145, "column": 27 }, "end": { "line": 145, "column": 35 }, "identifierName": "contents" }, "name": "contents" }, "property": { "type": "Identifier", "start": 5206, "end": 5216, "loc": { "start": { "line": 145, "column": 36 }, "end": { "line": 145, "column": 46 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 5217, "end": 5232, "loc": { "start": { "line": 145, "column": 47 }, "end": { "line": 145, "column": 62 }, "identifierName": "StaticMapEntity" }, "name": "StaticMapEntity" }, "computed": false } } ], "kind": "const", "trailingComments": [ { "type": "CommentLine", "value": " Check if its a belt, since then its simple", "start": 5245, "end": 5290, "loc": { "start": { "line": 147, "column": 8 }, "end": { "line": 147, "column": 53 } } } ] }, { "type": "VariableDeclaration", "start": 5300, "end": 5342, "loc": { "start": { "line": 148, "column": 8 }, "end": { "line": 148, "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5306, "end": 5341, "loc": { "start": { "line": 148, "column": 14 }, "end": { "line": 148, "column": 49 } }, "id": { "type": "Identifier", "start": 5306, "end": 5314, "loc": { "start": { "line": 148, "column": 14 }, "end": { "line": 148, "column": 22 }, "identifierName": "beltComp" }, "name": "beltComp", "leadingComments": null }, "init": { "type": "MemberExpression", "start": 5317, "end": 5341, "loc": { "start": { "line": 148, "column": 25 }, "end": { "line": 148, "column": 49 } }, "object": { "type": "MemberExpression", "start": 5317, "end": 5336, "loc": { "start": { "line": 148, "column": 25 }, "end": { "line": 148, "column": 44 } }, "object": { "type": "Identifier", "start": 5317, "end": 5325, "loc": { "start": { "line": 148, "column": 25 }, "end": { "line": 148, "column": 33 }, "identifierName": "contents" }, "name": "contents" }, "property": { "type": "Identifier", "start": 5326, "end": 5336, "loc": { "start": { "line": 148, "column": 34 }, "end": { "line": 148, "column": 44 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 5337, "end": 5341, "loc": { "start": { "line": 148, "column": 45 }, "end": { "line": 148, "column": 49 }, "identifierName": "Belt" }, "name": "Belt" }, "computed": false }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Check if its a belt, since then its simple", "start": 5245, "end": 5290, "loc": { "start": { "line": 147, "column": 8 }, "end": { "line": 147, "column": 53 } } } ] }, { "type": "IfStatement", "start": 5352, "end": 5468, "loc": { "start": { "line": 149, "column": 8 }, "end": { "line": 151, "column": 9 } }, "test": { "type": "Identifier", "start": 5356, "end": 5364, "loc": { "start": { "line": 149, "column": 12 }, "end": { "line": 149, "column": 20 }, "identifierName": "beltComp" }, "name": "beltComp" }, "consequent": { "type": "BlockStatement", "start": 5366, "end": 5468, "loc": { "start": { "line": 149, "column": 22 }, "end": { "line": 151, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 5381, "end": 5457, "loc": { "start": { "line": 150, "column": 12 }, "end": { "line": 150, "column": 88 } }, "argument": { "type": "BinaryExpression", "start": 5388, "end": 5456, "loc": { "start": { "line": 150, "column": 19 }, "end": { "line": 150, "column": 87 } }, "left": { "type": "CallExpression", "start": 5388, "end": 5440, "loc": { "start": { "line": 150, "column": 19 }, "end": { "line": 150, "column": 71 } }, "callee": { "type": "MemberExpression", "start": 5388, "end": 5420, "loc": { "start": { "line": 150, "column": 19 }, "end": { "line": 150, "column": 51 } }, "object": { "type": "Identifier", "start": 5388, "end": 5398, "loc": { "start": { "line": 150, "column": 19 }, "end": { "line": 150, "column": 29 }, "identifierName": "staticComp" }, "name": "staticComp" }, "property": { "type": "Identifier", "start": 5399, "end": 5420, "loc": { "start": { "line": 150, "column": 30 }, "end": { "line": 150, "column": 51 }, "identifierName": "localDirectionToWorld" }, "name": "localDirectionToWorld" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 5421, "end": 5439, "loc": { "start": { "line": 150, "column": 52 }, "end": { "line": 150, "column": 70 } }, "object": { "type": "Identifier", "start": 5421, "end": 5429, "loc": { "start": { "line": 150, "column": 52 }, "end": { "line": 150, "column": 60 }, "identifierName": "beltComp" }, "name": "beltComp" }, "property": { "type": "Identifier", "start": 5430, "end": 5439, "loc": { "start": { "line": 150, "column": 61 }, "end": { "line": 150, "column": 70 }, "identifierName": "direction" }, "name": "direction" }, "computed": false } ] }, "operator": "===", "right": { "type": "Identifier", "start": 5445, "end": 5456, "loc": { "start": { "line": 150, "column": 76 }, "end": { "line": 150, "column": 87 }, "identifierName": "toDirection" }, "name": "toDirection" } } } ], "directives": [], "trailingComments": null }, "alternate": null, "trailingComments": [ { "type": "CommentLine", "value": " Check for an ejector", "start": 5480, "end": 5503, "loc": { "start": { "line": 153, "column": 8 }, "end": { "line": 153, "column": 31 } } } ] }, { "type": "VariableDeclaration", "start": 5513, "end": 5565, "loc": { "start": { "line": 154, "column": 8 }, "end": { "line": 154, "column": 60 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5519, "end": 5564, "loc": { "start": { "line": 154, "column": 14 }, "end": { "line": 154, "column": 59 } }, "id": { "type": "Identifier", "start": 5519, "end": 5530, "loc": { "start": { "line": 154, "column": 14 }, "end": { "line": 154, "column": 25 }, "identifierName": "ejectorComp" }, "name": "ejectorComp", "leadingComments": null }, "init": { "type": "MemberExpression", "start": 5533, "end": 5564, "loc": { "start": { "line": 154, "column": 28 }, "end": { "line": 154, "column": 59 } }, "object": { "type": "MemberExpression", "start": 5533, "end": 5552, "loc": { "start": { "line": 154, "column": 28 }, "end": { "line": 154, "column": 47 } }, "object": { "type": "Identifier", "start": 5533, "end": 5541, "loc": { "start": { "line": 154, "column": 28 }, "end": { "line": 154, "column": 36 }, "identifierName": "contents" }, "name": "contents" }, "property": { "type": "Identifier", "start": 5542, "end": 5552, "loc": { "start": { "line": 154, "column": 37 }, "end": { "line": 154, "column": 47 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 5553, "end": 5564, "loc": { "start": { "line": 154, "column": 48 }, "end": { "line": 154, "column": 59 }, "identifierName": "ItemEjector" }, "name": "ItemEjector" }, "computed": false }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Check for an ejector", "start": 5480, "end": 5503, "loc": { "start": { "line": 153, "column": 8 }, "end": { "line": 153, "column": 31 } } } ] }, { "type": "IfStatement", "start": 5575, "end": 6276, "loc": { "start": { "line": 155, "column": 8 }, "end": { "line": 172, "column": 9 } }, "test": { "type": "Identifier", "start": 5579, "end": 5590, "loc": { "start": { "line": 155, "column": 12 }, "end": { "line": 155, "column": 23 }, "identifierName": "ejectorComp" }, "name": "ejectorComp" }, "consequent": { "type": "BlockStatement", "start": 5592, "end": 6276, "loc": { "start": { "line": 155, "column": 25 }, "end": { "line": 172, "column": 9 } }, "body": [ { "type": "ForStatement", "start": 5663, "end": 6265, "loc": { "start": { "line": 157, "column": 12 }, "end": { "line": 171, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 5668, "end": 5677, "loc": { "start": { "line": 157, "column": 17 }, "end": { "line": 157, "column": 26 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5672, "end": 5677, "loc": { "start": { "line": 157, "column": 21 }, "end": { "line": 157, "column": 26 } }, "id": { "type": "Identifier", "start": 5672, "end": 5673, "loc": { "start": { "line": 157, "column": 21 }, "end": { "line": 157, "column": 22 }, "identifierName": "i" }, "name": "i", "leadingComments": null }, "init": { "type": "NumericLiteral", "start": 5676, "end": 5677, "loc": { "start": { "line": 157, "column": 25 }, "end": { "line": 157, "column": 26 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "leadingComments": null } ], "kind": "let", "leadingComments": null }, "test": { "type": "BinaryExpression", "start": 5679, "end": 5707, "loc": { "start": { "line": 157, "column": 28 }, "end": { "line": 157, "column": 56 } }, "left": { "type": "Identifier", "start": 5679, "end": 5680, "loc": { "start": { "line": 157, "column": 28 }, "end": { "line": 157, "column": 29 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "MemberExpression", "start": 5683, "end": 5707, "loc": { "start": { "line": 157, "column": 32 }, "end": { "line": 157, "column": 56 } }, "object": { "type": "MemberExpression", "start": 5683, "end": 5700, "loc": { "start": { "line": 157, "column": 32 }, "end": { "line": 157, "column": 49 } }, "object": { "type": "Identifier", "start": 5683, "end": 5694, "loc": { "start": { "line": 157, "column": 32 }, "end": { "line": 157, "column": 43 }, "identifierName": "ejectorComp" }, "name": "ejectorComp" }, "property": { "type": "Identifier", "start": 5695, "end": 5700, "loc": { "start": { "line": 157, "column": 44 }, "end": { "line": 157, "column": 49 }, "identifierName": "slots" }, "name": "slots" }, "computed": false }, "property": { "type": "Identifier", "start": 5701, "end": 5707, "loc": { "start": { "line": 157, "column": 50 }, "end": { "line": 157, "column": 56 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 5709, "end": 5712, "loc": { "start": { "line": 157, "column": 58 }, "end": { "line": 157, "column": 61 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 5711, "end": 5712, "loc": { "start": { "line": 157, "column": 60 }, "end": { "line": 157, "column": 61 }, "identifierName": "i" }, "name": "i" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 5714, "end": 6265, "loc": { "start": { "line": 157, "column": 63 }, "end": { "line": 171, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 5733, "end": 5767, "loc": { "start": { "line": 158, "column": 16 }, "end": { "line": 158, "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5739, "end": 5766, "loc": { "start": { "line": 158, "column": 22 }, "end": { "line": 158, "column": 49 } }, "id": { "type": "Identifier", "start": 5739, "end": 5743, "loc": { "start": { "line": 158, "column": 22 }, "end": { "line": 158, "column": 26 }, "identifierName": "slot" }, "name": "slot" }, "init": { "type": "MemberExpression", "start": 5746, "end": 5766, "loc": { "start": { "line": 158, "column": 29 }, "end": { "line": 158, "column": 49 } }, "object": { "type": "MemberExpression", "start": 5746, "end": 5763, "loc": { "start": { "line": 158, "column": 29 }, "end": { "line": 158, "column": 46 } }, "object": { "type": "Identifier", "start": 5746, "end": 5757, "loc": { "start": { "line": 158, "column": 29 }, "end": { "line": 158, "column": 40 }, "identifierName": "ejectorComp" }, "name": "ejectorComp" }, "property": { "type": "Identifier", "start": 5758, "end": 5763, "loc": { "start": { "line": 158, "column": 41 }, "end": { "line": 158, "column": 46 }, "identifierName": "slots" }, "name": "slots" }, "computed": false }, "property": { "type": "Identifier", "start": 5764, "end": 5765, "loc": { "start": { "line": 158, "column": 47 }, "end": { "line": 158, "column": 48 }, "identifierName": "i" }, "name": "i" }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 5785, "end": 5840, "loc": { "start": { "line": 159, "column": 16 }, "end": { "line": 159, "column": 71 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5791, "end": 5839, "loc": { "start": { "line": 159, "column": 22 }, "end": { "line": 159, "column": 70 } }, "id": { "type": "Identifier", "start": 5791, "end": 5799, "loc": { "start": { "line": 159, "column": 22 }, "end": { "line": 159, "column": 30 }, "identifierName": "slotTile" }, "name": "slotTile" }, "init": { "type": "CallExpression", "start": 5802, "end": 5839, "loc": { "start": { "line": 159, "column": 33 }, "end": { "line": 159, "column": 70 } }, "callee": { "type": "MemberExpression", "start": 5802, "end": 5829, "loc": { "start": { "line": 159, "column": 33 }, "end": { "line": 159, "column": 60 } }, "object": { "type": "Identifier", "start": 5802, "end": 5812, "loc": { "start": { "line": 159, "column": 33 }, "end": { "line": 159, "column": 43 }, "identifierName": "staticComp" }, "name": "staticComp" }, "property": { "type": "Identifier", "start": 5813, "end": 5829, "loc": { "start": { "line": 159, "column": 44 }, "end": { "line": 159, "column": 60 }, "identifierName": "localTileToWorld" }, "name": "localTileToWorld" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 5830, "end": 5838, "loc": { "start": { "line": 159, "column": 61 }, "end": { "line": 159, "column": 69 } }, "object": { "type": "Identifier", "start": 5830, "end": 5834, "loc": { "start": { "line": 159, "column": 61 }, "end": { "line": 159, "column": 65 }, "identifierName": "slot" }, "name": "slot" }, "property": { "type": "Identifier", "start": 5835, "end": 5838, "loc": { "start": { "line": 159, "column": 66 }, "end": { "line": 159, "column": 69 }, "identifierName": "pos" }, "name": "pos" }, "computed": false } ] } } ], "kind": "const", "trailingComments": [ { "type": "CommentLine", "value": " Step 1: Check if the tile matches", "start": 5860, "end": 5896, "loc": { "start": { "line": 161, "column": 16 }, "end": { "line": 161, "column": 52 } } } ] }, { "type": "IfStatement", "start": 5914, "end": 5993, "loc": { "start": { "line": 162, "column": 16 }, "end": { "line": 164, "column": 17 } }, "test": { "type": "UnaryExpression", "start": 5918, "end": 5940, "loc": { "start": { "line": 162, "column": 20 }, "end": { "line": 162, "column": 42 } }, "operator": "!", "prefix": true, "argument": { "type": "CallExpression", "start": 5919, "end": 5940, "loc": { "start": { "line": 162, "column": 21 }, "end": { "line": 162, "column": 42 } }, "callee": { "type": "MemberExpression", "start": 5919, "end": 5934, "loc": { "start": { "line": 162, "column": 21 }, "end": { "line": 162, "column": 36 } }, "object": { "type": "Identifier", "start": 5919, "end": 5927, "loc": { "start": { "line": 162, "column": 21 }, "end": { "line": 162, "column": 29 }, "identifierName": "slotTile" }, "name": "slotTile", "leadingComments": null }, "property": { "type": "Identifier", "start": 5928, "end": 5934, "loc": { "start": { "line": 162, "column": 30 }, "end": { "line": 162, "column": 36 }, "identifierName": "equals" }, "name": "equals" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "Identifier", "start": 5935, "end": 5939, "loc": { "start": { "line": 162, "column": 37 }, "end": { "line": 162, "column": 41 }, "identifierName": "tile" }, "name": "tile" } ], "leadingComments": null }, "extra": { "parenthesizedArgument": false }, "leadingComments": null }, "consequent": { "type": "BlockStatement", "start": 5942, "end": 5993, "loc": { "start": { "line": 162, "column": 44 }, "end": { "line": 164, "column": 17 } }, "body": [ { "type": "ContinueStatement", "start": 5965, "end": 5974, "loc": { "start": { "line": 163, "column": 20 }, "end": { "line": 163, "column": 29 } }, "label": null } ], "directives": [], "trailingComments": null }, "alternate": null, "leadingComments": [ { "type": "CommentLine", "value": " Step 1: Check if the tile matches", "start": 5860, "end": 5896, "loc": { "start": { "line": 161, "column": 16 }, "end": { "line": 161, "column": 52 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " Step 2: Check if the direction matches", "start": 6013, "end": 6054, "loc": { "start": { "line": 166, "column": 16 }, "end": { "line": 166, "column": 57 } } } ] }, { "type": "VariableDeclaration", "start": 6072, "end": 6143, "loc": { "start": { "line": 167, "column": 16 }, "end": { "line": 167, "column": 87 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6078, "end": 6142, "loc": { "start": { "line": 167, "column": 22 }, "end": { "line": 167, "column": 86 } }, "id": { "type": "Identifier", "start": 6078, "end": 6091, "loc": { "start": { "line": 167, "column": 22 }, "end": { "line": 167, "column": 35 }, "identifierName": "slotDirection" }, "name": "slotDirection", "leadingComments": null }, "init": { "type": "CallExpression", "start": 6094, "end": 6142, "loc": { "start": { "line": 167, "column": 38 }, "end": { "line": 167, "column": 86 } }, "callee": { "type": "MemberExpression", "start": 6094, "end": 6126, "loc": { "start": { "line": 167, "column": 38 }, "end": { "line": 167, "column": 70 } }, "object": { "type": "Identifier", "start": 6094, "end": 6104, "loc": { "start": { "line": 167, "column": 38 }, "end": { "line": 167, "column": 48 }, "identifierName": "staticComp" }, "name": "staticComp" }, "property": { "type": "Identifier", "start": 6105, "end": 6126, "loc": { "start": { "line": 167, "column": 49 }, "end": { "line": 167, "column": 70 }, "identifierName": "localDirectionToWorld" }, "name": "localDirectionToWorld" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 6127, "end": 6141, "loc": { "start": { "line": 167, "column": 71 }, "end": { "line": 167, "column": 85 } }, "object": { "type": "Identifier", "start": 6127, "end": 6131, "loc": { "start": { "line": 167, "column": 71 }, "end": { "line": 167, "column": 75 }, "identifierName": "slot" }, "name": "slot" }, "property": { "type": "Identifier", "start": 6132, "end": 6141, "loc": { "start": { "line": 167, "column": 76 }, "end": { "line": 167, "column": 85 }, "identifierName": "direction" }, "name": "direction" }, "computed": false } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Step 2: Check if the direction matches", "start": 6013, "end": 6054, "loc": { "start": { "line": 166, "column": 16 }, "end": { "line": 166, "column": 57 } } } ] }, { "type": "IfStatement", "start": 6161, "end": 6250, "loc": { "start": { "line": 168, "column": 16 }, "end": { "line": 170, "column": 17 } }, "test": { "type": "BinaryExpression", "start": 6165, "end": 6194, "loc": { "start": { "line": 168, "column": 20 }, "end": { "line": 168, "column": 49 } }, "left": { "type": "Identifier", "start": 6165, "end": 6178, "loc": { "start": { "line": 168, "column": 20 }, "end": { "line": 168, "column": 33 }, "identifierName": "slotDirection" }, "name": "slotDirection" }, "operator": "===", "right": { "type": "Identifier", "start": 6183, "end": 6194, "loc": { "start": { "line": 168, "column": 38 }, "end": { "line": 168, "column": 49 }, "identifierName": "toDirection" }, "name": "toDirection" } }, "consequent": { "type": "BlockStatement", "start": 6196, "end": 6250, "loc": { "start": { "line": 168, "column": 51 }, "end": { "line": 170, "column": 17 } }, "body": [ { "type": "ReturnStatement", "start": 6219, "end": 6231, "loc": { "start": { "line": 169, "column": 20 }, "end": { "line": 169, "column": 32 } }, "argument": { "type": "BooleanLiteral", "start": 6226, "end": 6230, "loc": { "start": { "line": 169, "column": 27 }, "end": { "line": 169, "column": 31 } }, "value": true } } ], "directives": [] }, "alternate": null } ], "directives": [] }, "leadingComments": [ { "type": "CommentLine", "value": " Check each slot to see if its connected", "start": 5607, "end": 5649, "loc": { "start": { "line": 156, "column": 12 }, "end": { "line": 156, "column": 54 } } } ] } ], "directives": [] }, "alternate": null }, { "type": "ReturnStatement", "start": 6288, "end": 6301, "loc": { "start": { "line": 174, "column": 8 }, "end": { "line": 174, "column": 21 } }, "argument": { "type": "BooleanLiteral", "start": 6295, "end": 6300, "loc": { "start": { "line": 174, "column": 15 }, "end": { "line": 174, "column": 20 } }, "value": false } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if a given tile is connected and has an ejector\r\n * @param {Vector} tile\r\n * @param {enumDirection} toDirection\r\n * @returns {boolean}\r\n ", "start": 4792, "end": 4966, "loc": { "start": { "line": 133, "column": 4 }, "end": { "line": 138, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Computes the flag for a given tile\r\n * @param {Entity} entity\r\n * @param {import(\"../components/belt_underlays\").BeltUnderlayTile} underlayTile\r\n * @returns {enumClippedBeltUnderlayType} The type of the underlay\r\n ", "start": 6316, "end": 6560, "loc": { "start": { "line": 177, "column": 4 }, "end": { "line": 182, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 6566, "end": 8091, "loc": { "start": { "line": 183, "column": 4 }, "end": { "line": 221, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 6566, "end": 6589, "loc": { "start": { "line": 183, "column": 4 }, "end": { "line": 183, "column": 27 }, "identifierName": "computeBeltUnderlayType" }, "name": "computeBeltUnderlayType", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 6590, "end": 6596, "loc": { "start": { "line": 183, "column": 28 }, "end": { "line": 183, "column": 34 }, "identifierName": "entity" }, "name": "entity" }, { "type": "Identifier", "start": 6598, "end": 6610, "loc": { "start": { "line": 183, "column": 36 }, "end": { "line": 183, "column": 48 }, "identifierName": "underlayTile" }, "name": "underlayTile" } ], "body": { "type": "BlockStatement", "start": 6612, "end": 8091, "loc": { "start": { "line": 183, "column": 50 }, "end": { "line": 221, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 6623, "end": 6709, "loc": { "start": { "line": 184, "column": 8 }, "end": { "line": 186, "column": 9 } }, "test": { "type": "MemberExpression", "start": 6627, "end": 6650, "loc": { "start": { "line": 184, "column": 12 }, "end": { "line": 184, "column": 35 } }, "object": { "type": "Identifier", "start": 6627, "end": 6639, "loc": { "start": { "line": 184, "column": 12 }, "end": { "line": 184, "column": 24 }, "identifierName": "underlayTile" }, "name": "underlayTile" }, "property": { "type": "Identifier", "start": 6640, "end": 6650, "loc": { "start": { "line": 184, "column": 25 }, "end": { "line": 184, "column": 35 }, "identifierName": "cachedType" }, "name": "cachedType" }, "computed": false }, "consequent": { "type": "BlockStatement", "start": 6652, "end": 6709, "loc": { "start": { "line": 184, "column": 37 }, "end": { "line": 186, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 6667, "end": 6698, "loc": { "start": { "line": 185, "column": 12 }, "end": { "line": 185, "column": 43 } }, "argument": { "type": "MemberExpression", "start": 6674, "end": 6697, "loc": { "start": { "line": 185, "column": 19 }, "end": { "line": 185, "column": 42 } }, "object": { "type": "Identifier", "start": 6674, "end": 6686, "loc": { "start": { "line": 185, "column": 19 }, "end": { "line": 185, "column": 31 }, "identifierName": "underlayTile" }, "name": "underlayTile" }, "property": { "type": "Identifier", "start": 6687, "end": 6697, "loc": { "start": { "line": 185, "column": 32 }, "end": { "line": 185, "column": 42 }, "identifierName": "cachedType" }, "name": "cachedType" }, "computed": false } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 6721, "end": 6774, "loc": { "start": { "line": 188, "column": 8 }, "end": { "line": 188, "column": 61 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6727, "end": 6773, "loc": { "start": { "line": 188, "column": 14 }, "end": { "line": 188, "column": 60 } }, "id": { "type": "Identifier", "start": 6727, "end": 6737, "loc": { "start": { "line": 188, "column": 14 }, "end": { "line": 188, "column": 24 }, "identifierName": "staticComp" }, "name": "staticComp" }, "init": { "type": "MemberExpression", "start": 6740, "end": 6773, "loc": { "start": { "line": 188, "column": 27 }, "end": { "line": 188, "column": 60 } }, "object": { "type": "MemberExpression", "start": 6740, "end": 6757, "loc": { "start": { "line": 188, "column": 27 }, "end": { "line": 188, "column": 44 } }, "object": { "type": "Identifier", "start": 6740, "end": 6746, "loc": { "start": { "line": 188, "column": 27 }, "end": { "line": 188, "column": 33 }, "identifierName": "entity" }, "name": "entity" }, "property": { "type": "Identifier", "start": 6747, "end": 6757, "loc": { "start": { "line": 188, "column": 34 }, "end": { "line": 188, "column": 44 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 6758, "end": 6773, "loc": { "start": { "line": 188, "column": 45 }, "end": { "line": 188, "column": 60 }, "identifierName": "StaticMapEntity" }, "name": "StaticMapEntity" }, "computed": false } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 6786, "end": 6855, "loc": { "start": { "line": 190, "column": 8 }, "end": { "line": 190, "column": 77 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6792, "end": 6854, "loc": { "start": { "line": 190, "column": 14 }, "end": { "line": 190, "column": 76 } }, "id": { "type": "Identifier", "start": 6792, "end": 6806, "loc": { "start": { "line": 190, "column": 14 }, "end": { "line": 190, "column": 28 }, "identifierName": "transformedPos" }, "name": "transformedPos" }, "init": { "type": "CallExpression", "start": 6809, "end": 6854, "loc": { "start": { "line": 190, "column": 31 }, "end": { "line": 190, "column": 76 } }, "callee": { "type": "MemberExpression", "start": 6809, "end": 6836, "loc": { "start": { "line": 190, "column": 31 }, "end": { "line": 190, "column": 58 } }, "object": { "type": "Identifier", "start": 6809, "end": 6819, "loc": { "start": { "line": 190, "column": 31 }, "end": { "line": 190, "column": 41 }, "identifierName": "staticComp" }, "name": "staticComp" }, "property": { "type": "Identifier", "start": 6820, "end": 6836, "loc": { "start": { "line": 190, "column": 42 }, "end": { "line": 190, "column": 58 }, "identifierName": "localTileToWorld" }, "name": "localTileToWorld" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 6837, "end": 6853, "loc": { "start": { "line": 190, "column": 59 }, "end": { "line": 190, "column": 75 } }, "object": { "type": "Identifier", "start": 6837, "end": 6849, "loc": { "start": { "line": 190, "column": 59 }, "end": { "line": 190, "column": 71 }, "identifierName": "underlayTile" }, "name": "underlayTile" }, "property": { "type": "Identifier", "start": 6850, "end": 6853, "loc": { "start": { "line": 190, "column": 72 }, "end": { "line": 190, "column": 75 }, "identifierName": "pos" }, "name": "pos" }, "computed": false } ] } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 6865, "end": 6920, "loc": { "start": { "line": 191, "column": 8 }, "end": { "line": 191, "column": 63 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6871, "end": 6919, "loc": { "start": { "line": 191, "column": 14 }, "end": { "line": 191, "column": 62 } }, "id": { "type": "Identifier", "start": 6871, "end": 6876, "loc": { "start": { "line": 191, "column": 14 }, "end": { "line": 191, "column": 19 }, "identifierName": "destX" }, "name": "destX" }, "init": { "type": "BinaryExpression", "start": 6879, "end": 6919, "loc": { "start": { "line": 191, "column": 22 }, "end": { "line": 191, "column": 62 } }, "left": { "type": "MemberExpression", "start": 6879, "end": 6895, "loc": { "start": { "line": 191, "column": 22 }, "end": { "line": 191, "column": 38 } }, "object": { "type": "Identifier", "start": 6879, "end": 6893, "loc": { "start": { "line": 191, "column": 22 }, "end": { "line": 191, "column": 36 }, "identifierName": "transformedPos" }, "name": "transformedPos" }, "property": { "type": "Identifier", "start": 6894, "end": 6895, "loc": { "start": { "line": 191, "column": 37 }, "end": { "line": 191, "column": 38 }, "identifierName": "x" }, "name": "x" }, "computed": false }, "operator": "*", "right": { "type": "MemberExpression", "start": 6898, "end": 6919, "loc": { "start": { "line": 191, "column": 41 }, "end": { "line": 191, "column": 62 } }, "object": { "type": "Identifier", "start": 6898, "end": 6910, "loc": { "start": { "line": 191, "column": 41 }, "end": { "line": 191, "column": 53 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 6911, "end": 6919, "loc": { "start": { "line": 191, "column": 54 }, "end": { "line": 191, "column": 62 }, "identifierName": "tileSize" }, "name": "tileSize" }, "computed": false } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 6930, "end": 6985, "loc": { "start": { "line": 192, "column": 8 }, "end": { "line": 192, "column": 63 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6936, "end": 6984, "loc": { "start": { "line": 192, "column": 14 }, "end": { "line": 192, "column": 62 } }, "id": { "type": "Identifier", "start": 6936, "end": 6941, "loc": { "start": { "line": 192, "column": 14 }, "end": { "line": 192, "column": 19 }, "identifierName": "destY" }, "name": "destY" }, "init": { "type": "BinaryExpression", "start": 6944, "end": 6984, "loc": { "start": { "line": 192, "column": 22 }, "end": { "line": 192, "column": 62 } }, "left": { "type": "MemberExpression", "start": 6944, "end": 6960, "loc": { "start": { "line": 192, "column": 22 }, "end": { "line": 192, "column": 38 } }, "object": { "type": "Identifier", "start": 6944, "end": 6958, "loc": { "start": { "line": 192, "column": 22 }, "end": { "line": 192, "column": 36 }, "identifierName": "transformedPos" }, "name": "transformedPos" }, "property": { "type": "Identifier", "start": 6959, "end": 6960, "loc": { "start": { "line": 192, "column": 37 }, "end": { "line": 192, "column": 38 }, "identifierName": "y" }, "name": "y" }, "computed": false }, "operator": "*", "right": { "type": "MemberExpression", "start": 6963, "end": 6984, "loc": { "start": { "line": 192, "column": 41 }, "end": { "line": 192, "column": 62 } }, "object": { "type": "Identifier", "start": 6963, "end": 6975, "loc": { "start": { "line": 192, "column": 41 }, "end": { "line": 192, "column": 53 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 6976, "end": 6984, "loc": { "start": { "line": 192, "column": 54 }, "end": { "line": 192, "column": 62 }, "identifierName": "tileSize" }, "name": "tileSize" }, "computed": false } } } ], "kind": "const", "trailingComments": [ { "type": "CommentLine", "value": " Extract direction and angle", "start": 6997, "end": 7027, "loc": { "start": { "line": 194, "column": 8 }, "end": { "line": 194, "column": 38 } } } ] }, { "type": "VariableDeclaration", "start": 7037, "end": 7117, "loc": { "start": { "line": 195, "column": 8 }, "end": { "line": 195, "column": 88 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7043, "end": 7116, "loc": { "start": { "line": 195, "column": 14 }, "end": { "line": 195, "column": 87 } }, "id": { "type": "Identifier", "start": 7043, "end": 7057, "loc": { "start": { "line": 195, "column": 14 }, "end": { "line": 195, "column": 28 }, "identifierName": "worldDirection" }, "name": "worldDirection", "leadingComments": null }, "init": { "type": "CallExpression", "start": 7060, "end": 7116, "loc": { "start": { "line": 195, "column": 31 }, "end": { "line": 195, "column": 87 } }, "callee": { "type": "MemberExpression", "start": 7060, "end": 7092, "loc": { "start": { "line": 195, "column": 31 }, "end": { "line": 195, "column": 63 } }, "object": { "type": "Identifier", "start": 7060, "end": 7070, "loc": { "start": { "line": 195, "column": 31 }, "end": { "line": 195, "column": 41 }, "identifierName": "staticComp" }, "name": "staticComp" }, "property": { "type": "Identifier", "start": 7071, "end": 7092, "loc": { "start": { "line": 195, "column": 42 }, "end": { "line": 195, "column": 63 }, "identifierName": "localDirectionToWorld" }, "name": "localDirectionToWorld" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 7093, "end": 7115, "loc": { "start": { "line": 195, "column": 64 }, "end": { "line": 195, "column": 86 } }, "object": { "type": "Identifier", "start": 7093, "end": 7105, "loc": { "start": { "line": 195, "column": 64 }, "end": { "line": 195, "column": 76 }, "identifierName": "underlayTile" }, "name": "underlayTile" }, "property": { "type": "Identifier", "start": 7106, "end": 7115, "loc": { "start": { "line": 195, "column": 77 }, "end": { "line": 195, "column": 86 }, "identifierName": "direction" }, "name": "direction" }, "computed": false } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Extract direction and angle", "start": 6997, "end": 7027, "loc": { "start": { "line": 194, "column": 8 }, "end": { "line": 194, "column": 38 } } } ] }, { "type": "VariableDeclaration", "start": 7127, "end": 7194, "loc": { "start": { "line": 196, "column": 8 }, "end": { "line": 196, "column": 75 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7133, "end": 7193, "loc": { "start": { "line": 196, "column": 14 }, "end": { "line": 196, "column": 74 } }, "id": { "type": "Identifier", "start": 7133, "end": 7153, "loc": { "start": { "line": 196, "column": 14 }, "end": { "line": 196, "column": 34 }, "identifierName": "worldDirectionVector" }, "name": "worldDirectionVector" }, "init": { "type": "MemberExpression", "start": 7156, "end": 7193, "loc": { "start": { "line": 196, "column": 37 }, "end": { "line": 196, "column": 74 } }, "object": { "type": "Identifier", "start": 7156, "end": 7177, "loc": { "start": { "line": 196, "column": 37 }, "end": { "line": 196, "column": 58 }, "identifierName": "enumDirectionToVector" }, "name": "enumDirectionToVector" }, "property": { "type": "Identifier", "start": 7178, "end": 7192, "loc": { "start": { "line": 196, "column": 59 }, "end": { "line": 196, "column": 73 }, "identifierName": "worldDirection" }, "name": "worldDirection" }, "computed": true } } ], "kind": "const", "trailingComments": [ { "type": "CommentLine", "value": " Figure out if there is anything connected at the top", "start": 7206, "end": 7261, "loc": { "start": { "line": 198, "column": 8 }, "end": { "line": 198, "column": 63 } } } ] }, { "type": "VariableDeclaration", "start": 7271, "end": 7441, "loc": { "start": { "line": 199, "column": 8 }, "end": { "line": 202, "column": 10 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7277, "end": 7440, "loc": { "start": { "line": 199, "column": 14 }, "end": { "line": 202, "column": 9 } }, "id": { "type": "Identifier", "start": 7277, "end": 7289, "loc": { "start": { "line": 199, "column": 14 }, "end": { "line": 199, "column": 26 }, "identifierName": "connectedTop" }, "name": "connectedTop", "leadingComments": null }, "init": { "type": "CallExpression", "start": 7292, "end": 7440, "loc": { "start": { "line": 199, "column": 29 }, "end": { "line": 202, "column": 9 } }, "callee": { "type": "MemberExpression", "start": 7292, "end": 7321, "loc": { "start": { "line": 199, "column": 29 }, "end": { "line": 199, "column": 58 } }, "object": { "type": "ThisExpression", "start": 7292, "end": 7296, "loc": { "start": { "line": 199, "column": 29 }, "end": { "line": 199, "column": 33 } } }, "property": { "type": "Identifier", "start": 7297, "end": 7321, "loc": { "start": { "line": 199, "column": 34 }, "end": { "line": 199, "column": 58 }, "identifierName": "checkIsAcceptorConnected" }, "name": "checkIsAcceptorConnected" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 7336, "end": 7376, "loc": { "start": { "line": 200, "column": 12 }, "end": { "line": 200, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 7336, "end": 7354, "loc": { "start": { "line": 200, "column": 12 }, "end": { "line": 200, "column": 30 } }, "object": { "type": "Identifier", "start": 7336, "end": 7350, "loc": { "start": { "line": 200, "column": 12 }, "end": { "line": 200, "column": 26 }, "identifierName": "transformedPos" }, "name": "transformedPos" }, "property": { "type": "Identifier", "start": 7351, "end": 7354, "loc": { "start": { "line": 200, "column": 27 }, "end": { "line": 200, "column": 30 }, "identifierName": "add" }, "name": "add" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 7355, "end": 7375, "loc": { "start": { "line": 200, "column": 31 }, "end": { "line": 200, "column": 51 }, "identifierName": "worldDirectionVector" }, "name": "worldDirectionVector" } ] }, { "type": "MemberExpression", "start": 7391, "end": 7429, "loc": { "start": { "line": 201, "column": 12 }, "end": { "line": 201, "column": 50 } }, "object": { "type": "Identifier", "start": 7391, "end": 7413, "loc": { "start": { "line": 201, "column": 12 }, "end": { "line": 201, "column": 34 }, "identifierName": "enumInvertedDirections" }, "name": "enumInvertedDirections" }, "property": { "type": "Identifier", "start": 7414, "end": 7428, "loc": { "start": { "line": 201, "column": 35 }, "end": { "line": 201, "column": 49 }, "identifierName": "worldDirection" }, "name": "worldDirection" }, "computed": true } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Figure out if there is anything connected at the top", "start": 7206, "end": 7261, "loc": { "start": { "line": 198, "column": 8 }, "end": { "line": 198, "column": 63 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " Figure out if there is anything connected at the bottom", "start": 7453, "end": 7511, "loc": { "start": { "line": 204, "column": 8 }, "end": { "line": 204, "column": 66 } } } ] }, { "type": "VariableDeclaration", "start": 7521, "end": 7669, "loc": { "start": { "line": 205, "column": 8 }, "end": { "line": 208, "column": 10 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7527, "end": 7668, "loc": { "start": { "line": 205, "column": 14 }, "end": { "line": 208, "column": 9 } }, "id": { "type": "Identifier", "start": 7527, "end": 7542, "loc": { "start": { "line": 205, "column": 14 }, "end": { "line": 205, "column": 29 }, "identifierName": "connectedBottom" }, "name": "connectedBottom", "leadingComments": null }, "init": { "type": "CallExpression", "start": 7545, "end": 7668, "loc": { "start": { "line": 205, "column": 32 }, "end": { "line": 208, "column": 9 } }, "callee": { "type": "MemberExpression", "start": 7545, "end": 7573, "loc": { "start": { "line": 205, "column": 32 }, "end": { "line": 205, "column": 60 } }, "object": { "type": "ThisExpression", "start": 7545, "end": 7549, "loc": { "start": { "line": 205, "column": 32 }, "end": { "line": 205, "column": 36 } } }, "property": { "type": "Identifier", "start": 7550, "end": 7573, "loc": { "start": { "line": 205, "column": 37 }, "end": { "line": 205, "column": 60 }, "identifierName": "checkIsEjectorConnected" }, "name": "checkIsEjectorConnected" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 7588, "end": 7628, "loc": { "start": { "line": 206, "column": 12 }, "end": { "line": 206, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 7588, "end": 7606, "loc": { "start": { "line": 206, "column": 12 }, "end": { "line": 206, "column": 30 } }, "object": { "type": "Identifier", "start": 7588, "end": 7602, "loc": { "start": { "line": 206, "column": 12 }, "end": { "line": 206, "column": 26 }, "identifierName": "transformedPos" }, "name": "transformedPos" }, "property": { "type": "Identifier", "start": 7603, "end": 7606, "loc": { "start": { "line": 206, "column": 27 }, "end": { "line": 206, "column": 30 }, "identifierName": "sub" }, "name": "sub" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 7607, "end": 7627, "loc": { "start": { "line": 206, "column": 31 }, "end": { "line": 206, "column": 51 }, "identifierName": "worldDirectionVector" }, "name": "worldDirectionVector" } ] }, { "type": "Identifier", "start": 7643, "end": 7657, "loc": { "start": { "line": 207, "column": 12 }, "end": { "line": 207, "column": 26 }, "identifierName": "worldDirection" }, "name": "worldDirection" } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Figure out if there is anything connected at the bottom", "start": 7453, "end": 7511, "loc": { "start": { "line": 204, "column": 8 }, "end": { "line": 204, "column": 66 } } } ] }, { "type": "VariableDeclaration", "start": 7681, "end": 7725, "loc": { "start": { "line": 210, "column": 8 }, "end": { "line": 210, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7685, "end": 7724, "loc": { "start": { "line": 210, "column": 12 }, "end": { "line": 210, "column": 51 } }, "id": { "type": "Identifier", "start": 7685, "end": 7689, "loc": { "start": { "line": 210, "column": 12 }, "end": { "line": 210, "column": 16 }, "identifierName": "flag" }, "name": "flag" }, "init": { "type": "MemberExpression", "start": 7692, "end": 7724, "loc": { "start": { "line": 210, "column": 19 }, "end": { "line": 210, "column": 51 } }, "object": { "type": "Identifier", "start": 7692, "end": 7719, "loc": { "start": { "line": 210, "column": 19 }, "end": { "line": 210, "column": 46 }, "identifierName": "enumClippedBeltUnderlayType" }, "name": "enumClippedBeltUnderlayType" }, "property": { "type": "Identifier", "start": 7720, "end": 7724, "loc": { "start": { "line": 210, "column": 47 }, "end": { "line": 210, "column": 51 }, "identifierName": "none" }, "name": "none" }, "computed": false } } ], "kind": "let" }, { "type": "IfStatement", "start": 7737, "end": 8032, "loc": { "start": { "line": 212, "column": 8 }, "end": { "line": 218, "column": 9 } }, "test": { "type": "LogicalExpression", "start": 7741, "end": 7772, "loc": { "start": { "line": 212, "column": 12 }, "end": { "line": 212, "column": 43 } }, "left": { "type": "Identifier", "start": 7741, "end": 7753, "loc": { "start": { "line": 212, "column": 12 }, "end": { "line": 212, "column": 24 }, "identifierName": "connectedTop" }, "name": "connectedTop" }, "operator": "&&", "right": { "type": "Identifier", "start": 7757, "end": 7772, "loc": { "start": { "line": 212, "column": 28 }, "end": { "line": 212, "column": 43 }, "identifierName": "connectedBottom" }, "name": "connectedBottom" } }, "consequent": { "type": "BlockStatement", "start": 7774, "end": 7840, "loc": { "start": { "line": 212, "column": 45 }, "end": { "line": 214, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 7789, "end": 7829, "loc": { "start": { "line": 213, "column": 12 }, "end": { "line": 213, "column": 52 } }, "expression": { "type": "AssignmentExpression", "start": 7789, "end": 7828, "loc": { "start": { "line": 213, "column": 12 }, "end": { "line": 213, "column": 51 } }, "operator": "=", "left": { "type": "Identifier", "start": 7789, "end": 7793, "loc": { "start": { "line": 213, "column": 12 }, "end": { "line": 213, "column": 16 }, "identifierName": "flag" }, "name": "flag" }, "right": { "type": "MemberExpression", "start": 7796, "end": 7828, "loc": { "start": { "line": 213, "column": 19 }, "end": { "line": 213, "column": 51 } }, "object": { "type": "Identifier", "start": 7796, "end": 7823, "loc": { "start": { "line": 213, "column": 19 }, "end": { "line": 213, "column": 46 }, "identifierName": "enumClippedBeltUnderlayType" }, "name": "enumClippedBeltUnderlayType" }, "property": { "type": "Identifier", "start": 7824, "end": 7828, "loc": { "start": { "line": 213, "column": 47 }, "end": { "line": 213, "column": 51 }, "identifierName": "full" }, "name": "full" }, "computed": false } } } ], "directives": [] }, "alternate": { "type": "IfStatement", "start": 7846, "end": 8032, "loc": { "start": { "line": 214, "column": 15 }, "end": { "line": 218, "column": 9 } }, "test": { "type": "Identifier", "start": 7850, "end": 7862, "loc": { "start": { "line": 214, "column": 19 }, "end": { "line": 214, "column": 31 }, "identifierName": "connectedTop" }, "name": "connectedTop" }, "consequent": { "type": "BlockStatement", "start": 7864, "end": 7933, "loc": { "start": { "line": 214, "column": 33 }, "end": { "line": 216, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 7879, "end": 7922, "loc": { "start": { "line": 215, "column": 12 }, "end": { "line": 215, "column": 55 } }, "expression": { "type": "AssignmentExpression", "start": 7879, "end": 7921, "loc": { "start": { "line": 215, "column": 12 }, "end": { "line": 215, "column": 54 } }, "operator": "=", "left": { "type": "Identifier", "start": 7879, "end": 7883, "loc": { "start": { "line": 215, "column": 12 }, "end": { "line": 215, "column": 16 }, "identifierName": "flag" }, "name": "flag" }, "right": { "type": "MemberExpression", "start": 7886, "end": 7921, "loc": { "start": { "line": 215, "column": 19 }, "end": { "line": 215, "column": 54 } }, "object": { "type": "Identifier", "start": 7886, "end": 7913, "loc": { "start": { "line": 215, "column": 19 }, "end": { "line": 215, "column": 46 }, "identifierName": "enumClippedBeltUnderlayType" }, "name": "enumClippedBeltUnderlayType" }, "property": { "type": "Identifier", "start": 7914, "end": 7921, "loc": { "start": { "line": 215, "column": 47 }, "end": { "line": 215, "column": 54 }, "identifierName": "topOnly" }, "name": "topOnly" }, "computed": false } } } ], "directives": [] }, "alternate": { "type": "IfStatement", "start": 7939, "end": 8032, "loc": { "start": { "line": 216, "column": 15 }, "end": { "line": 218, "column": 9 } }, "test": { "type": "Identifier", "start": 7943, "end": 7958, "loc": { "start": { "line": 216, "column": 19 }, "end": { "line": 216, "column": 34 }, "identifierName": "connectedBottom" }, "name": "connectedBottom" }, "consequent": { "type": "BlockStatement", "start": 7960, "end": 8032, "loc": { "start": { "line": 216, "column": 36 }, "end": { "line": 218, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 7975, "end": 8021, "loc": { "start": { "line": 217, "column": 12 }, "end": { "line": 217, "column": 58 } }, "expression": { "type": "AssignmentExpression", "start": 7975, "end": 8020, "loc": { "start": { "line": 217, "column": 12 }, "end": { "line": 217, "column": 57 } }, "operator": "=", "left": { "type": "Identifier", "start": 7975, "end": 7979, "loc": { "start": { "line": 217, "column": 12 }, "end": { "line": 217, "column": 16 }, "identifierName": "flag" }, "name": "flag" }, "right": { "type": "MemberExpression", "start": 7982, "end": 8020, "loc": { "start": { "line": 217, "column": 19 }, "end": { "line": 217, "column": 57 } }, "object": { "type": "Identifier", "start": 7982, "end": 8009, "loc": { "start": { "line": 217, "column": 19 }, "end": { "line": 217, "column": 46 }, "identifierName": "enumClippedBeltUnderlayType" }, "name": "enumClippedBeltUnderlayType" }, "property": { "type": "Identifier", "start": 8010, "end": 8020, "loc": { "start": { "line": 217, "column": 47 }, "end": { "line": 217, "column": 57 }, "identifierName": "bottomOnly" }, "name": "bottomOnly" }, "computed": false } } } ], "directives": [] }, "alternate": null } } }, { "type": "ReturnStatement", "start": 8044, "end": 8084, "loc": { "start": { "line": 220, "column": 8 }, "end": { "line": 220, "column": 48 } }, "argument": { "type": "AssignmentExpression", "start": 8052, "end": 8082, "loc": { "start": { "line": 220, "column": 16 }, "end": { "line": 220, "column": 46 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 8052, "end": 8075, "loc": { "start": { "line": 220, "column": 16 }, "end": { "line": 220, "column": 39 } }, "object": { "type": "Identifier", "start": 8052, "end": 8064, "loc": { "start": { "line": 220, "column": 16 }, "end": { "line": 220, "column": 28 }, "identifierName": "underlayTile" }, "name": "underlayTile" }, "property": { "type": "Identifier", "start": 8065, "end": 8075, "loc": { "start": { "line": 220, "column": 29 }, "end": { "line": 220, "column": 39 }, "identifierName": "cachedType" }, "name": "cachedType" }, "computed": false }, "right": { "type": "Identifier", "start": 8078, "end": 8082, "loc": { "start": { "line": 220, "column": 42 }, "end": { "line": 220, "column": 46 }, "identifierName": "flag" }, "name": "flag" }, "extra": { "parenthesized": true, "parenStart": 8051 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Computes the flag for a given tile\r\n * @param {Entity} entity\r\n * @param {import(\"../components/belt_underlays\").BeltUnderlayTile} underlayTile\r\n * @returns {enumClippedBeltUnderlayType} The type of the underlay\r\n ", "start": 6316, "end": 6560, "loc": { "start": { "line": 177, "column": 4 }, "end": { "line": 182, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Draws a given chunk\r\n * @param {DrawParameters} parameters\r\n * @param {MapChunkView} chunk\r\n ", "start": 8099, "end": 8218, "loc": { "start": { "line": 223, "column": 4 }, "end": { "line": 227, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 8224, "end": 11473, "loc": { "start": { "line": 228, "column": 4 }, "end": { "line": 299, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 8224, "end": 8249, "loc": { "start": { "line": 228, "column": 4 }, "end": { "line": 228, "column": 29 }, "identifierName": "drawChunk_BackgroundLayer" }, "name": "drawChunk_BackgroundLayer", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 8250, "end": 8260, "loc": { "start": { "line": 228, "column": 30 }, "end": { "line": 228, "column": 40 }, "identifierName": "parameters" }, "name": "parameters" }, { "type": "Identifier", "start": 8262, "end": 8267, "loc": { "start": { "line": 228, "column": 42 }, "end": { "line": 228, "column": 47 }, "identifierName": "chunk" }, "name": "chunk" } ], "body": { "type": "BlockStatement", "start": 8269, "end": 11473, "loc": { "start": { "line": 228, "column": 49 }, "end": { "line": 299, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 8335, "end": 8411, "loc": { "start": { "line": 230, "column": 8 }, "end": { "line": 230, "column": 84 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8341, "end": 8410, "loc": { "start": { "line": 230, "column": 14 }, "end": { "line": 230, "column": 83 } }, "id": { "type": "Identifier", "start": 8341, "end": 8356, "loc": { "start": { "line": 230, "column": 14 }, "end": { "line": 230, "column": 29 }, "identifierName": "speedMultiplier" }, "name": "speedMultiplier", "leadingComments": null }, "init": { "type": "CallExpression", "start": 8359, "end": 8410, "loc": { "start": { "line": 230, "column": 32 }, "end": { "line": 230, "column": 83 } }, "callee": { "type": "MemberExpression", "start": 8359, "end": 8367, "loc": { "start": { "line": 230, "column": 32 }, "end": { "line": 230, "column": 40 } }, "object": { "type": "Identifier", "start": 8359, "end": 8363, "loc": { "start": { "line": 230, "column": 32 }, "end": { "line": 230, "column": 36 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 8364, "end": 8367, "loc": { "start": { "line": 230, "column": 37 }, "end": { "line": 230, "column": 40 }, "identifierName": "min" }, "name": "min" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 8368, "end": 8405, "loc": { "start": { "line": 230, "column": 41 }, "end": { "line": 230, "column": 78 } }, "callee": { "type": "MemberExpression", "start": 8368, "end": 8403, "loc": { "start": { "line": 230, "column": 41 }, "end": { "line": 230, "column": 76 } }, "object": { "type": "MemberExpression", "start": 8368, "end": 8386, "loc": { "start": { "line": 230, "column": 41 }, "end": { "line": 230, "column": 59 } }, "object": { "type": "MemberExpression", "start": 8368, "end": 8377, "loc": { "start": { "line": 230, "column": 41 }, "end": { "line": 230, "column": 50 } }, "object": { "type": "ThisExpression", "start": 8368, "end": 8372, "loc": { "start": { "line": 230, "column": 41 }, "end": { "line": 230, "column": 45 } } }, "property": { "type": "Identifier", "start": 8373, "end": 8377, "loc": { "start": { "line": 230, "column": 46 }, "end": { "line": 230, "column": 50 }, "identifierName": "root" }, "name": "root" }, "computed": false }, "property": { "type": "Identifier", "start": 8378, "end": 8386, "loc": { "start": { "line": 230, "column": 51 }, "end": { "line": 230, "column": 59 }, "identifierName": "hubGoals" }, "name": "hubGoals" }, "computed": false }, "property": { "type": "Identifier", "start": 8387, "end": 8403, "loc": { "start": { "line": 230, "column": 60 }, "end": { "line": 230, "column": 76 }, "identifierName": "getBeltBaseSpeed" }, "name": "getBeltBaseSpeed" }, "computed": false }, "arguments": [] }, { "type": "NumericLiteral", "start": 8407, "end": 8409, "loc": { "start": { "line": 230, "column": 80 }, "end": { "line": 230, "column": 82 } }, "extra": { "rawValue": 10, "raw": "10" }, "value": 10 } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Limit speed to avoid belts going backwards", "start": 8280, "end": 8325, "loc": { "start": { "line": 229, "column": 8 }, "end": { "line": 229, "column": 53 } } } ] }, { "type": "VariableDeclaration", "start": 8423, "end": 8479, "loc": { "start": { "line": 232, "column": 8 }, "end": { "line": 232, "column": 64 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8429, "end": 8478, "loc": { "start": { "line": 232, "column": 14 }, "end": { "line": 232, "column": 63 } }, "id": { "type": "Identifier", "start": 8429, "end": 8437, "loc": { "start": { "line": 232, "column": 14 }, "end": { "line": 232, "column": 22 }, "identifierName": "contents" }, "name": "contents" }, "init": { "type": "MemberExpression", "start": 8440, "end": 8478, "loc": { "start": { "line": 232, "column": 25 }, "end": { "line": 232, "column": 63 } }, "object": { "type": "MemberExpression", "start": 8440, "end": 8470, "loc": { "start": { "line": 232, "column": 25 }, "end": { "line": 232, "column": 55 } }, "object": { "type": "Identifier", "start": 8440, "end": 8445, "loc": { "start": { "line": 232, "column": 25 }, "end": { "line": 232, "column": 30 }, "identifierName": "chunk" }, "name": "chunk" }, "property": { "type": "Identifier", "start": 8446, "end": 8470, "loc": { "start": { "line": 232, "column": 31 }, "end": { "line": 232, "column": 55 }, "identifierName": "containedEntitiesByLayer" }, "name": "containedEntitiesByLayer" }, "computed": false }, "property": { "type": "Identifier", "start": 8471, "end": 8478, "loc": { "start": { "line": 232, "column": 56 }, "end": { "line": 232, "column": 63 }, "identifierName": "regular" }, "name": "regular" }, "computed": false } } ], "kind": "const" }, { "type": "ForStatement", "start": 8489, "end": 11466, "loc": { "start": { "line": 233, "column": 8 }, "end": { "line": 298, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 8494, "end": 8503, "loc": { "start": { "line": 233, "column": 13 }, "end": { "line": 233, "column": 22 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8498, "end": 8503, "loc": { "start": { "line": 233, "column": 17 }, "end": { "line": 233, "column": 22 } }, "id": { "type": "Identifier", "start": 8498, "end": 8499, "loc": { "start": { "line": 233, "column": 17 }, "end": { "line": 233, "column": 18 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 8502, "end": 8503, "loc": { "start": { "line": 233, "column": 21 }, "end": { "line": 233, "column": 22 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 8505, "end": 8524, "loc": { "start": { "line": 233, "column": 24 }, "end": { "line": 233, "column": 43 } }, "left": { "type": "Identifier", "start": 8505, "end": 8506, "loc": { "start": { "line": 233, "column": 24 }, "end": { "line": 233, "column": 25 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "MemberExpression", "start": 8509, "end": 8524, "loc": { "start": { "line": 233, "column": 28 }, "end": { "line": 233, "column": 43 } }, "object": { "type": "Identifier", "start": 8509, "end": 8517, "loc": { "start": { "line": 233, "column": 28 }, "end": { "line": 233, "column": 36 }, "identifierName": "contents" }, "name": "contents" }, "property": { "type": "Identifier", "start": 8518, "end": 8524, "loc": { "start": { "line": 233, "column": 37 }, "end": { "line": 233, "column": 43 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 8526, "end": 8529, "loc": { "start": { "line": 233, "column": 45 }, "end": { "line": 233, "column": 48 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 8528, "end": 8529, "loc": { "start": { "line": 233, "column": 47 }, "end": { "line": 233, "column": 48 }, "identifierName": "i" }, "name": "i" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 8531, "end": 11466, "loc": { "start": { "line": 233, "column": 50 }, "end": { "line": 298, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 8546, "end": 8573, "loc": { "start": { "line": 234, "column": 12 }, "end": { "line": 234, "column": 39 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8552, "end": 8572, "loc": { "start": { "line": 234, "column": 18 }, "end": { "line": 234, "column": 38 } }, "id": { "type": "Identifier", "start": 8552, "end": 8558, "loc": { "start": { "line": 234, "column": 18 }, "end": { "line": 234, "column": 24 }, "identifierName": "entity" }, "name": "entity" }, "init": { "type": "MemberExpression", "start": 8561, "end": 8572, "loc": { "start": { "line": 234, "column": 27 }, "end": { "line": 234, "column": 38 } }, "object": { "type": "Identifier", "start": 8561, "end": 8569, "loc": { "start": { "line": 234, "column": 27 }, "end": { "line": 234, "column": 35 }, "identifierName": "contents" }, "name": "contents" }, "property": { "type": "Identifier", "start": 8570, "end": 8571, "loc": { "start": { "line": 234, "column": 36 }, "end": { "line": 234, "column": 37 }, "identifierName": "i" }, "name": "i" }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 8587, "end": 8640, "loc": { "start": { "line": 235, "column": 12 }, "end": { "line": 235, "column": 65 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8593, "end": 8639, "loc": { "start": { "line": 235, "column": 18 }, "end": { "line": 235, "column": 64 } }, "id": { "type": "Identifier", "start": 8593, "end": 8605, "loc": { "start": { "line": 235, "column": 18 }, "end": { "line": 235, "column": 30 }, "identifierName": "underlayComp" }, "name": "underlayComp" }, "init": { "type": "MemberExpression", "start": 8608, "end": 8639, "loc": { "start": { "line": 235, "column": 33 }, "end": { "line": 235, "column": 64 } }, "object": { "type": "MemberExpression", "start": 8608, "end": 8625, "loc": { "start": { "line": 235, "column": 33 }, "end": { "line": 235, "column": 50 } }, "object": { "type": "Identifier", "start": 8608, "end": 8614, "loc": { "start": { "line": 235, "column": 33 }, "end": { "line": 235, "column": 39 }, "identifierName": "entity" }, "name": "entity" }, "property": { "type": "Identifier", "start": 8615, "end": 8625, "loc": { "start": { "line": 235, "column": 40 }, "end": { "line": 235, "column": 50 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 8626, "end": 8639, "loc": { "start": { "line": 235, "column": 51 }, "end": { "line": 235, "column": 64 }, "identifierName": "BeltUnderlays" }, "name": "BeltUnderlays" }, "computed": false } } ], "kind": "const" }, { "type": "IfStatement", "start": 8654, "end": 8716, "loc": { "start": { "line": 236, "column": 12 }, "end": { "line": 238, "column": 13 } }, "test": { "type": "UnaryExpression", "start": 8658, "end": 8671, "loc": { "start": { "line": 236, "column": 16 }, "end": { "line": 236, "column": 29 } }, "operator": "!", "prefix": true, "argument": { "type": "Identifier", "start": 8659, "end": 8671, "loc": { "start": { "line": 236, "column": 17 }, "end": { "line": 236, "column": 29 }, "identifierName": "underlayComp" }, "name": "underlayComp" }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 8673, "end": 8716, "loc": { "start": { "line": 236, "column": 31 }, "end": { "line": 238, "column": 13 } }, "body": [ { "type": "ContinueStatement", "start": 8692, "end": 8701, "loc": { "start": { "line": 237, "column": 16 }, "end": { "line": 237, "column": 25 } }, "label": null } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 8732, "end": 8785, "loc": { "start": { "line": 240, "column": 12 }, "end": { "line": 240, "column": 65 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8738, "end": 8784, "loc": { "start": { "line": 240, "column": 18 }, "end": { "line": 240, "column": 64 } }, "id": { "type": "Identifier", "start": 8738, "end": 8748, "loc": { "start": { "line": 240, "column": 18 }, "end": { "line": 240, "column": 28 }, "identifierName": "staticComp" }, "name": "staticComp" }, "init": { "type": "MemberExpression", "start": 8751, "end": 8784, "loc": { "start": { "line": 240, "column": 31 }, "end": { "line": 240, "column": 64 } }, "object": { "type": "MemberExpression", "start": 8751, "end": 8768, "loc": { "start": { "line": 240, "column": 31 }, "end": { "line": 240, "column": 48 } }, "object": { "type": "Identifier", "start": 8751, "end": 8757, "loc": { "start": { "line": 240, "column": 31 }, "end": { "line": 240, "column": 37 }, "identifierName": "entity" }, "name": "entity" }, "property": { "type": "Identifier", "start": 8758, "end": 8768, "loc": { "start": { "line": 240, "column": 38 }, "end": { "line": 240, "column": 48 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 8769, "end": 8784, "loc": { "start": { "line": 240, "column": 49 }, "end": { "line": 240, "column": 64 }, "identifierName": "StaticMapEntity" }, "name": "StaticMapEntity" }, "computed": false } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 8799, "end": 8840, "loc": { "start": { "line": 241, "column": 12 }, "end": { "line": 241, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8805, "end": 8839, "loc": { "start": { "line": 241, "column": 18 }, "end": { "line": 241, "column": 52 } }, "id": { "type": "Identifier", "start": 8805, "end": 8814, "loc": { "start": { "line": 241, "column": 18 }, "end": { "line": 241, "column": 27 }, "identifierName": "underlays" }, "name": "underlays" }, "init": { "type": "MemberExpression", "start": 8817, "end": 8839, "loc": { "start": { "line": 241, "column": 30 }, "end": { "line": 241, "column": 52 } }, "object": { "type": "Identifier", "start": 8817, "end": 8829, "loc": { "start": { "line": 241, "column": 30 }, "end": { "line": 241, "column": 42 }, "identifierName": "underlayComp" }, "name": "underlayComp" }, "property": { "type": "Identifier", "start": 8830, "end": 8839, "loc": { "start": { "line": 241, "column": 43 }, "end": { "line": 241, "column": 52 }, "identifierName": "underlays" }, "name": "underlays" }, "computed": false } } ], "kind": "const" }, { "type": "ForStatement", "start": 8854, "end": 11455, "loc": { "start": { "line": 242, "column": 12 }, "end": { "line": 297, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 8859, "end": 8868, "loc": { "start": { "line": 242, "column": 17 }, "end": { "line": 242, "column": 26 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8863, "end": 8868, "loc": { "start": { "line": 242, "column": 21 }, "end": { "line": 242, "column": 26 } }, "id": { "type": "Identifier", "start": 8863, "end": 8864, "loc": { "start": { "line": 242, "column": 21 }, "end": { "line": 242, "column": 22 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 8867, "end": 8868, "loc": { "start": { "line": 242, "column": 25 }, "end": { "line": 242, "column": 26 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 8870, "end": 8890, "loc": { "start": { "line": 242, "column": 28 }, "end": { "line": 242, "column": 48 } }, "left": { "type": "Identifier", "start": 8870, "end": 8871, "loc": { "start": { "line": 242, "column": 28 }, "end": { "line": 242, "column": 29 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "MemberExpression", "start": 8874, "end": 8890, "loc": { "start": { "line": 242, "column": 32 }, "end": { "line": 242, "column": 48 } }, "object": { "type": "Identifier", "start": 8874, "end": 8883, "loc": { "start": { "line": 242, "column": 32 }, "end": { "line": 242, "column": 41 }, "identifierName": "underlays" }, "name": "underlays" }, "property": { "type": "Identifier", "start": 8884, "end": 8890, "loc": { "start": { "line": 242, "column": 42 }, "end": { "line": 242, "column": 48 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 8892, "end": 8895, "loc": { "start": { "line": 242, "column": 50 }, "end": { "line": 242, "column": 53 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 8894, "end": 8895, "loc": { "start": { "line": 242, "column": 52 }, "end": { "line": 242, "column": 53 }, "identifierName": "i" }, "name": "i" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 8897, "end": 11455, "loc": { "start": { "line": 242, "column": 55 }, "end": { "line": 297, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 8964, "end": 9004, "loc": { "start": { "line": 244, "column": 16 }, "end": { "line": 244, "column": 56 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8970, "end": 9003, "loc": { "start": { "line": 244, "column": 22 }, "end": { "line": 244, "column": 55 } }, "id": { "type": "ObjectPattern", "start": 8970, "end": 8988, "loc": { "start": { "line": 244, "column": 22 }, "end": { "line": 244, "column": 40 } }, "properties": [ { "type": "ObjectProperty", "start": 8972, "end": 8975, "loc": { "start": { "line": 244, "column": 24 }, "end": { "line": 244, "column": 27 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 8972, "end": 8975, "loc": { "start": { "line": 244, "column": 24 }, "end": { "line": 244, "column": 27 }, "identifierName": "pos" }, "name": "pos", "leadingComments": null }, "value": { "type": "Identifier", "start": 8972, "end": 8975, "loc": { "start": { "line": 244, "column": 24 }, "end": { "line": 244, "column": 27 }, "identifierName": "pos" }, "name": "pos" }, "leadingComments": null, "extra": { "shorthand": true } }, { "type": "ObjectProperty", "start": 8977, "end": 8986, "loc": { "start": { "line": 244, "column": 29 }, "end": { "line": 244, "column": 38 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 8977, "end": 8986, "loc": { "start": { "line": 244, "column": 29 }, "end": { "line": 244, "column": 38 }, "identifierName": "direction" }, "name": "direction" }, "value": { "type": "Identifier", "start": 8977, "end": 8986, "loc": { "start": { "line": 244, "column": 29 }, "end": { "line": 244, "column": 38 }, "identifierName": "direction" }, "name": "direction" }, "extra": { "shorthand": true } } ], "leadingComments": null }, "init": { "type": "MemberExpression", "start": 8991, "end": 9003, "loc": { "start": { "line": 244, "column": 43 }, "end": { "line": 244, "column": 55 } }, "object": { "type": "Identifier", "start": 8991, "end": 9000, "loc": { "start": { "line": 244, "column": 43 }, "end": { "line": 244, "column": 52 }, "identifierName": "underlays" }, "name": "underlays" }, "property": { "type": "Identifier", "start": 9001, "end": 9002, "loc": { "start": { "line": 244, "column": 53 }, "end": { "line": 244, "column": 54 }, "identifierName": "i" }, "name": "i" }, "computed": true }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Extract underlay parameters", "start": 8916, "end": 8946, "loc": { "start": { "line": 243, "column": 16 }, "end": { "line": 243, "column": 46 } } } ] }, { "type": "VariableDeclaration", "start": 9022, "end": 9078, "loc": { "start": { "line": 245, "column": 16 }, "end": { "line": 245, "column": 72 } }, "declarations": [ { "type": "VariableDeclarator", "start": 9028, "end": 9077, "loc": { "start": { "line": 245, "column": 22 }, "end": { "line": 245, "column": 71 } }, "id": { "type": "Identifier", "start": 9028, "end": 9042, "loc": { "start": { "line": 245, "column": 22 }, "end": { "line": 245, "column": 36 }, "identifierName": "transformedPos" }, "name": "transformedPos" }, "init": { "type": "CallExpression", "start": 9045, "end": 9077, "loc": { "start": { "line": 245, "column": 39 }, "end": { "line": 245, "column": 71 } }, "callee": { "type": "MemberExpression", "start": 9045, "end": 9072, "loc": { "start": { "line": 245, "column": 39 }, "end": { "line": 245, "column": 66 } }, "object": { "type": "Identifier", "start": 9045, "end": 9055, "loc": { "start": { "line": 245, "column": 39 }, "end": { "line": 245, "column": 49 }, "identifierName": "staticComp" }, "name": "staticComp" }, "property": { "type": "Identifier", "start": 9056, "end": 9072, "loc": { "start": { "line": 245, "column": 50 }, "end": { "line": 245, "column": 66 }, "identifierName": "localTileToWorld" }, "name": "localTileToWorld" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 9073, "end": 9076, "loc": { "start": { "line": 245, "column": 67 }, "end": { "line": 245, "column": 70 }, "identifierName": "pos" }, "name": "pos" } ] } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 9096, "end": 9151, "loc": { "start": { "line": 246, "column": 16 }, "end": { "line": 246, "column": 71 } }, "declarations": [ { "type": "VariableDeclarator", "start": 9102, "end": 9150, "loc": { "start": { "line": 246, "column": 22 }, "end": { "line": 246, "column": 70 } }, "id": { "type": "Identifier", "start": 9102, "end": 9107, "loc": { "start": { "line": 246, "column": 22 }, "end": { "line": 246, "column": 27 }, "identifierName": "destX" }, "name": "destX" }, "init": { "type": "BinaryExpression", "start": 9110, "end": 9150, "loc": { "start": { "line": 246, "column": 30 }, "end": { "line": 246, "column": 70 } }, "left": { "type": "MemberExpression", "start": 9110, "end": 9126, "loc": { "start": { "line": 246, "column": 30 }, "end": { "line": 246, "column": 46 } }, "object": { "type": "Identifier", "start": 9110, "end": 9124, "loc": { "start": { "line": 246, "column": 30 }, "end": { "line": 246, "column": 44 }, "identifierName": "transformedPos" }, "name": "transformedPos" }, "property": { "type": "Identifier", "start": 9125, "end": 9126, "loc": { "start": { "line": 246, "column": 45 }, "end": { "line": 246, "column": 46 }, "identifierName": "x" }, "name": "x" }, "computed": false }, "operator": "*", "right": { "type": "MemberExpression", "start": 9129, "end": 9150, "loc": { "start": { "line": 246, "column": 49 }, "end": { "line": 246, "column": 70 } }, "object": { "type": "Identifier", "start": 9129, "end": 9141, "loc": { "start": { "line": 246, "column": 49 }, "end": { "line": 246, "column": 61 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 9142, "end": 9150, "loc": { "start": { "line": 246, "column": 62 }, "end": { "line": 246, "column": 70 }, "identifierName": "tileSize" }, "name": "tileSize" }, "computed": false } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 9169, "end": 9224, "loc": { "start": { "line": 247, "column": 16 }, "end": { "line": 247, "column": 71 } }, "declarations": [ { "type": "VariableDeclarator", "start": 9175, "end": 9223, "loc": { "start": { "line": 247, "column": 22 }, "end": { "line": 247, "column": 70 } }, "id": { "type": "Identifier", "start": 9175, "end": 9180, "loc": { "start": { "line": 247, "column": 22 }, "end": { "line": 247, "column": 27 }, "identifierName": "destY" }, "name": "destY" }, "init": { "type": "BinaryExpression", "start": 9183, "end": 9223, "loc": { "start": { "line": 247, "column": 30 }, "end": { "line": 247, "column": 70 } }, "left": { "type": "MemberExpression", "start": 9183, "end": 9199, "loc": { "start": { "line": 247, "column": 30 }, "end": { "line": 247, "column": 46 } }, "object": { "type": "Identifier", "start": 9183, "end": 9197, "loc": { "start": { "line": 247, "column": 30 }, "end": { "line": 247, "column": 44 }, "identifierName": "transformedPos" }, "name": "transformedPos" }, "property": { "type": "Identifier", "start": 9198, "end": 9199, "loc": { "start": { "line": 247, "column": 45 }, "end": { "line": 247, "column": 46 }, "identifierName": "y" }, "name": "y" }, "computed": false }, "operator": "*", "right": { "type": "MemberExpression", "start": 9202, "end": 9223, "loc": { "start": { "line": 247, "column": 49 }, "end": { "line": 247, "column": 70 } }, "object": { "type": "Identifier", "start": 9202, "end": 9214, "loc": { "start": { "line": 247, "column": 49 }, "end": { "line": 247, "column": 61 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 9215, "end": 9223, "loc": { "start": { "line": 247, "column": 62 }, "end": { "line": 247, "column": 70 }, "identifierName": "tileSize" }, "name": "tileSize" }, "computed": false } } } ], "kind": "const", "trailingComments": [ { "type": "CommentLine", "value": " Culling, Part 1: Check if the chunk contains the tile", "start": 9244, "end": 9300, "loc": { "start": { "line": 249, "column": 16 }, "end": { "line": 249, "column": 72 } } } ] }, { "type": "IfStatement", "start": 9318, "end": 9450, "loc": { "start": { "line": 250, "column": 16 }, "end": { "line": 252, "column": 17 } }, "test": { "type": "UnaryExpression", "start": 9322, "end": 9397, "loc": { "start": { "line": 250, "column": 20 }, "end": { "line": 250, "column": 95 } }, "operator": "!", "prefix": true, "argument": { "type": "CallExpression", "start": 9323, "end": 9397, "loc": { "start": { "line": 250, "column": 21 }, "end": { "line": 250, "column": 95 } }, "callee": { "type": "MemberExpression", "start": 9323, "end": 9361, "loc": { "start": { "line": 250, "column": 21 }, "end": { "line": 250, "column": 59 } }, "object": { "type": "MemberExpression", "start": 9323, "end": 9347, "loc": { "start": { "line": 250, "column": 21 }, "end": { "line": 250, "column": 45 } }, "object": { "type": "Identifier", "start": 9323, "end": 9328, "loc": { "start": { "line": 250, "column": 21 }, "end": { "line": 250, "column": 26 }, "identifierName": "chunk" }, "name": "chunk", "leadingComments": null }, "property": { "type": "Identifier", "start": 9329, "end": 9347, "loc": { "start": { "line": 250, "column": 27 }, "end": { "line": 250, "column": 45 }, "identifierName": "tileSpaceRectangle" }, "name": "tileSpaceRectangle" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 9348, "end": 9361, "loc": { "start": { "line": 250, "column": 46 }, "end": { "line": 250, "column": 59 }, "identifierName": "containsPoint" }, "name": "containsPoint" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "MemberExpression", "start": 9362, "end": 9378, "loc": { "start": { "line": 250, "column": 60 }, "end": { "line": 250, "column": 76 } }, "object": { "type": "Identifier", "start": 9362, "end": 9376, "loc": { "start": { "line": 250, "column": 60 }, "end": { "line": 250, "column": 74 }, "identifierName": "transformedPos" }, "name": "transformedPos" }, "property": { "type": "Identifier", "start": 9377, "end": 9378, "loc": { "start": { "line": 250, "column": 75 }, "end": { "line": 250, "column": 76 }, "identifierName": "x" }, "name": "x" }, "computed": false }, { "type": "MemberExpression", "start": 9380, "end": 9396, "loc": { "start": { "line": 250, "column": 78 }, "end": { "line": 250, "column": 94 } }, "object": { "type": "Identifier", "start": 9380, "end": 9394, "loc": { "start": { "line": 250, "column": 78 }, "end": { "line": 250, "column": 92 }, "identifierName": "transformedPos" }, "name": "transformedPos" }, "property": { "type": "Identifier", "start": 9395, "end": 9396, "loc": { "start": { "line": 250, "column": 93 }, "end": { "line": 250, "column": 94 }, "identifierName": "y" }, "name": "y" }, "computed": false } ], "leadingComments": null }, "extra": { "parenthesizedArgument": false }, "leadingComments": null }, "consequent": { "type": "BlockStatement", "start": 9399, "end": 9450, "loc": { "start": { "line": 250, "column": 97 }, "end": { "line": 252, "column": 17 } }, "body": [ { "type": "ContinueStatement", "start": 9422, "end": 9431, "loc": { "start": { "line": 251, "column": 20 }, "end": { "line": 251, "column": 29 } }, "label": null } ], "directives": [], "trailingComments": null }, "alternate": null, "leadingComments": [ { "type": "CommentLine", "value": " Culling, Part 1: Check if the chunk contains the tile", "start": 9244, "end": 9300, "loc": { "start": { "line": 249, "column": 16 }, "end": { "line": 249, "column": 72 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " Culling, Part 2: Check if the overlay is visible", "start": 9470, "end": 9521, "loc": { "start": { "line": 254, "column": 16 }, "end": { "line": 254, "column": 67 } } } ] }, { "type": "IfStatement", "start": 9539, "end": 9822, "loc": { "start": { "line": 255, "column": 16 }, "end": { "line": 262, "column": 17 } }, "test": { "type": "UnaryExpression", "start": 9543, "end": 9769, "loc": { "start": { "line": 255, "column": 20 }, "end": { "line": 260, "column": 21 } }, "operator": "!", "prefix": true, "argument": { "type": "CallExpression", "start": 9544, "end": 9769, "loc": { "start": { "line": 255, "column": 21 }, "end": { "line": 260, "column": 21 } }, "callee": { "type": "MemberExpression", "start": 9544, "end": 9586, "loc": { "start": { "line": 255, "column": 21 }, "end": { "line": 255, "column": 63 } }, "object": { "type": "MemberExpression", "start": 9544, "end": 9566, "loc": { "start": { "line": 255, "column": 21 }, "end": { "line": 255, "column": 43 } }, "object": { "type": "Identifier", "start": 9544, "end": 9554, "loc": { "start": { "line": 255, "column": 21 }, "end": { "line": 255, "column": 31 }, "identifierName": "parameters" }, "name": "parameters", "leadingComments": null }, "property": { "type": "Identifier", "start": 9555, "end": 9566, "loc": { "start": { "line": 255, "column": 32 }, "end": { "line": 255, "column": 43 }, "identifierName": "visibleRect" }, "name": "visibleRect" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 9567, "end": 9586, "loc": { "start": { "line": 255, "column": 44 }, "end": { "line": 255, "column": 63 }, "identifierName": "containsRect4Params" }, "name": "containsRect4Params" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "Identifier", "start": 9613, "end": 9618, "loc": { "start": { "line": 256, "column": 24 }, "end": { "line": 256, "column": 29 }, "identifierName": "destX" }, "name": "destX" }, { "type": "Identifier", "start": 9645, "end": 9650, "loc": { "start": { "line": 257, "column": 24 }, "end": { "line": 257, "column": 29 }, "identifierName": "destY" }, "name": "destY" }, { "type": "MemberExpression", "start": 9677, "end": 9698, "loc": { "start": { "line": 258, "column": 24 }, "end": { "line": 258, "column": 45 } }, "object": { "type": "Identifier", "start": 9677, "end": 9689, "loc": { "start": { "line": 258, "column": 24 }, "end": { "line": 258, "column": 36 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 9690, "end": 9698, "loc": { "start": { "line": 258, "column": 37 }, "end": { "line": 258, "column": 45 }, "identifierName": "tileSize" }, "name": "tileSize" }, "computed": false }, { "type": "MemberExpression", "start": 9725, "end": 9746, "loc": { "start": { "line": 259, "column": 24 }, "end": { "line": 259, "column": 45 } }, "object": { "type": "Identifier", "start": 9725, "end": 9737, "loc": { "start": { "line": 259, "column": 24 }, "end": { "line": 259, "column": 36 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 9738, "end": 9746, "loc": { "start": { "line": 259, "column": 37 }, "end": { "line": 259, "column": 45 }, "identifierName": "tileSize" }, "name": "tileSize" }, "computed": false } ], "leadingComments": null }, "extra": { "parenthesizedArgument": false }, "leadingComments": null }, "consequent": { "type": "BlockStatement", "start": 9771, "end": 9822, "loc": { "start": { "line": 260, "column": 23 }, "end": { "line": 262, "column": 17 } }, "body": [ { "type": "ContinueStatement", "start": 9794, "end": 9803, "loc": { "start": { "line": 261, "column": 20 }, "end": { "line": 261, "column": 29 } }, "label": null } ], "directives": [], "trailingComments": null }, "alternate": null, "leadingComments": [ { "type": "CommentLine", "value": " Culling, Part 2: Check if the overlay is visible", "start": 9470, "end": 9521, "loc": { "start": { "line": 254, "column": 16 }, "end": { "line": 254, "column": 67 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " Extract direction and angle", "start": 9842, "end": 9872, "loc": { "start": { "line": 264, "column": 16 }, "end": { "line": 264, "column": 46 } } } ] }, { "type": "VariableDeclaration", "start": 9890, "end": 9957, "loc": { "start": { "line": 265, "column": 16 }, "end": { "line": 265, "column": 83 } }, "declarations": [ { "type": "VariableDeclarator", "start": 9896, "end": 9956, "loc": { "start": { "line": 265, "column": 22 }, "end": { "line": 265, "column": 82 } }, "id": { "type": "Identifier", "start": 9896, "end": 9910, "loc": { "start": { "line": 265, "column": 22 }, "end": { "line": 265, "column": 36 }, "identifierName": "worldDirection" }, "name": "worldDirection", "leadingComments": null }, "init": { "type": "CallExpression", "start": 9913, "end": 9956, "loc": { "start": { "line": 265, "column": 39 }, "end": { "line": 265, "column": 82 } }, "callee": { "type": "MemberExpression", "start": 9913, "end": 9945, "loc": { "start": { "line": 265, "column": 39 }, "end": { "line": 265, "column": 71 } }, "object": { "type": "Identifier", "start": 9913, "end": 9923, "loc": { "start": { "line": 265, "column": 39 }, "end": { "line": 265, "column": 49 }, "identifierName": "staticComp" }, "name": "staticComp" }, "property": { "type": "Identifier", "start": 9924, "end": 9945, "loc": { "start": { "line": 265, "column": 50 }, "end": { "line": 265, "column": 71 }, "identifierName": "localDirectionToWorld" }, "name": "localDirectionToWorld" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 9946, "end": 9955, "loc": { "start": { "line": 265, "column": 72 }, "end": { "line": 265, "column": 81 }, "identifierName": "direction" }, "name": "direction" } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Extract direction and angle", "start": 9842, "end": 9872, "loc": { "start": { "line": 264, "column": 16 }, "end": { "line": 264, "column": 46 } } } ] }, { "type": "VariableDeclaration", "start": 9975, "end": 10026, "loc": { "start": { "line": 266, "column": 16 }, "end": { "line": 266, "column": 67 } }, "declarations": [ { "type": "VariableDeclarator", "start": 9981, "end": 10025, "loc": { "start": { "line": 266, "column": 22 }, "end": { "line": 266, "column": 66 } }, "id": { "type": "Identifier", "start": 9981, "end": 9986, "loc": { "start": { "line": 266, "column": 22 }, "end": { "line": 266, "column": 27 }, "identifierName": "angle" }, "name": "angle" }, "init": { "type": "MemberExpression", "start": 9989, "end": 10025, "loc": { "start": { "line": 266, "column": 30 }, "end": { "line": 266, "column": 66 } }, "object": { "type": "Identifier", "start": 9989, "end": 10009, "loc": { "start": { "line": 266, "column": 30 }, "end": { "line": 266, "column": 50 }, "identifierName": "enumDirectionToAngle" }, "name": "enumDirectionToAngle" }, "property": { "type": "Identifier", "start": 10010, "end": 10024, "loc": { "start": { "line": 266, "column": 51 }, "end": { "line": 266, "column": 65 }, "identifierName": "worldDirection" }, "name": "worldDirection" }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 10046, "end": 10118, "loc": { "start": { "line": 268, "column": 16 }, "end": { "line": 268, "column": 88 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10052, "end": 10117, "loc": { "start": { "line": 268, "column": 22 }, "end": { "line": 268, "column": 87 } }, "id": { "type": "Identifier", "start": 10052, "end": 10064, "loc": { "start": { "line": 268, "column": 22 }, "end": { "line": 268, "column": 34 }, "identifierName": "underlayType" }, "name": "underlayType" }, "init": { "type": "CallExpression", "start": 10067, "end": 10117, "loc": { "start": { "line": 268, "column": 37 }, "end": { "line": 268, "column": 87 } }, "callee": { "type": "MemberExpression", "start": 10067, "end": 10095, "loc": { "start": { "line": 268, "column": 37 }, "end": { "line": 268, "column": 65 } }, "object": { "type": "ThisExpression", "start": 10067, "end": 10071, "loc": { "start": { "line": 268, "column": 37 }, "end": { "line": 268, "column": 41 } } }, "property": { "type": "Identifier", "start": 10072, "end": 10095, "loc": { "start": { "line": 268, "column": 42 }, "end": { "line": 268, "column": 65 }, "identifierName": "computeBeltUnderlayType" }, "name": "computeBeltUnderlayType" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 10096, "end": 10102, "loc": { "start": { "line": 268, "column": 66 }, "end": { "line": 268, "column": 72 }, "identifierName": "entity" }, "name": "entity" }, { "type": "MemberExpression", "start": 10104, "end": 10116, "loc": { "start": { "line": 268, "column": 74 }, "end": { "line": 268, "column": 86 } }, "object": { "type": "Identifier", "start": 10104, "end": 10113, "loc": { "start": { "line": 268, "column": 74 }, "end": { "line": 268, "column": 83 }, "identifierName": "underlays" }, "name": "underlays" }, "property": { "type": "Identifier", "start": 10114, "end": 10115, "loc": { "start": { "line": 268, "column": 84 }, "end": { "line": 268, "column": 85 }, "identifierName": "i" }, "name": "i" }, "computed": true } ] } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 10136, "end": 10194, "loc": { "start": { "line": 269, "column": 16 }, "end": { "line": 269, "column": 74 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10142, "end": 10193, "loc": { "start": { "line": 269, "column": 22 }, "end": { "line": 269, "column": 73 } }, "id": { "type": "Identifier", "start": 10142, "end": 10150, "loc": { "start": { "line": 269, "column": 22 }, "end": { "line": 269, "column": 30 }, "identifierName": "clipRect" }, "name": "clipRect" }, "init": { "type": "MemberExpression", "start": 10153, "end": 10193, "loc": { "start": { "line": 269, "column": 33 }, "end": { "line": 269, "column": 73 } }, "object": { "type": "Identifier", "start": 10153, "end": 10179, "loc": { "start": { "line": 269, "column": 33 }, "end": { "line": 269, "column": 59 }, "identifierName": "enumUnderlayTypeToClipRect" }, "name": "enumUnderlayTypeToClipRect" }, "property": { "type": "Identifier", "start": 10180, "end": 10192, "loc": { "start": { "line": 269, "column": 60 }, "end": { "line": 269, "column": 72 }, "identifierName": "underlayType" }, "name": "underlayType" }, "computed": true } } ], "kind": "const" }, { "type": "IfStatement", "start": 10212, "end": 10308, "loc": { "start": { "line": 270, "column": 16 }, "end": { "line": 273, "column": 17 } }, "test": { "type": "UnaryExpression", "start": 10216, "end": 10225, "loc": { "start": { "line": 270, "column": 20 }, "end": { "line": 270, "column": 29 } }, "operator": "!", "prefix": true, "argument": { "type": "Identifier", "start": 10217, "end": 10225, "loc": { "start": { "line": 270, "column": 21 }, "end": { "line": 270, "column": 29 }, "identifierName": "clipRect" }, "name": "clipRect" }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 10227, "end": 10308, "loc": { "start": { "line": 270, "column": 31 }, "end": { "line": 273, "column": 17 } }, "body": [ { "type": "ContinueStatement", "start": 10280, "end": 10289, "loc": { "start": { "line": 272, "column": 20 }, "end": { "line": 272, "column": 29 } }, "label": null, "leadingComments": [ { "type": "CommentLine", "value": " Empty", "start": 10250, "end": 10258, "loc": { "start": { "line": 271, "column": 20 }, "end": { "line": 271, "column": 28 } } } ] } ], "directives": [], "trailingComments": null }, "alternate": null, "trailingComments": [ { "type": "CommentLine", "value": " Actually draw the sprite", "start": 10328, "end": 10355, "loc": { "start": { "line": 275, "column": 16 }, "end": { "line": 275, "column": 43 } } } ] }, { "type": "VariableDeclaration", "start": 10373, "end": 10417, "loc": { "start": { "line": 276, "column": 16 }, "end": { "line": 276, "column": 60 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10379, "end": 10416, "loc": { "start": { "line": 276, "column": 22 }, "end": { "line": 276, "column": 59 } }, "id": { "type": "Identifier", "start": 10379, "end": 10380, "loc": { "start": { "line": 276, "column": 22 }, "end": { "line": 276, "column": 23 }, "identifierName": "x" }, "name": "x", "leadingComments": null }, "init": { "type": "BinaryExpression", "start": 10383, "end": 10416, "loc": { "start": { "line": 276, "column": 26 }, "end": { "line": 276, "column": 59 } }, "left": { "type": "Identifier", "start": 10383, "end": 10388, "loc": { "start": { "line": 276, "column": 26 }, "end": { "line": 276, "column": 31 }, "identifierName": "destX" }, "name": "destX" }, "operator": "+", "right": { "type": "MemberExpression", "start": 10391, "end": 10416, "loc": { "start": { "line": 276, "column": 34 }, "end": { "line": 276, "column": 59 } }, "object": { "type": "Identifier", "start": 10391, "end": 10403, "loc": { "start": { "line": 276, "column": 34 }, "end": { "line": 276, "column": 46 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 10404, "end": 10416, "loc": { "start": { "line": 276, "column": 47 }, "end": { "line": 276, "column": 59 }, "identifierName": "halfTileSize" }, "name": "halfTileSize" }, "computed": false } }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Actually draw the sprite", "start": 10328, "end": 10355, "loc": { "start": { "line": 275, "column": 16 }, "end": { "line": 275, "column": 43 } } } ] }, { "type": "VariableDeclaration", "start": 10435, "end": 10479, "loc": { "start": { "line": 277, "column": 16 }, "end": { "line": 277, "column": 60 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10441, "end": 10478, "loc": { "start": { "line": 277, "column": 22 }, "end": { "line": 277, "column": 59 } }, "id": { "type": "Identifier", "start": 10441, "end": 10442, "loc": { "start": { "line": 277, "column": 22 }, "end": { "line": 277, "column": 23 }, "identifierName": "y" }, "name": "y" }, "init": { "type": "BinaryExpression", "start": 10445, "end": 10478, "loc": { "start": { "line": 277, "column": 26 }, "end": { "line": 277, "column": 59 } }, "left": { "type": "Identifier", "start": 10445, "end": 10450, "loc": { "start": { "line": 277, "column": 26 }, "end": { "line": 277, "column": 31 }, "identifierName": "destY" }, "name": "destY" }, "operator": "+", "right": { "type": "MemberExpression", "start": 10453, "end": 10478, "loc": { "start": { "line": 277, "column": 34 }, "end": { "line": 277, "column": 59 } }, "object": { "type": "Identifier", "start": 10453, "end": 10465, "loc": { "start": { "line": 277, "column": 34 }, "end": { "line": 277, "column": 46 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 10466, "end": 10478, "loc": { "start": { "line": 277, "column": 47 }, "end": { "line": 277, "column": 59 }, "identifierName": "halfTileSize" }, "name": "halfTileSize" }, "computed": false } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 10497, "end": 10538, "loc": { "start": { "line": 278, "column": 16 }, "end": { "line": 278, "column": 57 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10503, "end": 10537, "loc": { "start": { "line": 278, "column": 22 }, "end": { "line": 278, "column": 56 } }, "id": { "type": "Identifier", "start": 10503, "end": 10515, "loc": { "start": { "line": 278, "column": 22 }, "end": { "line": 278, "column": 34 }, "identifierName": "angleRadians" }, "name": "angleRadians" }, "init": { "type": "CallExpression", "start": 10518, "end": 10537, "loc": { "start": { "line": 278, "column": 37 }, "end": { "line": 278, "column": 56 } }, "callee": { "type": "MemberExpression", "start": 10518, "end": 10530, "loc": { "start": { "line": 278, "column": 37 }, "end": { "line": 278, "column": 49 } }, "object": { "type": "Identifier", "start": 10518, "end": 10522, "loc": { "start": { "line": 278, "column": 37 }, "end": { "line": 278, "column": 41 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 10523, "end": 10530, "loc": { "start": { "line": 278, "column": 42 }, "end": { "line": 278, "column": 49 }, "identifierName": "radians" }, "name": "radians" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 10531, "end": 10536, "loc": { "start": { "line": 278, "column": 50 }, "end": { "line": 278, "column": 55 }, "identifierName": "angle" }, "name": "angle" } ] } } ], "kind": "const", "trailingComments": [ { "type": "CommentLine", "value": " SYNC with systems/belt.js:drawSingleEntity!", "start": 10558, "end": 10604, "loc": { "start": { "line": 280, "column": 16 }, "end": { "line": 280, "column": 62 } } } ] }, { "type": "VariableDeclaration", "start": 10622, "end": 10832, "loc": { "start": { "line": 281, "column": 16 }, "end": { "line": 284, "column": 18 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10628, "end": 10831, "loc": { "start": { "line": 281, "column": 22 }, "end": { "line": 284, "column": 17 } }, "id": { "type": "Identifier", "start": 10628, "end": 10642, "loc": { "start": { "line": 281, "column": 22 }, "end": { "line": 281, "column": 36 }, "identifierName": "animationIndex" }, "name": "animationIndex", "leadingComments": null }, "init": { "type": "CallExpression", "start": 10645, "end": 10831, "loc": { "start": { "line": 281, "column": 39 }, "end": { "line": 284, "column": 17 } }, "callee": { "type": "MemberExpression", "start": 10645, "end": 10655, "loc": { "start": { "line": 281, "column": 39 }, "end": { "line": 281, "column": 49 } }, "object": { "type": "Identifier", "start": 10645, "end": 10649, "loc": { "start": { "line": 281, "column": 39 }, "end": { "line": 281, "column": 43 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 10650, "end": 10655, "loc": { "start": { "line": 281, "column": 44 }, "end": { "line": 281, "column": 49 }, "identifierName": "floor" }, "name": "floor" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 10678, "end": 10812, "loc": { "start": { "line": 282, "column": 20 }, "end": { "line": 283, "column": 51 } }, "left": { "type": "BinaryExpression", "start": 10679, "end": 10756, "loc": { "start": { "line": 282, "column": 21 }, "end": { "line": 282, "column": 98 } }, "left": { "type": "BinaryExpression", "start": 10680, "end": 10750, "loc": { "start": { "line": 282, "column": 22 }, "end": { "line": 282, "column": 92 } }, "left": { "type": "BinaryExpression", "start": 10680, "end": 10744, "loc": { "start": { "line": 282, "column": 22 }, "end": { "line": 282, "column": 86 } }, "left": { "type": "BinaryExpression", "start": 10680, "end": 10726, "loc": { "start": { "line": 282, "column": 22 }, "end": { "line": 282, "column": 68 } }, "left": { "type": "CallExpression", "start": 10680, "end": 10708, "loc": { "start": { "line": 282, "column": 22 }, "end": { "line": 282, "column": 50 } }, "callee": { "type": "MemberExpression", "start": 10680, "end": 10706, "loc": { "start": { "line": 282, "column": 22 }, "end": { "line": 282, "column": 48 } }, "object": { "type": "MemberExpression", "start": 10680, "end": 10694, "loc": { "start": { "line": 282, "column": 22 }, "end": { "line": 282, "column": 36 } }, "object": { "type": "MemberExpression", "start": 10680, "end": 10689, "loc": { "start": { "line": 282, "column": 22 }, "end": { "line": 282, "column": 31 } }, "object": { "type": "ThisExpression", "start": 10680, "end": 10684, "loc": { "start": { "line": 282, "column": 22 }, "end": { "line": 282, "column": 26 } } }, "property": { "type": "Identifier", "start": 10685, "end": 10689, "loc": { "start": { "line": 282, "column": 27 }, "end": { "line": 282, "column": 31 }, "identifierName": "root" }, "name": "root" }, "computed": false }, "property": { "type": "Identifier", "start": 10690, "end": 10694, "loc": { "start": { "line": 282, "column": 32 }, "end": { "line": 282, "column": 36 }, "identifierName": "time" }, "name": "time" }, "computed": false }, "property": { "type": "Identifier", "start": 10695, "end": 10706, "loc": { "start": { "line": 282, "column": 37 }, "end": { "line": 282, "column": 48 }, "identifierName": "realtimeNow" }, "name": "realtimeNow" }, "computed": false }, "arguments": [] }, "operator": "*", "right": { "type": "Identifier", "start": 10711, "end": 10726, "loc": { "start": { "line": 282, "column": 53 }, "end": { "line": 282, "column": 68 }, "identifierName": "speedMultiplier" }, "name": "speedMultiplier" } }, "operator": "*", "right": { "type": "Identifier", "start": 10729, "end": 10744, "loc": { "start": { "line": 282, "column": 71 }, "end": { "line": 282, "column": 86 }, "identifierName": "BELT_ANIM_COUNT" }, "name": "BELT_ANIM_COUNT" } }, "operator": "*", "right": { "type": "NumericLiteral", "start": 10747, "end": 10750, "loc": { "start": { "line": 282, "column": 89 }, "end": { "line": 282, "column": 92 } }, "extra": { "rawValue": 126, "raw": "126" }, "value": 126 }, "extra": { "parenthesized": true, "parenStart": 10679 } }, "operator": "/", "right": { "type": "NumericLiteral", "start": 10754, "end": 10756, "loc": { "start": { "line": 282, "column": 96 }, "end": { "line": 282, "column": 98 } }, "extra": { "rawValue": 42, "raw": "42" }, "value": 42 }, "extra": { "parenthesized": true, "parenStart": 10678 } }, "operator": "*", "right": { "type": "MemberExpression", "start": 10781, "end": 10812, "loc": { "start": { "line": 283, "column": 20 }, "end": { "line": 283, "column": 51 } }, "object": { "type": "Identifier", "start": 10781, "end": 10793, "loc": { "start": { "line": 283, "column": 20 }, "end": { "line": 283, "column": 32 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 10794, "end": 10812, "loc": { "start": { "line": 283, "column": 33 }, "end": { "line": 283, "column": 51 }, "identifierName": "itemSpacingOnBelts" }, "name": "itemSpacingOnBelts" }, "computed": false } } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " SYNC with systems/belt.js:drawSingleEntity!", "start": 10558, "end": 10604, "loc": { "start": { "line": 280, "column": 16 }, "end": { "line": 280, "column": 62 } } } ] }, { "type": "ExpressionStatement", "start": 10850, "end": 10885, "loc": { "start": { "line": 285, "column": 16 }, "end": { "line": 285, "column": 51 } }, "expression": { "type": "CallExpression", "start": 10850, "end": 10884, "loc": { "start": { "line": 285, "column": 16 }, "end": { "line": 285, "column": 50 } }, "callee": { "type": "MemberExpression", "start": 10850, "end": 10878, "loc": { "start": { "line": 285, "column": 16 }, "end": { "line": 285, "column": 44 } }, "object": { "type": "MemberExpression", "start": 10850, "end": 10868, "loc": { "start": { "line": 285, "column": 16 }, "end": { "line": 285, "column": 34 } }, "object": { "type": "Identifier", "start": 10850, "end": 10860, "loc": { "start": { "line": 285, "column": 16 }, "end": { "line": 285, "column": 26 }, "identifierName": "parameters" }, "name": "parameters" }, "property": { "type": "Identifier", "start": 10861, "end": 10868, "loc": { "start": { "line": 285, "column": 27 }, "end": { "line": 285, "column": 34 }, "identifierName": "context" }, "name": "context" }, "computed": false }, "property": { "type": "Identifier", "start": 10869, "end": 10878, "loc": { "start": { "line": 285, "column": 35 }, "end": { "line": 285, "column": 44 }, "identifierName": "translate" }, "name": "translate" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 10879, "end": 10880, "loc": { "start": { "line": 285, "column": 45 }, "end": { "line": 285, "column": 46 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 10882, "end": 10883, "loc": { "start": { "line": 285, "column": 48 }, "end": { "line": 285, "column": 49 }, "identifierName": "y" }, "name": "y" } ] } }, { "type": "ExpressionStatement", "start": 10903, "end": 10943, "loc": { "start": { "line": 286, "column": 16 }, "end": { "line": 286, "column": 56 } }, "expression": { "type": "CallExpression", "start": 10903, "end": 10942, "loc": { "start": { "line": 286, "column": 16 }, "end": { "line": 286, "column": 55 } }, "callee": { "type": "MemberExpression", "start": 10903, "end": 10928, "loc": { "start": { "line": 286, "column": 16 }, "end": { "line": 286, "column": 41 } }, "object": { "type": "MemberExpression", "start": 10903, "end": 10921, "loc": { "start": { "line": 286, "column": 16 }, "end": { "line": 286, "column": 34 } }, "object": { "type": "Identifier", "start": 10903, "end": 10913, "loc": { "start": { "line": 286, "column": 16 }, "end": { "line": 286, "column": 26 }, "identifierName": "parameters" }, "name": "parameters" }, "property": { "type": "Identifier", "start": 10914, "end": 10921, "loc": { "start": { "line": 286, "column": 27 }, "end": { "line": 286, "column": 34 }, "identifierName": "context" }, "name": "context" }, "computed": false }, "property": { "type": "Identifier", "start": 10922, "end": 10928, "loc": { "start": { "line": 286, "column": 35 }, "end": { "line": 286, "column": 41 }, "identifierName": "rotate" }, "name": "rotate" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 10929, "end": 10941, "loc": { "start": { "line": 286, "column": 42 }, "end": { "line": 286, "column": 54 }, "identifierName": "angleRadians" }, "name": "angleRadians" } ] } }, { "type": "ExpressionStatement", "start": 10961, "end": 11326, "loc": { "start": { "line": 287, "column": 16 }, "end": { "line": 294, "column": 18 } }, "expression": { "type": "CallExpression", "start": 10961, "end": 11325, "loc": { "start": { "line": 287, "column": 16 }, "end": { "line": 294, "column": 17 } }, "callee": { "type": "MemberExpression", "start": 10961, "end": 11098, "loc": { "start": { "line": 287, "column": 16 }, "end": { "line": 289, "column": 40 } }, "object": { "type": "MemberExpression", "start": 10961, "end": 11075, "loc": { "start": { "line": 287, "column": 16 }, "end": { "line": 289, "column": 17 } }, "object": { "type": "MemberExpression", "start": 10961, "end": 10985, "loc": { "start": { "line": 287, "column": 16 }, "end": { "line": 287, "column": 40 } }, "object": { "type": "ThisExpression", "start": 10961, "end": 10965, "loc": { "start": { "line": 287, "column": 16 }, "end": { "line": 287, "column": 20 } } }, "property": { "type": "Identifier", "start": 10966, "end": 10985, "loc": { "start": { "line": 287, "column": 21 }, "end": { "line": 287, "column": 40 }, "identifierName": "underlayBeltSprites" }, "name": "underlayBeltSprites" }, "computed": false }, "property": { "type": "BinaryExpression", "start": 11008, "end": 11056, "loc": { "start": { "line": 288, "column": 20 }, "end": { "line": 288, "column": 68 } }, "left": { "type": "Identifier", "start": 11008, "end": 11022, "loc": { "start": { "line": 288, "column": 20 }, "end": { "line": 288, "column": 34 }, "identifierName": "animationIndex" }, "name": "animationIndex" }, "operator": "%", "right": { "type": "MemberExpression", "start": 11025, "end": 11056, "loc": { "start": { "line": 288, "column": 37 }, "end": { "line": 288, "column": 68 } }, "object": { "type": "MemberExpression", "start": 11025, "end": 11049, "loc": { "start": { "line": 288, "column": 37 }, "end": { "line": 288, "column": 61 } }, "object": { "type": "ThisExpression", "start": 11025, "end": 11029, "loc": { "start": { "line": 288, "column": 37 }, "end": { "line": 288, "column": 41 } } }, "property": { "type": "Identifier", "start": 11030, "end": 11049, "loc": { "start": { "line": 288, "column": 42 }, "end": { "line": 288, "column": 61 }, "identifierName": "underlayBeltSprites" }, "name": "underlayBeltSprites" }, "computed": false }, "property": { "type": "Identifier", "start": 11050, "end": 11056, "loc": { "start": { "line": 288, "column": 62 }, "end": { "line": 288, "column": 68 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "computed": true }, "property": { "type": "Identifier", "start": 11076, "end": 11098, "loc": { "start": { "line": 289, "column": 18 }, "end": { "line": 289, "column": 40 }, "identifierName": "drawCachedWithClipRect" }, "name": "drawCachedWithClipRect" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 11121, "end": 11131, "loc": { "start": { "line": 290, "column": 20 }, "end": { "line": 290, "column": 30 }, "identifierName": "parameters" }, "name": "parameters" }, { "type": "UnaryExpression", "start": 11133, "end": 11159, "loc": { "start": { "line": 290, "column": 32 }, "end": { "line": 290, "column": 58 } }, "operator": "-", "prefix": true, "argument": { "type": "MemberExpression", "start": 11134, "end": 11159, "loc": { "start": { "line": 290, "column": 33 }, "end": { "line": 290, "column": 58 } }, "object": { "type": "Identifier", "start": 11134, "end": 11146, "loc": { "start": { "line": 290, "column": 33 }, "end": { "line": 290, "column": 45 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 11147, "end": 11159, "loc": { "start": { "line": 290, "column": 46 }, "end": { "line": 290, "column": 58 }, "identifierName": "halfTileSize" }, "name": "halfTileSize" }, "computed": false }, "extra": { "parenthesizedArgument": false } }, { "type": "UnaryExpression", "start": 11161, "end": 11187, "loc": { "start": { "line": 290, "column": 60 }, "end": { "line": 290, "column": 86 } }, "operator": "-", "prefix": true, "argument": { "type": "MemberExpression", "start": 11162, "end": 11187, "loc": { "start": { "line": 290, "column": 61 }, "end": { "line": 290, "column": 86 } }, "object": { "type": "Identifier", "start": 11162, "end": 11174, "loc": { "start": { "line": 290, "column": 61 }, "end": { "line": 290, "column": 73 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 11175, "end": 11187, "loc": { "start": { "line": 290, "column": 74 }, "end": { "line": 290, "column": 86 }, "identifierName": "halfTileSize" }, "name": "halfTileSize" }, "computed": false }, "extra": { "parenthesizedArgument": false } }, { "type": "MemberExpression", "start": 11210, "end": 11231, "loc": { "start": { "line": 291, "column": 20 }, "end": { "line": 291, "column": 41 } }, "object": { "type": "Identifier", "start": 11210, "end": 11222, "loc": { "start": { "line": 291, "column": 20 }, "end": { "line": 291, "column": 32 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 11223, "end": 11231, "loc": { "start": { "line": 291, "column": 33 }, "end": { "line": 291, "column": 41 }, "identifierName": "tileSize" }, "name": "tileSize" }, "computed": false }, { "type": "MemberExpression", "start": 11254, "end": 11275, "loc": { "start": { "line": 292, "column": 20 }, "end": { "line": 292, "column": 41 } }, "object": { "type": "Identifier", "start": 11254, "end": 11266, "loc": { "start": { "line": 292, "column": 20 }, "end": { "line": 292, "column": 32 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 11267, "end": 11275, "loc": { "start": { "line": 292, "column": 33 }, "end": { "line": 292, "column": 41 }, "identifierName": "tileSize" }, "name": "tileSize" }, "computed": false }, { "type": "Identifier", "start": 11298, "end": 11306, "loc": { "start": { "line": 293, "column": 20 }, "end": { "line": 293, "column": 28 }, "identifierName": "clipRect" }, "name": "clipRect" } ] } }, { "type": "ExpressionStatement", "start": 11344, "end": 11385, "loc": { "start": { "line": 295, "column": 16 }, "end": { "line": 295, "column": 57 } }, "expression": { "type": "CallExpression", "start": 11344, "end": 11384, "loc": { "start": { "line": 295, "column": 16 }, "end": { "line": 295, "column": 56 } }, "callee": { "type": "MemberExpression", "start": 11344, "end": 11369, "loc": { "start": { "line": 295, "column": 16 }, "end": { "line": 295, "column": 41 } }, "object": { "type": "MemberExpression", "start": 11344, "end": 11362, "loc": { "start": { "line": 295, "column": 16 }, "end": { "line": 295, "column": 34 } }, "object": { "type": "Identifier", "start": 11344, "end": 11354, "loc": { "start": { "line": 295, "column": 16 }, "end": { "line": 295, "column": 26 }, "identifierName": "parameters" }, "name": "parameters" }, "property": { "type": "Identifier", "start": 11355, "end": 11362, "loc": { "start": { "line": 295, "column": 27 }, "end": { "line": 295, "column": 34 }, "identifierName": "context" }, "name": "context" }, "computed": false }, "property": { "type": "Identifier", "start": 11363, "end": 11369, "loc": { "start": { "line": 295, "column": 35 }, "end": { "line": 295, "column": 41 }, "identifierName": "rotate" }, "name": "rotate" }, "computed": false }, "arguments": [ { "type": "UnaryExpression", "start": 11370, "end": 11383, "loc": { "start": { "line": 295, "column": 42 }, "end": { "line": 295, "column": 55 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 11371, "end": 11383, "loc": { "start": { "line": 295, "column": 43 }, "end": { "line": 295, "column": 55 }, "identifierName": "angleRadians" }, "name": "angleRadians" }, "extra": { "parenthesizedArgument": false } } ] } }, { "type": "ExpressionStatement", "start": 11403, "end": 11440, "loc": { "start": { "line": 296, "column": 16 }, "end": { "line": 296, "column": 53 } }, "expression": { "type": "CallExpression", "start": 11403, "end": 11439, "loc": { "start": { "line": 296, "column": 16 }, "end": { "line": 296, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 11403, "end": 11431, "loc": { "start": { "line": 296, "column": 16 }, "end": { "line": 296, "column": 44 } }, "object": { "type": "MemberExpression", "start": 11403, "end": 11421, "loc": { "start": { "line": 296, "column": 16 }, "end": { "line": 296, "column": 34 } }, "object": { "type": "Identifier", "start": 11403, "end": 11413, "loc": { "start": { "line": 296, "column": 16 }, "end": { "line": 296, "column": 26 }, "identifierName": "parameters" }, "name": "parameters" }, "property": { "type": "Identifier", "start": 11414, "end": 11421, "loc": { "start": { "line": 296, "column": 27 }, "end": { "line": 296, "column": 34 }, "identifierName": "context" }, "name": "context" }, "computed": false }, "property": { "type": "Identifier", "start": 11422, "end": 11431, "loc": { "start": { "line": 296, "column": 35 }, "end": { "line": 296, "column": 44 }, "identifierName": "translate" }, "name": "translate" }, "computed": false }, "arguments": [ { "type": "UnaryExpression", "start": 11432, "end": 11434, "loc": { "start": { "line": 296, "column": 45 }, "end": { "line": 296, "column": 47 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 11433, "end": 11434, "loc": { "start": { "line": 296, "column": 46 }, "end": { "line": 296, "column": 47 }, "identifierName": "x" }, "name": "x" }, "extra": { "parenthesizedArgument": false } }, { "type": "UnaryExpression", "start": 11436, "end": 11438, "loc": { "start": { "line": 296, "column": 49 }, "end": { "line": 296, "column": 51 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 11437, "end": 11438, "loc": { "start": { "line": 296, "column": 50 }, "end": { "line": 296, "column": 51 }, "identifierName": "y" }, "name": "y" }, "extra": { "parenthesizedArgument": false } } ] } } ], "directives": [] } } ], "directives": [] } } ], "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Draws a given chunk\r\n * @param {DrawParameters} parameters\r\n * @param {MapChunkView} chunk\r\n ", "start": 8099, "end": 8218, "loc": { "start": { "line": 223, "column": 4 }, "end": { "line": 227, "column": 7 } } } ] } ] }, "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "*\r\n * Mapping from underlay type to clip rect\r\n * @type {Object}\r\n ", "start": 981, "end": 1092, "loc": { "start": { "line": 23, "column": 0 }, "end": { "line": 26, "column": 3 } } }, { "type": "CommentLine", "value": " Automatically recompute areas", "start": 1755, "end": 1787, "loc": { "start": { "line": 44, "column": 8 }, "end": { "line": 44, "column": 40 } } }, { "type": "CommentBlock", "value": "*\r\n * Called when an area changed - Resets all caches in the given area\r\n * @param {Rectangle} area\r\n ", "start": 2291, "end": 2409, "loc": { "start": { "line": 65, "column": 4 }, "end": { "line": 68, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if a given tile is connected and has an acceptor\r\n * @param {Vector} tile\r\n * @param {enumDirection} fromDirection\r\n * @returns {boolean}\r\n ", "start": 3123, "end": 3300, "loc": { "start": { "line": 87, "column": 4 }, "end": { "line": 92, "column": 7 } } }, { "type": "CommentLine", "value": " Check if its a belt, since then its simple", "start": 3582, "end": 3627, "loc": { "start": { "line": 101, "column": 8 }, "end": { "line": 101, "column": 53 } } }, { "type": "CommentLine", "value": " Check if there's an item acceptor", "start": 3821, "end": 3857, "loc": { "start": { "line": 107, "column": 8 }, "end": { "line": 107, "column": 44 } } }, { "type": "CommentLine", "value": " Check each slot to see if its connected", "start": 3964, "end": 4006, "loc": { "start": { "line": 110, "column": 12 }, "end": { "line": 110, "column": 54 } } }, { "type": "CommentLine", "value": " Step 1: Check if the tile matches", "start": 4219, "end": 4255, "loc": { "start": { "line": 115, "column": 16 }, "end": { "line": 115, "column": 52 } } }, { "type": "CommentLine", "value": " Step 2: Check if any of the directions matches", "start": 4372, "end": 4421, "loc": { "start": { "line": 120, "column": 16 }, "end": { "line": 120, "column": 65 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if a given tile is connected and has an ejector\r\n * @param {Vector} tile\r\n * @param {enumDirection} toDirection\r\n * @returns {boolean}\r\n ", "start": 4792, "end": 4966, "loc": { "start": { "line": 133, "column": 4 }, "end": { "line": 138, "column": 7 } } }, { "type": "CommentLine", "value": " Check if its a belt, since then its simple", "start": 5245, "end": 5290, "loc": { "start": { "line": 147, "column": 8 }, "end": { "line": 147, "column": 53 } } }, { "type": "CommentLine", "value": " Check for an ejector", "start": 5480, "end": 5503, "loc": { "start": { "line": 153, "column": 8 }, "end": { "line": 153, "column": 31 } } }, { "type": "CommentLine", "value": " Check each slot to see if its connected", "start": 5607, "end": 5649, "loc": { "start": { "line": 156, "column": 12 }, "end": { "line": 156, "column": 54 } } }, { "type": "CommentLine", "value": " Step 1: Check if the tile matches", "start": 5860, "end": 5896, "loc": { "start": { "line": 161, "column": 16 }, "end": { "line": 161, "column": 52 } } }, { "type": "CommentLine", "value": " Step 2: Check if the direction matches", "start": 6013, "end": 6054, "loc": { "start": { "line": 166, "column": 16 }, "end": { "line": 166, "column": 57 } } }, { "type": "CommentBlock", "value": "*\r\n * Computes the flag for a given tile\r\n * @param {Entity} entity\r\n * @param {import(\"../components/belt_underlays\").BeltUnderlayTile} underlayTile\r\n * @returns {enumClippedBeltUnderlayType} The type of the underlay\r\n ", "start": 6316, "end": 6560, "loc": { "start": { "line": 177, "column": 4 }, "end": { "line": 182, "column": 7 } } }, { "type": "CommentLine", "value": " Extract direction and angle", "start": 6997, "end": 7027, "loc": { "start": { "line": 194, "column": 8 }, "end": { "line": 194, "column": 38 } } }, { "type": "CommentLine", "value": " Figure out if there is anything connected at the top", "start": 7206, "end": 7261, "loc": { "start": { "line": 198, "column": 8 }, "end": { "line": 198, "column": 63 } } }, { "type": "CommentLine", "value": " Figure out if there is anything connected at the bottom", "start": 7453, "end": 7511, "loc": { "start": { "line": 204, "column": 8 }, "end": { "line": 204, "column": 66 } } }, { "type": "CommentBlock", "value": "*\r\n * Draws a given chunk\r\n * @param {DrawParameters} parameters\r\n * @param {MapChunkView} chunk\r\n ", "start": 8099, "end": 8218, "loc": { "start": { "line": 223, "column": 4 }, "end": { "line": 227, "column": 7 } } }, { "type": "CommentLine", "value": " Limit speed to avoid belts going backwards", "start": 8280, "end": 8325, "loc": { "start": { "line": 229, "column": 8 }, "end": { "line": 229, "column": 53 } } }, { "type": "CommentLine", "value": " Extract underlay parameters", "start": 8916, "end": 8946, "loc": { "start": { "line": 243, "column": 16 }, "end": { "line": 243, "column": 46 } } }, { "type": "CommentLine", "value": " Culling, Part 1: Check if the chunk contains the tile", "start": 9244, "end": 9300, "loc": { "start": { "line": 249, "column": 16 }, "end": { "line": 249, "column": 72 } } }, { "type": "CommentLine", "value": " Culling, Part 2: Check if the overlay is visible", "start": 9470, "end": 9521, "loc": { "start": { "line": 254, "column": 16 }, "end": { "line": 254, "column": 67 } } }, { "type": "CommentLine", "value": " Extract direction and angle", "start": 9842, "end": 9872, "loc": { "start": { "line": 264, "column": 16 }, "end": { "line": 264, "column": 46 } } }, { "type": "CommentLine", "value": " Empty", "start": 10250, "end": 10258, "loc": { "start": { "line": 271, "column": 20 }, "end": { "line": 271, "column": 28 } } }, { "type": "CommentLine", "value": " Actually draw the sprite", "start": 10328, "end": 10355, "loc": { "start": { "line": 275, "column": 16 }, "end": { "line": 275, "column": 43 } } }, { "type": "CommentLine", "value": " SYNC with systems/belt.js:drawSingleEntity!", "start": 10558, "end": 10604, "loc": { "start": { "line": 280, "column": 16 }, "end": { "line": 280, "column": 62 } } } ], "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": "DrawParameters", "start": 60, "end": 74, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 23 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 75, "end": 76, "loc": { "start": { "line": 2, "column": 24 }, "end": { "line": 2, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 77, "end": 81, "loc": { "start": { "line": 2, "column": 26 }, "end": { "line": 2, "column": 30 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../../core/draw_parameters", "start": 82, "end": 110, "loc": { "start": { "line": 2, "column": 31 }, "end": { "line": 2, "column": 59 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 110, "end": 111, "loc": { "start": { "line": 2, "column": 59 }, "end": { "line": 2, "column": 60 } } }, { "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": 113, "end": 119, "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": 120, "end": 121, "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": "Loader", "start": 122, "end": 128, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 15 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 129, "end": 130, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 131, "end": 135, "loc": { "start": { "line": 3, "column": 18 }, "end": { "line": 3, "column": 22 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../../core/loader", "start": 136, "end": 155, "loc": { "start": { "line": 3, "column": 23 }, "end": { "line": 3, "column": 42 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 155, "end": 156, "loc": { "start": { "line": 3, "column": 42 }, "end": { "line": 3, "column": 43 } } }, { "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": 158, "end": 164, "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": 165, "end": 166, "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": "Rectangle", "start": 167, "end": 176, "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": 177, "end": 178, "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": 179, "end": 183, "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": "../../core/rectangle", "start": 184, "end": 206, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 48 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 206, "end": 207, "loc": { "start": { "line": 4, "column": 48 }, "end": { "line": 4, "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": 209, "end": 215, "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": 216, "end": 217, "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": "FULL_CLIP_RECT", "start": 218, "end": 232, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 233, "end": 234, "loc": { "start": { "line": 5, "column": 24 }, "end": { "line": 5, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 235, "end": 239, "loc": { "start": { "line": 5, "column": 26 }, "end": { "line": 5, "column": 30 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../../core/sprites", "start": 240, "end": 260, "loc": { "start": { "line": 5, "column": 31 }, "end": { "line": 5, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 260, "end": 261, "loc": { "start": { "line": 5, "column": 51 }, "end": { "line": 5, "column": 52 } } }, { "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": 263, "end": 269, "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": 270, "end": 271, "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": "StaleAreaDetector", "start": 272, "end": 289, "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": 290, "end": 291, "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": 292, "end": 296, "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": "../../core/stale_area_detector", "start": 297, "end": 329, "loc": { "start": { "line": 6, "column": 34 }, "end": { "line": 6, "column": 66 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 329, "end": 330, "loc": { "start": { "line": 6, "column": 66 }, "end": { "line": 6, "column": 67 } } }, { "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": 332, "end": 338, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 339, "end": 340, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumDirection", "start": 346, "end": 359, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 17 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 359, "end": 360, "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumDirectionToAngle", "start": 366, "end": 386, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 24 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 386, "end": 387, "loc": { "start": { "line": 9, "column": 24 }, "end": { "line": 9, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumDirectionToVector", "start": 393, "end": 414, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 25 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 414, "end": 415, "loc": { "start": { "line": 10, "column": 25 }, "end": { "line": 10, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumInvertedDirections", "start": 421, "end": 443, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 26 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 443, "end": 444, "loc": { "start": { "line": 11, "column": 26 }, "end": { "line": 11, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Vector", "start": 450, "end": 456, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 10 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 456, "end": 457, "loc": { "start": { "line": 12, "column": 10 }, "end": { "line": 12, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 459, "end": 460, "loc": { "start": { "line": 13, "column": 0 }, "end": { "line": 13, "column": 1 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 461, "end": 465, "loc": { "start": { "line": 13, "column": 2 }, "end": { "line": 13, "column": 6 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../../core/vector", "start": 466, "end": 485, "loc": { "start": { "line": 13, "column": 7 }, "end": { "line": 13, "column": 26 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 485, "end": 486, "loc": { "start": { "line": 13, "column": 26 }, "end": { "line": 13, "column": 27 } } }, { "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": 488, "end": 494, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 495, "end": 496, "loc": { "start": { "line": 14, "column": 7 }, "end": { "line": 14, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BeltComponent", "start": 497, "end": 510, "loc": { "start": { "line": 14, "column": 9 }, "end": { "line": 14, "column": 22 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 511, "end": 512, "loc": { "start": { "line": 14, "column": 23 }, "end": { "line": 14, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 513, "end": 517, "loc": { "start": { "line": 14, "column": 25 }, "end": { "line": 14, "column": 29 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../components/belt", "start": 518, "end": 538, "loc": { "start": { "line": 14, "column": 30 }, "end": { "line": 14, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 538, "end": 539, "loc": { "start": { "line": 14, "column": 50 }, "end": { "line": 14, "column": 51 } } }, { "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": 541, "end": 547, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 548, "end": 549, "loc": { "start": { "line": 15, "column": 7 }, "end": { "line": 15, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BeltUnderlaysComponent", "start": 550, "end": 572, "loc": { "start": { "line": 15, "column": 9 }, "end": { "line": 15, "column": 31 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 572, "end": 573, "loc": { "start": { "line": 15, "column": 31 }, "end": { "line": 15, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumClippedBeltUnderlayType", "start": 574, "end": 601, "loc": { "start": { "line": 15, "column": 33 }, "end": { "line": 15, "column": 60 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 602, "end": 603, "loc": { "start": { "line": 15, "column": 61 }, "end": { "line": 15, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 604, "end": 608, "loc": { "start": { "line": 15, "column": 63 }, "end": { "line": 15, "column": 67 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../components/belt_underlays", "start": 609, "end": 639, "loc": { "start": { "line": 15, "column": 68 }, "end": { "line": 15, "column": 98 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 639, "end": 640, "loc": { "start": { "line": 15, "column": 98 }, "end": { "line": 15, "column": 99 } } }, { "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": 642, "end": 648, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 649, "end": 650, "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ItemAcceptorComponent", "start": 651, "end": 672, "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 30 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 673, "end": 674, "loc": { "start": { "line": 16, "column": 31 }, "end": { "line": 16, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 675, "end": 679, "loc": { "start": { "line": 16, "column": 33 }, "end": { "line": 16, "column": 37 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../components/item_acceptor", "start": 680, "end": 709, "loc": { "start": { "line": 16, "column": 38 }, "end": { "line": 16, "column": 67 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 709, "end": 710, "loc": { "start": { "line": 16, "column": 67 }, "end": { "line": 16, "column": 68 } } }, { "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": 712, "end": 718, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 719, "end": 720, "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ItemEjectorComponent", "start": 721, "end": 741, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 742, "end": 743, "loc": { "start": { "line": 17, "column": 30 }, "end": { "line": 17, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 744, "end": 748, "loc": { "start": { "line": 17, "column": 32 }, "end": { "line": 17, "column": 36 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../components/item_ejector", "start": 749, "end": 777, "loc": { "start": { "line": 17, "column": 37 }, "end": { "line": 17, "column": 65 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 777, "end": 778, "loc": { "start": { "line": 17, "column": 65 }, "end": { "line": 17, "column": 66 } } }, { "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": 780, "end": 786, "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 18, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 787, "end": 788, "loc": { "start": { "line": 18, "column": 7 }, "end": { "line": 18, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Entity", "start": 789, "end": 795, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 15 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 796, "end": 797, "loc": { "start": { "line": 18, "column": 16 }, "end": { "line": 18, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 798, "end": 802, "loc": { "start": { "line": 18, "column": 18 }, "end": { "line": 18, "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": 803, "end": 814, "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 18, "column": 34 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 814, "end": 815, "loc": { "start": { "line": 18, "column": 34 }, "end": { "line": 18, "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": 817, "end": 823, "loc": { "start": { "line": 19, "column": 0 }, "end": { "line": 19, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 824, "end": 825, "loc": { "start": { "line": 19, "column": 7 }, "end": { "line": 19, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "GameSystemWithFilter", "start": 826, "end": 846, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 847, "end": 848, "loc": { "start": { "line": 19, "column": 30 }, "end": { "line": 19, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 849, "end": 853, "loc": { "start": { "line": 19, "column": 32 }, "end": { "line": 19, "column": 36 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../game_system_with_filter", "start": 854, "end": 882, "loc": { "start": { "line": 19, "column": 37 }, "end": { "line": 19, "column": 65 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 882, "end": 883, "loc": { "start": { "line": 19, "column": 65 }, "end": { "line": 19, "column": 66 } } }, { "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": 885, "end": 891, "loc": { "start": { "line": 20, "column": 0 }, "end": { "line": 20, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 892, "end": 893, "loc": { "start": { "line": 20, "column": 7 }, "end": { "line": 20, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "MapChunkView", "start": 894, "end": 906, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 907, "end": 908, "loc": { "start": { "line": 20, "column": 22 }, "end": { "line": 20, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 909, "end": 913, "loc": { "start": { "line": 20, "column": 24 }, "end": { "line": 20, "column": 28 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../map_chunk_view", "start": 914, "end": 933, "loc": { "start": { "line": 20, "column": 29 }, "end": { "line": 20, "column": 48 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 933, "end": 934, "loc": { "start": { "line": 20, "column": 48 }, "end": { "line": 20, "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": 936, "end": 942, "loc": { "start": { "line": 21, "column": 0 }, "end": { "line": 21, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 943, "end": 944, "loc": { "start": { "line": 21, "column": 7 }, "end": { "line": 21, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BELT_ANIM_COUNT", "start": 945, "end": 960, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 24 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 961, "end": 962, "loc": { "start": { "line": 21, "column": 25 }, "end": { "line": 21, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 963, "end": 967, "loc": { "start": { "line": 21, "column": 27 }, "end": { "line": 21, "column": 31 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./belt", "start": 968, "end": 976, "loc": { "start": { "line": 21, "column": 32 }, "end": { "line": 21, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 976, "end": 977, "loc": { "start": { "line": 21, "column": 40 }, "end": { "line": 21, "column": 41 } } }, { "type": "CommentBlock", "value": "*\r\n * Mapping from underlay type to clip rect\r\n * @type {Object}\r\n ", "start": 981, "end": 1092, "loc": { "start": { "line": 23, "column": 0 }, "end": { "line": 26, "column": 3 } } }, { "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": 1094, "end": 1099, "loc": { "start": { "line": 27, "column": 0 }, "end": { "line": 27, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumUnderlayTypeToClipRect", "start": 1100, "end": 1126, "loc": { "start": { "line": 27, "column": 6 }, "end": { "line": 27, "column": 32 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1127, "end": 1128, "loc": { "start": { "line": 27, "column": 33 }, "end": { "line": 27, "column": 34 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1129, "end": 1130, "loc": { "start": { "line": 27, "column": 35 }, "end": { "line": 27, "column": 36 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1136, "end": 1137, "loc": { "start": { "line": 28, "column": 4 }, "end": { "line": 28, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumClippedBeltUnderlayType", "start": 1137, "end": 1164, "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1164, "end": 1165, "loc": { "start": { "line": 28, "column": 32 }, "end": { "line": 28, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "none", "start": 1165, "end": 1169, "loc": { "start": { "line": 28, "column": 33 }, "end": { "line": 28, "column": 37 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1169, "end": 1170, "loc": { "start": { "line": 28, "column": 37 }, "end": { "line": 28, "column": 38 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1170, "end": 1171, "loc": { "start": { "line": 28, "column": 38 }, "end": { "line": 28, "column": 39 } } }, { "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": 1172, "end": 1176, "loc": { "start": { "line": 28, "column": 40 }, "end": { "line": 28, "column": 44 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1176, "end": 1177, "loc": { "start": { "line": 28, "column": 44 }, "end": { "line": 28, "column": 45 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1183, "end": 1184, "loc": { "start": { "line": 29, "column": 4 }, "end": { "line": 29, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumClippedBeltUnderlayType", "start": 1184, "end": 1211, "loc": { "start": { "line": 29, "column": 5 }, "end": { "line": 29, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1211, "end": 1212, "loc": { "start": { "line": 29, "column": 32 }, "end": { "line": 29, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "full", "start": 1212, "end": 1216, "loc": { "start": { "line": 29, "column": 33 }, "end": { "line": 29, "column": 37 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1216, "end": 1217, "loc": { "start": { "line": 29, "column": 37 }, "end": { "line": 29, "column": 38 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1217, "end": 1218, "loc": { "start": { "line": 29, "column": 38 }, "end": { "line": 29, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "FULL_CLIP_RECT", "start": 1219, "end": 1233, "loc": { "start": { "line": 29, "column": 40 }, "end": { "line": 29, "column": 54 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1233, "end": 1234, "loc": { "start": { "line": 29, "column": 54 }, "end": { "line": 29, "column": 55 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1240, "end": 1241, "loc": { "start": { "line": 30, "column": 4 }, "end": { "line": 30, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumClippedBeltUnderlayType", "start": 1241, "end": 1268, "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 30, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1268, "end": 1269, "loc": { "start": { "line": 30, "column": 32 }, "end": { "line": 30, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topOnly", "start": 1269, "end": 1276, "loc": { "start": { "line": 30, "column": 33 }, "end": { "line": 30, "column": 40 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1276, "end": 1277, "loc": { "start": { "line": 30, "column": 40 }, "end": { "line": 30, "column": 41 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1277, "end": 1278, "loc": { "start": { "line": 30, "column": 41 }, "end": { "line": 30, "column": 42 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 1279, "end": 1282, "loc": { "start": { "line": 30, "column": 43 }, "end": { "line": 30, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Rectangle", "start": 1283, "end": 1292, "loc": { "start": { "line": 30, "column": 47 }, "end": { "line": 30, "column": 56 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1292, "end": 1293, "loc": { "start": { "line": 30, "column": 56 }, "end": { "line": 30, "column": 57 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 1293, "end": 1294, "loc": { "start": { "line": 30, "column": 57 }, "end": { "line": 30, "column": 58 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1294, "end": 1295, "loc": { "start": { "line": 30, "column": 58 }, "end": { "line": 30, "column": 59 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 1296, "end": 1297, "loc": { "start": { "line": 30, "column": 60 }, "end": { "line": 30, "column": 61 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1297, "end": 1298, "loc": { "start": { "line": 30, "column": 61 }, "end": { "line": 30, "column": 62 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 1299, "end": 1300, "loc": { "start": { "line": 30, "column": 63 }, "end": { "line": 30, "column": 64 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1300, "end": 1301, "loc": { "start": { "line": 30, "column": 64 }, "end": { "line": 30, "column": 65 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0.5, "start": 1302, "end": 1305, "loc": { "start": { "line": 30, "column": 66 }, "end": { "line": 30, "column": 69 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1305, "end": 1306, "loc": { "start": { "line": 30, "column": 69 }, "end": { "line": 30, "column": 70 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1306, "end": 1307, "loc": { "start": { "line": 30, "column": 70 }, "end": { "line": 30, "column": 71 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1313, "end": 1314, "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 31, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumClippedBeltUnderlayType", "start": 1314, "end": 1341, "loc": { "start": { "line": 31, "column": 5 }, "end": { "line": 31, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1341, "end": 1342, "loc": { "start": { "line": 31, "column": 32 }, "end": { "line": 31, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottomOnly", "start": 1342, "end": 1352, "loc": { "start": { "line": 31, "column": 33 }, "end": { "line": 31, "column": 43 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1352, "end": 1353, "loc": { "start": { "line": 31, "column": 43 }, "end": { "line": 31, "column": 44 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1353, "end": 1354, "loc": { "start": { "line": 31, "column": 44 }, "end": { "line": 31, "column": 45 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 1355, "end": 1358, "loc": { "start": { "line": 31, "column": 46 }, "end": { "line": 31, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Rectangle", "start": 1359, "end": 1368, "loc": { "start": { "line": 31, "column": 50 }, "end": { "line": 31, "column": 59 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1368, "end": 1369, "loc": { "start": { "line": 31, "column": 59 }, "end": { "line": 31, "column": 60 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 1369, "end": 1370, "loc": { "start": { "line": 31, "column": 60 }, "end": { "line": 31, "column": 61 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1370, "end": 1371, "loc": { "start": { "line": 31, "column": 61 }, "end": { "line": 31, "column": 62 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0.5, "start": 1372, "end": 1375, "loc": { "start": { "line": 31, "column": 63 }, "end": { "line": 31, "column": 66 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1375, "end": 1376, "loc": { "start": { "line": 31, "column": 66 }, "end": { "line": 31, "column": 67 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 1377, "end": 1378, "loc": { "start": { "line": 31, "column": 68 }, "end": { "line": 31, "column": 69 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1378, "end": 1379, "loc": { "start": { "line": 31, "column": 69 }, "end": { "line": 31, "column": 70 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0.5, "start": 1380, "end": 1383, "loc": { "start": { "line": 31, "column": 71 }, "end": { "line": 31, "column": 74 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1383, "end": 1384, "loc": { "start": { "line": 31, "column": 74 }, "end": { "line": 31, "column": 75 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1384, "end": 1385, "loc": { "start": { "line": 31, "column": 75 }, "end": { "line": 31, "column": 76 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1387, "end": 1388, "loc": { "start": { "line": 32, "column": 0 }, "end": { "line": 32, "column": 1 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1388, "end": 1389, "loc": { "start": { "line": 32, "column": 1 }, "end": { "line": 32, "column": 2 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 1393, "end": 1399, "loc": { "start": { "line": 34, "column": 0 }, "end": { "line": 34, "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": 1400, "end": 1405, "loc": { "start": { "line": 34, "column": 7 }, "end": { "line": 34, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BeltUnderlaysSystem", "start": 1406, "end": 1425, "loc": { "start": { "line": 34, "column": 13 }, "end": { "line": 34, "column": 32 } } }, { "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": 1426, "end": 1433, "loc": { "start": { "line": 34, "column": 33 }, "end": { "line": 34, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "GameSystemWithFilter", "start": 1434, "end": 1454, "loc": { "start": { "line": 34, "column": 41 }, "end": { "line": 34, "column": 61 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1455, "end": 1456, "loc": { "start": { "line": 34, "column": 62 }, "end": { "line": 34, "column": 63 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 1462, "end": 1473, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 35, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1473, "end": 1474, "loc": { "start": { "line": 35, "column": 15 }, "end": { "line": 35, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 1474, "end": 1478, "loc": { "start": { "line": 35, "column": 16 }, "end": { "line": 35, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1478, "end": 1479, "loc": { "start": { "line": 35, "column": 20 }, "end": { "line": 35, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1480, "end": 1481, "loc": { "start": { "line": 35, "column": 22 }, "end": { "line": 35, "column": 23 } } }, { "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": 1491, "end": 1496, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1496, "end": 1497, "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 36, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 1497, "end": 1501, "loc": { "start": { "line": 36, "column": 14 }, "end": { "line": 36, "column": 18 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1501, "end": 1502, "loc": { "start": { "line": 36, "column": 18 }, "end": { "line": 36, "column": 19 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1503, "end": 1504, "loc": { "start": { "line": 36, "column": 20 }, "end": { "line": 36, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BeltUnderlaysComponent", "start": 1504, "end": 1526, "loc": { "start": { "line": 36, "column": 21 }, "end": { "line": 36, "column": 43 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1526, "end": 1527, "loc": { "start": { "line": 36, "column": 43 }, "end": { "line": 36, "column": 44 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1527, "end": 1528, "loc": { "start": { "line": 36, "column": 44 }, "end": { "line": 36, "column": 45 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1528, "end": 1529, "loc": { "start": { "line": 36, "column": 45 }, "end": { "line": 36, "column": 46 } } }, { "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": 1541, "end": 1545, "loc": { "start": { "line": 38, "column": 8 }, "end": { "line": 38, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1545, "end": 1546, "loc": { "start": { "line": 38, "column": 12 }, "end": { "line": 38, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayBeltSprites", "start": 1546, "end": 1565, "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 38, "column": 32 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1566, "end": 1567, "loc": { "start": { "line": 38, "column": 33 }, "end": { "line": 38, "column": 34 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1568, "end": 1569, "loc": { "start": { "line": 38, "column": 35 }, "end": { "line": 38, "column": 36 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1569, "end": 1570, "loc": { "start": { "line": 38, "column": 36 }, "end": { "line": 38, "column": 37 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1570, "end": 1571, "loc": { "start": { "line": 38, "column": 37 }, "end": { "line": 38, "column": 38 } } }, { "type": { "label": "for", "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "for", "start": 1583, "end": 1586, "loc": { "start": { "line": 40, "column": 8 }, "end": { "line": 40, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1587, "end": 1588, "loc": { "start": { "line": 40, "column": 12 }, "end": { "line": 40, "column": 13 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 1588, "end": 1591, "loc": { "start": { "line": 40, "column": 13 }, "end": { "line": 40, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 1592, "end": 1593, "loc": { "start": { "line": 40, "column": 17 }, "end": { "line": 40, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1594, "end": 1595, "loc": { "start": { "line": 40, "column": 19 }, "end": { "line": 40, "column": 20 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 1596, "end": 1597, "loc": { "start": { "line": 40, "column": 21 }, "end": { "line": 40, "column": 22 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1597, "end": 1598, "loc": { "start": { "line": 40, "column": 22 }, "end": { "line": 40, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 1599, "end": 1600, "loc": { "start": { "line": 40, "column": 24 }, "end": { "line": 40, "column": 25 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 1601, "end": 1602, "loc": { "start": { "line": 40, "column": 26 }, "end": { "line": 40, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BELT_ANIM_COUNT", "start": 1603, "end": 1618, "loc": { "start": { "line": 40, "column": 28 }, "end": { "line": 40, "column": 43 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1618, "end": 1619, "loc": { "start": { "line": 40, "column": 43 }, "end": { "line": 40, "column": 44 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 1620, "end": 1622, "loc": { "start": { "line": 40, "column": 45 }, "end": { "line": 40, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 1622, "end": 1623, "loc": { "start": { "line": 40, "column": 47 }, "end": { "line": 40, "column": 48 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1623, "end": 1624, "loc": { "start": { "line": 40, "column": 48 }, "end": { "line": 40, "column": 49 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1625, "end": 1626, "loc": { "start": { "line": 40, "column": 50 }, "end": { "line": 40, "column": 51 } } }, { "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": 1640, "end": 1644, "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1644, "end": 1645, "loc": { "start": { "line": 41, "column": 16 }, "end": { "line": 41, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayBeltSprites", "start": 1645, "end": 1664, "loc": { "start": { "line": 41, "column": 17 }, "end": { "line": 41, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1664, "end": 1665, "loc": { "start": { "line": 41, "column": 36 }, "end": { "line": 41, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 1665, "end": 1669, "loc": { "start": { "line": 41, "column": 37 }, "end": { "line": 41, "column": 41 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1669, "end": 1670, "loc": { "start": { "line": 41, "column": 41 }, "end": { "line": 41, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Loader", "start": 1670, "end": 1676, "loc": { "start": { "line": 41, "column": 42 }, "end": { "line": 41, "column": 48 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1676, "end": 1677, "loc": { "start": { "line": 41, "column": 48 }, "end": { "line": 41, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getSprite", "start": 1677, "end": 1686, "loc": { "start": { "line": 41, "column": 49 }, "end": { "line": 41, "column": 58 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1686, "end": 1687, "loc": { "start": { "line": 41, "column": 58 }, "end": { "line": 41, "column": 59 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "sprites/belt/built/forward_", "start": 1687, "end": 1716, "loc": { "start": { "line": 41, "column": 59 }, "end": { "line": 41, "column": 88 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 1717, "end": 1718, "loc": { "start": { "line": 41, "column": 89 }, "end": { "line": 41, "column": 90 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 1719, "end": 1720, "loc": { "start": { "line": 41, "column": 91 }, "end": { "line": 41, "column": 92 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 1721, "end": 1722, "loc": { "start": { "line": 41, "column": 93 }, "end": { "line": 41, "column": 94 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": ".png", "start": 1723, "end": 1729, "loc": { "start": { "line": 41, "column": 95 }, "end": { "line": 41, "column": 101 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1729, "end": 1730, "loc": { "start": { "line": 41, "column": 101 }, "end": { "line": 41, "column": 102 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1730, "end": 1731, "loc": { "start": { "line": 41, "column": 102 }, "end": { "line": 41, "column": 103 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1731, "end": 1732, "loc": { "start": { "line": 41, "column": 103 }, "end": { "line": 41, "column": 104 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1742, "end": 1743, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 9 } } }, { "type": "CommentLine", "value": " Automatically recompute areas", "start": 1755, "end": 1787, "loc": { "start": { "line": 44, "column": 8 }, "end": { "line": 44, "column": 40 } } }, { "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": 1797, "end": 1801, "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": 1801, "end": 1802, "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": "staleArea", "start": 1802, "end": 1811, "loc": { "start": { "line": 45, "column": 13 }, "end": { "line": 45, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1812, "end": 1813, "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 45, "column": 24 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 1814, "end": 1817, "loc": { "start": { "line": 45, "column": 25 }, "end": { "line": 45, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "StaleAreaDetector", "start": 1818, "end": 1835, "loc": { "start": { "line": 45, "column": 29 }, "end": { "line": 45, "column": 46 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1835, "end": 1836, "loc": { "start": { "line": 45, "column": 46 }, "end": { "line": 45, "column": 47 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1836, "end": 1837, "loc": { "start": { "line": 45, "column": 47 }, "end": { "line": 45, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 1851, "end": 1855, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 16 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1855, "end": 1856, "loc": { "start": { "line": 46, "column": 16 }, "end": { "line": 46, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 1870, "end": 1874, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 16 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1874, "end": 1875, "loc": { "start": { "line": 47, "column": 16 }, "end": { "line": 47, "column": 17 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "belt-underlay", "start": 1876, "end": 1891, "loc": { "start": { "line": 47, "column": 18 }, "end": { "line": 47, "column": 33 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1891, "end": 1892, "loc": { "start": { "line": 47, "column": 33 }, "end": { "line": 47, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "recomputeMethod", "start": 1906, "end": 1921, "loc": { "start": { "line": 48, "column": 12 }, "end": { "line": 48, "column": 27 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1921, "end": 1922, "loc": { "start": { "line": 48, "column": 27 }, "end": { "line": 48, "column": 28 } } }, { "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": 1923, "end": 1927, "loc": { "start": { "line": 48, "column": 29 }, "end": { "line": 48, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1927, "end": 1928, "loc": { "start": { "line": 48, "column": 33 }, "end": { "line": 48, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "recomputeStaleArea", "start": 1928, "end": 1946, "loc": { "start": { "line": 48, "column": 34 }, "end": { "line": 48, "column": 52 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1946, "end": 1947, "loc": { "start": { "line": 48, "column": 52 }, "end": { "line": 48, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bind", "start": 1947, "end": 1951, "loc": { "start": { "line": 48, "column": 53 }, "end": { "line": 48, "column": 57 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1951, "end": 1952, "loc": { "start": { "line": 48, "column": 57 }, "end": { "line": 48, "column": 58 } } }, { "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": 1952, "end": 1956, "loc": { "start": { "line": 48, "column": 58 }, "end": { "line": 48, "column": 62 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1956, "end": 1957, "loc": { "start": { "line": 48, "column": 62 }, "end": { "line": 48, "column": 63 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1957, "end": 1958, "loc": { "start": { "line": 48, "column": 63 }, "end": { "line": 48, "column": 64 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1968, "end": 1969, "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 49, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1969, "end": 1970, "loc": { "start": { "line": 49, "column": 9 }, "end": { "line": 49, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1970, "end": 1971, "loc": { "start": { "line": 49, "column": 10 }, "end": { "line": 49, "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": 1983, "end": 1987, "loc": { "start": { "line": 51, "column": 8 }, "end": { "line": 51, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1987, "end": 1988, "loc": { "start": { "line": 51, "column": 12 }, "end": { "line": 51, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staleArea", "start": 1988, "end": 1997, "loc": { "start": { "line": 51, "column": 13 }, "end": { "line": 51, "column": 22 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1997, "end": 1998, "loc": { "start": { "line": 51, "column": 22 }, "end": { "line": 51, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "recomputeOnComponentsChanged", "start": 1998, "end": 2026, "loc": { "start": { "line": 51, "column": 23 }, "end": { "line": 51, "column": 51 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2026, "end": 2027, "loc": { "start": { "line": 51, "column": 51 }, "end": { "line": 51, "column": 52 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2041, "end": 2042, "loc": { "start": { "line": 52, "column": 12 }, "end": { "line": 52, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BeltUnderlaysComponent", "start": 2042, "end": 2064, "loc": { "start": { "line": 52, "column": 13 }, "end": { "line": 52, "column": 35 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2064, "end": 2065, "loc": { "start": { "line": 52, "column": 35 }, "end": { "line": 52, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BeltComponent", "start": 2066, "end": 2079, "loc": { "start": { "line": 52, "column": 37 }, "end": { "line": 52, "column": 50 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2079, "end": 2080, "loc": { "start": { "line": 52, "column": 50 }, "end": { "line": 52, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ItemAcceptorComponent", "start": 2081, "end": 2102, "loc": { "start": { "line": 52, "column": 52 }, "end": { "line": 52, "column": 73 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2102, "end": 2103, "loc": { "start": { "line": 52, "column": 73 }, "end": { "line": 52, "column": 74 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ItemEjectorComponent", "start": 2104, "end": 2124, "loc": { "start": { "line": 52, "column": 75 }, "end": { "line": 52, "column": 95 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2124, "end": 2125, "loc": { "start": { "line": 52, "column": 95 }, "end": { "line": 52, "column": 96 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2125, "end": 2126, "loc": { "start": { "line": 52, "column": 96 }, "end": { "line": 52, "column": 97 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 2140, "end": 2141, "loc": { "start": { "line": 53, "column": 12 }, "end": { "line": 53, "column": 13 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2151, "end": 2152, "loc": { "start": { "line": 54, "column": 8 }, "end": { "line": 54, "column": 9 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2152, "end": 2153, "loc": { "start": { "line": 54, "column": 9 }, "end": { "line": 54, "column": 10 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2159, "end": 2160, "loc": { "start": { "line": 55, "column": 4 }, "end": { "line": 55, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 2168, "end": 2174, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 57, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getId", "start": 2175, "end": 2180, "loc": { "start": { "line": 57, "column": 11 }, "end": { "line": 57, "column": 16 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2180, "end": 2181, "loc": { "start": { "line": 57, "column": 16 }, "end": { "line": 57, "column": 17 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2181, "end": 2182, "loc": { "start": { "line": 57, "column": 17 }, "end": { "line": 57, "column": 18 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2183, "end": 2184, "loc": { "start": { "line": 57, "column": 19 }, "end": { "line": 57, "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": 2194, "end": 2200, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 14 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "beltUnderlays", "start": 2201, "end": 2216, "loc": { "start": { "line": 58, "column": 15 }, "end": { "line": 58, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2216, "end": 2217, "loc": { "start": { "line": 58, "column": 30 }, "end": { "line": 58, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2223, "end": 2224, "loc": { "start": { "line": 59, "column": 4 }, "end": { "line": 59, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "update", "start": 2232, "end": 2238, "loc": { "start": { "line": 61, "column": 4 }, "end": { "line": 61, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2238, "end": 2239, "loc": { "start": { "line": 61, "column": 10 }, "end": { "line": 61, "column": 11 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2239, "end": 2240, "loc": { "start": { "line": 61, "column": 11 }, "end": { "line": 61, "column": 12 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2241, "end": 2242, "loc": { "start": { "line": 61, "column": 13 }, "end": { "line": 61, "column": 14 } } }, { "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": 2252, "end": 2256, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2256, "end": 2257, "loc": { "start": { "line": 62, "column": 12 }, "end": { "line": 62, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staleArea", "start": 2257, "end": 2266, "loc": { "start": { "line": 62, "column": 13 }, "end": { "line": 62, "column": 22 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2266, "end": 2267, "loc": { "start": { "line": 62, "column": 22 }, "end": { "line": 62, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "update", "start": 2267, "end": 2273, "loc": { "start": { "line": 62, "column": 23 }, "end": { "line": 62, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2273, "end": 2274, "loc": { "start": { "line": 62, "column": 29 }, "end": { "line": 62, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2274, "end": 2275, "loc": { "start": { "line": 62, "column": 30 }, "end": { "line": 62, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2275, "end": 2276, "loc": { "start": { "line": 62, "column": 31 }, "end": { "line": 62, "column": 32 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2282, "end": 2283, "loc": { "start": { "line": 63, "column": 4 }, "end": { "line": 63, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Called when an area changed - Resets all caches in the given area\r\n * @param {Rectangle} area\r\n ", "start": 2291, "end": 2409, "loc": { "start": { "line": 65, "column": 4 }, "end": { "line": 68, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "recomputeStaleArea", "start": 2415, "end": 2433, "loc": { "start": { "line": 69, "column": 4 }, "end": { "line": 69, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2433, "end": 2434, "loc": { "start": { "line": 69, "column": 22 }, "end": { "line": 69, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "area", "start": 2434, "end": 2438, "loc": { "start": { "line": 69, "column": 23 }, "end": { "line": 69, "column": 27 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2438, "end": 2439, "loc": { "start": { "line": 69, "column": 27 }, "end": { "line": 69, "column": 28 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2440, "end": 2441, "loc": { "start": { "line": 69, "column": 29 }, "end": { "line": 69, "column": 30 } } }, { "type": { "label": "for", "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "for", "start": 2451, "end": 2454, "loc": { "start": { "line": 70, "column": 8 }, "end": { "line": 70, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2455, "end": 2456, "loc": { "start": { "line": 70, "column": 12 }, "end": { "line": 70, "column": 13 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 2456, "end": 2459, "loc": { "start": { "line": 70, "column": 13 }, "end": { "line": 70, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 2460, "end": 2461, "loc": { "start": { "line": 70, "column": 17 }, "end": { "line": 70, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2462, "end": 2463, "loc": { "start": { "line": 70, "column": 19 }, "end": { "line": 70, "column": 20 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 2464, "end": 2465, "loc": { "start": { "line": 70, "column": 21 }, "end": { "line": 70, "column": 22 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2465, "end": 2466, "loc": { "start": { "line": 70, "column": 22 }, "end": { "line": 70, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 2467, "end": 2468, "loc": { "start": { "line": 70, "column": 24 }, "end": { "line": 70, "column": 25 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 2469, "end": 2470, "loc": { "start": { "line": 70, "column": 26 }, "end": { "line": 70, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "area", "start": 2471, "end": 2475, "loc": { "start": { "line": 70, "column": 28 }, "end": { "line": 70, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2475, "end": 2476, "loc": { "start": { "line": 70, "column": 32 }, "end": { "line": 70, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "w", "start": 2476, "end": 2477, "loc": { "start": { "line": 70, "column": 33 }, "end": { "line": 70, "column": 34 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2477, "end": 2478, "loc": { "start": { "line": 70, "column": 34 }, "end": { "line": 70, "column": 35 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 2479, "end": 2481, "loc": { "start": { "line": 70, "column": 36 }, "end": { "line": 70, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 2481, "end": 2482, "loc": { "start": { "line": 70, "column": 38 }, "end": { "line": 70, "column": 39 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2482, "end": 2483, "loc": { "start": { "line": 70, "column": 39 }, "end": { "line": 70, "column": 40 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2484, "end": 2485, "loc": { "start": { "line": 70, "column": 41 }, "end": { "line": 70, "column": 42 } } }, { "type": { "label": "for", "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "for", "start": 2499, "end": 2502, "loc": { "start": { "line": 71, "column": 12 }, "end": { "line": 71, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2503, "end": 2504, "loc": { "start": { "line": 71, "column": 16 }, "end": { "line": 71, "column": 17 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 2504, "end": 2507, "loc": { "start": { "line": 71, "column": 17 }, "end": { "line": 71, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 2508, "end": 2509, "loc": { "start": { "line": 71, "column": 21 }, "end": { "line": 71, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2510, "end": 2511, "loc": { "start": { "line": 71, "column": 23 }, "end": { "line": 71, "column": 24 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 2512, "end": 2513, "loc": { "start": { "line": 71, "column": 25 }, "end": { "line": 71, "column": 26 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2513, "end": 2514, "loc": { "start": { "line": 71, "column": 26 }, "end": { "line": 71, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 2515, "end": 2516, "loc": { "start": { "line": 71, "column": 28 }, "end": { "line": 71, "column": 29 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 2517, "end": 2518, "loc": { "start": { "line": 71, "column": 30 }, "end": { "line": 71, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "area", "start": 2519, "end": 2523, "loc": { "start": { "line": 71, "column": 32 }, "end": { "line": 71, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2523, "end": 2524, "loc": { "start": { "line": 71, "column": 36 }, "end": { "line": 71, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "h", "start": 2524, "end": 2525, "loc": { "start": { "line": 71, "column": 37 }, "end": { "line": 71, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2525, "end": 2526, "loc": { "start": { "line": 71, "column": 38 }, "end": { "line": 71, "column": 39 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 2527, "end": 2529, "loc": { "start": { "line": 71, "column": 40 }, "end": { "line": 71, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 2529, "end": 2530, "loc": { "start": { "line": 71, "column": 42 }, "end": { "line": 71, "column": 43 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2530, "end": 2531, "loc": { "start": { "line": 71, "column": 43 }, "end": { "line": 71, "column": 44 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2532, "end": 2533, "loc": { "start": { "line": 71, "column": 45 }, "end": { "line": 71, "column": 46 } } }, { "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": 2551, "end": 2556, "loc": { "start": { "line": 72, "column": 16 }, "end": { "line": 72, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileX", "start": 2557, "end": 2562, "loc": { "start": { "line": 72, "column": 22 }, "end": { "line": 72, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2563, "end": 2564, "loc": { "start": { "line": 72, "column": 28 }, "end": { "line": 72, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "area", "start": 2565, "end": 2569, "loc": { "start": { "line": 72, "column": 30 }, "end": { "line": 72, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2569, "end": 2570, "loc": { "start": { "line": 72, "column": 34 }, "end": { "line": 72, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 2570, "end": 2571, "loc": { "start": { "line": 72, "column": 35 }, "end": { "line": 72, "column": 36 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 2572, "end": 2573, "loc": { "start": { "line": 72, "column": 37 }, "end": { "line": 72, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 2574, "end": 2575, "loc": { "start": { "line": 72, "column": 39 }, "end": { "line": 72, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2575, "end": 2576, "loc": { "start": { "line": 72, "column": 40 }, "end": { "line": 72, "column": 41 } } }, { "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": 2594, "end": 2599, "loc": { "start": { "line": 73, "column": 16 }, "end": { "line": 73, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileY", "start": 2600, "end": 2605, "loc": { "start": { "line": 73, "column": 22 }, "end": { "line": 73, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2606, "end": 2607, "loc": { "start": { "line": 73, "column": 28 }, "end": { "line": 73, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "area", "start": 2608, "end": 2612, "loc": { "start": { "line": 73, "column": 30 }, "end": { "line": 73, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2612, "end": 2613, "loc": { "start": { "line": 73, "column": 34 }, "end": { "line": 73, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 2613, "end": 2614, "loc": { "start": { "line": 73, "column": 35 }, "end": { "line": 73, "column": 36 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 2615, "end": 2616, "loc": { "start": { "line": 73, "column": 37 }, "end": { "line": 73, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 2617, "end": 2618, "loc": { "start": { "line": 73, "column": 39 }, "end": { "line": 73, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2618, "end": 2619, "loc": { "start": { "line": 73, "column": 40 }, "end": { "line": 73, "column": 41 } } }, { "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": 2637, "end": 2642, "loc": { "start": { "line": 74, "column": 16 }, "end": { "line": 74, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 2643, "end": 2649, "loc": { "start": { "line": 74, "column": 22 }, "end": { "line": 74, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2650, "end": 2651, "loc": { "start": { "line": 74, "column": 29 }, "end": { "line": 74, "column": 30 } } }, { "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": 2652, "end": 2656, "loc": { "start": { "line": 74, "column": 31 }, "end": { "line": 74, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2656, "end": 2657, "loc": { "start": { "line": 74, "column": 35 }, "end": { "line": 74, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 2657, "end": 2661, "loc": { "start": { "line": 74, "column": 36 }, "end": { "line": 74, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2661, "end": 2662, "loc": { "start": { "line": 74, "column": 40 }, "end": { "line": 74, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "map", "start": 2662, "end": 2665, "loc": { "start": { "line": 74, "column": 41 }, "end": { "line": 74, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2665, "end": 2666, "loc": { "start": { "line": 74, "column": 44 }, "end": { "line": 74, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getLayerContentXY", "start": 2666, "end": 2683, "loc": { "start": { "line": 74, "column": 45 }, "end": { "line": 74, "column": 62 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2683, "end": 2684, "loc": { "start": { "line": 74, "column": 62 }, "end": { "line": 74, "column": 63 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileX", "start": 2684, "end": 2689, "loc": { "start": { "line": 74, "column": 63 }, "end": { "line": 74, "column": 68 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2689, "end": 2690, "loc": { "start": { "line": 74, "column": 68 }, "end": { "line": 74, "column": 69 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileY", "start": 2691, "end": 2696, "loc": { "start": { "line": 74, "column": 70 }, "end": { "line": 74, "column": 75 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2696, "end": 2697, "loc": { "start": { "line": 74, "column": 75 }, "end": { "line": 74, "column": 76 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "regular", "start": 2698, "end": 2707, "loc": { "start": { "line": 74, "column": 77 }, "end": { "line": 74, "column": 86 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2707, "end": 2708, "loc": { "start": { "line": 74, "column": 86 }, "end": { "line": 74, "column": 87 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2708, "end": 2709, "loc": { "start": { "line": 74, "column": 87 }, "end": { "line": 74, "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": 2727, "end": 2729, "loc": { "start": { "line": 75, "column": 16 }, "end": { "line": 75, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2730, "end": 2731, "loc": { "start": { "line": 75, "column": 19 }, "end": { "line": 75, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 2731, "end": 2737, "loc": { "start": { "line": 75, "column": 20 }, "end": { "line": 75, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2737, "end": 2738, "loc": { "start": { "line": 75, "column": 26 }, "end": { "line": 75, "column": 27 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2739, "end": 2740, "loc": { "start": { "line": 75, "column": 28 }, "end": { "line": 75, "column": 29 } } }, { "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": 2762, "end": 2767, "loc": { "start": { "line": 76, "column": 20 }, "end": { "line": 76, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayComp", "start": 2768, "end": 2780, "loc": { "start": { "line": 76, "column": 26 }, "end": { "line": 76, "column": 38 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2781, "end": 2782, "loc": { "start": { "line": 76, "column": 39 }, "end": { "line": 76, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 2783, "end": 2789, "loc": { "start": { "line": 76, "column": 41 }, "end": { "line": 76, "column": 47 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2789, "end": 2790, "loc": { "start": { "line": 76, "column": 47 }, "end": { "line": 76, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 2790, "end": 2800, "loc": { "start": { "line": 76, "column": 48 }, "end": { "line": 76, "column": 58 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2800, "end": 2801, "loc": { "start": { "line": 76, "column": 58 }, "end": { "line": 76, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BeltUnderlays", "start": 2801, "end": 2814, "loc": { "start": { "line": 76, "column": 59 }, "end": { "line": 76, "column": 72 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2814, "end": 2815, "loc": { "start": { "line": 76, "column": 72 }, "end": { "line": 76, "column": 73 } } }, { "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": 2837, "end": 2839, "loc": { "start": { "line": 77, "column": 20 }, "end": { "line": 77, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2840, "end": 2841, "loc": { "start": { "line": 77, "column": 23 }, "end": { "line": 77, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayComp", "start": 2841, "end": 2853, "loc": { "start": { "line": 77, "column": 24 }, "end": { "line": 77, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2853, "end": 2854, "loc": { "start": { "line": 77, "column": 36 }, "end": { "line": 77, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2855, "end": 2856, "loc": { "start": { "line": 77, "column": 38 }, "end": { "line": 77, "column": 39 } } }, { "type": { "label": "for", "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "for", "start": 2882, "end": 2885, "loc": { "start": { "line": 78, "column": 24 }, "end": { "line": 78, "column": 27 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2886, "end": 2887, "loc": { "start": { "line": 78, "column": 28 }, "end": { "line": 78, "column": 29 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 2887, "end": 2890, "loc": { "start": { "line": 78, "column": 29 }, "end": { "line": 78, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2891, "end": 2892, "loc": { "start": { "line": 78, "column": 33 }, "end": { "line": 78, "column": 34 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2893, "end": 2894, "loc": { "start": { "line": 78, "column": 35 }, "end": { "line": 78, "column": 36 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 2895, "end": 2896, "loc": { "start": { "line": 78, "column": 37 }, "end": { "line": 78, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2896, "end": 2897, "loc": { "start": { "line": 78, "column": 38 }, "end": { "line": 78, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2898, "end": 2899, "loc": { "start": { "line": 78, "column": 40 }, "end": { "line": 78, "column": 41 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 2900, "end": 2901, "loc": { "start": { "line": 78, "column": 42 }, "end": { "line": 78, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayComp", "start": 2902, "end": 2914, "loc": { "start": { "line": 78, "column": 44 }, "end": { "line": 78, "column": 56 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2914, "end": 2915, "loc": { "start": { "line": 78, "column": 56 }, "end": { "line": 78, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlays", "start": 2915, "end": 2924, "loc": { "start": { "line": 78, "column": 57 }, "end": { "line": 78, "column": 66 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2924, "end": 2925, "loc": { "start": { "line": 78, "column": 66 }, "end": { "line": 78, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 2925, "end": 2931, "loc": { "start": { "line": 78, "column": 67 }, "end": { "line": 78, "column": 73 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2931, "end": 2932, "loc": { "start": { "line": 78, "column": 73 }, "end": { "line": 78, "column": 74 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 2933, "end": 2935, "loc": { "start": { "line": 78, "column": 75 }, "end": { "line": 78, "column": 77 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2935, "end": 2936, "loc": { "start": { "line": 78, "column": 77 }, "end": { "line": 78, "column": 78 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2936, "end": 2937, "loc": { "start": { "line": 78, "column": 78 }, "end": { "line": 78, "column": 79 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2938, "end": 2939, "loc": { "start": { "line": 78, "column": 80 }, "end": { "line": 78, "column": 81 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayComp", "start": 2969, "end": 2981, "loc": { "start": { "line": 79, "column": 28 }, "end": { "line": 79, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2981, "end": 2982, "loc": { "start": { "line": 79, "column": 40 }, "end": { "line": 79, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlays", "start": 2982, "end": 2991, "loc": { "start": { "line": 79, "column": 41 }, "end": { "line": 79, "column": 50 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2991, "end": 2992, "loc": { "start": { "line": 79, "column": 50 }, "end": { "line": 79, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 2992, "end": 2993, "loc": { "start": { "line": 79, "column": 51 }, "end": { "line": 79, "column": 52 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2993, "end": 2994, "loc": { "start": { "line": 79, "column": 52 }, "end": { "line": 79, "column": 53 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2994, "end": 2995, "loc": { "start": { "line": 79, "column": 53 }, "end": { "line": 79, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cachedType", "start": 2995, "end": 3005, "loc": { "start": { "line": 79, "column": 54 }, "end": { "line": 79, "column": 64 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3006, "end": 3007, "loc": { "start": { "line": 79, "column": 65 }, "end": { "line": 79, "column": 66 } } }, { "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": 3008, "end": 3012, "loc": { "start": { "line": 79, "column": 67 }, "end": { "line": 79, "column": 71 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3012, "end": 3013, "loc": { "start": { "line": 79, "column": 71 }, "end": { "line": 79, "column": 72 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3039, "end": 3040, "loc": { "start": { "line": 80, "column": 24 }, "end": { "line": 80, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3062, "end": 3063, "loc": { "start": { "line": 81, "column": 20 }, "end": { "line": 81, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3081, "end": 3082, "loc": { "start": { "line": 82, "column": 16 }, "end": { "line": 82, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3096, "end": 3097, "loc": { "start": { "line": 83, "column": 12 }, "end": { "line": 83, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3107, "end": 3108, "loc": { "start": { "line": 84, "column": 8 }, "end": { "line": 84, "column": 9 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3114, "end": 3115, "loc": { "start": { "line": 85, "column": 4 }, "end": { "line": 85, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if a given tile is connected and has an acceptor\r\n * @param {Vector} tile\r\n * @param {enumDirection} fromDirection\r\n * @returns {boolean}\r\n ", "start": 3123, "end": 3300, "loc": { "start": { "line": 87, "column": 4 }, "end": { "line": 92, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "checkIsAcceptorConnected", "start": 3306, "end": 3330, "loc": { "start": { "line": 93, "column": 4 }, "end": { "line": 93, "column": 28 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3330, "end": 3331, "loc": { "start": { "line": 93, "column": 28 }, "end": { "line": 93, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 3331, "end": 3335, "loc": { "start": { "line": 93, "column": 29 }, "end": { "line": 93, "column": 33 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3335, "end": 3336, "loc": { "start": { "line": 93, "column": 33 }, "end": { "line": 93, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "fromDirection", "start": 3337, "end": 3350, "loc": { "start": { "line": 93, "column": 35 }, "end": { "line": 93, "column": 48 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3350, "end": 3351, "loc": { "start": { "line": 93, "column": 48 }, "end": { "line": 93, "column": 49 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3352, "end": 3353, "loc": { "start": { "line": 93, "column": 50 }, "end": { "line": 93, "column": 51 } } }, { "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": 3363, "end": 3368, "loc": { "start": { "line": 94, "column": 8 }, "end": { "line": 94, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 3369, "end": 3377, "loc": { "start": { "line": 94, "column": 14 }, "end": { "line": 94, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3378, "end": 3379, "loc": { "start": { "line": 94, "column": 23 }, "end": { "line": 94, "column": 24 } } }, { "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": 3380, "end": 3384, "loc": { "start": { "line": 94, "column": 25 }, "end": { "line": 94, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3384, "end": 3385, "loc": { "start": { "line": 94, "column": 29 }, "end": { "line": 94, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 3385, "end": 3389, "loc": { "start": { "line": 94, "column": 30 }, "end": { "line": 94, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3389, "end": 3390, "loc": { "start": { "line": 94, "column": 34 }, "end": { "line": 94, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "map", "start": 3390, "end": 3393, "loc": { "start": { "line": 94, "column": 35 }, "end": { "line": 94, "column": 38 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3393, "end": 3394, "loc": { "start": { "line": 94, "column": 38 }, "end": { "line": 94, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getLayerContentXY", "start": 3394, "end": 3411, "loc": { "start": { "line": 94, "column": 39 }, "end": { "line": 94, "column": 56 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3411, "end": 3412, "loc": { "start": { "line": 94, "column": 56 }, "end": { "line": 94, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 3412, "end": 3416, "loc": { "start": { "line": 94, "column": 57 }, "end": { "line": 94, "column": 61 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3416, "end": 3417, "loc": { "start": { "line": 94, "column": 61 }, "end": { "line": 94, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 3417, "end": 3418, "loc": { "start": { "line": 94, "column": 62 }, "end": { "line": 94, "column": 63 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3418, "end": 3419, "loc": { "start": { "line": 94, "column": 63 }, "end": { "line": 94, "column": 64 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 3420, "end": 3424, "loc": { "start": { "line": 94, "column": 65 }, "end": { "line": 94, "column": 69 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3424, "end": 3425, "loc": { "start": { "line": 94, "column": 69 }, "end": { "line": 94, "column": 70 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 3425, "end": 3426, "loc": { "start": { "line": 94, "column": 70 }, "end": { "line": 94, "column": 71 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3426, "end": 3427, "loc": { "start": { "line": 94, "column": 71 }, "end": { "line": 94, "column": 72 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "regular", "start": 3428, "end": 3437, "loc": { "start": { "line": 94, "column": 73 }, "end": { "line": 94, "column": 82 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3437, "end": 3438, "loc": { "start": { "line": 94, "column": 82 }, "end": { "line": 94, "column": 83 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3438, "end": 3439, "loc": { "start": { "line": 94, "column": 83 }, "end": { "line": 94, "column": 84 } } }, { "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": 3449, "end": 3451, "loc": { "start": { "line": 95, "column": 8 }, "end": { "line": 95, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3452, "end": 3453, "loc": { "start": { "line": 95, "column": 11 }, "end": { "line": 95, "column": 12 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 3453, "end": 3454, "loc": { "start": { "line": 95, "column": 12 }, "end": { "line": 95, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 3454, "end": 3462, "loc": { "start": { "line": 95, "column": 13 }, "end": { "line": 95, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3462, "end": 3463, "loc": { "start": { "line": 95, "column": 21 }, "end": { "line": 95, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3464, "end": 3465, "loc": { "start": { "line": 95, "column": 23 }, "end": { "line": 95, "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": 3479, "end": 3485, "loc": { "start": { "line": 96, "column": 12 }, "end": { "line": 96, "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": 3486, "end": 3491, "loc": { "start": { "line": 96, "column": 19 }, "end": { "line": 96, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3491, "end": 3492, "loc": { "start": { "line": 96, "column": 24 }, "end": { "line": 96, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3502, "end": 3503, "loc": { "start": { "line": 97, "column": 8 }, "end": { "line": 97, "column": 9 } } }, { "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": 3515, "end": 3520, "loc": { "start": { "line": 99, "column": 8 }, "end": { "line": 99, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 3521, "end": 3531, "loc": { "start": { "line": 99, "column": 14 }, "end": { "line": 99, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3532, "end": 3533, "loc": { "start": { "line": 99, "column": 25 }, "end": { "line": 99, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 3534, "end": 3542, "loc": { "start": { "line": 99, "column": 27 }, "end": { "line": 99, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3542, "end": 3543, "loc": { "start": { "line": 99, "column": 35 }, "end": { "line": 99, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 3543, "end": 3553, "loc": { "start": { "line": 99, "column": 36 }, "end": { "line": 99, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3553, "end": 3554, "loc": { "start": { "line": 99, "column": 46 }, "end": { "line": 99, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "StaticMapEntity", "start": 3554, "end": 3569, "loc": { "start": { "line": 99, "column": 47 }, "end": { "line": 99, "column": 62 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3569, "end": 3570, "loc": { "start": { "line": 99, "column": 62 }, "end": { "line": 99, "column": 63 } } }, { "type": "CommentLine", "value": " Check if its a belt, since then its simple", "start": 3582, "end": 3627, "loc": { "start": { "line": 101, "column": 8 }, "end": { "line": 101, "column": 53 } } }, { "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": 3637, "end": 3642, "loc": { "start": { "line": 102, "column": 8 }, "end": { "line": 102, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beltComp", "start": 3643, "end": 3651, "loc": { "start": { "line": 102, "column": 14 }, "end": { "line": 102, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3652, "end": 3653, "loc": { "start": { "line": 102, "column": 23 }, "end": { "line": 102, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 3654, "end": 3662, "loc": { "start": { "line": 102, "column": 25 }, "end": { "line": 102, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3662, "end": 3663, "loc": { "start": { "line": 102, "column": 33 }, "end": { "line": 102, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 3663, "end": 3673, "loc": { "start": { "line": 102, "column": 34 }, "end": { "line": 102, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3673, "end": 3674, "loc": { "start": { "line": 102, "column": 44 }, "end": { "line": 102, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Belt", "start": 3674, "end": 3678, "loc": { "start": { "line": 102, "column": 45 }, "end": { "line": 102, "column": 49 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3678, "end": 3679, "loc": { "start": { "line": 102, "column": 49 }, "end": { "line": 102, "column": 50 } } }, { "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": 3689, "end": 3691, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 103, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3692, "end": 3693, "loc": { "start": { "line": 103, "column": 11 }, "end": { "line": 103, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beltComp", "start": 3693, "end": 3701, "loc": { "start": { "line": 103, "column": 12 }, "end": { "line": 103, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3701, "end": 3702, "loc": { "start": { "line": 103, "column": 20 }, "end": { "line": 103, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3703, "end": 3704, "loc": { "start": { "line": 103, "column": 22 }, "end": { "line": 103, "column": 23 } } }, { "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": 3718, "end": 3724, "loc": { "start": { "line": 104, "column": 12 }, "end": { "line": 104, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 3725, "end": 3735, "loc": { "start": { "line": 104, "column": 19 }, "end": { "line": 104, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3735, "end": 3736, "loc": { "start": { "line": 104, "column": 29 }, "end": { "line": 104, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "localDirectionToWorld", "start": 3736, "end": 3757, "loc": { "start": { "line": 104, "column": 30 }, "end": { "line": 104, "column": 51 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3757, "end": 3758, "loc": { "start": { "line": 104, "column": 51 }, "end": { "line": 104, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumDirection", "start": 3758, "end": 3771, "loc": { "start": { "line": 104, "column": 52 }, "end": { "line": 104, "column": 65 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3771, "end": 3772, "loc": { "start": { "line": 104, "column": 65 }, "end": { "line": 104, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottom", "start": 3772, "end": 3778, "loc": { "start": { "line": 104, "column": 66 }, "end": { "line": 104, "column": 72 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3778, "end": 3779, "loc": { "start": { "line": 104, "column": 72 }, "end": { "line": 104, "column": 73 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 3780, "end": 3783, "loc": { "start": { "line": 104, "column": 74 }, "end": { "line": 104, "column": 77 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "fromDirection", "start": 3784, "end": 3797, "loc": { "start": { "line": 104, "column": 78 }, "end": { "line": 104, "column": 91 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3797, "end": 3798, "loc": { "start": { "line": 104, "column": 91 }, "end": { "line": 104, "column": 92 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3808, "end": 3809, "loc": { "start": { "line": 105, "column": 8 }, "end": { "line": 105, "column": 9 } } }, { "type": "CommentLine", "value": " Check if there's an item acceptor", "start": 3821, "end": 3857, "loc": { "start": { "line": 107, "column": 8 }, "end": { "line": 107, "column": 44 } } }, { "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": 3867, "end": 3872, "loc": { "start": { "line": 108, "column": 8 }, "end": { "line": 108, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "acceptorComp", "start": 3873, "end": 3885, "loc": { "start": { "line": 108, "column": 14 }, "end": { "line": 108, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3886, "end": 3887, "loc": { "start": { "line": 108, "column": 27 }, "end": { "line": 108, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 3888, "end": 3896, "loc": { "start": { "line": 108, "column": 29 }, "end": { "line": 108, "column": 37 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3896, "end": 3897, "loc": { "start": { "line": 108, "column": 37 }, "end": { "line": 108, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 3897, "end": 3907, "loc": { "start": { "line": 108, "column": 38 }, "end": { "line": 108, "column": 48 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3907, "end": 3908, "loc": { "start": { "line": 108, "column": 48 }, "end": { "line": 108, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ItemAcceptor", "start": 3908, "end": 3920, "loc": { "start": { "line": 108, "column": 49 }, "end": { "line": 108, "column": 61 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3920, "end": 3921, "loc": { "start": { "line": 108, "column": 61 }, "end": { "line": 108, "column": 62 } } }, { "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": 3931, "end": 3933, "loc": { "start": { "line": 109, "column": 8 }, "end": { "line": 109, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3934, "end": 3935, "loc": { "start": { "line": 109, "column": 11 }, "end": { "line": 109, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "acceptorComp", "start": 3935, "end": 3947, "loc": { "start": { "line": 109, "column": 12 }, "end": { "line": 109, "column": 24 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3947, "end": 3948, "loc": { "start": { "line": 109, "column": 24 }, "end": { "line": 109, "column": 25 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3949, "end": 3950, "loc": { "start": { "line": 109, "column": 26 }, "end": { "line": 109, "column": 27 } } }, { "type": "CommentLine", "value": " Check each slot to see if its connected", "start": 3964, "end": 4006, "loc": { "start": { "line": 110, "column": 12 }, "end": { "line": 110, "column": 54 } } }, { "type": { "label": "for", "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "for", "start": 4020, "end": 4023, "loc": { "start": { "line": 111, "column": 12 }, "end": { "line": 111, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4024, "end": 4025, "loc": { "start": { "line": 111, "column": 16 }, "end": { "line": 111, "column": 17 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 4025, "end": 4028, "loc": { "start": { "line": 111, "column": 17 }, "end": { "line": 111, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 4029, "end": 4030, "loc": { "start": { "line": 111, "column": 21 }, "end": { "line": 111, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4031, "end": 4032, "loc": { "start": { "line": 111, "column": 23 }, "end": { "line": 111, "column": 24 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 4033, "end": 4034, "loc": { "start": { "line": 111, "column": 25 }, "end": { "line": 111, "column": 26 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4034, "end": 4035, "loc": { "start": { "line": 111, "column": 26 }, "end": { "line": 111, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 4036, "end": 4037, "loc": { "start": { "line": 111, "column": 28 }, "end": { "line": 111, "column": 29 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 4038, "end": 4039, "loc": { "start": { "line": 111, "column": 30 }, "end": { "line": 111, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "acceptorComp", "start": 4040, "end": 4052, "loc": { "start": { "line": 111, "column": 32 }, "end": { "line": 111, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4052, "end": 4053, "loc": { "start": { "line": 111, "column": 44 }, "end": { "line": 111, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slots", "start": 4053, "end": 4058, "loc": { "start": { "line": 111, "column": 45 }, "end": { "line": 111, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4058, "end": 4059, "loc": { "start": { "line": 111, "column": 50 }, "end": { "line": 111, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 4059, "end": 4065, "loc": { "start": { "line": 111, "column": 51 }, "end": { "line": 111, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4065, "end": 4066, "loc": { "start": { "line": 111, "column": 57 }, "end": { "line": 111, "column": 58 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 4067, "end": 4069, "loc": { "start": { "line": 111, "column": 59 }, "end": { "line": 111, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 4069, "end": 4070, "loc": { "start": { "line": 111, "column": 61 }, "end": { "line": 111, "column": 62 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4070, "end": 4071, "loc": { "start": { "line": 111, "column": 62 }, "end": { "line": 111, "column": 63 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4072, "end": 4073, "loc": { "start": { "line": 111, "column": 64 }, "end": { "line": 111, "column": 65 } } }, { "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": 4091, "end": 4096, "loc": { "start": { "line": 112, "column": 16 }, "end": { "line": 112, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slot", "start": 4097, "end": 4101, "loc": { "start": { "line": 112, "column": 22 }, "end": { "line": 112, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4102, "end": 4103, "loc": { "start": { "line": 112, "column": 27 }, "end": { "line": 112, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "acceptorComp", "start": 4104, "end": 4116, "loc": { "start": { "line": 112, "column": 29 }, "end": { "line": 112, "column": 41 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4116, "end": 4117, "loc": { "start": { "line": 112, "column": 41 }, "end": { "line": 112, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slots", "start": 4117, "end": 4122, "loc": { "start": { "line": 112, "column": 42 }, "end": { "line": 112, "column": 47 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4122, "end": 4123, "loc": { "start": { "line": 112, "column": 47 }, "end": { "line": 112, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 4123, "end": 4124, "loc": { "start": { "line": 112, "column": 48 }, "end": { "line": 112, "column": 49 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4124, "end": 4125, "loc": { "start": { "line": 112, "column": 49 }, "end": { "line": 112, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4125, "end": 4126, "loc": { "start": { "line": 112, "column": 50 }, "end": { "line": 112, "column": 51 } } }, { "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": 4144, "end": 4149, "loc": { "start": { "line": 113, "column": 16 }, "end": { "line": 113, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slotTile", "start": 4150, "end": 4158, "loc": { "start": { "line": 113, "column": 22 }, "end": { "line": 113, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4159, "end": 4160, "loc": { "start": { "line": 113, "column": 31 }, "end": { "line": 113, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 4161, "end": 4171, "loc": { "start": { "line": 113, "column": 33 }, "end": { "line": 113, "column": 43 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4171, "end": 4172, "loc": { "start": { "line": 113, "column": 43 }, "end": { "line": 113, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "localTileToWorld", "start": 4172, "end": 4188, "loc": { "start": { "line": 113, "column": 44 }, "end": { "line": 113, "column": 60 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4188, "end": 4189, "loc": { "start": { "line": 113, "column": 60 }, "end": { "line": 113, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slot", "start": 4189, "end": 4193, "loc": { "start": { "line": 113, "column": 61 }, "end": { "line": 113, "column": 65 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4193, "end": 4194, "loc": { "start": { "line": 113, "column": 65 }, "end": { "line": 113, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 4194, "end": 4197, "loc": { "start": { "line": 113, "column": 66 }, "end": { "line": 113, "column": 69 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4197, "end": 4198, "loc": { "start": { "line": 113, "column": 69 }, "end": { "line": 113, "column": 70 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4198, "end": 4199, "loc": { "start": { "line": 113, "column": 70 }, "end": { "line": 113, "column": 71 } } }, { "type": "CommentLine", "value": " Step 1: Check if the tile matches", "start": 4219, "end": 4255, "loc": { "start": { "line": 115, "column": 16 }, "end": { "line": 115, "column": 52 } } }, { "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": 4273, "end": 4275, "loc": { "start": { "line": 116, "column": 16 }, "end": { "line": 116, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4276, "end": 4277, "loc": { "start": { "line": 116, "column": 19 }, "end": { "line": 116, "column": 20 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 4277, "end": 4278, "loc": { "start": { "line": 116, "column": 20 }, "end": { "line": 116, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slotTile", "start": 4278, "end": 4286, "loc": { "start": { "line": 116, "column": 21 }, "end": { "line": 116, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4286, "end": 4287, "loc": { "start": { "line": 116, "column": 29 }, "end": { "line": 116, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "equals", "start": 4287, "end": 4293, "loc": { "start": { "line": 116, "column": 30 }, "end": { "line": 116, "column": 36 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4293, "end": 4294, "loc": { "start": { "line": 116, "column": 36 }, "end": { "line": 116, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 4294, "end": 4298, "loc": { "start": { "line": 116, "column": 37 }, "end": { "line": 116, "column": 41 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4298, "end": 4299, "loc": { "start": { "line": 116, "column": 41 }, "end": { "line": 116, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4299, "end": 4300, "loc": { "start": { "line": 116, "column": 42 }, "end": { "line": 116, "column": 43 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4301, "end": 4302, "loc": { "start": { "line": 116, "column": 44 }, "end": { "line": 116, "column": 45 } } }, { "type": { "label": "continue", "keyword": "continue", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "continue", "start": 4324, "end": 4332, "loc": { "start": { "line": 117, "column": 20 }, "end": { "line": 117, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4332, "end": 4333, "loc": { "start": { "line": 117, "column": 28 }, "end": { "line": 117, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4351, "end": 4352, "loc": { "start": { "line": 118, "column": 16 }, "end": { "line": 118, "column": 17 } } }, { "type": "CommentLine", "value": " Step 2: Check if any of the directions matches", "start": 4372, "end": 4421, "loc": { "start": { "line": 120, "column": 16 }, "end": { "line": 120, "column": 65 } } }, { "type": { "label": "for", "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "for", "start": 4439, "end": 4442, "loc": { "start": { "line": 121, "column": 16 }, "end": { "line": 121, "column": 19 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4443, "end": 4444, "loc": { "start": { "line": 121, "column": 20 }, "end": { "line": 121, "column": 21 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 4444, "end": 4447, "loc": { "start": { "line": 121, "column": 21 }, "end": { "line": 121, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "j", "start": 4448, "end": 4449, "loc": { "start": { "line": 121, "column": 25 }, "end": { "line": 121, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4450, "end": 4451, "loc": { "start": { "line": 121, "column": 27 }, "end": { "line": 121, "column": 28 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 4452, "end": 4453, "loc": { "start": { "line": 121, "column": 29 }, "end": { "line": 121, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4453, "end": 4454, "loc": { "start": { "line": 121, "column": 30 }, "end": { "line": 121, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "j", "start": 4455, "end": 4456, "loc": { "start": { "line": 121, "column": 32 }, "end": { "line": 121, "column": 33 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 4457, "end": 4458, "loc": { "start": { "line": 121, "column": 34 }, "end": { "line": 121, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slot", "start": 4459, "end": 4463, "loc": { "start": { "line": 121, "column": 36 }, "end": { "line": 121, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4463, "end": 4464, "loc": { "start": { "line": 121, "column": 40 }, "end": { "line": 121, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "directions", "start": 4464, "end": 4474, "loc": { "start": { "line": 121, "column": 41 }, "end": { "line": 121, "column": 51 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4474, "end": 4475, "loc": { "start": { "line": 121, "column": 51 }, "end": { "line": 121, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 4475, "end": 4481, "loc": { "start": { "line": 121, "column": 52 }, "end": { "line": 121, "column": 58 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4481, "end": 4482, "loc": { "start": { "line": 121, "column": 58 }, "end": { "line": 121, "column": 59 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 4483, "end": 4485, "loc": { "start": { "line": 121, "column": 60 }, "end": { "line": 121, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "j", "start": 4485, "end": 4486, "loc": { "start": { "line": 121, "column": 62 }, "end": { "line": 121, "column": 63 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4486, "end": 4487, "loc": { "start": { "line": 121, "column": 63 }, "end": { "line": 121, "column": 64 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4488, "end": 4489, "loc": { "start": { "line": 121, "column": 65 }, "end": { "line": 121, "column": 66 } } }, { "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": 4511, "end": 4516, "loc": { "start": { "line": 122, "column": 20 }, "end": { "line": 122, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slotDirection", "start": 4517, "end": 4530, "loc": { "start": { "line": 122, "column": 26 }, "end": { "line": 122, "column": 39 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4531, "end": 4532, "loc": { "start": { "line": 122, "column": 40 }, "end": { "line": 122, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 4533, "end": 4543, "loc": { "start": { "line": 122, "column": 42 }, "end": { "line": 122, "column": 52 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4543, "end": 4544, "loc": { "start": { "line": 122, "column": 52 }, "end": { "line": 122, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "localDirectionToWorld", "start": 4544, "end": 4565, "loc": { "start": { "line": 122, "column": 53 }, "end": { "line": 122, "column": 74 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4565, "end": 4566, "loc": { "start": { "line": 122, "column": 74 }, "end": { "line": 122, "column": 75 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slot", "start": 4566, "end": 4570, "loc": { "start": { "line": 122, "column": 75 }, "end": { "line": 122, "column": 79 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4570, "end": 4571, "loc": { "start": { "line": 122, "column": 79 }, "end": { "line": 122, "column": 80 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "directions", "start": 4571, "end": 4581, "loc": { "start": { "line": 122, "column": 80 }, "end": { "line": 122, "column": 90 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4581, "end": 4582, "loc": { "start": { "line": 122, "column": 90 }, "end": { "line": 122, "column": 91 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "j", "start": 4582, "end": 4583, "loc": { "start": { "line": 122, "column": 91 }, "end": { "line": 122, "column": 92 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4583, "end": 4584, "loc": { "start": { "line": 122, "column": 92 }, "end": { "line": 122, "column": 93 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4584, "end": 4585, "loc": { "start": { "line": 122, "column": 93 }, "end": { "line": 122, "column": 94 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4585, "end": 4586, "loc": { "start": { "line": 122, "column": 94 }, "end": { "line": 122, "column": 95 } } }, { "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": 4608, "end": 4610, "loc": { "start": { "line": 123, "column": 20 }, "end": { "line": 123, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4611, "end": 4612, "loc": { "start": { "line": 123, "column": 23 }, "end": { "line": 123, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slotDirection", "start": 4612, "end": 4625, "loc": { "start": { "line": 123, "column": 24 }, "end": { "line": 123, "column": 37 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 4626, "end": 4629, "loc": { "start": { "line": 123, "column": 38 }, "end": { "line": 123, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "fromDirection", "start": 4630, "end": 4643, "loc": { "start": { "line": 123, "column": 42 }, "end": { "line": 123, "column": 55 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4643, "end": 4644, "loc": { "start": { "line": 123, "column": 55 }, "end": { "line": 123, "column": 56 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4645, "end": 4646, "loc": { "start": { "line": 123, "column": 57 }, "end": { "line": 123, "column": 58 } } }, { "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": 4672, "end": 4678, "loc": { "start": { "line": 124, "column": 24 }, "end": { "line": 124, "column": 30 } } }, { "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": 4679, "end": 4683, "loc": { "start": { "line": 124, "column": 31 }, "end": { "line": 124, "column": 35 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4683, "end": 4684, "loc": { "start": { "line": 124, "column": 35 }, "end": { "line": 124, "column": 36 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4706, "end": 4707, "loc": { "start": { "line": 125, "column": 20 }, "end": { "line": 125, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4725, "end": 4726, "loc": { "start": { "line": 126, "column": 16 }, "end": { "line": 126, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4740, "end": 4741, "loc": { "start": { "line": 127, "column": 12 }, "end": { "line": 127, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4751, "end": 4752, "loc": { "start": { "line": 128, "column": 8 }, "end": { "line": 128, "column": 9 } } }, { "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": 4764, "end": 4770, "loc": { "start": { "line": 130, "column": 8 }, "end": { "line": 130, "column": 14 } } }, { "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": 4771, "end": 4776, "loc": { "start": { "line": 130, "column": 15 }, "end": { "line": 130, "column": 20 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4776, "end": 4777, "loc": { "start": { "line": 130, "column": 20 }, "end": { "line": 130, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4783, "end": 4784, "loc": { "start": { "line": 131, "column": 4 }, "end": { "line": 131, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if a given tile is connected and has an ejector\r\n * @param {Vector} tile\r\n * @param {enumDirection} toDirection\r\n * @returns {boolean}\r\n ", "start": 4792, "end": 4966, "loc": { "start": { "line": 133, "column": 4 }, "end": { "line": 138, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "checkIsEjectorConnected", "start": 4972, "end": 4995, "loc": { "start": { "line": 139, "column": 4 }, "end": { "line": 139, "column": 27 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4995, "end": 4996, "loc": { "start": { "line": 139, "column": 27 }, "end": { "line": 139, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 4996, "end": 5000, "loc": { "start": { "line": 139, "column": 28 }, "end": { "line": 139, "column": 32 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5000, "end": 5001, "loc": { "start": { "line": 139, "column": 32 }, "end": { "line": 139, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "toDirection", "start": 5002, "end": 5013, "loc": { "start": { "line": 139, "column": 34 }, "end": { "line": 139, "column": 45 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5013, "end": 5014, "loc": { "start": { "line": 139, "column": 45 }, "end": { "line": 139, "column": 46 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5015, "end": 5016, "loc": { "start": { "line": 139, "column": 47 }, "end": { "line": 139, "column": 48 } } }, { "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": 5026, "end": 5031, "loc": { "start": { "line": 140, "column": 8 }, "end": { "line": 140, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 5032, "end": 5040, "loc": { "start": { "line": 140, "column": 14 }, "end": { "line": 140, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5041, "end": 5042, "loc": { "start": { "line": 140, "column": 23 }, "end": { "line": 140, "column": 24 } } }, { "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": 5043, "end": 5047, "loc": { "start": { "line": 140, "column": 25 }, "end": { "line": 140, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5047, "end": 5048, "loc": { "start": { "line": 140, "column": 29 }, "end": { "line": 140, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 5048, "end": 5052, "loc": { "start": { "line": 140, "column": 30 }, "end": { "line": 140, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5052, "end": 5053, "loc": { "start": { "line": 140, "column": 34 }, "end": { "line": 140, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "map", "start": 5053, "end": 5056, "loc": { "start": { "line": 140, "column": 35 }, "end": { "line": 140, "column": 38 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5056, "end": 5057, "loc": { "start": { "line": 140, "column": 38 }, "end": { "line": 140, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getLayerContentXY", "start": 5057, "end": 5074, "loc": { "start": { "line": 140, "column": 39 }, "end": { "line": 140, "column": 56 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5074, "end": 5075, "loc": { "start": { "line": 140, "column": 56 }, "end": { "line": 140, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 5075, "end": 5079, "loc": { "start": { "line": 140, "column": 57 }, "end": { "line": 140, "column": 61 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5079, "end": 5080, "loc": { "start": { "line": 140, "column": 61 }, "end": { "line": 140, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 5080, "end": 5081, "loc": { "start": { "line": 140, "column": 62 }, "end": { "line": 140, "column": 63 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5081, "end": 5082, "loc": { "start": { "line": 140, "column": 63 }, "end": { "line": 140, "column": 64 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 5083, "end": 5087, "loc": { "start": { "line": 140, "column": 65 }, "end": { "line": 140, "column": 69 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5087, "end": 5088, "loc": { "start": { "line": 140, "column": 69 }, "end": { "line": 140, "column": 70 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 5088, "end": 5089, "loc": { "start": { "line": 140, "column": 70 }, "end": { "line": 140, "column": 71 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5089, "end": 5090, "loc": { "start": { "line": 140, "column": 71 }, "end": { "line": 140, "column": 72 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "regular", "start": 5091, "end": 5100, "loc": { "start": { "line": 140, "column": 73 }, "end": { "line": 140, "column": 82 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5100, "end": 5101, "loc": { "start": { "line": 140, "column": 82 }, "end": { "line": 140, "column": 83 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5101, "end": 5102, "loc": { "start": { "line": 140, "column": 83 }, "end": { "line": 140, "column": 84 } } }, { "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": 5112, "end": 5114, "loc": { "start": { "line": 141, "column": 8 }, "end": { "line": 141, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5115, "end": 5116, "loc": { "start": { "line": 141, "column": 11 }, "end": { "line": 141, "column": 12 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 5116, "end": 5117, "loc": { "start": { "line": 141, "column": 12 }, "end": { "line": 141, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 5117, "end": 5125, "loc": { "start": { "line": 141, "column": 13 }, "end": { "line": 141, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5125, "end": 5126, "loc": { "start": { "line": 141, "column": 21 }, "end": { "line": 141, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5127, "end": 5128, "loc": { "start": { "line": 141, "column": 23 }, "end": { "line": 141, "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": 5142, "end": 5148, "loc": { "start": { "line": 142, "column": 12 }, "end": { "line": 142, "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": 5149, "end": 5154, "loc": { "start": { "line": 142, "column": 19 }, "end": { "line": 142, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5154, "end": 5155, "loc": { "start": { "line": 142, "column": 24 }, "end": { "line": 142, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5165, "end": 5166, "loc": { "start": { "line": 143, "column": 8 }, "end": { "line": 143, "column": 9 } } }, { "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": 5178, "end": 5183, "loc": { "start": { "line": 145, "column": 8 }, "end": { "line": 145, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 5184, "end": 5194, "loc": { "start": { "line": 145, "column": 14 }, "end": { "line": 145, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5195, "end": 5196, "loc": { "start": { "line": 145, "column": 25 }, "end": { "line": 145, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 5197, "end": 5205, "loc": { "start": { "line": 145, "column": 27 }, "end": { "line": 145, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5205, "end": 5206, "loc": { "start": { "line": 145, "column": 35 }, "end": { "line": 145, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 5206, "end": 5216, "loc": { "start": { "line": 145, "column": 36 }, "end": { "line": 145, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5216, "end": 5217, "loc": { "start": { "line": 145, "column": 46 }, "end": { "line": 145, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "StaticMapEntity", "start": 5217, "end": 5232, "loc": { "start": { "line": 145, "column": 47 }, "end": { "line": 145, "column": 62 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5232, "end": 5233, "loc": { "start": { "line": 145, "column": 62 }, "end": { "line": 145, "column": 63 } } }, { "type": "CommentLine", "value": " Check if its a belt, since then its simple", "start": 5245, "end": 5290, "loc": { "start": { "line": 147, "column": 8 }, "end": { "line": 147, "column": 53 } } }, { "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": 5300, "end": 5305, "loc": { "start": { "line": 148, "column": 8 }, "end": { "line": 148, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beltComp", "start": 5306, "end": 5314, "loc": { "start": { "line": 148, "column": 14 }, "end": { "line": 148, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5315, "end": 5316, "loc": { "start": { "line": 148, "column": 23 }, "end": { "line": 148, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 5317, "end": 5325, "loc": { "start": { "line": 148, "column": 25 }, "end": { "line": 148, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5325, "end": 5326, "loc": { "start": { "line": 148, "column": 33 }, "end": { "line": 148, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 5326, "end": 5336, "loc": { "start": { "line": 148, "column": 34 }, "end": { "line": 148, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5336, "end": 5337, "loc": { "start": { "line": 148, "column": 44 }, "end": { "line": 148, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Belt", "start": 5337, "end": 5341, "loc": { "start": { "line": 148, "column": 45 }, "end": { "line": 148, "column": 49 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5341, "end": 5342, "loc": { "start": { "line": 148, "column": 49 }, "end": { "line": 148, "column": 50 } } }, { "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": 5352, "end": 5354, "loc": { "start": { "line": 149, "column": 8 }, "end": { "line": 149, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5355, "end": 5356, "loc": { "start": { "line": 149, "column": 11 }, "end": { "line": 149, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beltComp", "start": 5356, "end": 5364, "loc": { "start": { "line": 149, "column": 12 }, "end": { "line": 149, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5364, "end": 5365, "loc": { "start": { "line": 149, "column": 20 }, "end": { "line": 149, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5366, "end": 5367, "loc": { "start": { "line": 149, "column": 22 }, "end": { "line": 149, "column": 23 } } }, { "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": 5381, "end": 5387, "loc": { "start": { "line": 150, "column": 12 }, "end": { "line": 150, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 5388, "end": 5398, "loc": { "start": { "line": 150, "column": 19 }, "end": { "line": 150, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5398, "end": 5399, "loc": { "start": { "line": 150, "column": 29 }, "end": { "line": 150, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "localDirectionToWorld", "start": 5399, "end": 5420, "loc": { "start": { "line": 150, "column": 30 }, "end": { "line": 150, "column": 51 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5420, "end": 5421, "loc": { "start": { "line": 150, "column": 51 }, "end": { "line": 150, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beltComp", "start": 5421, "end": 5429, "loc": { "start": { "line": 150, "column": 52 }, "end": { "line": 150, "column": 60 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5429, "end": 5430, "loc": { "start": { "line": 150, "column": 60 }, "end": { "line": 150, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "direction", "start": 5430, "end": 5439, "loc": { "start": { "line": 150, "column": 61 }, "end": { "line": 150, "column": 70 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5439, "end": 5440, "loc": { "start": { "line": 150, "column": 70 }, "end": { "line": 150, "column": 71 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 5441, "end": 5444, "loc": { "start": { "line": 150, "column": 72 }, "end": { "line": 150, "column": 75 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "toDirection", "start": 5445, "end": 5456, "loc": { "start": { "line": 150, "column": 76 }, "end": { "line": 150, "column": 87 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5456, "end": 5457, "loc": { "start": { "line": 150, "column": 87 }, "end": { "line": 150, "column": 88 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5467, "end": 5468, "loc": { "start": { "line": 151, "column": 8 }, "end": { "line": 151, "column": 9 } } }, { "type": "CommentLine", "value": " Check for an ejector", "start": 5480, "end": 5503, "loc": { "start": { "line": 153, "column": 8 }, "end": { "line": 153, "column": 31 } } }, { "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": 5513, "end": 5518, "loc": { "start": { "line": 154, "column": 8 }, "end": { "line": 154, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ejectorComp", "start": 5519, "end": 5530, "loc": { "start": { "line": 154, "column": 14 }, "end": { "line": 154, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5531, "end": 5532, "loc": { "start": { "line": 154, "column": 26 }, "end": { "line": 154, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 5533, "end": 5541, "loc": { "start": { "line": 154, "column": 28 }, "end": { "line": 154, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5541, "end": 5542, "loc": { "start": { "line": 154, "column": 36 }, "end": { "line": 154, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 5542, "end": 5552, "loc": { "start": { "line": 154, "column": 37 }, "end": { "line": 154, "column": 47 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5552, "end": 5553, "loc": { "start": { "line": 154, "column": 47 }, "end": { "line": 154, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ItemEjector", "start": 5553, "end": 5564, "loc": { "start": { "line": 154, "column": 48 }, "end": { "line": 154, "column": 59 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5564, "end": 5565, "loc": { "start": { "line": 154, "column": 59 }, "end": { "line": 154, "column": 60 } } }, { "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": 5575, "end": 5577, "loc": { "start": { "line": 155, "column": 8 }, "end": { "line": 155, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5578, "end": 5579, "loc": { "start": { "line": 155, "column": 11 }, "end": { "line": 155, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ejectorComp", "start": 5579, "end": 5590, "loc": { "start": { "line": 155, "column": 12 }, "end": { "line": 155, "column": 23 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5590, "end": 5591, "loc": { "start": { "line": 155, "column": 23 }, "end": { "line": 155, "column": 24 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5592, "end": 5593, "loc": { "start": { "line": 155, "column": 25 }, "end": { "line": 155, "column": 26 } } }, { "type": "CommentLine", "value": " Check each slot to see if its connected", "start": 5607, "end": 5649, "loc": { "start": { "line": 156, "column": 12 }, "end": { "line": 156, "column": 54 } } }, { "type": { "label": "for", "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "for", "start": 5663, "end": 5666, "loc": { "start": { "line": 157, "column": 12 }, "end": { "line": 157, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5667, "end": 5668, "loc": { "start": { "line": 157, "column": 16 }, "end": { "line": 157, "column": 17 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 5668, "end": 5671, "loc": { "start": { "line": 157, "column": 17 }, "end": { "line": 157, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 5672, "end": 5673, "loc": { "start": { "line": 157, "column": 21 }, "end": { "line": 157, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5674, "end": 5675, "loc": { "start": { "line": 157, "column": 23 }, "end": { "line": 157, "column": 24 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 5676, "end": 5677, "loc": { "start": { "line": 157, "column": 25 }, "end": { "line": 157, "column": 26 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5677, "end": 5678, "loc": { "start": { "line": 157, "column": 26 }, "end": { "line": 157, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 5679, "end": 5680, "loc": { "start": { "line": 157, "column": 28 }, "end": { "line": 157, "column": 29 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 5681, "end": 5682, "loc": { "start": { "line": 157, "column": 30 }, "end": { "line": 157, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ejectorComp", "start": 5683, "end": 5694, "loc": { "start": { "line": 157, "column": 32 }, "end": { "line": 157, "column": 43 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5694, "end": 5695, "loc": { "start": { "line": 157, "column": 43 }, "end": { "line": 157, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slots", "start": 5695, "end": 5700, "loc": { "start": { "line": 157, "column": 44 }, "end": { "line": 157, "column": 49 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5700, "end": 5701, "loc": { "start": { "line": 157, "column": 49 }, "end": { "line": 157, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 5701, "end": 5707, "loc": { "start": { "line": 157, "column": 50 }, "end": { "line": 157, "column": 56 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5707, "end": 5708, "loc": { "start": { "line": 157, "column": 56 }, "end": { "line": 157, "column": 57 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 5709, "end": 5711, "loc": { "start": { "line": 157, "column": 58 }, "end": { "line": 157, "column": 60 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 5711, "end": 5712, "loc": { "start": { "line": 157, "column": 60 }, "end": { "line": 157, "column": 61 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5712, "end": 5713, "loc": { "start": { "line": 157, "column": 61 }, "end": { "line": 157, "column": 62 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5714, "end": 5715, "loc": { "start": { "line": 157, "column": 63 }, "end": { "line": 157, "column": 64 } } }, { "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": 5733, "end": 5738, "loc": { "start": { "line": 158, "column": 16 }, "end": { "line": 158, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slot", "start": 5739, "end": 5743, "loc": { "start": { "line": 158, "column": 22 }, "end": { "line": 158, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5744, "end": 5745, "loc": { "start": { "line": 158, "column": 27 }, "end": { "line": 158, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ejectorComp", "start": 5746, "end": 5757, "loc": { "start": { "line": 158, "column": 29 }, "end": { "line": 158, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5757, "end": 5758, "loc": { "start": { "line": 158, "column": 40 }, "end": { "line": 158, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slots", "start": 5758, "end": 5763, "loc": { "start": { "line": 158, "column": 41 }, "end": { "line": 158, "column": 46 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5763, "end": 5764, "loc": { "start": { "line": 158, "column": 46 }, "end": { "line": 158, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 5764, "end": 5765, "loc": { "start": { "line": 158, "column": 47 }, "end": { "line": 158, "column": 48 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5765, "end": 5766, "loc": { "start": { "line": 158, "column": 48 }, "end": { "line": 158, "column": 49 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5766, "end": 5767, "loc": { "start": { "line": 158, "column": 49 }, "end": { "line": 158, "column": 50 } } }, { "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": 5785, "end": 5790, "loc": { "start": { "line": 159, "column": 16 }, "end": { "line": 159, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slotTile", "start": 5791, "end": 5799, "loc": { "start": { "line": 159, "column": 22 }, "end": { "line": 159, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5800, "end": 5801, "loc": { "start": { "line": 159, "column": 31 }, "end": { "line": 159, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 5802, "end": 5812, "loc": { "start": { "line": 159, "column": 33 }, "end": { "line": 159, "column": 43 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5812, "end": 5813, "loc": { "start": { "line": 159, "column": 43 }, "end": { "line": 159, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "localTileToWorld", "start": 5813, "end": 5829, "loc": { "start": { "line": 159, "column": 44 }, "end": { "line": 159, "column": 60 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5829, "end": 5830, "loc": { "start": { "line": 159, "column": 60 }, "end": { "line": 159, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slot", "start": 5830, "end": 5834, "loc": { "start": { "line": 159, "column": 61 }, "end": { "line": 159, "column": 65 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5834, "end": 5835, "loc": { "start": { "line": 159, "column": 65 }, "end": { "line": 159, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 5835, "end": 5838, "loc": { "start": { "line": 159, "column": 66 }, "end": { "line": 159, "column": 69 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5838, "end": 5839, "loc": { "start": { "line": 159, "column": 69 }, "end": { "line": 159, "column": 70 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5839, "end": 5840, "loc": { "start": { "line": 159, "column": 70 }, "end": { "line": 159, "column": 71 } } }, { "type": "CommentLine", "value": " Step 1: Check if the tile matches", "start": 5860, "end": 5896, "loc": { "start": { "line": 161, "column": 16 }, "end": { "line": 161, "column": 52 } } }, { "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": 5914, "end": 5916, "loc": { "start": { "line": 162, "column": 16 }, "end": { "line": 162, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5917, "end": 5918, "loc": { "start": { "line": 162, "column": 19 }, "end": { "line": 162, "column": 20 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 5918, "end": 5919, "loc": { "start": { "line": 162, "column": 20 }, "end": { "line": 162, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slotTile", "start": 5919, "end": 5927, "loc": { "start": { "line": 162, "column": 21 }, "end": { "line": 162, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5927, "end": 5928, "loc": { "start": { "line": 162, "column": 29 }, "end": { "line": 162, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "equals", "start": 5928, "end": 5934, "loc": { "start": { "line": 162, "column": 30 }, "end": { "line": 162, "column": 36 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5934, "end": 5935, "loc": { "start": { "line": 162, "column": 36 }, "end": { "line": 162, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 5935, "end": 5939, "loc": { "start": { "line": 162, "column": 37 }, "end": { "line": 162, "column": 41 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5939, "end": 5940, "loc": { "start": { "line": 162, "column": 41 }, "end": { "line": 162, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5940, "end": 5941, "loc": { "start": { "line": 162, "column": 42 }, "end": { "line": 162, "column": 43 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5942, "end": 5943, "loc": { "start": { "line": 162, "column": 44 }, "end": { "line": 162, "column": 45 } } }, { "type": { "label": "continue", "keyword": "continue", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "continue", "start": 5965, "end": 5973, "loc": { "start": { "line": 163, "column": 20 }, "end": { "line": 163, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5973, "end": 5974, "loc": { "start": { "line": 163, "column": 28 }, "end": { "line": 163, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5992, "end": 5993, "loc": { "start": { "line": 164, "column": 16 }, "end": { "line": 164, "column": 17 } } }, { "type": "CommentLine", "value": " Step 2: Check if the direction matches", "start": 6013, "end": 6054, "loc": { "start": { "line": 166, "column": 16 }, "end": { "line": 166, "column": 57 } } }, { "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": 6072, "end": 6077, "loc": { "start": { "line": 167, "column": 16 }, "end": { "line": 167, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slotDirection", "start": 6078, "end": 6091, "loc": { "start": { "line": 167, "column": 22 }, "end": { "line": 167, "column": 35 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6092, "end": 6093, "loc": { "start": { "line": 167, "column": 36 }, "end": { "line": 167, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 6094, "end": 6104, "loc": { "start": { "line": 167, "column": 38 }, "end": { "line": 167, "column": 48 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6104, "end": 6105, "loc": { "start": { "line": 167, "column": 48 }, "end": { "line": 167, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "localDirectionToWorld", "start": 6105, "end": 6126, "loc": { "start": { "line": 167, "column": 49 }, "end": { "line": 167, "column": 70 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6126, "end": 6127, "loc": { "start": { "line": 167, "column": 70 }, "end": { "line": 167, "column": 71 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slot", "start": 6127, "end": 6131, "loc": { "start": { "line": 167, "column": 71 }, "end": { "line": 167, "column": 75 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6131, "end": 6132, "loc": { "start": { "line": 167, "column": 75 }, "end": { "line": 167, "column": 76 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "direction", "start": 6132, "end": 6141, "loc": { "start": { "line": 167, "column": 76 }, "end": { "line": 167, "column": 85 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6141, "end": 6142, "loc": { "start": { "line": 167, "column": 85 }, "end": { "line": 167, "column": 86 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6142, "end": 6143, "loc": { "start": { "line": 167, "column": 86 }, "end": { "line": 167, "column": 87 } } }, { "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": 6161, "end": 6163, "loc": { "start": { "line": 168, "column": 16 }, "end": { "line": 168, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6164, "end": 6165, "loc": { "start": { "line": 168, "column": 19 }, "end": { "line": 168, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "slotDirection", "start": 6165, "end": 6178, "loc": { "start": { "line": 168, "column": 20 }, "end": { "line": 168, "column": 33 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 6179, "end": 6182, "loc": { "start": { "line": 168, "column": 34 }, "end": { "line": 168, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "toDirection", "start": 6183, "end": 6194, "loc": { "start": { "line": 168, "column": 38 }, "end": { "line": 168, "column": 49 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6194, "end": 6195, "loc": { "start": { "line": 168, "column": 49 }, "end": { "line": 168, "column": 50 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6196, "end": 6197, "loc": { "start": { "line": 168, "column": 51 }, "end": { "line": 168, "column": 52 } } }, { "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": 6219, "end": 6225, "loc": { "start": { "line": 169, "column": 20 }, "end": { "line": 169, "column": 26 } } }, { "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": 6226, "end": 6230, "loc": { "start": { "line": 169, "column": 27 }, "end": { "line": 169, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6230, "end": 6231, "loc": { "start": { "line": 169, "column": 31 }, "end": { "line": 169, "column": 32 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6249, "end": 6250, "loc": { "start": { "line": 170, "column": 16 }, "end": { "line": 170, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6264, "end": 6265, "loc": { "start": { "line": 171, "column": 12 }, "end": { "line": 171, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6275, "end": 6276, "loc": { "start": { "line": 172, "column": 8 }, "end": { "line": 172, "column": 9 } } }, { "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": 6288, "end": 6294, "loc": { "start": { "line": 174, "column": 8 }, "end": { "line": 174, "column": 14 } } }, { "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": 6295, "end": 6300, "loc": { "start": { "line": 174, "column": 15 }, "end": { "line": 174, "column": 20 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6300, "end": 6301, "loc": { "start": { "line": 174, "column": 20 }, "end": { "line": 174, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6307, "end": 6308, "loc": { "start": { "line": 175, "column": 4 }, "end": { "line": 175, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Computes the flag for a given tile\r\n * @param {Entity} entity\r\n * @param {import(\"../components/belt_underlays\").BeltUnderlayTile} underlayTile\r\n * @returns {enumClippedBeltUnderlayType} The type of the underlay\r\n ", "start": 6316, "end": 6560, "loc": { "start": { "line": 177, "column": 4 }, "end": { "line": 182, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "computeBeltUnderlayType", "start": 6566, "end": 6589, "loc": { "start": { "line": 183, "column": 4 }, "end": { "line": 183, "column": 27 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6589, "end": 6590, "loc": { "start": { "line": 183, "column": 27 }, "end": { "line": 183, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 6590, "end": 6596, "loc": { "start": { "line": 183, "column": 28 }, "end": { "line": 183, "column": 34 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6596, "end": 6597, "loc": { "start": { "line": 183, "column": 34 }, "end": { "line": 183, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayTile", "start": 6598, "end": 6610, "loc": { "start": { "line": 183, "column": 36 }, "end": { "line": 183, "column": 48 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6610, "end": 6611, "loc": { "start": { "line": 183, "column": 48 }, "end": { "line": 183, "column": 49 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6612, "end": 6613, "loc": { "start": { "line": 183, "column": 50 }, "end": { "line": 183, "column": 51 } } }, { "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": 6623, "end": 6625, "loc": { "start": { "line": 184, "column": 8 }, "end": { "line": 184, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6626, "end": 6627, "loc": { "start": { "line": 184, "column": 11 }, "end": { "line": 184, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayTile", "start": 6627, "end": 6639, "loc": { "start": { "line": 184, "column": 12 }, "end": { "line": 184, "column": 24 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6639, "end": 6640, "loc": { "start": { "line": 184, "column": 24 }, "end": { "line": 184, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cachedType", "start": 6640, "end": 6650, "loc": { "start": { "line": 184, "column": 25 }, "end": { "line": 184, "column": 35 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6650, "end": 6651, "loc": { "start": { "line": 184, "column": 35 }, "end": { "line": 184, "column": 36 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6652, "end": 6653, "loc": { "start": { "line": 184, "column": 37 }, "end": { "line": 184, "column": 38 } } }, { "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": 6667, "end": 6673, "loc": { "start": { "line": 185, "column": 12 }, "end": { "line": 185, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayTile", "start": 6674, "end": 6686, "loc": { "start": { "line": 185, "column": 19 }, "end": { "line": 185, "column": 31 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6686, "end": 6687, "loc": { "start": { "line": 185, "column": 31 }, "end": { "line": 185, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cachedType", "start": 6687, "end": 6697, "loc": { "start": { "line": 185, "column": 32 }, "end": { "line": 185, "column": 42 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6697, "end": 6698, "loc": { "start": { "line": 185, "column": 42 }, "end": { "line": 185, "column": 43 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6708, "end": 6709, "loc": { "start": { "line": 186, "column": 8 }, "end": { "line": 186, "column": 9 } } }, { "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": 6721, "end": 6726, "loc": { "start": { "line": 188, "column": 8 }, "end": { "line": 188, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 6727, "end": 6737, "loc": { "start": { "line": 188, "column": 14 }, "end": { "line": 188, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6738, "end": 6739, "loc": { "start": { "line": 188, "column": 25 }, "end": { "line": 188, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 6740, "end": 6746, "loc": { "start": { "line": 188, "column": 27 }, "end": { "line": 188, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6746, "end": 6747, "loc": { "start": { "line": 188, "column": 33 }, "end": { "line": 188, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 6747, "end": 6757, "loc": { "start": { "line": 188, "column": 34 }, "end": { "line": 188, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6757, "end": 6758, "loc": { "start": { "line": 188, "column": 44 }, "end": { "line": 188, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "StaticMapEntity", "start": 6758, "end": 6773, "loc": { "start": { "line": 188, "column": 45 }, "end": { "line": 188, "column": 60 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6773, "end": 6774, "loc": { "start": { "line": 188, "column": 60 }, "end": { "line": 188, "column": 61 } } }, { "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": 6786, "end": 6791, "loc": { "start": { "line": 190, "column": 8 }, "end": { "line": 190, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "transformedPos", "start": 6792, "end": 6806, "loc": { "start": { "line": 190, "column": 14 }, "end": { "line": 190, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6807, "end": 6808, "loc": { "start": { "line": 190, "column": 29 }, "end": { "line": 190, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 6809, "end": 6819, "loc": { "start": { "line": 190, "column": 31 }, "end": { "line": 190, "column": 41 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6819, "end": 6820, "loc": { "start": { "line": 190, "column": 41 }, "end": { "line": 190, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "localTileToWorld", "start": 6820, "end": 6836, "loc": { "start": { "line": 190, "column": 42 }, "end": { "line": 190, "column": 58 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6836, "end": 6837, "loc": { "start": { "line": 190, "column": 58 }, "end": { "line": 190, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayTile", "start": 6837, "end": 6849, "loc": { "start": { "line": 190, "column": 59 }, "end": { "line": 190, "column": 71 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6849, "end": 6850, "loc": { "start": { "line": 190, "column": 71 }, "end": { "line": 190, "column": 72 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 6850, "end": 6853, "loc": { "start": { "line": 190, "column": 72 }, "end": { "line": 190, "column": 75 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6853, "end": 6854, "loc": { "start": { "line": 190, "column": 75 }, "end": { "line": 190, "column": 76 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6854, "end": 6855, "loc": { "start": { "line": 190, "column": 76 }, "end": { "line": 190, "column": 77 } } }, { "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": 6865, "end": 6870, "loc": { "start": { "line": 191, "column": 8 }, "end": { "line": 191, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "destX", "start": 6871, "end": 6876, "loc": { "start": { "line": 191, "column": 14 }, "end": { "line": 191, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6877, "end": 6878, "loc": { "start": { "line": 191, "column": 20 }, "end": { "line": 191, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "transformedPos", "start": 6879, "end": 6893, "loc": { "start": { "line": 191, "column": 22 }, "end": { "line": 191, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6893, "end": 6894, "loc": { "start": { "line": 191, "column": 36 }, "end": { "line": 191, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 6894, "end": 6895, "loc": { "start": { "line": 191, "column": 37 }, "end": { "line": 191, "column": 38 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 6896, "end": 6897, "loc": { "start": { "line": 191, "column": 39 }, "end": { "line": 191, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 6898, "end": 6910, "loc": { "start": { "line": 191, "column": 41 }, "end": { "line": 191, "column": 53 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6910, "end": 6911, "loc": { "start": { "line": 191, "column": 53 }, "end": { "line": 191, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileSize", "start": 6911, "end": 6919, "loc": { "start": { "line": 191, "column": 54 }, "end": { "line": 191, "column": 62 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6919, "end": 6920, "loc": { "start": { "line": 191, "column": 62 }, "end": { "line": 191, "column": 63 } } }, { "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": 6930, "end": 6935, "loc": { "start": { "line": 192, "column": 8 }, "end": { "line": 192, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "destY", "start": 6936, "end": 6941, "loc": { "start": { "line": 192, "column": 14 }, "end": { "line": 192, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6942, "end": 6943, "loc": { "start": { "line": 192, "column": 20 }, "end": { "line": 192, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "transformedPos", "start": 6944, "end": 6958, "loc": { "start": { "line": 192, "column": 22 }, "end": { "line": 192, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6958, "end": 6959, "loc": { "start": { "line": 192, "column": 36 }, "end": { "line": 192, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 6959, "end": 6960, "loc": { "start": { "line": 192, "column": 37 }, "end": { "line": 192, "column": 38 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 6961, "end": 6962, "loc": { "start": { "line": 192, "column": 39 }, "end": { "line": 192, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 6963, "end": 6975, "loc": { "start": { "line": 192, "column": 41 }, "end": { "line": 192, "column": 53 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6975, "end": 6976, "loc": { "start": { "line": 192, "column": 53 }, "end": { "line": 192, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileSize", "start": 6976, "end": 6984, "loc": { "start": { "line": 192, "column": 54 }, "end": { "line": 192, "column": 62 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6984, "end": 6985, "loc": { "start": { "line": 192, "column": 62 }, "end": { "line": 192, "column": 63 } } }, { "type": "CommentLine", "value": " Extract direction and angle", "start": 6997, "end": 7027, "loc": { "start": { "line": 194, "column": 8 }, "end": { "line": 194, "column": 38 } } }, { "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": 7037, "end": 7042, "loc": { "start": { "line": 195, "column": 8 }, "end": { "line": 195, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "worldDirection", "start": 7043, "end": 7057, "loc": { "start": { "line": 195, "column": 14 }, "end": { "line": 195, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7058, "end": 7059, "loc": { "start": { "line": 195, "column": 29 }, "end": { "line": 195, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 7060, "end": 7070, "loc": { "start": { "line": 195, "column": 31 }, "end": { "line": 195, "column": 41 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7070, "end": 7071, "loc": { "start": { "line": 195, "column": 41 }, "end": { "line": 195, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "localDirectionToWorld", "start": 7071, "end": 7092, "loc": { "start": { "line": 195, "column": 42 }, "end": { "line": 195, "column": 63 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7092, "end": 7093, "loc": { "start": { "line": 195, "column": 63 }, "end": { "line": 195, "column": 64 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayTile", "start": 7093, "end": 7105, "loc": { "start": { "line": 195, "column": 64 }, "end": { "line": 195, "column": 76 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7105, "end": 7106, "loc": { "start": { "line": 195, "column": 76 }, "end": { "line": 195, "column": 77 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "direction", "start": 7106, "end": 7115, "loc": { "start": { "line": 195, "column": 77 }, "end": { "line": 195, "column": 86 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7115, "end": 7116, "loc": { "start": { "line": 195, "column": 86 }, "end": { "line": 195, "column": 87 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7116, "end": 7117, "loc": { "start": { "line": 195, "column": 87 }, "end": { "line": 195, "column": 88 } } }, { "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": 7127, "end": 7132, "loc": { "start": { "line": 196, "column": 8 }, "end": { "line": 196, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "worldDirectionVector", "start": 7133, "end": 7153, "loc": { "start": { "line": 196, "column": 14 }, "end": { "line": 196, "column": 34 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7154, "end": 7155, "loc": { "start": { "line": 196, "column": 35 }, "end": { "line": 196, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumDirectionToVector", "start": 7156, "end": 7177, "loc": { "start": { "line": 196, "column": 37 }, "end": { "line": 196, "column": 58 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7177, "end": 7178, "loc": { "start": { "line": 196, "column": 58 }, "end": { "line": 196, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "worldDirection", "start": 7178, "end": 7192, "loc": { "start": { "line": 196, "column": 59 }, "end": { "line": 196, "column": 73 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7192, "end": 7193, "loc": { "start": { "line": 196, "column": 73 }, "end": { "line": 196, "column": 74 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7193, "end": 7194, "loc": { "start": { "line": 196, "column": 74 }, "end": { "line": 196, "column": 75 } } }, { "type": "CommentLine", "value": " Figure out if there is anything connected at the top", "start": 7206, "end": 7261, "loc": { "start": { "line": 198, "column": 8 }, "end": { "line": 198, "column": 63 } } }, { "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": 7271, "end": 7276, "loc": { "start": { "line": 199, "column": 8 }, "end": { "line": 199, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "connectedTop", "start": 7277, "end": 7289, "loc": { "start": { "line": 199, "column": 14 }, "end": { "line": 199, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7290, "end": 7291, "loc": { "start": { "line": 199, "column": 27 }, "end": { "line": 199, "column": 28 } } }, { "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": 7292, "end": 7296, "loc": { "start": { "line": 199, "column": 29 }, "end": { "line": 199, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7296, "end": 7297, "loc": { "start": { "line": 199, "column": 33 }, "end": { "line": 199, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "checkIsAcceptorConnected", "start": 7297, "end": 7321, "loc": { "start": { "line": 199, "column": 34 }, "end": { "line": 199, "column": 58 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7321, "end": 7322, "loc": { "start": { "line": 199, "column": 58 }, "end": { "line": 199, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "transformedPos", "start": 7336, "end": 7350, "loc": { "start": { "line": 200, "column": 12 }, "end": { "line": 200, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7350, "end": 7351, "loc": { "start": { "line": 200, "column": 26 }, "end": { "line": 200, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "add", "start": 7351, "end": 7354, "loc": { "start": { "line": 200, "column": 27 }, "end": { "line": 200, "column": 30 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7354, "end": 7355, "loc": { "start": { "line": 200, "column": 30 }, "end": { "line": 200, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "worldDirectionVector", "start": 7355, "end": 7375, "loc": { "start": { "line": 200, "column": 31 }, "end": { "line": 200, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7375, "end": 7376, "loc": { "start": { "line": 200, "column": 51 }, "end": { "line": 200, "column": 52 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7376, "end": 7377, "loc": { "start": { "line": 200, "column": 52 }, "end": { "line": 200, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumInvertedDirections", "start": 7391, "end": 7413, "loc": { "start": { "line": 201, "column": 12 }, "end": { "line": 201, "column": 34 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7413, "end": 7414, "loc": { "start": { "line": 201, "column": 34 }, "end": { "line": 201, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "worldDirection", "start": 7414, "end": 7428, "loc": { "start": { "line": 201, "column": 35 }, "end": { "line": 201, "column": 49 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7428, "end": 7429, "loc": { "start": { "line": 201, "column": 49 }, "end": { "line": 201, "column": 50 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7439, "end": 7440, "loc": { "start": { "line": 202, "column": 8 }, "end": { "line": 202, "column": 9 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7440, "end": 7441, "loc": { "start": { "line": 202, "column": 9 }, "end": { "line": 202, "column": 10 } } }, { "type": "CommentLine", "value": " Figure out if there is anything connected at the bottom", "start": 7453, "end": 7511, "loc": { "start": { "line": 204, "column": 8 }, "end": { "line": 204, "column": 66 } } }, { "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": 7521, "end": 7526, "loc": { "start": { "line": 205, "column": 8 }, "end": { "line": 205, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "connectedBottom", "start": 7527, "end": 7542, "loc": { "start": { "line": 205, "column": 14 }, "end": { "line": 205, "column": 29 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7543, "end": 7544, "loc": { "start": { "line": 205, "column": 30 }, "end": { "line": 205, "column": 31 } } }, { "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": 7545, "end": 7549, "loc": { "start": { "line": 205, "column": 32 }, "end": { "line": 205, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7549, "end": 7550, "loc": { "start": { "line": 205, "column": 36 }, "end": { "line": 205, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "checkIsEjectorConnected", "start": 7550, "end": 7573, "loc": { "start": { "line": 205, "column": 37 }, "end": { "line": 205, "column": 60 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7573, "end": 7574, "loc": { "start": { "line": 205, "column": 60 }, "end": { "line": 205, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "transformedPos", "start": 7588, "end": 7602, "loc": { "start": { "line": 206, "column": 12 }, "end": { "line": 206, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7602, "end": 7603, "loc": { "start": { "line": 206, "column": 26 }, "end": { "line": 206, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "sub", "start": 7603, "end": 7606, "loc": { "start": { "line": 206, "column": 27 }, "end": { "line": 206, "column": 30 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7606, "end": 7607, "loc": { "start": { "line": 206, "column": 30 }, "end": { "line": 206, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "worldDirectionVector", "start": 7607, "end": 7627, "loc": { "start": { "line": 206, "column": 31 }, "end": { "line": 206, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7627, "end": 7628, "loc": { "start": { "line": 206, "column": 51 }, "end": { "line": 206, "column": 52 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7628, "end": 7629, "loc": { "start": { "line": 206, "column": 52 }, "end": { "line": 206, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "worldDirection", "start": 7643, "end": 7657, "loc": { "start": { "line": 207, "column": 12 }, "end": { "line": 207, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7667, "end": 7668, "loc": { "start": { "line": 208, "column": 8 }, "end": { "line": 208, "column": 9 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7668, "end": 7669, "loc": { "start": { "line": 208, "column": 9 }, "end": { "line": 208, "column": 10 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 7681, "end": 7684, "loc": { "start": { "line": 210, "column": 8 }, "end": { "line": 210, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "flag", "start": 7685, "end": 7689, "loc": { "start": { "line": 210, "column": 12 }, "end": { "line": 210, "column": 16 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7690, "end": 7691, "loc": { "start": { "line": 210, "column": 17 }, "end": { "line": 210, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumClippedBeltUnderlayType", "start": 7692, "end": 7719, "loc": { "start": { "line": 210, "column": 19 }, "end": { "line": 210, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7719, "end": 7720, "loc": { "start": { "line": 210, "column": 46 }, "end": { "line": 210, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "none", "start": 7720, "end": 7724, "loc": { "start": { "line": 210, "column": 47 }, "end": { "line": 210, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7724, "end": 7725, "loc": { "start": { "line": 210, "column": 51 }, "end": { "line": 210, "column": 52 } } }, { "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": 7737, "end": 7739, "loc": { "start": { "line": 212, "column": 8 }, "end": { "line": 212, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7740, "end": 7741, "loc": { "start": { "line": 212, "column": 11 }, "end": { "line": 212, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "connectedTop", "start": 7741, "end": 7753, "loc": { "start": { "line": 212, "column": 12 }, "end": { "line": 212, "column": 24 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 7754, "end": 7756, "loc": { "start": { "line": 212, "column": 25 }, "end": { "line": 212, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "connectedBottom", "start": 7757, "end": 7772, "loc": { "start": { "line": 212, "column": 28 }, "end": { "line": 212, "column": 43 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7772, "end": 7773, "loc": { "start": { "line": 212, "column": 43 }, "end": { "line": 212, "column": 44 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7774, "end": 7775, "loc": { "start": { "line": 212, "column": 45 }, "end": { "line": 212, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "flag", "start": 7789, "end": 7793, "loc": { "start": { "line": 213, "column": 12 }, "end": { "line": 213, "column": 16 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7794, "end": 7795, "loc": { "start": { "line": 213, "column": 17 }, "end": { "line": 213, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumClippedBeltUnderlayType", "start": 7796, "end": 7823, "loc": { "start": { "line": 213, "column": 19 }, "end": { "line": 213, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7823, "end": 7824, "loc": { "start": { "line": 213, "column": 46 }, "end": { "line": 213, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "full", "start": 7824, "end": 7828, "loc": { "start": { "line": 213, "column": 47 }, "end": { "line": 213, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7828, "end": 7829, "loc": { "start": { "line": 213, "column": 51 }, "end": { "line": 213, "column": 52 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7839, "end": 7840, "loc": { "start": { "line": 214, "column": 8 }, "end": { "line": 214, "column": 9 } } }, { "type": { "label": "else", "keyword": "else", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "else", "start": 7841, "end": 7845, "loc": { "start": { "line": 214, "column": 10 }, "end": { "line": 214, "column": 14 } } }, { "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": 7846, "end": 7848, "loc": { "start": { "line": 214, "column": 15 }, "end": { "line": 214, "column": 17 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7849, "end": 7850, "loc": { "start": { "line": 214, "column": 18 }, "end": { "line": 214, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "connectedTop", "start": 7850, "end": 7862, "loc": { "start": { "line": 214, "column": 19 }, "end": { "line": 214, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7862, "end": 7863, "loc": { "start": { "line": 214, "column": 31 }, "end": { "line": 214, "column": 32 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7864, "end": 7865, "loc": { "start": { "line": 214, "column": 33 }, "end": { "line": 214, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "flag", "start": 7879, "end": 7883, "loc": { "start": { "line": 215, "column": 12 }, "end": { "line": 215, "column": 16 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7884, "end": 7885, "loc": { "start": { "line": 215, "column": 17 }, "end": { "line": 215, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumClippedBeltUnderlayType", "start": 7886, "end": 7913, "loc": { "start": { "line": 215, "column": 19 }, "end": { "line": 215, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7913, "end": 7914, "loc": { "start": { "line": 215, "column": 46 }, "end": { "line": 215, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topOnly", "start": 7914, "end": 7921, "loc": { "start": { "line": 215, "column": 47 }, "end": { "line": 215, "column": 54 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7921, "end": 7922, "loc": { "start": { "line": 215, "column": 54 }, "end": { "line": 215, "column": 55 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7932, "end": 7933, "loc": { "start": { "line": 216, "column": 8 }, "end": { "line": 216, "column": 9 } } }, { "type": { "label": "else", "keyword": "else", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "else", "start": 7934, "end": 7938, "loc": { "start": { "line": 216, "column": 10 }, "end": { "line": 216, "column": 14 } } }, { "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": 7939, "end": 7941, "loc": { "start": { "line": 216, "column": 15 }, "end": { "line": 216, "column": 17 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7942, "end": 7943, "loc": { "start": { "line": 216, "column": 18 }, "end": { "line": 216, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "connectedBottom", "start": 7943, "end": 7958, "loc": { "start": { "line": 216, "column": 19 }, "end": { "line": 216, "column": 34 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7958, "end": 7959, "loc": { "start": { "line": 216, "column": 34 }, "end": { "line": 216, "column": 35 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7960, "end": 7961, "loc": { "start": { "line": 216, "column": 36 }, "end": { "line": 216, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "flag", "start": 7975, "end": 7979, "loc": { "start": { "line": 217, "column": 12 }, "end": { "line": 217, "column": 16 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7980, "end": 7981, "loc": { "start": { "line": 217, "column": 17 }, "end": { "line": 217, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumClippedBeltUnderlayType", "start": 7982, "end": 8009, "loc": { "start": { "line": 217, "column": 19 }, "end": { "line": 217, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8009, "end": 8010, "loc": { "start": { "line": 217, "column": 46 }, "end": { "line": 217, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottomOnly", "start": 8010, "end": 8020, "loc": { "start": { "line": 217, "column": 47 }, "end": { "line": 217, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8020, "end": 8021, "loc": { "start": { "line": 217, "column": 57 }, "end": { "line": 217, "column": 58 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8031, "end": 8032, "loc": { "start": { "line": 218, "column": 8 }, "end": { "line": 218, "column": 9 } } }, { "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": 8044, "end": 8050, "loc": { "start": { "line": 220, "column": 8 }, "end": { "line": 220, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8051, "end": 8052, "loc": { "start": { "line": 220, "column": 15 }, "end": { "line": 220, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayTile", "start": 8052, "end": 8064, "loc": { "start": { "line": 220, "column": 16 }, "end": { "line": 220, "column": 28 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8064, "end": 8065, "loc": { "start": { "line": 220, "column": 28 }, "end": { "line": 220, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cachedType", "start": 8065, "end": 8075, "loc": { "start": { "line": 220, "column": 29 }, "end": { "line": 220, "column": 39 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8076, "end": 8077, "loc": { "start": { "line": 220, "column": 40 }, "end": { "line": 220, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "flag", "start": 8078, "end": 8082, "loc": { "start": { "line": 220, "column": 42 }, "end": { "line": 220, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8082, "end": 8083, "loc": { "start": { "line": 220, "column": 46 }, "end": { "line": 220, "column": 47 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8083, "end": 8084, "loc": { "start": { "line": 220, "column": 47 }, "end": { "line": 220, "column": 48 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8090, "end": 8091, "loc": { "start": { "line": 221, "column": 4 }, "end": { "line": 221, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Draws a given chunk\r\n * @param {DrawParameters} parameters\r\n * @param {MapChunkView} chunk\r\n ", "start": 8099, "end": 8218, "loc": { "start": { "line": 223, "column": 4 }, "end": { "line": 227, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "drawChunk_BackgroundLayer", "start": 8224, "end": 8249, "loc": { "start": { "line": 228, "column": 4 }, "end": { "line": 228, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8249, "end": 8250, "loc": { "start": { "line": 228, "column": 29 }, "end": { "line": 228, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "parameters", "start": 8250, "end": 8260, "loc": { "start": { "line": 228, "column": 30 }, "end": { "line": 228, "column": 40 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8260, "end": 8261, "loc": { "start": { "line": 228, "column": 40 }, "end": { "line": 228, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 8262, "end": 8267, "loc": { "start": { "line": 228, "column": 42 }, "end": { "line": 228, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8267, "end": 8268, "loc": { "start": { "line": 228, "column": 47 }, "end": { "line": 228, "column": 48 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8269, "end": 8270, "loc": { "start": { "line": 228, "column": 49 }, "end": { "line": 228, "column": 50 } } }, { "type": "CommentLine", "value": " Limit speed to avoid belts going backwards", "start": 8280, "end": 8325, "loc": { "start": { "line": 229, "column": 8 }, "end": { "line": 229, "column": 53 } } }, { "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": 8335, "end": 8340, "loc": { "start": { "line": 230, "column": 8 }, "end": { "line": 230, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "speedMultiplier", "start": 8341, "end": 8356, "loc": { "start": { "line": 230, "column": 14 }, "end": { "line": 230, "column": 29 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8357, "end": 8358, "loc": { "start": { "line": 230, "column": 30 }, "end": { "line": 230, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 8359, "end": 8363, "loc": { "start": { "line": 230, "column": 32 }, "end": { "line": 230, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8363, "end": 8364, "loc": { "start": { "line": 230, "column": 36 }, "end": { "line": 230, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "min", "start": 8364, "end": 8367, "loc": { "start": { "line": 230, "column": 37 }, "end": { "line": 230, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8367, "end": 8368, "loc": { "start": { "line": 230, "column": 40 }, "end": { "line": 230, "column": 41 } } }, { "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": 8368, "end": 8372, "loc": { "start": { "line": 230, "column": 41 }, "end": { "line": 230, "column": 45 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8372, "end": 8373, "loc": { "start": { "line": 230, "column": 45 }, "end": { "line": 230, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 8373, "end": 8377, "loc": { "start": { "line": 230, "column": 46 }, "end": { "line": 230, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8377, "end": 8378, "loc": { "start": { "line": 230, "column": 50 }, "end": { "line": 230, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "hubGoals", "start": 8378, "end": 8386, "loc": { "start": { "line": 230, "column": 51 }, "end": { "line": 230, "column": 59 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8386, "end": 8387, "loc": { "start": { "line": 230, "column": 59 }, "end": { "line": 230, "column": 60 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getBeltBaseSpeed", "start": 8387, "end": 8403, "loc": { "start": { "line": 230, "column": 60 }, "end": { "line": 230, "column": 76 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8403, "end": 8404, "loc": { "start": { "line": 230, "column": 76 }, "end": { "line": 230, "column": 77 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8404, "end": 8405, "loc": { "start": { "line": 230, "column": 77 }, "end": { "line": 230, "column": 78 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8405, "end": 8406, "loc": { "start": { "line": 230, "column": 78 }, "end": { "line": 230, "column": 79 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 10, "start": 8407, "end": 8409, "loc": { "start": { "line": 230, "column": 80 }, "end": { "line": 230, "column": 82 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8409, "end": 8410, "loc": { "start": { "line": 230, "column": 82 }, "end": { "line": 230, "column": 83 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8410, "end": 8411, "loc": { "start": { "line": 230, "column": 83 }, "end": { "line": 230, "column": 84 } } }, { "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": 8423, "end": 8428, "loc": { "start": { "line": 232, "column": 8 }, "end": { "line": 232, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 8429, "end": 8437, "loc": { "start": { "line": 232, "column": 14 }, "end": { "line": 232, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8438, "end": 8439, "loc": { "start": { "line": 232, "column": 23 }, "end": { "line": 232, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 8440, "end": 8445, "loc": { "start": { "line": 232, "column": 25 }, "end": { "line": 232, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8445, "end": 8446, "loc": { "start": { "line": 232, "column": 30 }, "end": { "line": 232, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "containedEntitiesByLayer", "start": 8446, "end": 8470, "loc": { "start": { "line": 232, "column": 31 }, "end": { "line": 232, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8470, "end": 8471, "loc": { "start": { "line": 232, "column": 55 }, "end": { "line": 232, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "regular", "start": 8471, "end": 8478, "loc": { "start": { "line": 232, "column": 56 }, "end": { "line": 232, "column": 63 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8478, "end": 8479, "loc": { "start": { "line": 232, "column": 63 }, "end": { "line": 232, "column": 64 } } }, { "type": { "label": "for", "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "for", "start": 8489, "end": 8492, "loc": { "start": { "line": 233, "column": 8 }, "end": { "line": 233, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8493, "end": 8494, "loc": { "start": { "line": 233, "column": 12 }, "end": { "line": 233, "column": 13 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 8494, "end": 8497, "loc": { "start": { "line": 233, "column": 13 }, "end": { "line": 233, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 8498, "end": 8499, "loc": { "start": { "line": 233, "column": 17 }, "end": { "line": 233, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8500, "end": 8501, "loc": { "start": { "line": 233, "column": 19 }, "end": { "line": 233, "column": 20 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 8502, "end": 8503, "loc": { "start": { "line": 233, "column": 21 }, "end": { "line": 233, "column": 22 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8503, "end": 8504, "loc": { "start": { "line": 233, "column": 22 }, "end": { "line": 233, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 8505, "end": 8506, "loc": { "start": { "line": 233, "column": 24 }, "end": { "line": 233, "column": 25 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 8507, "end": 8508, "loc": { "start": { "line": 233, "column": 26 }, "end": { "line": 233, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 8509, "end": 8517, "loc": { "start": { "line": 233, "column": 28 }, "end": { "line": 233, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8517, "end": 8518, "loc": { "start": { "line": 233, "column": 36 }, "end": { "line": 233, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 8518, "end": 8524, "loc": { "start": { "line": 233, "column": 37 }, "end": { "line": 233, "column": 43 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8524, "end": 8525, "loc": { "start": { "line": 233, "column": 43 }, "end": { "line": 233, "column": 44 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 8526, "end": 8528, "loc": { "start": { "line": 233, "column": 45 }, "end": { "line": 233, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 8528, "end": 8529, "loc": { "start": { "line": 233, "column": 47 }, "end": { "line": 233, "column": 48 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8529, "end": 8530, "loc": { "start": { "line": 233, "column": 48 }, "end": { "line": 233, "column": 49 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8531, "end": 8532, "loc": { "start": { "line": 233, "column": 50 }, "end": { "line": 233, "column": 51 } } }, { "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": 8546, "end": 8551, "loc": { "start": { "line": 234, "column": 12 }, "end": { "line": 234, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 8552, "end": 8558, "loc": { "start": { "line": 234, "column": 18 }, "end": { "line": 234, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8559, "end": 8560, "loc": { "start": { "line": 234, "column": 25 }, "end": { "line": 234, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 8561, "end": 8569, "loc": { "start": { "line": 234, "column": 27 }, "end": { "line": 234, "column": 35 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8569, "end": 8570, "loc": { "start": { "line": 234, "column": 35 }, "end": { "line": 234, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 8570, "end": 8571, "loc": { "start": { "line": 234, "column": 36 }, "end": { "line": 234, "column": 37 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8571, "end": 8572, "loc": { "start": { "line": 234, "column": 37 }, "end": { "line": 234, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8572, "end": 8573, "loc": { "start": { "line": 234, "column": 38 }, "end": { "line": 234, "column": 39 } } }, { "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": 8587, "end": 8592, "loc": { "start": { "line": 235, "column": 12 }, "end": { "line": 235, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayComp", "start": 8593, "end": 8605, "loc": { "start": { "line": 235, "column": 18 }, "end": { "line": 235, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8606, "end": 8607, "loc": { "start": { "line": 235, "column": 31 }, "end": { "line": 235, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 8608, "end": 8614, "loc": { "start": { "line": 235, "column": 33 }, "end": { "line": 235, "column": 39 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8614, "end": 8615, "loc": { "start": { "line": 235, "column": 39 }, "end": { "line": 235, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 8615, "end": 8625, "loc": { "start": { "line": 235, "column": 40 }, "end": { "line": 235, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8625, "end": 8626, "loc": { "start": { "line": 235, "column": 50 }, "end": { "line": 235, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BeltUnderlays", "start": 8626, "end": 8639, "loc": { "start": { "line": 235, "column": 51 }, "end": { "line": 235, "column": 64 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8639, "end": 8640, "loc": { "start": { "line": 235, "column": 64 }, "end": { "line": 235, "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": 8654, "end": 8656, "loc": { "start": { "line": 236, "column": 12 }, "end": { "line": 236, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8657, "end": 8658, "loc": { "start": { "line": 236, "column": 15 }, "end": { "line": 236, "column": 16 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 8658, "end": 8659, "loc": { "start": { "line": 236, "column": 16 }, "end": { "line": 236, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayComp", "start": 8659, "end": 8671, "loc": { "start": { "line": 236, "column": 17 }, "end": { "line": 236, "column": 29 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8671, "end": 8672, "loc": { "start": { "line": 236, "column": 29 }, "end": { "line": 236, "column": 30 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8673, "end": 8674, "loc": { "start": { "line": 236, "column": 31 }, "end": { "line": 236, "column": 32 } } }, { "type": { "label": "continue", "keyword": "continue", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "continue", "start": 8692, "end": 8700, "loc": { "start": { "line": 237, "column": 16 }, "end": { "line": 237, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8700, "end": 8701, "loc": { "start": { "line": 237, "column": 24 }, "end": { "line": 237, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8715, "end": 8716, "loc": { "start": { "line": 238, "column": 12 }, "end": { "line": 238, "column": 13 } } }, { "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": 8732, "end": 8737, "loc": { "start": { "line": 240, "column": 12 }, "end": { "line": 240, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 8738, "end": 8748, "loc": { "start": { "line": 240, "column": 18 }, "end": { "line": 240, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8749, "end": 8750, "loc": { "start": { "line": 240, "column": 29 }, "end": { "line": 240, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 8751, "end": 8757, "loc": { "start": { "line": 240, "column": 31 }, "end": { "line": 240, "column": 37 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8757, "end": 8758, "loc": { "start": { "line": 240, "column": 37 }, "end": { "line": 240, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 8758, "end": 8768, "loc": { "start": { "line": 240, "column": 38 }, "end": { "line": 240, "column": 48 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8768, "end": 8769, "loc": { "start": { "line": 240, "column": 48 }, "end": { "line": 240, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "StaticMapEntity", "start": 8769, "end": 8784, "loc": { "start": { "line": 240, "column": 49 }, "end": { "line": 240, "column": 64 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8784, "end": 8785, "loc": { "start": { "line": 240, "column": 64 }, "end": { "line": 240, "column": 65 } } }, { "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": 8799, "end": 8804, "loc": { "start": { "line": 241, "column": 12 }, "end": { "line": 241, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlays", "start": 8805, "end": 8814, "loc": { "start": { "line": 241, "column": 18 }, "end": { "line": 241, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8815, "end": 8816, "loc": { "start": { "line": 241, "column": 28 }, "end": { "line": 241, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayComp", "start": 8817, "end": 8829, "loc": { "start": { "line": 241, "column": 30 }, "end": { "line": 241, "column": 42 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8829, "end": 8830, "loc": { "start": { "line": 241, "column": 42 }, "end": { "line": 241, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlays", "start": 8830, "end": 8839, "loc": { "start": { "line": 241, "column": 43 }, "end": { "line": 241, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8839, "end": 8840, "loc": { "start": { "line": 241, "column": 52 }, "end": { "line": 241, "column": 53 } } }, { "type": { "label": "for", "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "for", "start": 8854, "end": 8857, "loc": { "start": { "line": 242, "column": 12 }, "end": { "line": 242, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8858, "end": 8859, "loc": { "start": { "line": 242, "column": 16 }, "end": { "line": 242, "column": 17 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 8859, "end": 8862, "loc": { "start": { "line": 242, "column": 17 }, "end": { "line": 242, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 8863, "end": 8864, "loc": { "start": { "line": 242, "column": 21 }, "end": { "line": 242, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8865, "end": 8866, "loc": { "start": { "line": 242, "column": 23 }, "end": { "line": 242, "column": 24 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 8867, "end": 8868, "loc": { "start": { "line": 242, "column": 25 }, "end": { "line": 242, "column": 26 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8868, "end": 8869, "loc": { "start": { "line": 242, "column": 26 }, "end": { "line": 242, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 8870, "end": 8871, "loc": { "start": { "line": 242, "column": 28 }, "end": { "line": 242, "column": 29 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 8872, "end": 8873, "loc": { "start": { "line": 242, "column": 30 }, "end": { "line": 242, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlays", "start": 8874, "end": 8883, "loc": { "start": { "line": 242, "column": 32 }, "end": { "line": 242, "column": 41 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8883, "end": 8884, "loc": { "start": { "line": 242, "column": 41 }, "end": { "line": 242, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 8884, "end": 8890, "loc": { "start": { "line": 242, "column": 42 }, "end": { "line": 242, "column": 48 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8890, "end": 8891, "loc": { "start": { "line": 242, "column": 48 }, "end": { "line": 242, "column": 49 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 8892, "end": 8894, "loc": { "start": { "line": 242, "column": 50 }, "end": { "line": 242, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 8894, "end": 8895, "loc": { "start": { "line": 242, "column": 52 }, "end": { "line": 242, "column": 53 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8895, "end": 8896, "loc": { "start": { "line": 242, "column": 53 }, "end": { "line": 242, "column": 54 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8897, "end": 8898, "loc": { "start": { "line": 242, "column": 55 }, "end": { "line": 242, "column": 56 } } }, { "type": "CommentLine", "value": " Extract underlay parameters", "start": 8916, "end": 8946, "loc": { "start": { "line": 243, "column": 16 }, "end": { "line": 243, "column": 46 } } }, { "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": 8964, "end": 8969, "loc": { "start": { "line": 244, "column": 16 }, "end": { "line": 244, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8970, "end": 8971, "loc": { "start": { "line": 244, "column": 22 }, "end": { "line": 244, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 8972, "end": 8975, "loc": { "start": { "line": 244, "column": 24 }, "end": { "line": 244, "column": 27 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8975, "end": 8976, "loc": { "start": { "line": 244, "column": 27 }, "end": { "line": 244, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "direction", "start": 8977, "end": 8986, "loc": { "start": { "line": 244, "column": 29 }, "end": { "line": 244, "column": 38 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8987, "end": 8988, "loc": { "start": { "line": 244, "column": 39 }, "end": { "line": 244, "column": 40 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8989, "end": 8990, "loc": { "start": { "line": 244, "column": 41 }, "end": { "line": 244, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlays", "start": 8991, "end": 9000, "loc": { "start": { "line": 244, "column": 43 }, "end": { "line": 244, "column": 52 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9000, "end": 9001, "loc": { "start": { "line": 244, "column": 52 }, "end": { "line": 244, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 9001, "end": 9002, "loc": { "start": { "line": 244, "column": 53 }, "end": { "line": 244, "column": 54 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9002, "end": 9003, "loc": { "start": { "line": 244, "column": 54 }, "end": { "line": 244, "column": 55 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9003, "end": 9004, "loc": { "start": { "line": 244, "column": 55 }, "end": { "line": 244, "column": 56 } } }, { "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": 9022, "end": 9027, "loc": { "start": { "line": 245, "column": 16 }, "end": { "line": 245, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "transformedPos", "start": 9028, "end": 9042, "loc": { "start": { "line": 245, "column": 22 }, "end": { "line": 245, "column": 36 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 9043, "end": 9044, "loc": { "start": { "line": 245, "column": 37 }, "end": { "line": 245, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 9045, "end": 9055, "loc": { "start": { "line": 245, "column": 39 }, "end": { "line": 245, "column": 49 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9055, "end": 9056, "loc": { "start": { "line": 245, "column": 49 }, "end": { "line": 245, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "localTileToWorld", "start": 9056, "end": 9072, "loc": { "start": { "line": 245, "column": 50 }, "end": { "line": 245, "column": 66 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9072, "end": 9073, "loc": { "start": { "line": 245, "column": 66 }, "end": { "line": 245, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pos", "start": 9073, "end": 9076, "loc": { "start": { "line": 245, "column": 67 }, "end": { "line": 245, "column": 70 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9076, "end": 9077, "loc": { "start": { "line": 245, "column": 70 }, "end": { "line": 245, "column": 71 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9077, "end": 9078, "loc": { "start": { "line": 245, "column": 71 }, "end": { "line": 245, "column": 72 } } }, { "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": 9096, "end": 9101, "loc": { "start": { "line": 246, "column": 16 }, "end": { "line": 246, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "destX", "start": 9102, "end": 9107, "loc": { "start": { "line": 246, "column": 22 }, "end": { "line": 246, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 9108, "end": 9109, "loc": { "start": { "line": 246, "column": 28 }, "end": { "line": 246, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "transformedPos", "start": 9110, "end": 9124, "loc": { "start": { "line": 246, "column": 30 }, "end": { "line": 246, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9124, "end": 9125, "loc": { "start": { "line": 246, "column": 44 }, "end": { "line": 246, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 9125, "end": 9126, "loc": { "start": { "line": 246, "column": 45 }, "end": { "line": 246, "column": 46 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 9127, "end": 9128, "loc": { "start": { "line": 246, "column": 47 }, "end": { "line": 246, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 9129, "end": 9141, "loc": { "start": { "line": 246, "column": 49 }, "end": { "line": 246, "column": 61 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9141, "end": 9142, "loc": { "start": { "line": 246, "column": 61 }, "end": { "line": 246, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileSize", "start": 9142, "end": 9150, "loc": { "start": { "line": 246, "column": 62 }, "end": { "line": 246, "column": 70 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9150, "end": 9151, "loc": { "start": { "line": 246, "column": 70 }, "end": { "line": 246, "column": 71 } } }, { "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": 9169, "end": 9174, "loc": { "start": { "line": 247, "column": 16 }, "end": { "line": 247, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "destY", "start": 9175, "end": 9180, "loc": { "start": { "line": 247, "column": 22 }, "end": { "line": 247, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 9181, "end": 9182, "loc": { "start": { "line": 247, "column": 28 }, "end": { "line": 247, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "transformedPos", "start": 9183, "end": 9197, "loc": { "start": { "line": 247, "column": 30 }, "end": { "line": 247, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9197, "end": 9198, "loc": { "start": { "line": 247, "column": 44 }, "end": { "line": 247, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 9198, "end": 9199, "loc": { "start": { "line": 247, "column": 45 }, "end": { "line": 247, "column": 46 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 9200, "end": 9201, "loc": { "start": { "line": 247, "column": 47 }, "end": { "line": 247, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 9202, "end": 9214, "loc": { "start": { "line": 247, "column": 49 }, "end": { "line": 247, "column": 61 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9214, "end": 9215, "loc": { "start": { "line": 247, "column": 61 }, "end": { "line": 247, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileSize", "start": 9215, "end": 9223, "loc": { "start": { "line": 247, "column": 62 }, "end": { "line": 247, "column": 70 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9223, "end": 9224, "loc": { "start": { "line": 247, "column": 70 }, "end": { "line": 247, "column": 71 } } }, { "type": "CommentLine", "value": " Culling, Part 1: Check if the chunk contains the tile", "start": 9244, "end": 9300, "loc": { "start": { "line": 249, "column": 16 }, "end": { "line": 249, "column": 72 } } }, { "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": 9318, "end": 9320, "loc": { "start": { "line": 250, "column": 16 }, "end": { "line": 250, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9321, "end": 9322, "loc": { "start": { "line": 250, "column": 19 }, "end": { "line": 250, "column": 20 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 9322, "end": 9323, "loc": { "start": { "line": 250, "column": 20 }, "end": { "line": 250, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 9323, "end": 9328, "loc": { "start": { "line": 250, "column": 21 }, "end": { "line": 250, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9328, "end": 9329, "loc": { "start": { "line": 250, "column": 26 }, "end": { "line": 250, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileSpaceRectangle", "start": 9329, "end": 9347, "loc": { "start": { "line": 250, "column": 27 }, "end": { "line": 250, "column": 45 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9347, "end": 9348, "loc": { "start": { "line": 250, "column": 45 }, "end": { "line": 250, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "containsPoint", "start": 9348, "end": 9361, "loc": { "start": { "line": 250, "column": 46 }, "end": { "line": 250, "column": 59 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9361, "end": 9362, "loc": { "start": { "line": 250, "column": 59 }, "end": { "line": 250, "column": 60 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "transformedPos", "start": 9362, "end": 9376, "loc": { "start": { "line": 250, "column": 60 }, "end": { "line": 250, "column": 74 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9376, "end": 9377, "loc": { "start": { "line": 250, "column": 74 }, "end": { "line": 250, "column": 75 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 9377, "end": 9378, "loc": { "start": { "line": 250, "column": 75 }, "end": { "line": 250, "column": 76 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9378, "end": 9379, "loc": { "start": { "line": 250, "column": 76 }, "end": { "line": 250, "column": 77 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "transformedPos", "start": 9380, "end": 9394, "loc": { "start": { "line": 250, "column": 78 }, "end": { "line": 250, "column": 92 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9394, "end": 9395, "loc": { "start": { "line": 250, "column": 92 }, "end": { "line": 250, "column": 93 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 9395, "end": 9396, "loc": { "start": { "line": 250, "column": 93 }, "end": { "line": 250, "column": 94 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9396, "end": 9397, "loc": { "start": { "line": 250, "column": 94 }, "end": { "line": 250, "column": 95 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9397, "end": 9398, "loc": { "start": { "line": 250, "column": 95 }, "end": { "line": 250, "column": 96 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9399, "end": 9400, "loc": { "start": { "line": 250, "column": 97 }, "end": { "line": 250, "column": 98 } } }, { "type": { "label": "continue", "keyword": "continue", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "continue", "start": 9422, "end": 9430, "loc": { "start": { "line": 251, "column": 20 }, "end": { "line": 251, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9430, "end": 9431, "loc": { "start": { "line": 251, "column": 28 }, "end": { "line": 251, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9449, "end": 9450, "loc": { "start": { "line": 252, "column": 16 }, "end": { "line": 252, "column": 17 } } }, { "type": "CommentLine", "value": " Culling, Part 2: Check if the overlay is visible", "start": 9470, "end": 9521, "loc": { "start": { "line": 254, "column": 16 }, "end": { "line": 254, "column": 67 } } }, { "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": 9539, "end": 9541, "loc": { "start": { "line": 255, "column": 16 }, "end": { "line": 255, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9542, "end": 9543, "loc": { "start": { "line": 255, "column": 19 }, "end": { "line": 255, "column": 20 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 9543, "end": 9544, "loc": { "start": { "line": 255, "column": 20 }, "end": { "line": 255, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "parameters", "start": 9544, "end": 9554, "loc": { "start": { "line": 255, "column": 21 }, "end": { "line": 255, "column": 31 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9554, "end": 9555, "loc": { "start": { "line": 255, "column": 31 }, "end": { "line": 255, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "visibleRect", "start": 9555, "end": 9566, "loc": { "start": { "line": 255, "column": 32 }, "end": { "line": 255, "column": 43 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9566, "end": 9567, "loc": { "start": { "line": 255, "column": 43 }, "end": { "line": 255, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "containsRect4Params", "start": 9567, "end": 9586, "loc": { "start": { "line": 255, "column": 44 }, "end": { "line": 255, "column": 63 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9586, "end": 9587, "loc": { "start": { "line": 255, "column": 63 }, "end": { "line": 255, "column": 64 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "destX", "start": 9613, "end": 9618, "loc": { "start": { "line": 256, "column": 24 }, "end": { "line": 256, "column": 29 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9618, "end": 9619, "loc": { "start": { "line": 256, "column": 29 }, "end": { "line": 256, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "destY", "start": 9645, "end": 9650, "loc": { "start": { "line": 257, "column": 24 }, "end": { "line": 257, "column": 29 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9650, "end": 9651, "loc": { "start": { "line": 257, "column": 29 }, "end": { "line": 257, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 9677, "end": 9689, "loc": { "start": { "line": 258, "column": 24 }, "end": { "line": 258, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9689, "end": 9690, "loc": { "start": { "line": 258, "column": 36 }, "end": { "line": 258, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileSize", "start": 9690, "end": 9698, "loc": { "start": { "line": 258, "column": 37 }, "end": { "line": 258, "column": 45 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9698, "end": 9699, "loc": { "start": { "line": 258, "column": 45 }, "end": { "line": 258, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 9725, "end": 9737, "loc": { "start": { "line": 259, "column": 24 }, "end": { "line": 259, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9737, "end": 9738, "loc": { "start": { "line": 259, "column": 36 }, "end": { "line": 259, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileSize", "start": 9738, "end": 9746, "loc": { "start": { "line": 259, "column": 37 }, "end": { "line": 259, "column": 45 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9768, "end": 9769, "loc": { "start": { "line": 260, "column": 20 }, "end": { "line": 260, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9769, "end": 9770, "loc": { "start": { "line": 260, "column": 21 }, "end": { "line": 260, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9771, "end": 9772, "loc": { "start": { "line": 260, "column": 23 }, "end": { "line": 260, "column": 24 } } }, { "type": { "label": "continue", "keyword": "continue", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "continue", "start": 9794, "end": 9802, "loc": { "start": { "line": 261, "column": 20 }, "end": { "line": 261, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9802, "end": 9803, "loc": { "start": { "line": 261, "column": 28 }, "end": { "line": 261, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9821, "end": 9822, "loc": { "start": { "line": 262, "column": 16 }, "end": { "line": 262, "column": 17 } } }, { "type": "CommentLine", "value": " Extract direction and angle", "start": 9842, "end": 9872, "loc": { "start": { "line": 264, "column": 16 }, "end": { "line": 264, "column": 46 } } }, { "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": 9890, "end": 9895, "loc": { "start": { "line": 265, "column": 16 }, "end": { "line": 265, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "worldDirection", "start": 9896, "end": 9910, "loc": { "start": { "line": 265, "column": 22 }, "end": { "line": 265, "column": 36 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 9911, "end": 9912, "loc": { "start": { "line": 265, "column": 37 }, "end": { "line": 265, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 9913, "end": 9923, "loc": { "start": { "line": 265, "column": 39 }, "end": { "line": 265, "column": 49 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9923, "end": 9924, "loc": { "start": { "line": 265, "column": 49 }, "end": { "line": 265, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "localDirectionToWorld", "start": 9924, "end": 9945, "loc": { "start": { "line": 265, "column": 50 }, "end": { "line": 265, "column": 71 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9945, "end": 9946, "loc": { "start": { "line": 265, "column": 71 }, "end": { "line": 265, "column": 72 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "direction", "start": 9946, "end": 9955, "loc": { "start": { "line": 265, "column": 72 }, "end": { "line": 265, "column": 81 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9955, "end": 9956, "loc": { "start": { "line": 265, "column": 81 }, "end": { "line": 265, "column": 82 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9956, "end": 9957, "loc": { "start": { "line": 265, "column": 82 }, "end": { "line": 265, "column": 83 } } }, { "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": 9975, "end": 9980, "loc": { "start": { "line": 266, "column": 16 }, "end": { "line": 266, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "angle", "start": 9981, "end": 9986, "loc": { "start": { "line": 266, "column": 22 }, "end": { "line": 266, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 9987, "end": 9988, "loc": { "start": { "line": 266, "column": 28 }, "end": { "line": 266, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumDirectionToAngle", "start": 9989, "end": 10009, "loc": { "start": { "line": 266, "column": 30 }, "end": { "line": 266, "column": 50 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10009, "end": 10010, "loc": { "start": { "line": 266, "column": 50 }, "end": { "line": 266, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "worldDirection", "start": 10010, "end": 10024, "loc": { "start": { "line": 266, "column": 51 }, "end": { "line": 266, "column": 65 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10024, "end": 10025, "loc": { "start": { "line": 266, "column": 65 }, "end": { "line": 266, "column": 66 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10025, "end": 10026, "loc": { "start": { "line": 266, "column": 66 }, "end": { "line": 266, "column": 67 } } }, { "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": 10046, "end": 10051, "loc": { "start": { "line": 268, "column": 16 }, "end": { "line": 268, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayType", "start": 10052, "end": 10064, "loc": { "start": { "line": 268, "column": 22 }, "end": { "line": 268, "column": 34 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10065, "end": 10066, "loc": { "start": { "line": 268, "column": 35 }, "end": { "line": 268, "column": 36 } } }, { "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": 10067, "end": 10071, "loc": { "start": { "line": 268, "column": 37 }, "end": { "line": 268, "column": 41 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10071, "end": 10072, "loc": { "start": { "line": 268, "column": 41 }, "end": { "line": 268, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "computeBeltUnderlayType", "start": 10072, "end": 10095, "loc": { "start": { "line": 268, "column": 42 }, "end": { "line": 268, "column": 65 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10095, "end": 10096, "loc": { "start": { "line": 268, "column": 65 }, "end": { "line": 268, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 10096, "end": 10102, "loc": { "start": { "line": 268, "column": 66 }, "end": { "line": 268, "column": 72 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10102, "end": 10103, "loc": { "start": { "line": 268, "column": 72 }, "end": { "line": 268, "column": 73 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlays", "start": 10104, "end": 10113, "loc": { "start": { "line": 268, "column": 74 }, "end": { "line": 268, "column": 83 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10113, "end": 10114, "loc": { "start": { "line": 268, "column": 83 }, "end": { "line": 268, "column": 84 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 10114, "end": 10115, "loc": { "start": { "line": 268, "column": 84 }, "end": { "line": 268, "column": 85 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10115, "end": 10116, "loc": { "start": { "line": 268, "column": 85 }, "end": { "line": 268, "column": 86 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10116, "end": 10117, "loc": { "start": { "line": 268, "column": 86 }, "end": { "line": 268, "column": 87 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10117, "end": 10118, "loc": { "start": { "line": 268, "column": 87 }, "end": { "line": 268, "column": 88 } } }, { "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": 10136, "end": 10141, "loc": { "start": { "line": 269, "column": 16 }, "end": { "line": 269, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "clipRect", "start": 10142, "end": 10150, "loc": { "start": { "line": 269, "column": 22 }, "end": { "line": 269, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10151, "end": 10152, "loc": { "start": { "line": 269, "column": 31 }, "end": { "line": 269, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumUnderlayTypeToClipRect", "start": 10153, "end": 10179, "loc": { "start": { "line": 269, "column": 33 }, "end": { "line": 269, "column": 59 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10179, "end": 10180, "loc": { "start": { "line": 269, "column": 59 }, "end": { "line": 269, "column": 60 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayType", "start": 10180, "end": 10192, "loc": { "start": { "line": 269, "column": 60 }, "end": { "line": 269, "column": 72 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10192, "end": 10193, "loc": { "start": { "line": 269, "column": 72 }, "end": { "line": 269, "column": 73 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10193, "end": 10194, "loc": { "start": { "line": 269, "column": 73 }, "end": { "line": 269, "column": 74 } } }, { "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": 10212, "end": 10214, "loc": { "start": { "line": 270, "column": 16 }, "end": { "line": 270, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10215, "end": 10216, "loc": { "start": { "line": 270, "column": 19 }, "end": { "line": 270, "column": 20 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 10216, "end": 10217, "loc": { "start": { "line": 270, "column": 20 }, "end": { "line": 270, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "clipRect", "start": 10217, "end": 10225, "loc": { "start": { "line": 270, "column": 21 }, "end": { "line": 270, "column": 29 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10225, "end": 10226, "loc": { "start": { "line": 270, "column": 29 }, "end": { "line": 270, "column": 30 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10227, "end": 10228, "loc": { "start": { "line": 270, "column": 31 }, "end": { "line": 270, "column": 32 } } }, { "type": "CommentLine", "value": " Empty", "start": 10250, "end": 10258, "loc": { "start": { "line": 271, "column": 20 }, "end": { "line": 271, "column": 28 } } }, { "type": { "label": "continue", "keyword": "continue", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "continue", "start": 10280, "end": 10288, "loc": { "start": { "line": 272, "column": 20 }, "end": { "line": 272, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10288, "end": 10289, "loc": { "start": { "line": 272, "column": 28 }, "end": { "line": 272, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10307, "end": 10308, "loc": { "start": { "line": 273, "column": 16 }, "end": { "line": 273, "column": 17 } } }, { "type": "CommentLine", "value": " Actually draw the sprite", "start": 10328, "end": 10355, "loc": { "start": { "line": 275, "column": 16 }, "end": { "line": 275, "column": 43 } } }, { "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": 10373, "end": 10378, "loc": { "start": { "line": 276, "column": 16 }, "end": { "line": 276, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 10379, "end": 10380, "loc": { "start": { "line": 276, "column": 22 }, "end": { "line": 276, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10381, "end": 10382, "loc": { "start": { "line": 276, "column": 24 }, "end": { "line": 276, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "destX", "start": 10383, "end": 10388, "loc": { "start": { "line": 276, "column": 26 }, "end": { "line": 276, "column": 31 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 10389, "end": 10390, "loc": { "start": { "line": 276, "column": 32 }, "end": { "line": 276, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 10391, "end": 10403, "loc": { "start": { "line": 276, "column": 34 }, "end": { "line": 276, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10403, "end": 10404, "loc": { "start": { "line": 276, "column": 46 }, "end": { "line": 276, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "halfTileSize", "start": 10404, "end": 10416, "loc": { "start": { "line": 276, "column": 47 }, "end": { "line": 276, "column": 59 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10416, "end": 10417, "loc": { "start": { "line": 276, "column": 59 }, "end": { "line": 276, "column": 60 } } }, { "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": 10435, "end": 10440, "loc": { "start": { "line": 277, "column": 16 }, "end": { "line": 277, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 10441, "end": 10442, "loc": { "start": { "line": 277, "column": 22 }, "end": { "line": 277, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10443, "end": 10444, "loc": { "start": { "line": 277, "column": 24 }, "end": { "line": 277, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "destY", "start": 10445, "end": 10450, "loc": { "start": { "line": 277, "column": 26 }, "end": { "line": 277, "column": 31 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 10451, "end": 10452, "loc": { "start": { "line": 277, "column": 32 }, "end": { "line": 277, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 10453, "end": 10465, "loc": { "start": { "line": 277, "column": 34 }, "end": { "line": 277, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10465, "end": 10466, "loc": { "start": { "line": 277, "column": 46 }, "end": { "line": 277, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "halfTileSize", "start": 10466, "end": 10478, "loc": { "start": { "line": 277, "column": 47 }, "end": { "line": 277, "column": 59 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10478, "end": 10479, "loc": { "start": { "line": 277, "column": 59 }, "end": { "line": 277, "column": 60 } } }, { "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": 10497, "end": 10502, "loc": { "start": { "line": 278, "column": 16 }, "end": { "line": 278, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "angleRadians", "start": 10503, "end": 10515, "loc": { "start": { "line": 278, "column": 22 }, "end": { "line": 278, "column": 34 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10516, "end": 10517, "loc": { "start": { "line": 278, "column": 35 }, "end": { "line": 278, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 10518, "end": 10522, "loc": { "start": { "line": 278, "column": 37 }, "end": { "line": 278, "column": 41 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10522, "end": 10523, "loc": { "start": { "line": 278, "column": 41 }, "end": { "line": 278, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "radians", "start": 10523, "end": 10530, "loc": { "start": { "line": 278, "column": 42 }, "end": { "line": 278, "column": 49 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10530, "end": 10531, "loc": { "start": { "line": 278, "column": 49 }, "end": { "line": 278, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "angle", "start": 10531, "end": 10536, "loc": { "start": { "line": 278, "column": 50 }, "end": { "line": 278, "column": 55 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10536, "end": 10537, "loc": { "start": { "line": 278, "column": 55 }, "end": { "line": 278, "column": 56 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10537, "end": 10538, "loc": { "start": { "line": 278, "column": 56 }, "end": { "line": 278, "column": 57 } } }, { "type": "CommentLine", "value": " SYNC with systems/belt.js:drawSingleEntity!", "start": 10558, "end": 10604, "loc": { "start": { "line": 280, "column": 16 }, "end": { "line": 280, "column": 62 } } }, { "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": 10622, "end": 10627, "loc": { "start": { "line": 281, "column": 16 }, "end": { "line": 281, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "animationIndex", "start": 10628, "end": 10642, "loc": { "start": { "line": 281, "column": 22 }, "end": { "line": 281, "column": 36 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10643, "end": 10644, "loc": { "start": { "line": 281, "column": 37 }, "end": { "line": 281, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 10645, "end": 10649, "loc": { "start": { "line": 281, "column": 39 }, "end": { "line": 281, "column": 43 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10649, "end": 10650, "loc": { "start": { "line": 281, "column": 43 }, "end": { "line": 281, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "floor", "start": 10650, "end": 10655, "loc": { "start": { "line": 281, "column": 44 }, "end": { "line": 281, "column": 49 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10655, "end": 10656, "loc": { "start": { "line": 281, "column": 49 }, "end": { "line": 281, "column": 50 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10678, "end": 10679, "loc": { "start": { "line": 282, "column": 20 }, "end": { "line": 282, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10679, "end": 10680, "loc": { "start": { "line": 282, "column": 21 }, "end": { "line": 282, "column": 22 } } }, { "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": 10680, "end": 10684, "loc": { "start": { "line": 282, "column": 22 }, "end": { "line": 282, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10684, "end": 10685, "loc": { "start": { "line": 282, "column": 26 }, "end": { "line": 282, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 10685, "end": 10689, "loc": { "start": { "line": 282, "column": 27 }, "end": { "line": 282, "column": 31 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10689, "end": 10690, "loc": { "start": { "line": 282, "column": 31 }, "end": { "line": 282, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "time", "start": 10690, "end": 10694, "loc": { "start": { "line": 282, "column": 32 }, "end": { "line": 282, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10694, "end": 10695, "loc": { "start": { "line": 282, "column": 36 }, "end": { "line": 282, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "realtimeNow", "start": 10695, "end": 10706, "loc": { "start": { "line": 282, "column": 37 }, "end": { "line": 282, "column": 48 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10706, "end": 10707, "loc": { "start": { "line": 282, "column": 48 }, "end": { "line": 282, "column": 49 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10707, "end": 10708, "loc": { "start": { "line": 282, "column": 49 }, "end": { "line": 282, "column": 50 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 10709, "end": 10710, "loc": { "start": { "line": 282, "column": 51 }, "end": { "line": 282, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "speedMultiplier", "start": 10711, "end": 10726, "loc": { "start": { "line": 282, "column": 53 }, "end": { "line": 282, "column": 68 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 10727, "end": 10728, "loc": { "start": { "line": 282, "column": 69 }, "end": { "line": 282, "column": 70 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BELT_ANIM_COUNT", "start": 10729, "end": 10744, "loc": { "start": { "line": 282, "column": 71 }, "end": { "line": 282, "column": 86 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 10745, "end": 10746, "loc": { "start": { "line": 282, "column": 87 }, "end": { "line": 282, "column": 88 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 126, "start": 10747, "end": 10750, "loc": { "start": { "line": 282, "column": 89 }, "end": { "line": 282, "column": 92 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10750, "end": 10751, "loc": { "start": { "line": 282, "column": 92 }, "end": { "line": 282, "column": 93 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 10752, "end": 10753, "loc": { "start": { "line": 282, "column": 94 }, "end": { "line": 282, "column": 95 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 42, "start": 10754, "end": 10756, "loc": { "start": { "line": 282, "column": 96 }, "end": { "line": 282, "column": 98 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10756, "end": 10757, "loc": { "start": { "line": 282, "column": 98 }, "end": { "line": 282, "column": 99 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 10758, "end": 10759, "loc": { "start": { "line": 282, "column": 100 }, "end": { "line": 282, "column": 101 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 10781, "end": 10793, "loc": { "start": { "line": 283, "column": 20 }, "end": { "line": 283, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10793, "end": 10794, "loc": { "start": { "line": 283, "column": 32 }, "end": { "line": 283, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "itemSpacingOnBelts", "start": 10794, "end": 10812, "loc": { "start": { "line": 283, "column": 33 }, "end": { "line": 283, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10830, "end": 10831, "loc": { "start": { "line": 284, "column": 16 }, "end": { "line": 284, "column": 17 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10831, "end": 10832, "loc": { "start": { "line": 284, "column": 17 }, "end": { "line": 284, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "parameters", "start": 10850, "end": 10860, "loc": { "start": { "line": 285, "column": 16 }, "end": { "line": 285, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10860, "end": 10861, "loc": { "start": { "line": 285, "column": 26 }, "end": { "line": 285, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 10861, "end": 10868, "loc": { "start": { "line": 285, "column": 27 }, "end": { "line": 285, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10868, "end": 10869, "loc": { "start": { "line": 285, "column": 34 }, "end": { "line": 285, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "translate", "start": 10869, "end": 10878, "loc": { "start": { "line": 285, "column": 35 }, "end": { "line": 285, "column": 44 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10878, "end": 10879, "loc": { "start": { "line": 285, "column": 44 }, "end": { "line": 285, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 10879, "end": 10880, "loc": { "start": { "line": 285, "column": 45 }, "end": { "line": 285, "column": 46 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10880, "end": 10881, "loc": { "start": { "line": 285, "column": 46 }, "end": { "line": 285, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 10882, "end": 10883, "loc": { "start": { "line": 285, "column": 48 }, "end": { "line": 285, "column": 49 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10883, "end": 10884, "loc": { "start": { "line": 285, "column": 49 }, "end": { "line": 285, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10884, "end": 10885, "loc": { "start": { "line": 285, "column": 50 }, "end": { "line": 285, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "parameters", "start": 10903, "end": 10913, "loc": { "start": { "line": 286, "column": 16 }, "end": { "line": 286, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10913, "end": 10914, "loc": { "start": { "line": 286, "column": 26 }, "end": { "line": 286, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 10914, "end": 10921, "loc": { "start": { "line": 286, "column": 27 }, "end": { "line": 286, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10921, "end": 10922, "loc": { "start": { "line": 286, "column": 34 }, "end": { "line": 286, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotate", "start": 10922, "end": 10928, "loc": { "start": { "line": 286, "column": 35 }, "end": { "line": 286, "column": 41 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10928, "end": 10929, "loc": { "start": { "line": 286, "column": 41 }, "end": { "line": 286, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "angleRadians", "start": 10929, "end": 10941, "loc": { "start": { "line": 286, "column": 42 }, "end": { "line": 286, "column": 54 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10941, "end": 10942, "loc": { "start": { "line": 286, "column": 54 }, "end": { "line": 286, "column": 55 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10942, "end": 10943, "loc": { "start": { "line": 286, "column": 55 }, "end": { "line": 286, "column": 56 } } }, { "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": 10961, "end": 10965, "loc": { "start": { "line": 287, "column": 16 }, "end": { "line": 287, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10965, "end": 10966, "loc": { "start": { "line": 287, "column": 20 }, "end": { "line": 287, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayBeltSprites", "start": 10966, "end": 10985, "loc": { "start": { "line": 287, "column": 21 }, "end": { "line": 287, "column": 40 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10985, "end": 10986, "loc": { "start": { "line": 287, "column": 40 }, "end": { "line": 287, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "animationIndex", "start": 11008, "end": 11022, "loc": { "start": { "line": 288, "column": 20 }, "end": { "line": 288, "column": 34 } } }, { "type": { "label": "%", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "%", "start": 11023, "end": 11024, "loc": { "start": { "line": 288, "column": 35 }, "end": { "line": 288, "column": 36 } } }, { "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": 11025, "end": 11029, "loc": { "start": { "line": 288, "column": 37 }, "end": { "line": 288, "column": 41 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11029, "end": 11030, "loc": { "start": { "line": 288, "column": 41 }, "end": { "line": 288, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "underlayBeltSprites", "start": 11030, "end": 11049, "loc": { "start": { "line": 288, "column": 42 }, "end": { "line": 288, "column": 61 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11049, "end": 11050, "loc": { "start": { "line": 288, "column": 61 }, "end": { "line": 288, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 11050, "end": 11056, "loc": { "start": { "line": 288, "column": 62 }, "end": { "line": 288, "column": 68 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11074, "end": 11075, "loc": { "start": { "line": 289, "column": 16 }, "end": { "line": 289, "column": 17 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11075, "end": 11076, "loc": { "start": { "line": 289, "column": 17 }, "end": { "line": 289, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "drawCachedWithClipRect", "start": 11076, "end": 11098, "loc": { "start": { "line": 289, "column": 18 }, "end": { "line": 289, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11098, "end": 11099, "loc": { "start": { "line": 289, "column": 40 }, "end": { "line": 289, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "parameters", "start": 11121, "end": 11131, "loc": { "start": { "line": 290, "column": 20 }, "end": { "line": 290, "column": 30 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11131, "end": 11132, "loc": { "start": { "line": 290, "column": 30 }, "end": { "line": 290, "column": 31 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 11133, "end": 11134, "loc": { "start": { "line": 290, "column": 32 }, "end": { "line": 290, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 11134, "end": 11146, "loc": { "start": { "line": 290, "column": 33 }, "end": { "line": 290, "column": 45 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11146, "end": 11147, "loc": { "start": { "line": 290, "column": 45 }, "end": { "line": 290, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "halfTileSize", "start": 11147, "end": 11159, "loc": { "start": { "line": 290, "column": 46 }, "end": { "line": 290, "column": 58 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11159, "end": 11160, "loc": { "start": { "line": 290, "column": 58 }, "end": { "line": 290, "column": 59 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 11161, "end": 11162, "loc": { "start": { "line": 290, "column": 60 }, "end": { "line": 290, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 11162, "end": 11174, "loc": { "start": { "line": 290, "column": 61 }, "end": { "line": 290, "column": 73 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11174, "end": 11175, "loc": { "start": { "line": 290, "column": 73 }, "end": { "line": 290, "column": 74 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "halfTileSize", "start": 11175, "end": 11187, "loc": { "start": { "line": 290, "column": 74 }, "end": { "line": 290, "column": 86 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11187, "end": 11188, "loc": { "start": { "line": 290, "column": 86 }, "end": { "line": 290, "column": 87 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 11210, "end": 11222, "loc": { "start": { "line": 291, "column": 20 }, "end": { "line": 291, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11222, "end": 11223, "loc": { "start": { "line": 291, "column": 32 }, "end": { "line": 291, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileSize", "start": 11223, "end": 11231, "loc": { "start": { "line": 291, "column": 33 }, "end": { "line": 291, "column": 41 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11231, "end": 11232, "loc": { "start": { "line": 291, "column": 41 }, "end": { "line": 291, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 11254, "end": 11266, "loc": { "start": { "line": 292, "column": 20 }, "end": { "line": 292, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11266, "end": 11267, "loc": { "start": { "line": 292, "column": 32 }, "end": { "line": 292, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileSize", "start": 11267, "end": 11275, "loc": { "start": { "line": 292, "column": 33 }, "end": { "line": 292, "column": 41 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11275, "end": 11276, "loc": { "start": { "line": 292, "column": 41 }, "end": { "line": 292, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "clipRect", "start": 11298, "end": 11306, "loc": { "start": { "line": 293, "column": 20 }, "end": { "line": 293, "column": 28 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11324, "end": 11325, "loc": { "start": { "line": 294, "column": 16 }, "end": { "line": 294, "column": 17 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11325, "end": 11326, "loc": { "start": { "line": 294, "column": 17 }, "end": { "line": 294, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "parameters", "start": 11344, "end": 11354, "loc": { "start": { "line": 295, "column": 16 }, "end": { "line": 295, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11354, "end": 11355, "loc": { "start": { "line": 295, "column": 26 }, "end": { "line": 295, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 11355, "end": 11362, "loc": { "start": { "line": 295, "column": 27 }, "end": { "line": 295, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11362, "end": 11363, "loc": { "start": { "line": 295, "column": 34 }, "end": { "line": 295, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotate", "start": 11363, "end": 11369, "loc": { "start": { "line": 295, "column": 35 }, "end": { "line": 295, "column": 41 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11369, "end": 11370, "loc": { "start": { "line": 295, "column": 41 }, "end": { "line": 295, "column": 42 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 11370, "end": 11371, "loc": { "start": { "line": 295, "column": 42 }, "end": { "line": 295, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "angleRadians", "start": 11371, "end": 11383, "loc": { "start": { "line": 295, "column": 43 }, "end": { "line": 295, "column": 55 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11383, "end": 11384, "loc": { "start": { "line": 295, "column": 55 }, "end": { "line": 295, "column": 56 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11384, "end": 11385, "loc": { "start": { "line": 295, "column": 56 }, "end": { "line": 295, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "parameters", "start": 11403, "end": 11413, "loc": { "start": { "line": 296, "column": 16 }, "end": { "line": 296, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11413, "end": 11414, "loc": { "start": { "line": 296, "column": 26 }, "end": { "line": 296, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 11414, "end": 11421, "loc": { "start": { "line": 296, "column": 27 }, "end": { "line": 296, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11421, "end": 11422, "loc": { "start": { "line": 296, "column": 34 }, "end": { "line": 296, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "translate", "start": 11422, "end": 11431, "loc": { "start": { "line": 296, "column": 35 }, "end": { "line": 296, "column": 44 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11431, "end": 11432, "loc": { "start": { "line": 296, "column": 44 }, "end": { "line": 296, "column": 45 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 11432, "end": 11433, "loc": { "start": { "line": 296, "column": 45 }, "end": { "line": 296, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 11433, "end": 11434, "loc": { "start": { "line": 296, "column": 46 }, "end": { "line": 296, "column": 47 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11434, "end": 11435, "loc": { "start": { "line": 296, "column": 47 }, "end": { "line": 296, "column": 48 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 11436, "end": 11437, "loc": { "start": { "line": 296, "column": 49 }, "end": { "line": 296, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 11437, "end": 11438, "loc": { "start": { "line": 296, "column": 50 }, "end": { "line": 296, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11438, "end": 11439, "loc": { "start": { "line": 296, "column": 51 }, "end": { "line": 296, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11439, "end": 11440, "loc": { "start": { "line": 296, "column": 52 }, "end": { "line": 296, "column": 53 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11454, "end": 11455, "loc": { "start": { "line": 297, "column": 12 }, "end": { "line": 297, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11465, "end": 11466, "loc": { "start": { "line": 298, "column": 8 }, "end": { "line": 298, "column": 9 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11472, "end": 11473, "loc": { "start": { "line": 299, "column": 4 }, "end": { "line": 299, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11475, "end": 11476, "loc": { "start": { "line": 300, "column": 0 }, "end": { "line": 300, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11476, "end": 11476, "loc": { "start": { "line": 300, "column": 1 }, "end": { "line": 300, "column": 1 } } } ] }