{ "type": "File", "start": 0, "end": 7177, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 237, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 7177, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 237, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 46, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 46 } }, "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": 45, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 45 } }, "extra": { "rawValue": "../core/config", "raw": "\"../core/config\"" }, "value": "../core/config" } }, { "type": "ImportDeclaration", "start": 48, "end": 88, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 40 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 57, "end": 63, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 15 } }, "imported": { "type": "Identifier", "start": 57, "end": 63, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 15 }, "identifierName": "Vector" }, "name": "Vector" }, "local": { "type": "Identifier", "start": 57, "end": 63, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 15 }, "identifierName": "Vector" }, "name": "Vector" } } ], "source": { "type": "StringLiteral", "start": 71, "end": 87, "loc": { "start": { "line": 2, "column": 23 }, "end": { "line": 2, "column": 39 } }, "extra": { "rawValue": "../core/vector", "raw": "\"../core/vector\"" }, "value": "../core/vector" } }, { "type": "ImportDeclaration", "start": 90, "end": 165, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 75 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 99, "end": 122, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 32 } }, "imported": { "type": "Identifier", "start": 99, "end": 122, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 32 }, "identifierName": "BasicSerializableObject" }, "name": "BasicSerializableObject" }, "local": { "type": "Identifier", "start": 99, "end": 122, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 32 }, "identifierName": "BasicSerializableObject" }, "name": "BasicSerializableObject" } }, { "type": "ImportSpecifier", "start": 124, "end": 129, "loc": { "start": { "line": 3, "column": 34 }, "end": { "line": 3, "column": 39 } }, "imported": { "type": "Identifier", "start": 124, "end": 129, "loc": { "start": { "line": 3, "column": 34 }, "end": { "line": 3, "column": 39 }, "identifierName": "types" }, "name": "types" }, "local": { "type": "Identifier", "start": 124, "end": 129, "loc": { "start": { "line": 3, "column": 34 }, "end": { "line": 3, "column": 39 }, "identifierName": "types" }, "name": "types" } } ], "source": { "type": "StringLiteral", "start": 137, "end": 164, "loc": { "start": { "line": 3, "column": 47 }, "end": { "line": 3, "column": 74 } }, "extra": { "rawValue": "../savegame/serialization", "raw": "\"../savegame/serialization\"" }, "value": "../savegame/serialization" } }, { "type": "ImportDeclaration", "start": 167, "end": 206, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 39 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 176, "end": 184, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 17 } }, "imported": { "type": "Identifier", "start": 176, "end": 184, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 17 }, "identifierName": "BaseItem" }, "name": "BaseItem" }, "local": { "type": "Identifier", "start": 176, "end": 184, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 17 }, "identifierName": "BaseItem" }, "name": "BaseItem" } } ], "source": { "type": "StringLiteral", "start": 192, "end": 205, "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 4, "column": 38 } }, "extra": { "rawValue": "./base_item", "raw": "\"./base_item\"" }, "value": "./base_item" } }, { "type": "ImportDeclaration", "start": 208, "end": 242, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 34 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 217, "end": 223, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 } }, "imported": { "type": "Identifier", "start": 217, "end": 223, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 }, "identifierName": "Entity" }, "name": "Entity" }, "local": { "type": "Identifier", "start": 217, "end": 223, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 }, "identifierName": "Entity" }, "name": "Entity" } } ], "source": { "type": "StringLiteral", "start": 231, "end": 241, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 33 } }, "extra": { "rawValue": "./entity", "raw": "\"./entity\"" }, "value": "./entity" } }, { "type": "ImportDeclaration", "start": 244, "end": 292, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 48 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 253, "end": 265, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 21 } }, "imported": { "type": "Identifier", "start": 253, "end": 265, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 21 }, "identifierName": "MapChunkView" }, "name": "MapChunkView" }, "local": { "type": "Identifier", "start": 253, "end": 265, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 21 }, "identifierName": "MapChunkView" }, "name": "MapChunkView" } } ], "source": { "type": "StringLiteral", "start": 273, "end": 291, "loc": { "start": { "line": 6, "column": 29 }, "end": { "line": 6, "column": 47 } }, "extra": { "rawValue": "./map_chunk_view", "raw": "\"./map_chunk_view\"" }, "value": "./map_chunk_view" } }, { "type": "ImportDeclaration", "start": 294, "end": 328, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 34 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 303, "end": 311, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 17 } }, "imported": { "type": "Identifier", "start": 303, "end": 311, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 17 }, "identifierName": "GameRoot" }, "name": "GameRoot" }, "local": { "type": "Identifier", "start": 303, "end": 311, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 17 }, "identifierName": "GameRoot" }, "name": "GameRoot" } } ], "source": { "type": "StringLiteral", "start": 319, "end": 327, "loc": { "start": { "line": 7, "column": 25 }, "end": { "line": 7, "column": 33 } }, "extra": { "rawValue": "./root", "raw": "\"./root\"" }, "value": "./root" } }, { "type": "ExportNamedDeclaration", "start": 332, "end": 7175, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 236, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 339, "end": 7175, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 236, "column": 1 } }, "id": { "type": "Identifier", "start": 345, "end": 352, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 20 }, "identifierName": "BaseMap" }, "name": "BaseMap" }, "superClass": { "type": "Identifier", "start": 361, "end": 384, "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 52 }, "identifierName": "BasicSerializableObject" }, "name": "BasicSerializableObject" }, "body": { "type": "ClassBody", "start": 385, "end": 7175, "loc": { "start": { "line": 9, "column": 53 }, "end": { "line": 236, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 392, "end": 438, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 12, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 399, "end": 404, "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 10, "column": 16 }, "identifierName": "getId" }, "name": "getId" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 407, "end": 438, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 12, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 418, "end": 431, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 21 } }, "argument": { "type": "StringLiteral", "start": 425, "end": 430, "loc": { "start": { "line": 11, "column": 15 }, "end": { "line": 11, "column": 20 } }, "extra": { "rawValue": "Map", "raw": "\"Map\"" }, "value": "Map" } } ], "directives": [] } }, { "type": "ClassMethod", "start": 446, "end": 534, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 18, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 453, "end": 462, "loc": { "start": { "line": 14, "column": 11 }, "end": { "line": 14, "column": 20 }, "identifierName": "getSchema" }, "name": "getSchema" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 465, "end": 534, "loc": { "start": { "line": 14, "column": 23 }, "end": { "line": 18, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 476, "end": 527, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 17, "column": 10 } }, "argument": { "type": "ObjectExpression", "start": 483, "end": 526, "loc": { "start": { "line": 15, "column": 15 }, "end": { "line": 17, "column": 9 } }, "properties": [ { "type": "ObjectProperty", "start": 498, "end": 514, "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 28 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 498, "end": 502, "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 16 }, "identifierName": "seed" }, "name": "seed" }, "value": { "type": "MemberExpression", "start": 504, "end": 514, "loc": { "start": { "line": 16, "column": 18 }, "end": { "line": 16, "column": 28 } }, "object": { "type": "Identifier", "start": 504, "end": 509, "loc": { "start": { "line": 16, "column": 18 }, "end": { "line": 16, "column": 23 }, "identifierName": "types" }, "name": "types" }, "property": { "type": "Identifier", "start": 510, "end": 514, "loc": { "start": { "line": 16, "column": 24 }, "end": { "line": 16, "column": 28 }, "identifierName": "uint" }, "name": "uint" }, "computed": false } } ] } } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {GameRoot} root\r\n ", "start": 542, "end": 593, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 23, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 599, "end": 836, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 34, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 599, "end": 610, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 15 }, "identifierName": "constructor" }, "name": "constructor", "leadingComments": null }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 611, "end": 615, "loc": { "start": { "line": 24, "column": 16 }, "end": { "line": 24, "column": 20 }, "identifierName": "root" }, "name": "root" } ], "body": { "type": "BlockStatement", "start": 617, "end": 836, "loc": { "start": { "line": 24, "column": 22 }, "end": { "line": 34, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 628, "end": 636, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 16 } }, "expression": { "type": "CallExpression", "start": 628, "end": 635, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 15 } }, "callee": { "type": "Super", "start": 628, "end": 633, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 646, "end": 663, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 646, "end": 662, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 646, "end": 655, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 17 } }, "object": { "type": "ThisExpression", "start": 646, "end": 650, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 12 } } }, "property": { "type": "Identifier", "start": 651, "end": 655, "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 17 }, "identifierName": "root" }, "name": "root" }, "computed": false }, "right": { "type": "Identifier", "start": 658, "end": 662, "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 24 }, "identifierName": "root" }, "name": "root" } } }, { "type": "ExpressionStatement", "start": 675, "end": 689, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 22 } }, "expression": { "type": "AssignmentExpression", "start": 675, "end": 688, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 21 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 675, "end": 684, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 17 } }, "object": { "type": "ThisExpression", "start": 675, "end": 679, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 12 } } }, "property": { "type": "Identifier", "start": 680, "end": 684, "loc": { "start": { "line": 28, "column": 13 }, "end": { "line": 28, "column": 17 }, "identifierName": "seed" }, "name": "seed" }, "computed": false }, "right": { "type": "NumericLiteral", "start": 687, "end": 688, "loc": { "start": { "line": 28, "column": 20 }, "end": { "line": 28, "column": 21 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Mapping of 'X|Y' to chunk\r\n * @type {Map} ", "start": 701, "end": 791, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 32, "column": 47 } } } ] }, { "type": "ExpressionStatement", "start": 801, "end": 829, "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 36 } }, "expression": { "type": "AssignmentExpression", "start": 801, "end": 828, "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 801, "end": 816, "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 23 } }, "object": { "type": "ThisExpression", "start": 801, "end": 805, "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 806, "end": 816, "loc": { "start": { "line": 33, "column": 13 }, "end": { "line": 33, "column": 23 }, "identifierName": "chunksById" }, "name": "chunksById" }, "computed": false, "leadingComments": null }, "right": { "type": "NewExpression", "start": 819, "end": 828, "loc": { "start": { "line": 33, "column": 26 }, "end": { "line": 33, "column": 35 } }, "callee": { "type": "Identifier", "start": 823, "end": 826, "loc": { "start": { "line": 33, "column": 30 }, "end": { "line": 33, "column": 33 }, "identifierName": "Map" }, "name": "Map" }, "arguments": [] }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Mapping of 'X|Y' to chunk\r\n * @type {Map} ", "start": 701, "end": 791, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 32, "column": 47 } } } ] } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {GameRoot} root\r\n ", "start": 542, "end": 593, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 23, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns the given chunk by index\r\n * @param {number} chunkX\r\n * @param {number} chunkY\r\n ", "start": 844, "end": 959, "loc": { "start": { "line": 36, "column": 4 }, "end": { "line": 40, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 965, "end": 1463, "loc": { "start": { "line": 41, "column": 4 }, "end": { "line": 56, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 965, "end": 973, "loc": { "start": { "line": 41, "column": 4 }, "end": { "line": 41, "column": 12 }, "identifierName": "getChunk" }, "name": "getChunk", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 974, "end": 980, "loc": { "start": { "line": 41, "column": 13 }, "end": { "line": 41, "column": 19 }, "identifierName": "chunkX" }, "name": "chunkX" }, { "type": "Identifier", "start": 982, "end": 988, "loc": { "start": { "line": 41, "column": 21 }, "end": { "line": 41, "column": 27 }, "identifierName": "chunkY" }, "name": "chunkY" }, { "type": "AssignmentPattern", "start": 990, "end": 1017, "loc": { "start": { "line": 41, "column": 29 }, "end": { "line": 41, "column": 56 } }, "left": { "type": "Identifier", "start": 990, "end": 1009, "loc": { "start": { "line": 41, "column": 29 }, "end": { "line": 41, "column": 48 }, "identifierName": "createIfNotExistent" }, "name": "createIfNotExistent" }, "right": { "type": "BooleanLiteral", "start": 1012, "end": 1017, "loc": { "start": { "line": 41, "column": 51 }, "end": { "line": 41, "column": 56 } }, "value": false } } ], "body": { "type": "BlockStatement", "start": 1019, "end": 1463, "loc": { "start": { "line": 41, "column": 58 }, "end": { "line": 56, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 1030, "end": 1076, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 54 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1036, "end": 1075, "loc": { "start": { "line": 42, "column": 14 }, "end": { "line": 42, "column": 53 } }, "id": { "type": "Identifier", "start": 1036, "end": 1051, "loc": { "start": { "line": 42, "column": 14 }, "end": { "line": 42, "column": 29 }, "identifierName": "chunkIdentifier" }, "name": "chunkIdentifier" }, "init": { "type": "BinaryExpression", "start": 1054, "end": 1075, "loc": { "start": { "line": 42, "column": 32 }, "end": { "line": 42, "column": 53 } }, "left": { "type": "BinaryExpression", "start": 1054, "end": 1066, "loc": { "start": { "line": 42, "column": 32 }, "end": { "line": 42, "column": 44 } }, "left": { "type": "Identifier", "start": 1054, "end": 1060, "loc": { "start": { "line": 42, "column": 32 }, "end": { "line": 42, "column": 38 }, "identifierName": "chunkX" }, "name": "chunkX" }, "operator": "+", "right": { "type": "StringLiteral", "start": 1063, "end": 1066, "loc": { "start": { "line": 42, "column": 41 }, "end": { "line": 42, "column": 44 } }, "extra": { "rawValue": "|", "raw": "\"|\"" }, "value": "|" } }, "operator": "+", "right": { "type": "Identifier", "start": 1069, "end": 1075, "loc": { "start": { "line": 42, "column": 47 }, "end": { "line": 42, "column": 53 }, "identifierName": "chunkY" }, "name": "chunkY" } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 1086, "end": 1102, "loc": { "start": { "line": 43, "column": 8 }, "end": { "line": 43, "column": 24 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1090, "end": 1101, "loc": { "start": { "line": 43, "column": 12 }, "end": { "line": 43, "column": 23 } }, "id": { "type": "Identifier", "start": 1090, "end": 1101, "loc": { "start": { "line": 43, "column": 12 }, "end": { "line": 43, "column": 23 }, "identifierName": "storedChunk" }, "name": "storedChunk" }, "init": null } ], "kind": "let" }, { "type": "IfStatement", "start": 1114, "end": 1217, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 47, "column": 9 } }, "test": { "type": "AssignmentExpression", "start": 1119, "end": 1169, "loc": { "start": { "line": 45, "column": 13 }, "end": { "line": 45, "column": 63 } }, "operator": "=", "left": { "type": "Identifier", "start": 1119, "end": 1130, "loc": { "start": { "line": 45, "column": 13 }, "end": { "line": 45, "column": 24 }, "identifierName": "storedChunk" }, "name": "storedChunk" }, "right": { "type": "CallExpression", "start": 1133, "end": 1169, "loc": { "start": { "line": 45, "column": 27 }, "end": { "line": 45, "column": 63 } }, "callee": { "type": "MemberExpression", "start": 1133, "end": 1152, "loc": { "start": { "line": 45, "column": 27 }, "end": { "line": 45, "column": 46 } }, "object": { "type": "MemberExpression", "start": 1133, "end": 1148, "loc": { "start": { "line": 45, "column": 27 }, "end": { "line": 45, "column": 42 } }, "object": { "type": "ThisExpression", "start": 1133, "end": 1137, "loc": { "start": { "line": 45, "column": 27 }, "end": { "line": 45, "column": 31 } } }, "property": { "type": "Identifier", "start": 1138, "end": 1148, "loc": { "start": { "line": 45, "column": 32 }, "end": { "line": 45, "column": 42 }, "identifierName": "chunksById" }, "name": "chunksById" }, "computed": false }, "property": { "type": "Identifier", "start": 1149, "end": 1152, "loc": { "start": { "line": 45, "column": 43 }, "end": { "line": 45, "column": 46 }, "identifierName": "get" }, "name": "get" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1153, "end": 1168, "loc": { "start": { "line": 45, "column": 47 }, "end": { "line": 45, "column": 62 }, "identifierName": "chunkIdentifier" }, "name": "chunkIdentifier" } ] }, "extra": { "parenthesized": true, "parenStart": 1118 } }, "consequent": { "type": "BlockStatement", "start": 1172, "end": 1217, "loc": { "start": { "line": 45, "column": 66 }, "end": { "line": 47, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 1187, "end": 1206, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 31 } }, "argument": { "type": "Identifier", "start": 1194, "end": 1205, "loc": { "start": { "line": 46, "column": 19 }, "end": { "line": 46, "column": 30 }, "identifierName": "storedChunk" }, "name": "storedChunk" } } ], "directives": [] }, "alternate": null }, { "type": "IfStatement", "start": 1229, "end": 1432, "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 53, "column": 9 } }, "test": { "type": "Identifier", "start": 1233, "end": 1252, "loc": { "start": { "line": 49, "column": 12 }, "end": { "line": 49, "column": 31 }, "identifierName": "createIfNotExistent" }, "name": "createIfNotExistent" }, "consequent": { "type": "BlockStatement", "start": 1254, "end": 1432, "loc": { "start": { "line": 49, "column": 33 }, "end": { "line": 53, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 1269, "end": 1330, "loc": { "start": { "line": 50, "column": 12 }, "end": { "line": 50, "column": 73 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1275, "end": 1329, "loc": { "start": { "line": 50, "column": 18 }, "end": { "line": 50, "column": 72 } }, "id": { "type": "Identifier", "start": 1275, "end": 1283, "loc": { "start": { "line": 50, "column": 18 }, "end": { "line": 50, "column": 26 }, "identifierName": "instance" }, "name": "instance" }, "init": { "type": "NewExpression", "start": 1286, "end": 1329, "loc": { "start": { "line": 50, "column": 29 }, "end": { "line": 50, "column": 72 } }, "callee": { "type": "Identifier", "start": 1290, "end": 1302, "loc": { "start": { "line": 50, "column": 33 }, "end": { "line": 50, "column": 45 }, "identifierName": "MapChunkView" }, "name": "MapChunkView" }, "arguments": [ { "type": "MemberExpression", "start": 1303, "end": 1312, "loc": { "start": { "line": 50, "column": 46 }, "end": { "line": 50, "column": 55 } }, "object": { "type": "ThisExpression", "start": 1303, "end": 1307, "loc": { "start": { "line": 50, "column": 46 }, "end": { "line": 50, "column": 50 } } }, "property": { "type": "Identifier", "start": 1308, "end": 1312, "loc": { "start": { "line": 50, "column": 51 }, "end": { "line": 50, "column": 55 }, "identifierName": "root" }, "name": "root" }, "computed": false }, { "type": "Identifier", "start": 1314, "end": 1320, "loc": { "start": { "line": 50, "column": 57 }, "end": { "line": 50, "column": 63 }, "identifierName": "chunkX" }, "name": "chunkX" }, { "type": "Identifier", "start": 1322, "end": 1328, "loc": { "start": { "line": 50, "column": 65 }, "end": { "line": 50, "column": 71 }, "identifierName": "chunkY" }, "name": "chunkY" } ] } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 1344, "end": 1391, "loc": { "start": { "line": 51, "column": 12 }, "end": { "line": 51, "column": 59 } }, "expression": { "type": "CallExpression", "start": 1344, "end": 1390, "loc": { "start": { "line": 51, "column": 12 }, "end": { "line": 51, "column": 58 } }, "callee": { "type": "MemberExpression", "start": 1344, "end": 1363, "loc": { "start": { "line": 51, "column": 12 }, "end": { "line": 51, "column": 31 } }, "object": { "type": "MemberExpression", "start": 1344, "end": 1359, "loc": { "start": { "line": 51, "column": 12 }, "end": { "line": 51, "column": 27 } }, "object": { "type": "ThisExpression", "start": 1344, "end": 1348, "loc": { "start": { "line": 51, "column": 12 }, "end": { "line": 51, "column": 16 } } }, "property": { "type": "Identifier", "start": 1349, "end": 1359, "loc": { "start": { "line": 51, "column": 17 }, "end": { "line": 51, "column": 27 }, "identifierName": "chunksById" }, "name": "chunksById" }, "computed": false }, "property": { "type": "Identifier", "start": 1360, "end": 1363, "loc": { "start": { "line": 51, "column": 28 }, "end": { "line": 51, "column": 31 }, "identifierName": "set" }, "name": "set" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1364, "end": 1379, "loc": { "start": { "line": 51, "column": 32 }, "end": { "line": 51, "column": 47 }, "identifierName": "chunkIdentifier" }, "name": "chunkIdentifier" }, { "type": "Identifier", "start": 1381, "end": 1389, "loc": { "start": { "line": 51, "column": 49 }, "end": { "line": 51, "column": 57 }, "identifierName": "instance" }, "name": "instance" } ] } }, { "type": "ReturnStatement", "start": 1405, "end": 1421, "loc": { "start": { "line": 52, "column": 12 }, "end": { "line": 52, "column": 28 } }, "argument": { "type": "Identifier", "start": 1412, "end": 1420, "loc": { "start": { "line": 52, "column": 19 }, "end": { "line": 52, "column": 27 }, "identifierName": "instance" }, "name": "instance" } } ], "directives": [] }, "alternate": null }, { "type": "ReturnStatement", "start": 1444, "end": 1456, "loc": { "start": { "line": 55, "column": 8 }, "end": { "line": 55, "column": 20 } }, "argument": { "type": "NullLiteral", "start": 1451, "end": 1455, "loc": { "start": { "line": 55, "column": 15 }, "end": { "line": 55, "column": 19 } } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns the given chunk by index\r\n * @param {number} chunkX\r\n * @param {number} chunkY\r\n ", "start": 844, "end": 959, "loc": { "start": { "line": 36, "column": 4 }, "end": { "line": 40, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Gets or creates a new chunk if not existent for the given tile\r\n * @param {number} tileX\r\n * @param {number} tileY\r\n * @returns {MapChunkView}\r\n ", "start": 1471, "end": 1646, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 63, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 1652, "end": 1892, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 68, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1652, "end": 1674, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 26 }, "identifierName": "getOrCreateChunkAtTile" }, "name": "getOrCreateChunkAtTile", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1675, "end": 1680, "loc": { "start": { "line": 64, "column": 27 }, "end": { "line": 64, "column": 32 }, "identifierName": "tileX" }, "name": "tileX" }, { "type": "Identifier", "start": 1682, "end": 1687, "loc": { "start": { "line": 64, "column": 34 }, "end": { "line": 64, "column": 39 }, "identifierName": "tileY" }, "name": "tileY" } ], "body": { "type": "BlockStatement", "start": 1689, "end": 1892, "loc": { "start": { "line": 64, "column": 41 }, "end": { "line": 68, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 1700, "end": 1761, "loc": { "start": { "line": 65, "column": 8 }, "end": { "line": 65, "column": 69 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1706, "end": 1760, "loc": { "start": { "line": 65, "column": 14 }, "end": { "line": 65, "column": 68 } }, "id": { "type": "Identifier", "start": 1706, "end": 1712, "loc": { "start": { "line": 65, "column": 14 }, "end": { "line": 65, "column": 20 }, "identifierName": "chunkX" }, "name": "chunkX" }, "init": { "type": "CallExpression", "start": 1715, "end": 1760, "loc": { "start": { "line": 65, "column": 23 }, "end": { "line": 65, "column": 68 } }, "callee": { "type": "MemberExpression", "start": 1715, "end": 1725, "loc": { "start": { "line": 65, "column": 23 }, "end": { "line": 65, "column": 33 } }, "object": { "type": "Identifier", "start": 1715, "end": 1719, "loc": { "start": { "line": 65, "column": 23 }, "end": { "line": 65, "column": 27 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 1720, "end": 1725, "loc": { "start": { "line": 65, "column": 28 }, "end": { "line": 65, "column": 33 }, "identifierName": "floor" }, "name": "floor" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 1726, "end": 1759, "loc": { "start": { "line": 65, "column": 34 }, "end": { "line": 65, "column": 67 } }, "left": { "type": "Identifier", "start": 1726, "end": 1731, "loc": { "start": { "line": 65, "column": 34 }, "end": { "line": 65, "column": 39 }, "identifierName": "tileX" }, "name": "tileX" }, "operator": "/", "right": { "type": "MemberExpression", "start": 1734, "end": 1759, "loc": { "start": { "line": 65, "column": 42 }, "end": { "line": 65, "column": 67 } }, "object": { "type": "Identifier", "start": 1734, "end": 1746, "loc": { "start": { "line": 65, "column": 42 }, "end": { "line": 65, "column": 54 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 1747, "end": 1759, "loc": { "start": { "line": 65, "column": 55 }, "end": { "line": 65, "column": 67 }, "identifierName": "mapChunkSize" }, "name": "mapChunkSize" }, "computed": false } } ] } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 1771, "end": 1832, "loc": { "start": { "line": 66, "column": 8 }, "end": { "line": 66, "column": 69 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1777, "end": 1831, "loc": { "start": { "line": 66, "column": 14 }, "end": { "line": 66, "column": 68 } }, "id": { "type": "Identifier", "start": 1777, "end": 1783, "loc": { "start": { "line": 66, "column": 14 }, "end": { "line": 66, "column": 20 }, "identifierName": "chunkY" }, "name": "chunkY" }, "init": { "type": "CallExpression", "start": 1786, "end": 1831, "loc": { "start": { "line": 66, "column": 23 }, "end": { "line": 66, "column": 68 } }, "callee": { "type": "MemberExpression", "start": 1786, "end": 1796, "loc": { "start": { "line": 66, "column": 23 }, "end": { "line": 66, "column": 33 } }, "object": { "type": "Identifier", "start": 1786, "end": 1790, "loc": { "start": { "line": 66, "column": 23 }, "end": { "line": 66, "column": 27 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 1791, "end": 1796, "loc": { "start": { "line": 66, "column": 28 }, "end": { "line": 66, "column": 33 }, "identifierName": "floor" }, "name": "floor" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 1797, "end": 1830, "loc": { "start": { "line": 66, "column": 34 }, "end": { "line": 66, "column": 67 } }, "left": { "type": "Identifier", "start": 1797, "end": 1802, "loc": { "start": { "line": 66, "column": 34 }, "end": { "line": 66, "column": 39 }, "identifierName": "tileY" }, "name": "tileY" }, "operator": "/", "right": { "type": "MemberExpression", "start": 1805, "end": 1830, "loc": { "start": { "line": 66, "column": 42 }, "end": { "line": 66, "column": 67 } }, "object": { "type": "Identifier", "start": 1805, "end": 1817, "loc": { "start": { "line": 66, "column": 42 }, "end": { "line": 66, "column": 54 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 1818, "end": 1830, "loc": { "start": { "line": 66, "column": 55 }, "end": { "line": 66, "column": 67 }, "identifierName": "mapChunkSize" }, "name": "mapChunkSize" }, "computed": false } } ] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 1842, "end": 1885, "loc": { "start": { "line": 67, "column": 8 }, "end": { "line": 67, "column": 51 } }, "argument": { "type": "CallExpression", "start": 1849, "end": 1884, "loc": { "start": { "line": 67, "column": 15 }, "end": { "line": 67, "column": 50 } }, "callee": { "type": "MemberExpression", "start": 1849, "end": 1862, "loc": { "start": { "line": 67, "column": 15 }, "end": { "line": 67, "column": 28 } }, "object": { "type": "ThisExpression", "start": 1849, "end": 1853, "loc": { "start": { "line": 67, "column": 15 }, "end": { "line": 67, "column": 19 } } }, "property": { "type": "Identifier", "start": 1854, "end": 1862, "loc": { "start": { "line": 67, "column": 20 }, "end": { "line": 67, "column": 28 }, "identifierName": "getChunk" }, "name": "getChunk" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1863, "end": 1869, "loc": { "start": { "line": 67, "column": 29 }, "end": { "line": 67, "column": 35 }, "identifierName": "chunkX" }, "name": "chunkX" }, { "type": "Identifier", "start": 1871, "end": 1877, "loc": { "start": { "line": 67, "column": 37 }, "end": { "line": 67, "column": 43 }, "identifierName": "chunkY" }, "name": "chunkY" }, { "type": "BooleanLiteral", "start": 1879, "end": 1883, "loc": { "start": { "line": 67, "column": 45 }, "end": { "line": 67, "column": 49 } }, "value": true } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Gets or creates a new chunk if not existent for the given tile\r\n * @param {number} tileX\r\n * @param {number} tileY\r\n * @returns {MapChunkView}\r\n ", "start": 1471, "end": 1646, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 63, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Gets a chunk if not existent for the given tile\r\n * @param {number} tileX\r\n * @param {number} tileY\r\n * @returns {MapChunkView?}\r\n ", "start": 1900, "end": 2061, "loc": { "start": { "line": 70, "column": 4 }, "end": { "line": 75, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 2067, "end": 2306, "loc": { "start": { "line": 76, "column": 4 }, "end": { "line": 80, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2067, "end": 2087, "loc": { "start": { "line": 76, "column": 4 }, "end": { "line": 76, "column": 24 }, "identifierName": "getChunkAtTileOrNull" }, "name": "getChunkAtTileOrNull", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2088, "end": 2093, "loc": { "start": { "line": 76, "column": 25 }, "end": { "line": 76, "column": 30 }, "identifierName": "tileX" }, "name": "tileX" }, { "type": "Identifier", "start": 2095, "end": 2100, "loc": { "start": { "line": 76, "column": 32 }, "end": { "line": 76, "column": 37 }, "identifierName": "tileY" }, "name": "tileY" } ], "body": { "type": "BlockStatement", "start": 2102, "end": 2306, "loc": { "start": { "line": 76, "column": 39 }, "end": { "line": 80, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 2113, "end": 2174, "loc": { "start": { "line": 77, "column": 8 }, "end": { "line": 77, "column": 69 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2119, "end": 2173, "loc": { "start": { "line": 77, "column": 14 }, "end": { "line": 77, "column": 68 } }, "id": { "type": "Identifier", "start": 2119, "end": 2125, "loc": { "start": { "line": 77, "column": 14 }, "end": { "line": 77, "column": 20 }, "identifierName": "chunkX" }, "name": "chunkX" }, "init": { "type": "CallExpression", "start": 2128, "end": 2173, "loc": { "start": { "line": 77, "column": 23 }, "end": { "line": 77, "column": 68 } }, "callee": { "type": "MemberExpression", "start": 2128, "end": 2138, "loc": { "start": { "line": 77, "column": 23 }, "end": { "line": 77, "column": 33 } }, "object": { "type": "Identifier", "start": 2128, "end": 2132, "loc": { "start": { "line": 77, "column": 23 }, "end": { "line": 77, "column": 27 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 2133, "end": 2138, "loc": { "start": { "line": 77, "column": 28 }, "end": { "line": 77, "column": 33 }, "identifierName": "floor" }, "name": "floor" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 2139, "end": 2172, "loc": { "start": { "line": 77, "column": 34 }, "end": { "line": 77, "column": 67 } }, "left": { "type": "Identifier", "start": 2139, "end": 2144, "loc": { "start": { "line": 77, "column": 34 }, "end": { "line": 77, "column": 39 }, "identifierName": "tileX" }, "name": "tileX" }, "operator": "/", "right": { "type": "MemberExpression", "start": 2147, "end": 2172, "loc": { "start": { "line": 77, "column": 42 }, "end": { "line": 77, "column": 67 } }, "object": { "type": "Identifier", "start": 2147, "end": 2159, "loc": { "start": { "line": 77, "column": 42 }, "end": { "line": 77, "column": 54 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 2160, "end": 2172, "loc": { "start": { "line": 77, "column": 55 }, "end": { "line": 77, "column": 67 }, "identifierName": "mapChunkSize" }, "name": "mapChunkSize" }, "computed": false } } ] } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 2184, "end": 2245, "loc": { "start": { "line": 78, "column": 8 }, "end": { "line": 78, "column": 69 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2190, "end": 2244, "loc": { "start": { "line": 78, "column": 14 }, "end": { "line": 78, "column": 68 } }, "id": { "type": "Identifier", "start": 2190, "end": 2196, "loc": { "start": { "line": 78, "column": 14 }, "end": { "line": 78, "column": 20 }, "identifierName": "chunkY" }, "name": "chunkY" }, "init": { "type": "CallExpression", "start": 2199, "end": 2244, "loc": { "start": { "line": 78, "column": 23 }, "end": { "line": 78, "column": 68 } }, "callee": { "type": "MemberExpression", "start": 2199, "end": 2209, "loc": { "start": { "line": 78, "column": 23 }, "end": { "line": 78, "column": 33 } }, "object": { "type": "Identifier", "start": 2199, "end": 2203, "loc": { "start": { "line": 78, "column": 23 }, "end": { "line": 78, "column": 27 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 2204, "end": 2209, "loc": { "start": { "line": 78, "column": 28 }, "end": { "line": 78, "column": 33 }, "identifierName": "floor" }, "name": "floor" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 2210, "end": 2243, "loc": { "start": { "line": 78, "column": 34 }, "end": { "line": 78, "column": 67 } }, "left": { "type": "Identifier", "start": 2210, "end": 2215, "loc": { "start": { "line": 78, "column": 34 }, "end": { "line": 78, "column": 39 }, "identifierName": "tileY" }, "name": "tileY" }, "operator": "/", "right": { "type": "MemberExpression", "start": 2218, "end": 2243, "loc": { "start": { "line": 78, "column": 42 }, "end": { "line": 78, "column": 67 } }, "object": { "type": "Identifier", "start": 2218, "end": 2230, "loc": { "start": { "line": 78, "column": 42 }, "end": { "line": 78, "column": 54 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 2231, "end": 2243, "loc": { "start": { "line": 78, "column": 55 }, "end": { "line": 78, "column": 67 }, "identifierName": "mapChunkSize" }, "name": "mapChunkSize" }, "computed": false } } ] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 2255, "end": 2299, "loc": { "start": { "line": 79, "column": 8 }, "end": { "line": 79, "column": 52 } }, "argument": { "type": "CallExpression", "start": 2262, "end": 2298, "loc": { "start": { "line": 79, "column": 15 }, "end": { "line": 79, "column": 51 } }, "callee": { "type": "MemberExpression", "start": 2262, "end": 2275, "loc": { "start": { "line": 79, "column": 15 }, "end": { "line": 79, "column": 28 } }, "object": { "type": "ThisExpression", "start": 2262, "end": 2266, "loc": { "start": { "line": 79, "column": 15 }, "end": { "line": 79, "column": 19 } } }, "property": { "type": "Identifier", "start": 2267, "end": 2275, "loc": { "start": { "line": 79, "column": 20 }, "end": { "line": 79, "column": 28 }, "identifierName": "getChunk" }, "name": "getChunk" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 2276, "end": 2282, "loc": { "start": { "line": 79, "column": 29 }, "end": { "line": 79, "column": 35 }, "identifierName": "chunkX" }, "name": "chunkX" }, { "type": "Identifier", "start": 2284, "end": 2290, "loc": { "start": { "line": 79, "column": 37 }, "end": { "line": 79, "column": 43 }, "identifierName": "chunkY" }, "name": "chunkY" }, { "type": "BooleanLiteral", "start": 2292, "end": 2297, "loc": { "start": { "line": 79, "column": 45 }, "end": { "line": 79, "column": 50 } }, "value": false } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Gets a chunk if not existent for the given tile\r\n * @param {number} tileX\r\n * @param {number} tileY\r\n * @returns {MapChunkView?}\r\n ", "start": 1900, "end": 2061, "loc": { "start": { "line": 70, "column": 4 }, "end": { "line": 75, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if a given tile is within the map bounds\r\n * @param {Vector} tile\r\n * @returns {boolean}\r\n ", "start": 2314, "end": 2438, "loc": { "start": { "line": 82, "column": 4 }, "end": { "line": 86, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 2444, "end": 2645, "loc": { "start": { "line": 87, "column": 4 }, "end": { "line": 92, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2444, "end": 2455, "loc": { "start": { "line": 87, "column": 4 }, "end": { "line": 87, "column": 15 }, "identifierName": "isValidTile" }, "name": "isValidTile", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2456, "end": 2460, "loc": { "start": { "line": 87, "column": 16 }, "end": { "line": 87, "column": 20 }, "identifierName": "tile" }, "name": "tile" } ], "body": { "type": "BlockStatement", "start": 2462, "end": 2645, "loc": { "start": { "line": 87, "column": 22 }, "end": { "line": 92, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 2473, "end": 2568, "loc": { "start": { "line": 88, "column": 8 }, "end": { "line": 90, "column": 9 } }, "test": { "type": "Identifier", "start": 2477, "end": 2485, "loc": { "start": { "line": 88, "column": 12 }, "end": { "line": 88, "column": 20 }, "identifierName": "G_IS_DEV" }, "name": "G_IS_DEV" }, "consequent": { "type": "BlockStatement", "start": 2487, "end": 2568, "loc": { "start": { "line": 88, "column": 22 }, "end": { "line": 90, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 2502, "end": 2557, "loc": { "start": { "line": 89, "column": 12 }, "end": { "line": 89, "column": 67 } }, "expression": { "type": "CallExpression", "start": 2502, "end": 2556, "loc": { "start": { "line": 89, "column": 12 }, "end": { "line": 89, "column": 66 } }, "callee": { "type": "Identifier", "start": 2502, "end": 2508, "loc": { "start": { "line": 89, "column": 12 }, "end": { "line": 89, "column": 18 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "BinaryExpression", "start": 2509, "end": 2531, "loc": { "start": { "line": 89, "column": 19 }, "end": { "line": 89, "column": 41 } }, "left": { "type": "Identifier", "start": 2509, "end": 2513, "loc": { "start": { "line": 89, "column": 19 }, "end": { "line": 89, "column": 23 }, "identifierName": "tile" }, "name": "tile" }, "operator": "instanceof", "right": { "type": "Identifier", "start": 2525, "end": 2531, "loc": { "start": { "line": 89, "column": 35 }, "end": { "line": 89, "column": 41 }, "identifierName": "Vector" }, "name": "Vector" } }, { "type": "StringLiteral", "start": 2533, "end": 2555, "loc": { "start": { "line": 89, "column": 43 }, "end": { "line": 89, "column": 65 } }, "extra": { "rawValue": "tile is not a vector", "raw": "\"tile is not a vector\"" }, "value": "tile is not a vector" } ] } } ], "directives": [] }, "alternate": null }, { "type": "ReturnStatement", "start": 2578, "end": 2638, "loc": { "start": { "line": 91, "column": 8 }, "end": { "line": 91, "column": 68 } }, "argument": { "type": "LogicalExpression", "start": 2585, "end": 2637, "loc": { "start": { "line": 91, "column": 15 }, "end": { "line": 91, "column": 67 } }, "left": { "type": "CallExpression", "start": 2585, "end": 2609, "loc": { "start": { "line": 91, "column": 15 }, "end": { "line": 91, "column": 39 } }, "callee": { "type": "MemberExpression", "start": 2585, "end": 2601, "loc": { "start": { "line": 91, "column": 15 }, "end": { "line": 91, "column": 31 } }, "object": { "type": "Identifier", "start": 2585, "end": 2591, "loc": { "start": { "line": 91, "column": 15 }, "end": { "line": 91, "column": 21 }, "identifierName": "Number" }, "name": "Number" }, "property": { "type": "Identifier", "start": 2592, "end": 2601, "loc": { "start": { "line": 91, "column": 22 }, "end": { "line": 91, "column": 31 }, "identifierName": "isInteger" }, "name": "isInteger" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 2602, "end": 2608, "loc": { "start": { "line": 91, "column": 32 }, "end": { "line": 91, "column": 38 } }, "object": { "type": "Identifier", "start": 2602, "end": 2606, "loc": { "start": { "line": 91, "column": 32 }, "end": { "line": 91, "column": 36 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 2607, "end": 2608, "loc": { "start": { "line": 91, "column": 37 }, "end": { "line": 91, "column": 38 }, "identifierName": "x" }, "name": "x" }, "computed": false } ] }, "operator": "&&", "right": { "type": "CallExpression", "start": 2613, "end": 2637, "loc": { "start": { "line": 91, "column": 43 }, "end": { "line": 91, "column": 67 } }, "callee": { "type": "MemberExpression", "start": 2613, "end": 2629, "loc": { "start": { "line": 91, "column": 43 }, "end": { "line": 91, "column": 59 } }, "object": { "type": "Identifier", "start": 2613, "end": 2619, "loc": { "start": { "line": 91, "column": 43 }, "end": { "line": 91, "column": 49 }, "identifierName": "Number" }, "name": "Number" }, "property": { "type": "Identifier", "start": 2620, "end": 2629, "loc": { "start": { "line": 91, "column": 50 }, "end": { "line": 91, "column": 59 }, "identifierName": "isInteger" }, "name": "isInteger" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 2630, "end": 2636, "loc": { "start": { "line": 91, "column": 60 }, "end": { "line": 91, "column": 66 } }, "object": { "type": "Identifier", "start": 2630, "end": 2634, "loc": { "start": { "line": 91, "column": 60 }, "end": { "line": 91, "column": 64 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 2635, "end": 2636, "loc": { "start": { "line": 91, "column": 65 }, "end": { "line": 91, "column": 66 }, "identifierName": "y" }, "name": "y" }, "computed": false } ] } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if a given tile is within the map bounds\r\n * @param {Vector} tile\r\n * @returns {boolean}\r\n ", "start": 2314, "end": 2438, "loc": { "start": { "line": 82, "column": 4 }, "end": { "line": 86, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns the tile content of a given tile\r\n * @param {Vector} tile\r\n * @param {Layer} layer\r\n * @returns {Entity} Entity or null\r\n ", "start": 2653, "end": 2813, "loc": { "start": { "line": 94, "column": 4 }, "end": { "line": 99, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 2819, "end": 3086, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 106, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2819, "end": 2833, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 100, "column": 18 }, "identifierName": "getTileContent" }, "name": "getTileContent", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2834, "end": 2838, "loc": { "start": { "line": 100, "column": 19 }, "end": { "line": 100, "column": 23 }, "identifierName": "tile" }, "name": "tile" }, { "type": "Identifier", "start": 2840, "end": 2845, "loc": { "start": { "line": 100, "column": 25 }, "end": { "line": 100, "column": 30 }, "identifierName": "layer" }, "name": "layer" } ], "body": { "type": "BlockStatement", "start": 2847, "end": 3086, "loc": { "start": { "line": 100, "column": 32 }, "end": { "line": 106, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 2858, "end": 2927, "loc": { "start": { "line": 101, "column": 8 }, "end": { "line": 103, "column": 9 } }, "test": { "type": "Identifier", "start": 2862, "end": 2870, "loc": { "start": { "line": 101, "column": 12 }, "end": { "line": 101, "column": 20 }, "identifierName": "G_IS_DEV" }, "name": "G_IS_DEV" }, "consequent": { "type": "BlockStatement", "start": 2872, "end": 2927, "loc": { "start": { "line": 101, "column": 22 }, "end": { "line": 103, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 2887, "end": 2916, "loc": { "start": { "line": 102, "column": 12 }, "end": { "line": 102, "column": 41 } }, "expression": { "type": "CallExpression", "start": 2887, "end": 2915, "loc": { "start": { "line": 102, "column": 12 }, "end": { "line": 102, "column": 40 } }, "callee": { "type": "MemberExpression", "start": 2887, "end": 2909, "loc": { "start": { "line": 102, "column": 12 }, "end": { "line": 102, "column": 34 } }, "object": { "type": "ThisExpression", "start": 2887, "end": 2891, "loc": { "start": { "line": 102, "column": 12 }, "end": { "line": 102, "column": 16 } } }, "property": { "type": "Identifier", "start": 2892, "end": 2909, "loc": { "start": { "line": 102, "column": 17 }, "end": { "line": 102, "column": 34 }, "identifierName": "internalCheckTile" }, "name": "internalCheckTile" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 2910, "end": 2914, "loc": { "start": { "line": 102, "column": 35 }, "end": { "line": 102, "column": 39 }, "identifierName": "tile" }, "name": "tile" } ] } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 2937, "end": 2993, "loc": { "start": { "line": 104, "column": 8 }, "end": { "line": 104, "column": 64 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2943, "end": 2992, "loc": { "start": { "line": 104, "column": 14 }, "end": { "line": 104, "column": 63 } }, "id": { "type": "Identifier", "start": 2943, "end": 2948, "loc": { "start": { "line": 104, "column": 14 }, "end": { "line": 104, "column": 19 }, "identifierName": "chunk" }, "name": "chunk" }, "init": { "type": "CallExpression", "start": 2951, "end": 2992, "loc": { "start": { "line": 104, "column": 22 }, "end": { "line": 104, "column": 63 } }, "callee": { "type": "MemberExpression", "start": 2951, "end": 2976, "loc": { "start": { "line": 104, "column": 22 }, "end": { "line": 104, "column": 47 } }, "object": { "type": "ThisExpression", "start": 2951, "end": 2955, "loc": { "start": { "line": 104, "column": 22 }, "end": { "line": 104, "column": 26 } } }, "property": { "type": "Identifier", "start": 2956, "end": 2976, "loc": { "start": { "line": 104, "column": 27 }, "end": { "line": 104, "column": 47 }, "identifierName": "getChunkAtTileOrNull" }, "name": "getChunkAtTileOrNull" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 2977, "end": 2983, "loc": { "start": { "line": 104, "column": 48 }, "end": { "line": 104, "column": 54 } }, "object": { "type": "Identifier", "start": 2977, "end": 2981, "loc": { "start": { "line": 104, "column": 48 }, "end": { "line": 104, "column": 52 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 2982, "end": 2983, "loc": { "start": { "line": 104, "column": 53 }, "end": { "line": 104, "column": 54 }, "identifierName": "x" }, "name": "x" }, "computed": false }, { "type": "MemberExpression", "start": 2985, "end": 2991, "loc": { "start": { "line": 104, "column": 56 }, "end": { "line": 104, "column": 62 } }, "object": { "type": "Identifier", "start": 2985, "end": 2989, "loc": { "start": { "line": 104, "column": 56 }, "end": { "line": 104, "column": 60 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 2990, "end": 2991, "loc": { "start": { "line": 104, "column": 61 }, "end": { "line": 104, "column": 62 }, "identifierName": "y" }, "name": "y" }, "computed": false } ] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 3003, "end": 3079, "loc": { "start": { "line": 105, "column": 8 }, "end": { "line": 105, "column": 84 } }, "argument": { "type": "LogicalExpression", "start": 3010, "end": 3078, "loc": { "start": { "line": 105, "column": 15 }, "end": { "line": 105, "column": 83 } }, "left": { "type": "Identifier", "start": 3010, "end": 3015, "loc": { "start": { "line": 105, "column": 15 }, "end": { "line": 105, "column": 20 }, "identifierName": "chunk" }, "name": "chunk" }, "operator": "&&", "right": { "type": "CallExpression", "start": 3019, "end": 3078, "loc": { "start": { "line": 105, "column": 24 }, "end": { "line": 105, "column": 83 } }, "callee": { "type": "MemberExpression", "start": 3019, "end": 3055, "loc": { "start": { "line": 105, "column": 24 }, "end": { "line": 105, "column": 60 } }, "object": { "type": "Identifier", "start": 3019, "end": 3024, "loc": { "start": { "line": 105, "column": 24 }, "end": { "line": 105, "column": 29 }, "identifierName": "chunk" }, "name": "chunk" }, "property": { "type": "Identifier", "start": 3025, "end": 3055, "loc": { "start": { "line": 105, "column": 30 }, "end": { "line": 105, "column": 60 }, "identifierName": "getLayerContentFromWorldCoords" }, "name": "getLayerContentFromWorldCoords" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 3056, "end": 3062, "loc": { "start": { "line": 105, "column": 61 }, "end": { "line": 105, "column": 67 } }, "object": { "type": "Identifier", "start": 3056, "end": 3060, "loc": { "start": { "line": 105, "column": 61 }, "end": { "line": 105, "column": 65 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 3061, "end": 3062, "loc": { "start": { "line": 105, "column": 66 }, "end": { "line": 105, "column": 67 }, "identifierName": "x" }, "name": "x" }, "computed": false }, { "type": "MemberExpression", "start": 3064, "end": 3070, "loc": { "start": { "line": 105, "column": 69 }, "end": { "line": 105, "column": 75 } }, "object": { "type": "Identifier", "start": 3064, "end": 3068, "loc": { "start": { "line": 105, "column": 69 }, "end": { "line": 105, "column": 73 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 3069, "end": 3070, "loc": { "start": { "line": 105, "column": 74 }, "end": { "line": 105, "column": 75 }, "identifierName": "y" }, "name": "y" }, "computed": false }, { "type": "Identifier", "start": 3072, "end": 3077, "loc": { "start": { "line": 105, "column": 77 }, "end": { "line": 105, "column": 82 }, "identifierName": "layer" }, "name": "layer" } ] } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns the tile content of a given tile\r\n * @param {Vector} tile\r\n * @param {Layer} layer\r\n * @returns {Entity} Entity or null\r\n ", "start": 2653, "end": 2813, "loc": { "start": { "line": 94, "column": 4 }, "end": { "line": 99, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns the lower layers content of the given tile\r\n * @param {number} x\r\n * @param {number} y\r\n * @returns {BaseItem=}\r\n ", "start": 3094, "end": 3246, "loc": { "start": { "line": 108, "column": 4 }, "end": { "line": 113, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 3252, "end": 3375, "loc": { "start": { "line": 114, "column": 4 }, "end": { "line": 116, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 3252, "end": 3274, "loc": { "start": { "line": 114, "column": 4 }, "end": { "line": 114, "column": 26 }, "identifierName": "getLowerLayerContentXY" }, "name": "getLowerLayerContentXY", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 3275, "end": 3276, "loc": { "start": { "line": 114, "column": 27 }, "end": { "line": 114, "column": 28 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 3278, "end": 3279, "loc": { "start": { "line": 114, "column": 30 }, "end": { "line": 114, "column": 31 }, "identifierName": "y" }, "name": "y" } ], "body": { "type": "BlockStatement", "start": 3281, "end": 3375, "loc": { "start": { "line": 114, "column": 33 }, "end": { "line": 116, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 3292, "end": 3368, "loc": { "start": { "line": 115, "column": 8 }, "end": { "line": 115, "column": 84 } }, "argument": { "type": "CallExpression", "start": 3299, "end": 3367, "loc": { "start": { "line": 115, "column": 15 }, "end": { "line": 115, "column": 83 } }, "callee": { "type": "MemberExpression", "start": 3299, "end": 3361, "loc": { "start": { "line": 115, "column": 15 }, "end": { "line": 115, "column": 77 } }, "object": { "type": "CallExpression", "start": 3299, "end": 3332, "loc": { "start": { "line": 115, "column": 15 }, "end": { "line": 115, "column": 48 } }, "callee": { "type": "MemberExpression", "start": 3299, "end": 3326, "loc": { "start": { "line": 115, "column": 15 }, "end": { "line": 115, "column": 42 } }, "object": { "type": "ThisExpression", "start": 3299, "end": 3303, "loc": { "start": { "line": 115, "column": 15 }, "end": { "line": 115, "column": 19 } } }, "property": { "type": "Identifier", "start": 3304, "end": 3326, "loc": { "start": { "line": 115, "column": 20 }, "end": { "line": 115, "column": 42 }, "identifierName": "getOrCreateChunkAtTile" }, "name": "getOrCreateChunkAtTile" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 3327, "end": 3328, "loc": { "start": { "line": 115, "column": 43 }, "end": { "line": 115, "column": 44 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 3330, "end": 3331, "loc": { "start": { "line": 115, "column": 46 }, "end": { "line": 115, "column": 47 }, "identifierName": "y" }, "name": "y" } ] }, "property": { "type": "Identifier", "start": 3333, "end": 3361, "loc": { "start": { "line": 115, "column": 49 }, "end": { "line": 115, "column": 77 }, "identifierName": "getLowerLayerFromWorldCoords" }, "name": "getLowerLayerFromWorldCoords" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 3362, "end": 3363, "loc": { "start": { "line": 115, "column": 78 }, "end": { "line": 115, "column": 79 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 3365, "end": 3366, "loc": { "start": { "line": 115, "column": 81 }, "end": { "line": 115, "column": 82 }, "identifierName": "y" }, "name": "y" } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns the lower layers content of the given tile\r\n * @param {number} x\r\n * @param {number} y\r\n * @returns {BaseItem=}\r\n ", "start": 3094, "end": 3246, "loc": { "start": { "line": 108, "column": 4 }, "end": { "line": 113, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns the tile content of a given tile\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {Layer} layer\r\n * @returns {Entity} Entity or null\r\n ", "start": 3383, "end": 3566, "loc": { "start": { "line": 118, "column": 4 }, "end": { "line": 124, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 3572, "end": 3743, "loc": { "start": { "line": 125, "column": 4 }, "end": { "line": 128, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 3572, "end": 3589, "loc": { "start": { "line": 125, "column": 4 }, "end": { "line": 125, "column": 21 }, "identifierName": "getLayerContentXY" }, "name": "getLayerContentXY", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 3590, "end": 3591, "loc": { "start": { "line": 125, "column": 22 }, "end": { "line": 125, "column": 23 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 3593, "end": 3594, "loc": { "start": { "line": 125, "column": 25 }, "end": { "line": 125, "column": 26 }, "identifierName": "y" }, "name": "y" }, { "type": "Identifier", "start": 3596, "end": 3601, "loc": { "start": { "line": 125, "column": 28 }, "end": { "line": 125, "column": 33 }, "identifierName": "layer" }, "name": "layer" } ], "body": { "type": "BlockStatement", "start": 3603, "end": 3743, "loc": { "start": { "line": 125, "column": 35 }, "end": { "line": 128, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 3614, "end": 3660, "loc": { "start": { "line": 126, "column": 8 }, "end": { "line": 126, "column": 54 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3620, "end": 3659, "loc": { "start": { "line": 126, "column": 14 }, "end": { "line": 126, "column": 53 } }, "id": { "type": "Identifier", "start": 3620, "end": 3625, "loc": { "start": { "line": 126, "column": 14 }, "end": { "line": 126, "column": 19 }, "identifierName": "chunk" }, "name": "chunk" }, "init": { "type": "CallExpression", "start": 3628, "end": 3659, "loc": { "start": { "line": 126, "column": 22 }, "end": { "line": 126, "column": 53 } }, "callee": { "type": "MemberExpression", "start": 3628, "end": 3653, "loc": { "start": { "line": 126, "column": 22 }, "end": { "line": 126, "column": 47 } }, "object": { "type": "ThisExpression", "start": 3628, "end": 3632, "loc": { "start": { "line": 126, "column": 22 }, "end": { "line": 126, "column": 26 } } }, "property": { "type": "Identifier", "start": 3633, "end": 3653, "loc": { "start": { "line": 126, "column": 27 }, "end": { "line": 126, "column": 47 }, "identifierName": "getChunkAtTileOrNull" }, "name": "getChunkAtTileOrNull" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 3654, "end": 3655, "loc": { "start": { "line": 126, "column": 48 }, "end": { "line": 126, "column": 49 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 3657, "end": 3658, "loc": { "start": { "line": 126, "column": 51 }, "end": { "line": 126, "column": 52 }, "identifierName": "y" }, "name": "y" } ] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 3670, "end": 3736, "loc": { "start": { "line": 127, "column": 8 }, "end": { "line": 127, "column": 74 } }, "argument": { "type": "LogicalExpression", "start": 3677, "end": 3735, "loc": { "start": { "line": 127, "column": 15 }, "end": { "line": 127, "column": 73 } }, "left": { "type": "Identifier", "start": 3677, "end": 3682, "loc": { "start": { "line": 127, "column": 15 }, "end": { "line": 127, "column": 20 }, "identifierName": "chunk" }, "name": "chunk" }, "operator": "&&", "right": { "type": "CallExpression", "start": 3686, "end": 3735, "loc": { "start": { "line": 127, "column": 24 }, "end": { "line": 127, "column": 73 } }, "callee": { "type": "MemberExpression", "start": 3686, "end": 3722, "loc": { "start": { "line": 127, "column": 24 }, "end": { "line": 127, "column": 60 } }, "object": { "type": "Identifier", "start": 3686, "end": 3691, "loc": { "start": { "line": 127, "column": 24 }, "end": { "line": 127, "column": 29 }, "identifierName": "chunk" }, "name": "chunk" }, "property": { "type": "Identifier", "start": 3692, "end": 3722, "loc": { "start": { "line": 127, "column": 30 }, "end": { "line": 127, "column": 60 }, "identifierName": "getLayerContentFromWorldCoords" }, "name": "getLayerContentFromWorldCoords" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 3723, "end": 3724, "loc": { "start": { "line": 127, "column": 61 }, "end": { "line": 127, "column": 62 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 3726, "end": 3727, "loc": { "start": { "line": 127, "column": 64 }, "end": { "line": 127, "column": 65 }, "identifierName": "y" }, "name": "y" }, { "type": "Identifier", "start": 3729, "end": 3734, "loc": { "start": { "line": 127, "column": 67 }, "end": { "line": 127, "column": 72 }, "identifierName": "layer" }, "name": "layer" } ] } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns the tile content of a given tile\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {Layer} layer\r\n * @returns {Entity} Entity or null\r\n ", "start": 3383, "end": 3566, "loc": { "start": { "line": 118, "column": 4 }, "end": { "line": 124, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns the tile contents of a given tile\r\n * @param {number} x\r\n * @param {number} y\r\n * @returns {Array} Entity or null\r\n ", "start": 3751, "end": 3913, "loc": { "start": { "line": 130, "column": 4 }, "end": { "line": 135, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 3919, "end": 4145, "loc": { "start": { "line": 136, "column": 4 }, "end": { "line": 142, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 3919, "end": 3946, "loc": { "start": { "line": 136, "column": 4 }, "end": { "line": 136, "column": 31 }, "identifierName": "getLayersContentsMultipleXY" }, "name": "getLayersContentsMultipleXY", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 3947, "end": 3948, "loc": { "start": { "line": 136, "column": 32 }, "end": { "line": 136, "column": 33 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 3950, "end": 3951, "loc": { "start": { "line": 136, "column": 35 }, "end": { "line": 136, "column": 36 }, "identifierName": "y" }, "name": "y" } ], "body": { "type": "BlockStatement", "start": 3953, "end": 4145, "loc": { "start": { "line": 136, "column": 38 }, "end": { "line": 142, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 3964, "end": 4010, "loc": { "start": { "line": 137, "column": 8 }, "end": { "line": 137, "column": 54 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3970, "end": 4009, "loc": { "start": { "line": 137, "column": 14 }, "end": { "line": 137, "column": 53 } }, "id": { "type": "Identifier", "start": 3970, "end": 3975, "loc": { "start": { "line": 137, "column": 14 }, "end": { "line": 137, "column": 19 }, "identifierName": "chunk" }, "name": "chunk" }, "init": { "type": "CallExpression", "start": 3978, "end": 4009, "loc": { "start": { "line": 137, "column": 22 }, "end": { "line": 137, "column": 53 } }, "callee": { "type": "MemberExpression", "start": 3978, "end": 4003, "loc": { "start": { "line": 137, "column": 22 }, "end": { "line": 137, "column": 47 } }, "object": { "type": "ThisExpression", "start": 3978, "end": 3982, "loc": { "start": { "line": 137, "column": 22 }, "end": { "line": 137, "column": 26 } } }, "property": { "type": "Identifier", "start": 3983, "end": 4003, "loc": { "start": { "line": 137, "column": 27 }, "end": { "line": 137, "column": 47 }, "identifierName": "getChunkAtTileOrNull" }, "name": "getChunkAtTileOrNull" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 4004, "end": 4005, "loc": { "start": { "line": 137, "column": 48 }, "end": { "line": 137, "column": 49 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 4007, "end": 4008, "loc": { "start": { "line": 137, "column": 51 }, "end": { "line": 137, "column": 52 }, "identifierName": "y" }, "name": "y" } ] } } ], "kind": "const" }, { "type": "IfStatement", "start": 4020, "end": 4068, "loc": { "start": { "line": 138, "column": 8 }, "end": { "line": 140, "column": 9 } }, "test": { "type": "UnaryExpression", "start": 4024, "end": 4030, "loc": { "start": { "line": 138, "column": 12 }, "end": { "line": 138, "column": 18 } }, "operator": "!", "prefix": true, "argument": { "type": "Identifier", "start": 4025, "end": 4030, "loc": { "start": { "line": 138, "column": 13 }, "end": { "line": 138, "column": 18 }, "identifierName": "chunk" }, "name": "chunk" }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 4032, "end": 4068, "loc": { "start": { "line": 138, "column": 20 }, "end": { "line": 140, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 4047, "end": 4057, "loc": { "start": { "line": 139, "column": 12 }, "end": { "line": 139, "column": 22 } }, "argument": { "type": "ArrayExpression", "start": 4054, "end": 4056, "loc": { "start": { "line": 139, "column": 19 }, "end": { "line": 139, "column": 21 } }, "elements": [] } } ], "directives": [] }, "alternate": null }, { "type": "ReturnStatement", "start": 4078, "end": 4138, "loc": { "start": { "line": 141, "column": 8 }, "end": { "line": 141, "column": 68 } }, "argument": { "type": "CallExpression", "start": 4085, "end": 4137, "loc": { "start": { "line": 141, "column": 15 }, "end": { "line": 141, "column": 67 } }, "callee": { "type": "MemberExpression", "start": 4085, "end": 4131, "loc": { "start": { "line": 141, "column": 15 }, "end": { "line": 141, "column": 61 } }, "object": { "type": "Identifier", "start": 4085, "end": 4090, "loc": { "start": { "line": 141, "column": 15 }, "end": { "line": 141, "column": 20 }, "identifierName": "chunk" }, "name": "chunk" }, "property": { "type": "Identifier", "start": 4091, "end": 4131, "loc": { "start": { "line": 141, "column": 21 }, "end": { "line": 141, "column": 61 }, "identifierName": "getLayersContentsMultipleFromWorldCoords" }, "name": "getLayersContentsMultipleFromWorldCoords" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 4132, "end": 4133, "loc": { "start": { "line": 141, "column": 62 }, "end": { "line": 141, "column": 63 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 4135, "end": 4136, "loc": { "start": { "line": 141, "column": 65 }, "end": { "line": 141, "column": 66 }, "identifierName": "y" }, "name": "y" } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns the tile contents of a given tile\r\n * @param {number} x\r\n * @param {number} y\r\n * @returns {Array} Entity or null\r\n ", "start": 3751, "end": 3913, "loc": { "start": { "line": 130, "column": 4 }, "end": { "line": 135, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if the tile is used\r\n * @param {Vector} tile\r\n * @param {Layer} layer\r\n * @returns {boolean}\r\n ", "start": 4153, "end": 4285, "loc": { "start": { "line": 144, "column": 4 }, "end": { "line": 149, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 4291, "end": 4562, "loc": { "start": { "line": 150, "column": 4 }, "end": { "line": 156, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 4291, "end": 4301, "loc": { "start": { "line": 150, "column": 4 }, "end": { "line": 150, "column": 14 }, "identifierName": "isTileUsed" }, "name": "isTileUsed", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 4302, "end": 4306, "loc": { "start": { "line": 150, "column": 15 }, "end": { "line": 150, "column": 19 }, "identifierName": "tile" }, "name": "tile" }, { "type": "Identifier", "start": 4308, "end": 4313, "loc": { "start": { "line": 150, "column": 21 }, "end": { "line": 150, "column": 26 }, "identifierName": "layer" }, "name": "layer" } ], "body": { "type": "BlockStatement", "start": 4315, "end": 4562, "loc": { "start": { "line": 150, "column": 28 }, "end": { "line": 156, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 4326, "end": 4395, "loc": { "start": { "line": 151, "column": 8 }, "end": { "line": 153, "column": 9 } }, "test": { "type": "Identifier", "start": 4330, "end": 4338, "loc": { "start": { "line": 151, "column": 12 }, "end": { "line": 151, "column": 20 }, "identifierName": "G_IS_DEV" }, "name": "G_IS_DEV" }, "consequent": { "type": "BlockStatement", "start": 4340, "end": 4395, "loc": { "start": { "line": 151, "column": 22 }, "end": { "line": 153, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 4355, "end": 4384, "loc": { "start": { "line": 152, "column": 12 }, "end": { "line": 152, "column": 41 } }, "expression": { "type": "CallExpression", "start": 4355, "end": 4383, "loc": { "start": { "line": 152, "column": 12 }, "end": { "line": 152, "column": 40 } }, "callee": { "type": "MemberExpression", "start": 4355, "end": 4377, "loc": { "start": { "line": 152, "column": 12 }, "end": { "line": 152, "column": 34 } }, "object": { "type": "ThisExpression", "start": 4355, "end": 4359, "loc": { "start": { "line": 152, "column": 12 }, "end": { "line": 152, "column": 16 } } }, "property": { "type": "Identifier", "start": 4360, "end": 4377, "loc": { "start": { "line": 152, "column": 17 }, "end": { "line": 152, "column": 34 }, "identifierName": "internalCheckTile" }, "name": "internalCheckTile" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 4378, "end": 4382, "loc": { "start": { "line": 152, "column": 35 }, "end": { "line": 152, "column": 39 }, "identifierName": "tile" }, "name": "tile" } ] } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 4405, "end": 4461, "loc": { "start": { "line": 154, "column": 8 }, "end": { "line": 154, "column": 64 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4411, "end": 4460, "loc": { "start": { "line": 154, "column": 14 }, "end": { "line": 154, "column": 63 } }, "id": { "type": "Identifier", "start": 4411, "end": 4416, "loc": { "start": { "line": 154, "column": 14 }, "end": { "line": 154, "column": 19 }, "identifierName": "chunk" }, "name": "chunk" }, "init": { "type": "CallExpression", "start": 4419, "end": 4460, "loc": { "start": { "line": 154, "column": 22 }, "end": { "line": 154, "column": 63 } }, "callee": { "type": "MemberExpression", "start": 4419, "end": 4444, "loc": { "start": { "line": 154, "column": 22 }, "end": { "line": 154, "column": 47 } }, "object": { "type": "ThisExpression", "start": 4419, "end": 4423, "loc": { "start": { "line": 154, "column": 22 }, "end": { "line": 154, "column": 26 } } }, "property": { "type": "Identifier", "start": 4424, "end": 4444, "loc": { "start": { "line": 154, "column": 27 }, "end": { "line": 154, "column": 47 }, "identifierName": "getChunkAtTileOrNull" }, "name": "getChunkAtTileOrNull" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 4445, "end": 4451, "loc": { "start": { "line": 154, "column": 48 }, "end": { "line": 154, "column": 54 } }, "object": { "type": "Identifier", "start": 4445, "end": 4449, "loc": { "start": { "line": 154, "column": 48 }, "end": { "line": 154, "column": 52 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 4450, "end": 4451, "loc": { "start": { "line": 154, "column": 53 }, "end": { "line": 154, "column": 54 }, "identifierName": "x" }, "name": "x" }, "computed": false }, { "type": "MemberExpression", "start": 4453, "end": 4459, "loc": { "start": { "line": 154, "column": 56 }, "end": { "line": 154, "column": 62 } }, "object": { "type": "Identifier", "start": 4453, "end": 4457, "loc": { "start": { "line": 154, "column": 56 }, "end": { "line": 154, "column": 60 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 4458, "end": 4459, "loc": { "start": { "line": 154, "column": 61 }, "end": { "line": 154, "column": 62 }, "identifierName": "y" }, "name": "y" }, "computed": false } ] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 4471, "end": 4555, "loc": { "start": { "line": 155, "column": 8 }, "end": { "line": 155, "column": 92 } }, "argument": { "type": "LogicalExpression", "start": 4478, "end": 4554, "loc": { "start": { "line": 155, "column": 15 }, "end": { "line": 155, "column": 91 } }, "left": { "type": "Identifier", "start": 4478, "end": 4483, "loc": { "start": { "line": 155, "column": 15 }, "end": { "line": 155, "column": 20 }, "identifierName": "chunk" }, "name": "chunk" }, "operator": "&&", "right": { "type": "BinaryExpression", "start": 4487, "end": 4554, "loc": { "start": { "line": 155, "column": 24 }, "end": { "line": 155, "column": 91 } }, "left": { "type": "CallExpression", "start": 4487, "end": 4546, "loc": { "start": { "line": 155, "column": 24 }, "end": { "line": 155, "column": 83 } }, "callee": { "type": "MemberExpression", "start": 4487, "end": 4523, "loc": { "start": { "line": 155, "column": 24 }, "end": { "line": 155, "column": 60 } }, "object": { "type": "Identifier", "start": 4487, "end": 4492, "loc": { "start": { "line": 155, "column": 24 }, "end": { "line": 155, "column": 29 }, "identifierName": "chunk" }, "name": "chunk" }, "property": { "type": "Identifier", "start": 4493, "end": 4523, "loc": { "start": { "line": 155, "column": 30 }, "end": { "line": 155, "column": 60 }, "identifierName": "getLayerContentFromWorldCoords" }, "name": "getLayerContentFromWorldCoords" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 4524, "end": 4530, "loc": { "start": { "line": 155, "column": 61 }, "end": { "line": 155, "column": 67 } }, "object": { "type": "Identifier", "start": 4524, "end": 4528, "loc": { "start": { "line": 155, "column": 61 }, "end": { "line": 155, "column": 65 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 4529, "end": 4530, "loc": { "start": { "line": 155, "column": 66 }, "end": { "line": 155, "column": 67 }, "identifierName": "x" }, "name": "x" }, "computed": false }, { "type": "MemberExpression", "start": 4532, "end": 4538, "loc": { "start": { "line": 155, "column": 69 }, "end": { "line": 155, "column": 75 } }, "object": { "type": "Identifier", "start": 4532, "end": 4536, "loc": { "start": { "line": 155, "column": 69 }, "end": { "line": 155, "column": 73 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 4537, "end": 4538, "loc": { "start": { "line": 155, "column": 74 }, "end": { "line": 155, "column": 75 }, "identifierName": "y" }, "name": "y" }, "computed": false }, { "type": "Identifier", "start": 4540, "end": 4545, "loc": { "start": { "line": 155, "column": 77 }, "end": { "line": 155, "column": 82 }, "identifierName": "layer" }, "name": "layer" } ] }, "operator": "!=", "right": { "type": "NullLiteral", "start": 4550, "end": 4554, "loc": { "start": { "line": 155, "column": 87 }, "end": { "line": 155, "column": 91 } } } } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if the tile is used\r\n * @param {Vector} tile\r\n * @param {Layer} layer\r\n * @returns {boolean}\r\n ", "start": 4153, "end": 4285, "loc": { "start": { "line": 144, "column": 4 }, "end": { "line": 149, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if the tile is used\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {Layer} layer\r\n * @returns {boolean}\r\n ", "start": 4570, "end": 4725, "loc": { "start": { "line": 158, "column": 4 }, "end": { "line": 164, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 4731, "end": 4905, "loc": { "start": { "line": 165, "column": 4 }, "end": { "line": 168, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 4731, "end": 4743, "loc": { "start": { "line": 165, "column": 4 }, "end": { "line": 165, "column": 16 }, "identifierName": "isTileUsedXY" }, "name": "isTileUsedXY", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 4744, "end": 4745, "loc": { "start": { "line": 165, "column": 17 }, "end": { "line": 165, "column": 18 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 4747, "end": 4748, "loc": { "start": { "line": 165, "column": 20 }, "end": { "line": 165, "column": 21 }, "identifierName": "y" }, "name": "y" }, { "type": "Identifier", "start": 4750, "end": 4755, "loc": { "start": { "line": 165, "column": 23 }, "end": { "line": 165, "column": 28 }, "identifierName": "layer" }, "name": "layer" } ], "body": { "type": "BlockStatement", "start": 4757, "end": 4905, "loc": { "start": { "line": 165, "column": 30 }, "end": { "line": 168, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 4768, "end": 4814, "loc": { "start": { "line": 166, "column": 8 }, "end": { "line": 166, "column": 54 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4774, "end": 4813, "loc": { "start": { "line": 166, "column": 14 }, "end": { "line": 166, "column": 53 } }, "id": { "type": "Identifier", "start": 4774, "end": 4779, "loc": { "start": { "line": 166, "column": 14 }, "end": { "line": 166, "column": 19 }, "identifierName": "chunk" }, "name": "chunk" }, "init": { "type": "CallExpression", "start": 4782, "end": 4813, "loc": { "start": { "line": 166, "column": 22 }, "end": { "line": 166, "column": 53 } }, "callee": { "type": "MemberExpression", "start": 4782, "end": 4807, "loc": { "start": { "line": 166, "column": 22 }, "end": { "line": 166, "column": 47 } }, "object": { "type": "ThisExpression", "start": 4782, "end": 4786, "loc": { "start": { "line": 166, "column": 22 }, "end": { "line": 166, "column": 26 } } }, "property": { "type": "Identifier", "start": 4787, "end": 4807, "loc": { "start": { "line": 166, "column": 27 }, "end": { "line": 166, "column": 47 }, "identifierName": "getChunkAtTileOrNull" }, "name": "getChunkAtTileOrNull" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 4808, "end": 4809, "loc": { "start": { "line": 166, "column": 48 }, "end": { "line": 166, "column": 49 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 4811, "end": 4812, "loc": { "start": { "line": 166, "column": 51 }, "end": { "line": 166, "column": 52 }, "identifierName": "y" }, "name": "y" } ] } } ], "kind": "const" }, { "type": "ReturnStatement", "start": 4824, "end": 4898, "loc": { "start": { "line": 167, "column": 8 }, "end": { "line": 167, "column": 82 } }, "argument": { "type": "LogicalExpression", "start": 4831, "end": 4897, "loc": { "start": { "line": 167, "column": 15 }, "end": { "line": 167, "column": 81 } }, "left": { "type": "Identifier", "start": 4831, "end": 4836, "loc": { "start": { "line": 167, "column": 15 }, "end": { "line": 167, "column": 20 }, "identifierName": "chunk" }, "name": "chunk" }, "operator": "&&", "right": { "type": "BinaryExpression", "start": 4840, "end": 4897, "loc": { "start": { "line": 167, "column": 24 }, "end": { "line": 167, "column": 81 } }, "left": { "type": "CallExpression", "start": 4840, "end": 4889, "loc": { "start": { "line": 167, "column": 24 }, "end": { "line": 167, "column": 73 } }, "callee": { "type": "MemberExpression", "start": 4840, "end": 4876, "loc": { "start": { "line": 167, "column": 24 }, "end": { "line": 167, "column": 60 } }, "object": { "type": "Identifier", "start": 4840, "end": 4845, "loc": { "start": { "line": 167, "column": 24 }, "end": { "line": 167, "column": 29 }, "identifierName": "chunk" }, "name": "chunk" }, "property": { "type": "Identifier", "start": 4846, "end": 4876, "loc": { "start": { "line": 167, "column": 30 }, "end": { "line": 167, "column": 60 }, "identifierName": "getLayerContentFromWorldCoords" }, "name": "getLayerContentFromWorldCoords" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 4877, "end": 4878, "loc": { "start": { "line": 167, "column": 61 }, "end": { "line": 167, "column": 62 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 4880, "end": 4881, "loc": { "start": { "line": 167, "column": 64 }, "end": { "line": 167, "column": 65 }, "identifierName": "y" }, "name": "y" }, { "type": "Identifier", "start": 4883, "end": 4888, "loc": { "start": { "line": 167, "column": 67 }, "end": { "line": 167, "column": 72 }, "identifierName": "layer" }, "name": "layer" } ] }, "operator": "!=", "right": { "type": "NullLiteral", "start": 4893, "end": 4897, "loc": { "start": { "line": 167, "column": 77 }, "end": { "line": 167, "column": 81 } } } } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if the tile is used\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {Layer} layer\r\n * @returns {boolean}\r\n ", "start": 4570, "end": 4725, "loc": { "start": { "line": 158, "column": 4 }, "end": { "line": 164, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Sets the tiles content\r\n * @param {Vector} tile\r\n * @param {Entity} entity\r\n ", "start": 4913, "end": 5016, "loc": { "start": { "line": 170, "column": 4 }, "end": { "line": 174, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 5022, "end": 5476, "loc": { "start": { "line": 175, "column": 4 }, "end": { "line": 189, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 5022, "end": 5036, "loc": { "start": { "line": 175, "column": 4 }, "end": { "line": 175, "column": 18 }, "identifierName": "setTileContent" }, "name": "setTileContent", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 5037, "end": 5041, "loc": { "start": { "line": 175, "column": 19 }, "end": { "line": 175, "column": 23 }, "identifierName": "tile" }, "name": "tile" }, { "type": "Identifier", "start": 5043, "end": 5049, "loc": { "start": { "line": 175, "column": 25 }, "end": { "line": 175, "column": 31 }, "identifierName": "entity" }, "name": "entity" } ], "body": { "type": "BlockStatement", "start": 5051, "end": 5476, "loc": { "start": { "line": 175, "column": 33 }, "end": { "line": 189, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 5062, "end": 5131, "loc": { "start": { "line": 176, "column": 8 }, "end": { "line": 178, "column": 9 } }, "test": { "type": "Identifier", "start": 5066, "end": 5074, "loc": { "start": { "line": 176, "column": 12 }, "end": { "line": 176, "column": 20 }, "identifierName": "G_IS_DEV" }, "name": "G_IS_DEV" }, "consequent": { "type": "BlockStatement", "start": 5076, "end": 5131, "loc": { "start": { "line": 176, "column": 22 }, "end": { "line": 178, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 5091, "end": 5120, "loc": { "start": { "line": 177, "column": 12 }, "end": { "line": 177, "column": 41 } }, "expression": { "type": "CallExpression", "start": 5091, "end": 5119, "loc": { "start": { "line": 177, "column": 12 }, "end": { "line": 177, "column": 40 } }, "callee": { "type": "MemberExpression", "start": 5091, "end": 5113, "loc": { "start": { "line": 177, "column": 12 }, "end": { "line": 177, "column": 34 } }, "object": { "type": "ThisExpression", "start": 5091, "end": 5095, "loc": { "start": { "line": 177, "column": 12 }, "end": { "line": 177, "column": 16 } } }, "property": { "type": "Identifier", "start": 5096, "end": 5113, "loc": { "start": { "line": 177, "column": 17 }, "end": { "line": 177, "column": 34 }, "identifierName": "internalCheckTile" }, "name": "internalCheckTile" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 5114, "end": 5118, "loc": { "start": { "line": 177, "column": 35 }, "end": { "line": 177, "column": 39 }, "identifierName": "tile" }, "name": "tile" } ] } } ], "directives": [] }, "alternate": null }, { "type": "ExpressionStatement", "start": 5143, "end": 5318, "loc": { "start": { "line": 180, "column": 8 }, "end": { "line": 185, "column": 10 } }, "expression": { "type": "CallExpression", "start": 5143, "end": 5317, "loc": { "start": { "line": 180, "column": 8 }, "end": { "line": 185, "column": 9 } }, "callee": { "type": "MemberExpression", "start": 5143, "end": 5216, "loc": { "start": { "line": 180, "column": 8 }, "end": { "line": 180, "column": 81 } }, "object": { "type": "CallExpression", "start": 5143, "end": 5186, "loc": { "start": { "line": 180, "column": 8 }, "end": { "line": 180, "column": 51 } }, "callee": { "type": "MemberExpression", "start": 5143, "end": 5170, "loc": { "start": { "line": 180, "column": 8 }, "end": { "line": 180, "column": 35 } }, "object": { "type": "ThisExpression", "start": 5143, "end": 5147, "loc": { "start": { "line": 180, "column": 8 }, "end": { "line": 180, "column": 12 } } }, "property": { "type": "Identifier", "start": 5148, "end": 5170, "loc": { "start": { "line": 180, "column": 13 }, "end": { "line": 180, "column": 35 }, "identifierName": "getOrCreateChunkAtTile" }, "name": "getOrCreateChunkAtTile" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 5171, "end": 5177, "loc": { "start": { "line": 180, "column": 36 }, "end": { "line": 180, "column": 42 } }, "object": { "type": "Identifier", "start": 5171, "end": 5175, "loc": { "start": { "line": 180, "column": 36 }, "end": { "line": 180, "column": 40 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 5176, "end": 5177, "loc": { "start": { "line": 180, "column": 41 }, "end": { "line": 180, "column": 42 }, "identifierName": "x" }, "name": "x" }, "computed": false }, { "type": "MemberExpression", "start": 5179, "end": 5185, "loc": { "start": { "line": 180, "column": 44 }, "end": { "line": 180, "column": 50 } }, "object": { "type": "Identifier", "start": 5179, "end": 5183, "loc": { "start": { "line": 180, "column": 44 }, "end": { "line": 180, "column": 48 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 5184, "end": 5185, "loc": { "start": { "line": 180, "column": 49 }, "end": { "line": 180, "column": 50 }, "identifierName": "y" }, "name": "y" }, "computed": false } ] }, "property": { "type": "Identifier", "start": 5187, "end": 5216, "loc": { "start": { "line": 180, "column": 52 }, "end": { "line": 180, "column": 81 }, "identifierName": "setLayerContentFromWorldCords" }, "name": "setLayerContentFromWorldCords" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 5231, "end": 5237, "loc": { "start": { "line": 181, "column": 12 }, "end": { "line": 181, "column": 18 } }, "object": { "type": "Identifier", "start": 5231, "end": 5235, "loc": { "start": { "line": 181, "column": 12 }, "end": { "line": 181, "column": 16 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 5236, "end": 5237, "loc": { "start": { "line": 181, "column": 17 }, "end": { "line": 181, "column": 18 }, "identifierName": "x" }, "name": "x" }, "computed": false }, { "type": "MemberExpression", "start": 5252, "end": 5258, "loc": { "start": { "line": 182, "column": 12 }, "end": { "line": 182, "column": 18 } }, "object": { "type": "Identifier", "start": 5252, "end": 5256, "loc": { "start": { "line": 182, "column": 12 }, "end": { "line": 182, "column": 16 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 5257, "end": 5258, "loc": { "start": { "line": 182, "column": 17 }, "end": { "line": 182, "column": 18 }, "identifierName": "y" }, "name": "y" }, "computed": false }, { "type": "Identifier", "start": 5273, "end": 5279, "loc": { "start": { "line": 183, "column": 12 }, "end": { "line": 183, "column": 18 }, "identifierName": "entity" }, "name": "entity" }, { "type": "MemberExpression", "start": 5294, "end": 5306, "loc": { "start": { "line": 184, "column": 12 }, "end": { "line": 184, "column": 24 } }, "object": { "type": "Identifier", "start": 5294, "end": 5300, "loc": { "start": { "line": 184, "column": 12 }, "end": { "line": 184, "column": 18 }, "identifierName": "entity" }, "name": "entity" }, "property": { "type": "Identifier", "start": 5301, "end": 5306, "loc": { "start": { "line": 184, "column": 19 }, "end": { "line": 184, "column": 24 }, "identifierName": "layer" }, "name": "layer" }, "computed": false } ] } }, { "type": "VariableDeclaration", "start": 5330, "end": 5388, "loc": { "start": { "line": 187, "column": 8 }, "end": { "line": 187, "column": 66 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5336, "end": 5387, "loc": { "start": { "line": 187, "column": 14 }, "end": { "line": 187, "column": 65 } }, "id": { "type": "Identifier", "start": 5336, "end": 5351, "loc": { "start": { "line": 187, "column": 14 }, "end": { "line": 187, "column": 29 }, "identifierName": "staticComponent" }, "name": "staticComponent" }, "init": { "type": "MemberExpression", "start": 5354, "end": 5387, "loc": { "start": { "line": 187, "column": 32 }, "end": { "line": 187, "column": 65 } }, "object": { "type": "MemberExpression", "start": 5354, "end": 5371, "loc": { "start": { "line": 187, "column": 32 }, "end": { "line": 187, "column": 49 } }, "object": { "type": "Identifier", "start": 5354, "end": 5360, "loc": { "start": { "line": 187, "column": 32 }, "end": { "line": 187, "column": 38 }, "identifierName": "entity" }, "name": "entity" }, "property": { "type": "Identifier", "start": 5361, "end": 5371, "loc": { "start": { "line": 187, "column": 39 }, "end": { "line": 187, "column": 49 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 5372, "end": 5387, "loc": { "start": { "line": 187, "column": 50 }, "end": { "line": 187, "column": 65 }, "identifierName": "StaticMapEntity" }, "name": "StaticMapEntity" }, "computed": false } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 5398, "end": 5469, "loc": { "start": { "line": 188, "column": 8 }, "end": { "line": 188, "column": 79 } }, "expression": { "type": "CallExpression", "start": 5398, "end": 5468, "loc": { "start": { "line": 188, "column": 8 }, "end": { "line": 188, "column": 78 } }, "callee": { "type": "Identifier", "start": 5398, "end": 5404, "loc": { "start": { "line": 188, "column": 8 }, "end": { "line": 188, "column": 14 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "Identifier", "start": 5405, "end": 5420, "loc": { "start": { "line": 188, "column": 15 }, "end": { "line": 188, "column": 30 }, "identifierName": "staticComponent" }, "name": "staticComponent" }, { "type": "StringLiteral", "start": 5422, "end": 5467, "loc": { "start": { "line": 188, "column": 32 }, "end": { "line": 188, "column": 77 } }, "extra": { "rawValue": "Can only place static map entities in tiles", "raw": "\"Can only place static map entities in tiles\"" }, "value": "Can only place static map entities in tiles" } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Sets the tiles content\r\n * @param {Vector} tile\r\n * @param {Entity} entity\r\n ", "start": 4913, "end": 5016, "loc": { "start": { "line": 170, "column": 4 }, "end": { "line": 174, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Places an entity with the StaticMapEntity component\r\n * @param {Entity} entity\r\n ", "start": 5484, "end": 5587, "loc": { "start": { "line": 191, "column": 4 }, "end": { "line": 194, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 5593, "end": 6135, "loc": { "start": { "line": 195, "column": 4 }, "end": { "line": 206, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 5593, "end": 5610, "loc": { "start": { "line": 195, "column": 4 }, "end": { "line": 195, "column": 21 }, "identifierName": "placeStaticEntity" }, "name": "placeStaticEntity", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 5611, "end": 5617, "loc": { "start": { "line": 195, "column": 22 }, "end": { "line": 195, "column": 28 }, "identifierName": "entity" }, "name": "entity" } ], "body": { "type": "BlockStatement", "start": 5619, "end": 6135, "loc": { "start": { "line": 195, "column": 30 }, "end": { "line": 206, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 5630, "end": 5696, "loc": { "start": { "line": 196, "column": 8 }, "end": { "line": 196, "column": 74 } }, "expression": { "type": "CallExpression", "start": 5630, "end": 5695, "loc": { "start": { "line": 196, "column": 8 }, "end": { "line": 196, "column": 73 } }, "callee": { "type": "Identifier", "start": 5630, "end": 5636, "loc": { "start": { "line": 196, "column": 8 }, "end": { "line": 196, "column": 14 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "MemberExpression", "start": 5637, "end": 5670, "loc": { "start": { "line": 196, "column": 15 }, "end": { "line": 196, "column": 48 } }, "object": { "type": "MemberExpression", "start": 5637, "end": 5654, "loc": { "start": { "line": 196, "column": 15 }, "end": { "line": 196, "column": 32 } }, "object": { "type": "Identifier", "start": 5637, "end": 5643, "loc": { "start": { "line": 196, "column": 15 }, "end": { "line": 196, "column": 21 }, "identifierName": "entity" }, "name": "entity" }, "property": { "type": "Identifier", "start": 5644, "end": 5654, "loc": { "start": { "line": 196, "column": 22 }, "end": { "line": 196, "column": 32 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 5655, "end": 5670, "loc": { "start": { "line": 196, "column": 33 }, "end": { "line": 196, "column": 48 }, "identifierName": "StaticMapEntity" }, "name": "StaticMapEntity" }, "computed": false }, { "type": "StringLiteral", "start": 5672, "end": 5694, "loc": { "start": { "line": 196, "column": 50 }, "end": { "line": 196, "column": 72 } }, "extra": { "rawValue": "Entity is not static", "raw": "\"Entity is not static\"" }, "value": "Entity is not static" } ] } }, { "type": "VariableDeclaration", "start": 5706, "end": 5759, "loc": { "start": { "line": 197, "column": 8 }, "end": { "line": 197, "column": 61 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5712, "end": 5758, "loc": { "start": { "line": 197, "column": 14 }, "end": { "line": 197, "column": 60 } }, "id": { "type": "Identifier", "start": 5712, "end": 5722, "loc": { "start": { "line": 197, "column": 14 }, "end": { "line": 197, "column": 24 }, "identifierName": "staticComp" }, "name": "staticComp" }, "init": { "type": "MemberExpression", "start": 5725, "end": 5758, "loc": { "start": { "line": 197, "column": 27 }, "end": { "line": 197, "column": 60 } }, "object": { "type": "MemberExpression", "start": 5725, "end": 5742, "loc": { "start": { "line": 197, "column": 27 }, "end": { "line": 197, "column": 44 } }, "object": { "type": "Identifier", "start": 5725, "end": 5731, "loc": { "start": { "line": 197, "column": 27 }, "end": { "line": 197, "column": 33 }, "identifierName": "entity" }, "name": "entity" }, "property": { "type": "Identifier", "start": 5732, "end": 5742, "loc": { "start": { "line": 197, "column": 34 }, "end": { "line": 197, "column": 44 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 5743, "end": 5758, "loc": { "start": { "line": 197, "column": 45 }, "end": { "line": 197, "column": 60 }, "identifierName": "StaticMapEntity" }, "name": "StaticMapEntity" }, "computed": false } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 5769, "end": 5814, "loc": { "start": { "line": 198, "column": 8 }, "end": { "line": 198, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5775, "end": 5813, "loc": { "start": { "line": 198, "column": 14 }, "end": { "line": 198, "column": 52 } }, "id": { "type": "Identifier", "start": 5775, "end": 5779, "loc": { "start": { "line": 198, "column": 14 }, "end": { "line": 198, "column": 18 }, "identifierName": "rect" }, "name": "rect" }, "init": { "type": "CallExpression", "start": 5782, "end": 5813, "loc": { "start": { "line": 198, "column": 21 }, "end": { "line": 198, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 5782, "end": 5811, "loc": { "start": { "line": 198, "column": 21 }, "end": { "line": 198, "column": 50 } }, "object": { "type": "Identifier", "start": 5782, "end": 5792, "loc": { "start": { "line": 198, "column": 21 }, "end": { "line": 198, "column": 31 }, "identifierName": "staticComp" }, "name": "staticComp" }, "property": { "type": "Identifier", "start": 5793, "end": 5811, "loc": { "start": { "line": 198, "column": 32 }, "end": { "line": 198, "column": 50 }, "identifierName": "getTileSpaceBounds" }, "name": "getTileSpaceBounds" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ForStatement", "start": 5824, "end": 6128, "loc": { "start": { "line": 199, "column": 8 }, "end": { "line": 205, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 5829, "end": 5839, "loc": { "start": { "line": 199, "column": 13 }, "end": { "line": 199, "column": 23 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5833, "end": 5839, "loc": { "start": { "line": 199, "column": 17 }, "end": { "line": 199, "column": 23 } }, "id": { "type": "Identifier", "start": 5833, "end": 5835, "loc": { "start": { "line": 199, "column": 17 }, "end": { "line": 199, "column": 19 }, "identifierName": "dx" }, "name": "dx" }, "init": { "type": "NumericLiteral", "start": 5838, "end": 5839, "loc": { "start": { "line": 199, "column": 22 }, "end": { "line": 199, "column": 23 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 5841, "end": 5852, "loc": { "start": { "line": 199, "column": 25 }, "end": { "line": 199, "column": 36 } }, "left": { "type": "Identifier", "start": 5841, "end": 5843, "loc": { "start": { "line": 199, "column": 25 }, "end": { "line": 199, "column": 27 }, "identifierName": "dx" }, "name": "dx" }, "operator": "<", "right": { "type": "MemberExpression", "start": 5846, "end": 5852, "loc": { "start": { "line": 199, "column": 30 }, "end": { "line": 199, "column": 36 } }, "object": { "type": "Identifier", "start": 5846, "end": 5850, "loc": { "start": { "line": 199, "column": 30 }, "end": { "line": 199, "column": 34 }, "identifierName": "rect" }, "name": "rect" }, "property": { "type": "Identifier", "start": 5851, "end": 5852, "loc": { "start": { "line": 199, "column": 35 }, "end": { "line": 199, "column": 36 }, "identifierName": "w" }, "name": "w" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 5854, "end": 5858, "loc": { "start": { "line": 199, "column": 38 }, "end": { "line": 199, "column": 42 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 5856, "end": 5858, "loc": { "start": { "line": 199, "column": 40 }, "end": { "line": 199, "column": 42 }, "identifierName": "dx" }, "name": "dx" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 5860, "end": 6128, "loc": { "start": { "line": 199, "column": 44 }, "end": { "line": 205, "column": 9 } }, "body": [ { "type": "ForStatement", "start": 5875, "end": 6117, "loc": { "start": { "line": 200, "column": 12 }, "end": { "line": 204, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 5880, "end": 5890, "loc": { "start": { "line": 200, "column": 17 }, "end": { "line": 200, "column": 27 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5884, "end": 5890, "loc": { "start": { "line": 200, "column": 21 }, "end": { "line": 200, "column": 27 } }, "id": { "type": "Identifier", "start": 5884, "end": 5886, "loc": { "start": { "line": 200, "column": 21 }, "end": { "line": 200, "column": 23 }, "identifierName": "dy" }, "name": "dy" }, "init": { "type": "NumericLiteral", "start": 5889, "end": 5890, "loc": { "start": { "line": 200, "column": 26 }, "end": { "line": 200, "column": 27 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 5892, "end": 5903, "loc": { "start": { "line": 200, "column": 29 }, "end": { "line": 200, "column": 40 } }, "left": { "type": "Identifier", "start": 5892, "end": 5894, "loc": { "start": { "line": 200, "column": 29 }, "end": { "line": 200, "column": 31 }, "identifierName": "dy" }, "name": "dy" }, "operator": "<", "right": { "type": "MemberExpression", "start": 5897, "end": 5903, "loc": { "start": { "line": 200, "column": 34 }, "end": { "line": 200, "column": 40 } }, "object": { "type": "Identifier", "start": 5897, "end": 5901, "loc": { "start": { "line": 200, "column": 34 }, "end": { "line": 200, "column": 38 }, "identifierName": "rect" }, "name": "rect" }, "property": { "type": "Identifier", "start": 5902, "end": 5903, "loc": { "start": { "line": 200, "column": 39 }, "end": { "line": 200, "column": 40 }, "identifierName": "h" }, "name": "h" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 5905, "end": 5909, "loc": { "start": { "line": 200, "column": 42 }, "end": { "line": 200, "column": 46 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 5907, "end": 5909, "loc": { "start": { "line": 200, "column": 44 }, "end": { "line": 200, "column": 46 }, "identifierName": "dy" }, "name": "dy" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 5911, "end": 6117, "loc": { "start": { "line": 200, "column": 48 }, "end": { "line": 204, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 5930, "end": 5952, "loc": { "start": { "line": 201, "column": 16 }, "end": { "line": 201, "column": 38 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5936, "end": 5951, "loc": { "start": { "line": 201, "column": 22 }, "end": { "line": 201, "column": 37 } }, "id": { "type": "Identifier", "start": 5936, "end": 5937, "loc": { "start": { "line": 201, "column": 22 }, "end": { "line": 201, "column": 23 }, "identifierName": "x" }, "name": "x" }, "init": { "type": "BinaryExpression", "start": 5940, "end": 5951, "loc": { "start": { "line": 201, "column": 26 }, "end": { "line": 201, "column": 37 } }, "left": { "type": "MemberExpression", "start": 5940, "end": 5946, "loc": { "start": { "line": 201, "column": 26 }, "end": { "line": 201, "column": 32 } }, "object": { "type": "Identifier", "start": 5940, "end": 5944, "loc": { "start": { "line": 201, "column": 26 }, "end": { "line": 201, "column": 30 }, "identifierName": "rect" }, "name": "rect" }, "property": { "type": "Identifier", "start": 5945, "end": 5946, "loc": { "start": { "line": 201, "column": 31 }, "end": { "line": 201, "column": 32 }, "identifierName": "x" }, "name": "x" }, "computed": false }, "operator": "+", "right": { "type": "Identifier", "start": 5949, "end": 5951, "loc": { "start": { "line": 201, "column": 35 }, "end": { "line": 201, "column": 37 }, "identifierName": "dx" }, "name": "dx" } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 5970, "end": 5992, "loc": { "start": { "line": 202, "column": 16 }, "end": { "line": 202, "column": 38 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5976, "end": 5991, "loc": { "start": { "line": 202, "column": 22 }, "end": { "line": 202, "column": 37 } }, "id": { "type": "Identifier", "start": 5976, "end": 5977, "loc": { "start": { "line": 202, "column": 22 }, "end": { "line": 202, "column": 23 }, "identifierName": "y" }, "name": "y" }, "init": { "type": "BinaryExpression", "start": 5980, "end": 5991, "loc": { "start": { "line": 202, "column": 26 }, "end": { "line": 202, "column": 37 } }, "left": { "type": "MemberExpression", "start": 5980, "end": 5986, "loc": { "start": { "line": 202, "column": 26 }, "end": { "line": 202, "column": 32 } }, "object": { "type": "Identifier", "start": 5980, "end": 5984, "loc": { "start": { "line": 202, "column": 26 }, "end": { "line": 202, "column": 30 }, "identifierName": "rect" }, "name": "rect" }, "property": { "type": "Identifier", "start": 5985, "end": 5986, "loc": { "start": { "line": 202, "column": 31 }, "end": { "line": 202, "column": 32 }, "identifierName": "y" }, "name": "y" }, "computed": false }, "operator": "+", "right": { "type": "Identifier", "start": 5989, "end": 5991, "loc": { "start": { "line": 202, "column": 35 }, "end": { "line": 202, "column": 37 }, "identifierName": "dy" }, "name": "dy" } } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 6010, "end": 6102, "loc": { "start": { "line": 203, "column": 16 }, "end": { "line": 203, "column": 108 } }, "expression": { "type": "CallExpression", "start": 6010, "end": 6101, "loc": { "start": { "line": 203, "column": 16 }, "end": { "line": 203, "column": 107 } }, "callee": { "type": "MemberExpression", "start": 6010, "end": 6073, "loc": { "start": { "line": 203, "column": 16 }, "end": { "line": 203, "column": 79 } }, "object": { "type": "CallExpression", "start": 6010, "end": 6043, "loc": { "start": { "line": 203, "column": 16 }, "end": { "line": 203, "column": 49 } }, "callee": { "type": "MemberExpression", "start": 6010, "end": 6037, "loc": { "start": { "line": 203, "column": 16 }, "end": { "line": 203, "column": 43 } }, "object": { "type": "ThisExpression", "start": 6010, "end": 6014, "loc": { "start": { "line": 203, "column": 16 }, "end": { "line": 203, "column": 20 } } }, "property": { "type": "Identifier", "start": 6015, "end": 6037, "loc": { "start": { "line": 203, "column": 21 }, "end": { "line": 203, "column": 43 }, "identifierName": "getOrCreateChunkAtTile" }, "name": "getOrCreateChunkAtTile" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 6038, "end": 6039, "loc": { "start": { "line": 203, "column": 44 }, "end": { "line": 203, "column": 45 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 6041, "end": 6042, "loc": { "start": { "line": 203, "column": 47 }, "end": { "line": 203, "column": 48 }, "identifierName": "y" }, "name": "y" } ] }, "property": { "type": "Identifier", "start": 6044, "end": 6073, "loc": { "start": { "line": 203, "column": 50 }, "end": { "line": 203, "column": 79 }, "identifierName": "setLayerContentFromWorldCords" }, "name": "setLayerContentFromWorldCords" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 6074, "end": 6075, "loc": { "start": { "line": 203, "column": 80 }, "end": { "line": 203, "column": 81 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 6077, "end": 6078, "loc": { "start": { "line": 203, "column": 83 }, "end": { "line": 203, "column": 84 }, "identifierName": "y" }, "name": "y" }, { "type": "Identifier", "start": 6080, "end": 6086, "loc": { "start": { "line": 203, "column": 86 }, "end": { "line": 203, "column": 92 }, "identifierName": "entity" }, "name": "entity" }, { "type": "MemberExpression", "start": 6088, "end": 6100, "loc": { "start": { "line": 203, "column": 94 }, "end": { "line": 203, "column": 106 } }, "object": { "type": "Identifier", "start": 6088, "end": 6094, "loc": { "start": { "line": 203, "column": 94 }, "end": { "line": 203, "column": 100 }, "identifierName": "entity" }, "name": "entity" }, "property": { "type": "Identifier", "start": 6095, "end": 6100, "loc": { "start": { "line": 203, "column": 101 }, "end": { "line": 203, "column": 106 }, "identifierName": "layer" }, "name": "layer" }, "computed": false } ] } } ], "directives": [] } } ], "directives": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Places an entity with the StaticMapEntity component\r\n * @param {Entity} entity\r\n ", "start": 5484, "end": 5587, "loc": { "start": { "line": 191, "column": 4 }, "end": { "line": 194, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Removes an entity with the StaticMapEntity component\r\n * @param {Entity} entity\r\n ", "start": 6143, "end": 6247, "loc": { "start": { "line": 208, "column": 4 }, "end": { "line": 211, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 6253, "end": 6794, "loc": { "start": { "line": 212, "column": 4 }, "end": { "line": 223, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 6253, "end": 6271, "loc": { "start": { "line": 212, "column": 4 }, "end": { "line": 212, "column": 22 }, "identifierName": "removeStaticEntity" }, "name": "removeStaticEntity", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 6272, "end": 6278, "loc": { "start": { "line": 212, "column": 23 }, "end": { "line": 212, "column": 29 }, "identifierName": "entity" }, "name": "entity" } ], "body": { "type": "BlockStatement", "start": 6280, "end": 6794, "loc": { "start": { "line": 212, "column": 31 }, "end": { "line": 223, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 6291, "end": 6357, "loc": { "start": { "line": 213, "column": 8 }, "end": { "line": 213, "column": 74 } }, "expression": { "type": "CallExpression", "start": 6291, "end": 6356, "loc": { "start": { "line": 213, "column": 8 }, "end": { "line": 213, "column": 73 } }, "callee": { "type": "Identifier", "start": 6291, "end": 6297, "loc": { "start": { "line": 213, "column": 8 }, "end": { "line": 213, "column": 14 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "MemberExpression", "start": 6298, "end": 6331, "loc": { "start": { "line": 213, "column": 15 }, "end": { "line": 213, "column": 48 } }, "object": { "type": "MemberExpression", "start": 6298, "end": 6315, "loc": { "start": { "line": 213, "column": 15 }, "end": { "line": 213, "column": 32 } }, "object": { "type": "Identifier", "start": 6298, "end": 6304, "loc": { "start": { "line": 213, "column": 15 }, "end": { "line": 213, "column": 21 }, "identifierName": "entity" }, "name": "entity" }, "property": { "type": "Identifier", "start": 6305, "end": 6315, "loc": { "start": { "line": 213, "column": 22 }, "end": { "line": 213, "column": 32 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 6316, "end": 6331, "loc": { "start": { "line": 213, "column": 33 }, "end": { "line": 213, "column": 48 }, "identifierName": "StaticMapEntity" }, "name": "StaticMapEntity" }, "computed": false }, { "type": "StringLiteral", "start": 6333, "end": 6355, "loc": { "start": { "line": 213, "column": 50 }, "end": { "line": 213, "column": 72 } }, "extra": { "rawValue": "Entity is not static", "raw": "\"Entity is not static\"" }, "value": "Entity is not static" } ] } }, { "type": "VariableDeclaration", "start": 6367, "end": 6420, "loc": { "start": { "line": 214, "column": 8 }, "end": { "line": 214, "column": 61 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6373, "end": 6419, "loc": { "start": { "line": 214, "column": 14 }, "end": { "line": 214, "column": 60 } }, "id": { "type": "Identifier", "start": 6373, "end": 6383, "loc": { "start": { "line": 214, "column": 14 }, "end": { "line": 214, "column": 24 }, "identifierName": "staticComp" }, "name": "staticComp" }, "init": { "type": "MemberExpression", "start": 6386, "end": 6419, "loc": { "start": { "line": 214, "column": 27 }, "end": { "line": 214, "column": 60 } }, "object": { "type": "MemberExpression", "start": 6386, "end": 6403, "loc": { "start": { "line": 214, "column": 27 }, "end": { "line": 214, "column": 44 } }, "object": { "type": "Identifier", "start": 6386, "end": 6392, "loc": { "start": { "line": 214, "column": 27 }, "end": { "line": 214, "column": 33 }, "identifierName": "entity" }, "name": "entity" }, "property": { "type": "Identifier", "start": 6393, "end": 6403, "loc": { "start": { "line": 214, "column": 34 }, "end": { "line": 214, "column": 44 }, "identifierName": "components" }, "name": "components" }, "computed": false }, "property": { "type": "Identifier", "start": 6404, "end": 6419, "loc": { "start": { "line": 214, "column": 45 }, "end": { "line": 214, "column": 60 }, "identifierName": "StaticMapEntity" }, "name": "StaticMapEntity" }, "computed": false } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 6430, "end": 6475, "loc": { "start": { "line": 215, "column": 8 }, "end": { "line": 215, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6436, "end": 6474, "loc": { "start": { "line": 215, "column": 14 }, "end": { "line": 215, "column": 52 } }, "id": { "type": "Identifier", "start": 6436, "end": 6440, "loc": { "start": { "line": 215, "column": 14 }, "end": { "line": 215, "column": 18 }, "identifierName": "rect" }, "name": "rect" }, "init": { "type": "CallExpression", "start": 6443, "end": 6474, "loc": { "start": { "line": 215, "column": 21 }, "end": { "line": 215, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 6443, "end": 6472, "loc": { "start": { "line": 215, "column": 21 }, "end": { "line": 215, "column": 50 } }, "object": { "type": "Identifier", "start": 6443, "end": 6453, "loc": { "start": { "line": 215, "column": 21 }, "end": { "line": 215, "column": 31 }, "identifierName": "staticComp" }, "name": "staticComp" }, "property": { "type": "Identifier", "start": 6454, "end": 6472, "loc": { "start": { "line": 215, "column": 32 }, "end": { "line": 215, "column": 50 }, "identifierName": "getTileSpaceBounds" }, "name": "getTileSpaceBounds" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ForStatement", "start": 6485, "end": 6787, "loc": { "start": { "line": 216, "column": 8 }, "end": { "line": 222, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 6490, "end": 6500, "loc": { "start": { "line": 216, "column": 13 }, "end": { "line": 216, "column": 23 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6494, "end": 6500, "loc": { "start": { "line": 216, "column": 17 }, "end": { "line": 216, "column": 23 } }, "id": { "type": "Identifier", "start": 6494, "end": 6496, "loc": { "start": { "line": 216, "column": 17 }, "end": { "line": 216, "column": 19 }, "identifierName": "dx" }, "name": "dx" }, "init": { "type": "NumericLiteral", "start": 6499, "end": 6500, "loc": { "start": { "line": 216, "column": 22 }, "end": { "line": 216, "column": 23 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 6502, "end": 6513, "loc": { "start": { "line": 216, "column": 25 }, "end": { "line": 216, "column": 36 } }, "left": { "type": "Identifier", "start": 6502, "end": 6504, "loc": { "start": { "line": 216, "column": 25 }, "end": { "line": 216, "column": 27 }, "identifierName": "dx" }, "name": "dx" }, "operator": "<", "right": { "type": "MemberExpression", "start": 6507, "end": 6513, "loc": { "start": { "line": 216, "column": 30 }, "end": { "line": 216, "column": 36 } }, "object": { "type": "Identifier", "start": 6507, "end": 6511, "loc": { "start": { "line": 216, "column": 30 }, "end": { "line": 216, "column": 34 }, "identifierName": "rect" }, "name": "rect" }, "property": { "type": "Identifier", "start": 6512, "end": 6513, "loc": { "start": { "line": 216, "column": 35 }, "end": { "line": 216, "column": 36 }, "identifierName": "w" }, "name": "w" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 6515, "end": 6519, "loc": { "start": { "line": 216, "column": 38 }, "end": { "line": 216, "column": 42 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 6517, "end": 6519, "loc": { "start": { "line": 216, "column": 40 }, "end": { "line": 216, "column": 42 }, "identifierName": "dx" }, "name": "dx" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 6521, "end": 6787, "loc": { "start": { "line": 216, "column": 44 }, "end": { "line": 222, "column": 9 } }, "body": [ { "type": "ForStatement", "start": 6536, "end": 6776, "loc": { "start": { "line": 217, "column": 12 }, "end": { "line": 221, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 6541, "end": 6551, "loc": { "start": { "line": 217, "column": 17 }, "end": { "line": 217, "column": 27 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6545, "end": 6551, "loc": { "start": { "line": 217, "column": 21 }, "end": { "line": 217, "column": 27 } }, "id": { "type": "Identifier", "start": 6545, "end": 6547, "loc": { "start": { "line": 217, "column": 21 }, "end": { "line": 217, "column": 23 }, "identifierName": "dy" }, "name": "dy" }, "init": { "type": "NumericLiteral", "start": 6550, "end": 6551, "loc": { "start": { "line": 217, "column": 26 }, "end": { "line": 217, "column": 27 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 6553, "end": 6564, "loc": { "start": { "line": 217, "column": 29 }, "end": { "line": 217, "column": 40 } }, "left": { "type": "Identifier", "start": 6553, "end": 6555, "loc": { "start": { "line": 217, "column": 29 }, "end": { "line": 217, "column": 31 }, "identifierName": "dy" }, "name": "dy" }, "operator": "<", "right": { "type": "MemberExpression", "start": 6558, "end": 6564, "loc": { "start": { "line": 217, "column": 34 }, "end": { "line": 217, "column": 40 } }, "object": { "type": "Identifier", "start": 6558, "end": 6562, "loc": { "start": { "line": 217, "column": 34 }, "end": { "line": 217, "column": 38 }, "identifierName": "rect" }, "name": "rect" }, "property": { "type": "Identifier", "start": 6563, "end": 6564, "loc": { "start": { "line": 217, "column": 39 }, "end": { "line": 217, "column": 40 }, "identifierName": "h" }, "name": "h" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 6566, "end": 6570, "loc": { "start": { "line": 217, "column": 42 }, "end": { "line": 217, "column": 46 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 6568, "end": 6570, "loc": { "start": { "line": 217, "column": 44 }, "end": { "line": 217, "column": 46 }, "identifierName": "dy" }, "name": "dy" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 6572, "end": 6776, "loc": { "start": { "line": 217, "column": 48 }, "end": { "line": 221, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 6591, "end": 6613, "loc": { "start": { "line": 218, "column": 16 }, "end": { "line": 218, "column": 38 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6597, "end": 6612, "loc": { "start": { "line": 218, "column": 22 }, "end": { "line": 218, "column": 37 } }, "id": { "type": "Identifier", "start": 6597, "end": 6598, "loc": { "start": { "line": 218, "column": 22 }, "end": { "line": 218, "column": 23 }, "identifierName": "x" }, "name": "x" }, "init": { "type": "BinaryExpression", "start": 6601, "end": 6612, "loc": { "start": { "line": 218, "column": 26 }, "end": { "line": 218, "column": 37 } }, "left": { "type": "MemberExpression", "start": 6601, "end": 6607, "loc": { "start": { "line": 218, "column": 26 }, "end": { "line": 218, "column": 32 } }, "object": { "type": "Identifier", "start": 6601, "end": 6605, "loc": { "start": { "line": 218, "column": 26 }, "end": { "line": 218, "column": 30 }, "identifierName": "rect" }, "name": "rect" }, "property": { "type": "Identifier", "start": 6606, "end": 6607, "loc": { "start": { "line": 218, "column": 31 }, "end": { "line": 218, "column": 32 }, "identifierName": "x" }, "name": "x" }, "computed": false }, "operator": "+", "right": { "type": "Identifier", "start": 6610, "end": 6612, "loc": { "start": { "line": 218, "column": 35 }, "end": { "line": 218, "column": 37 }, "identifierName": "dx" }, "name": "dx" } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 6631, "end": 6653, "loc": { "start": { "line": 219, "column": 16 }, "end": { "line": 219, "column": 38 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6637, "end": 6652, "loc": { "start": { "line": 219, "column": 22 }, "end": { "line": 219, "column": 37 } }, "id": { "type": "Identifier", "start": 6637, "end": 6638, "loc": { "start": { "line": 219, "column": 22 }, "end": { "line": 219, "column": 23 }, "identifierName": "y" }, "name": "y" }, "init": { "type": "BinaryExpression", "start": 6641, "end": 6652, "loc": { "start": { "line": 219, "column": 26 }, "end": { "line": 219, "column": 37 } }, "left": { "type": "MemberExpression", "start": 6641, "end": 6647, "loc": { "start": { "line": 219, "column": 26 }, "end": { "line": 219, "column": 32 } }, "object": { "type": "Identifier", "start": 6641, "end": 6645, "loc": { "start": { "line": 219, "column": 26 }, "end": { "line": 219, "column": 30 }, "identifierName": "rect" }, "name": "rect" }, "property": { "type": "Identifier", "start": 6646, "end": 6647, "loc": { "start": { "line": 219, "column": 31 }, "end": { "line": 219, "column": 32 }, "identifierName": "y" }, "name": "y" }, "computed": false }, "operator": "+", "right": { "type": "Identifier", "start": 6650, "end": 6652, "loc": { "start": { "line": 219, "column": 35 }, "end": { "line": 219, "column": 37 }, "identifierName": "dy" }, "name": "dy" } } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 6671, "end": 6761, "loc": { "start": { "line": 220, "column": 16 }, "end": { "line": 220, "column": 106 } }, "expression": { "type": "CallExpression", "start": 6671, "end": 6760, "loc": { "start": { "line": 220, "column": 16 }, "end": { "line": 220, "column": 105 } }, "callee": { "type": "MemberExpression", "start": 6671, "end": 6734, "loc": { "start": { "line": 220, "column": 16 }, "end": { "line": 220, "column": 79 } }, "object": { "type": "CallExpression", "start": 6671, "end": 6704, "loc": { "start": { "line": 220, "column": 16 }, "end": { "line": 220, "column": 49 } }, "callee": { "type": "MemberExpression", "start": 6671, "end": 6698, "loc": { "start": { "line": 220, "column": 16 }, "end": { "line": 220, "column": 43 } }, "object": { "type": "ThisExpression", "start": 6671, "end": 6675, "loc": { "start": { "line": 220, "column": 16 }, "end": { "line": 220, "column": 20 } } }, "property": { "type": "Identifier", "start": 6676, "end": 6698, "loc": { "start": { "line": 220, "column": 21 }, "end": { "line": 220, "column": 43 }, "identifierName": "getOrCreateChunkAtTile" }, "name": "getOrCreateChunkAtTile" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 6699, "end": 6700, "loc": { "start": { "line": 220, "column": 44 }, "end": { "line": 220, "column": 45 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 6702, "end": 6703, "loc": { "start": { "line": 220, "column": 47 }, "end": { "line": 220, "column": 48 }, "identifierName": "y" }, "name": "y" } ] }, "property": { "type": "Identifier", "start": 6705, "end": 6734, "loc": { "start": { "line": 220, "column": 50 }, "end": { "line": 220, "column": 79 }, "identifierName": "setLayerContentFromWorldCords" }, "name": "setLayerContentFromWorldCords" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 6735, "end": 6736, "loc": { "start": { "line": 220, "column": 80 }, "end": { "line": 220, "column": 81 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 6738, "end": 6739, "loc": { "start": { "line": 220, "column": 83 }, "end": { "line": 220, "column": 84 }, "identifierName": "y" }, "name": "y" }, { "type": "NullLiteral", "start": 6741, "end": 6745, "loc": { "start": { "line": 220, "column": 86 }, "end": { "line": 220, "column": 90 } } }, { "type": "MemberExpression", "start": 6747, "end": 6759, "loc": { "start": { "line": 220, "column": 92 }, "end": { "line": 220, "column": 104 } }, "object": { "type": "Identifier", "start": 6747, "end": 6753, "loc": { "start": { "line": 220, "column": 92 }, "end": { "line": 220, "column": 98 }, "identifierName": "entity" }, "name": "entity" }, "property": { "type": "Identifier", "start": 6754, "end": 6759, "loc": { "start": { "line": 220, "column": 99 }, "end": { "line": 220, "column": 104 }, "identifierName": "layer" }, "name": "layer" }, "computed": false } ] } } ], "directives": [] } } ], "directives": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Removes an entity with the StaticMapEntity component\r\n * @param {Entity} entity\r\n ", "start": 6143, "end": 6247, "loc": { "start": { "line": 208, "column": 4 }, "end": { "line": 211, "column": 7 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " Internal", "start": 6802, "end": 6813, "loc": { "start": { "line": 225, "column": 4 }, "end": { "line": 225, "column": 15 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks a given tile for validty\r\n * @param {Vector} tile\r\n ", "start": 6821, "end": 6902, "loc": { "start": { "line": 227, "column": 4 }, "end": { "line": 230, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 6908, "end": 7172, "loc": { "start": { "line": 231, "column": 4 }, "end": { "line": 235, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 6908, "end": 6925, "loc": { "start": { "line": 231, "column": 4 }, "end": { "line": 231, "column": 21 }, "identifierName": "internalCheckTile" }, "name": "internalCheckTile", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 6926, "end": 6930, "loc": { "start": { "line": 231, "column": 22 }, "end": { "line": 231, "column": 26 }, "identifierName": "tile" }, "name": "tile" } ], "body": { "type": "BlockStatement", "start": 6932, "end": 7172, "loc": { "start": { "line": 231, "column": 28 }, "end": { "line": 235, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 6943, "end": 7007, "loc": { "start": { "line": 232, "column": 8 }, "end": { "line": 232, "column": 72 } }, "expression": { "type": "CallExpression", "start": 6943, "end": 7006, "loc": { "start": { "line": 232, "column": 8 }, "end": { "line": 232, "column": 71 } }, "callee": { "type": "Identifier", "start": 6943, "end": 6949, "loc": { "start": { "line": 232, "column": 8 }, "end": { "line": 232, "column": 14 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "BinaryExpression", "start": 6950, "end": 6972, "loc": { "start": { "line": 232, "column": 15 }, "end": { "line": 232, "column": 37 } }, "left": { "type": "Identifier", "start": 6950, "end": 6954, "loc": { "start": { "line": 232, "column": 15 }, "end": { "line": 232, "column": 19 }, "identifierName": "tile" }, "name": "tile" }, "operator": "instanceof", "right": { "type": "Identifier", "start": 6966, "end": 6972, "loc": { "start": { "line": 232, "column": 31 }, "end": { "line": 232, "column": 37 }, "identifierName": "Vector" }, "name": "Vector" } }, { "type": "BinaryExpression", "start": 6974, "end": 7005, "loc": { "start": { "line": 232, "column": 39 }, "end": { "line": 232, "column": 70 } }, "left": { "type": "StringLiteral", "start": 6974, "end": 6998, "loc": { "start": { "line": 232, "column": 39 }, "end": { "line": 232, "column": 63 } }, "extra": { "rawValue": "tile is not a vector: ", "raw": "\"tile is not a vector: \"" }, "value": "tile is not a vector: " }, "operator": "+", "right": { "type": "Identifier", "start": 7001, "end": 7005, "loc": { "start": { "line": 232, "column": 66 }, "end": { "line": 232, "column": 70 }, "identifierName": "tile" }, "name": "tile" } } ] } }, { "type": "ExpressionStatement", "start": 7017, "end": 7086, "loc": { "start": { "line": 233, "column": 8 }, "end": { "line": 233, "column": 77 } }, "expression": { "type": "CallExpression", "start": 7017, "end": 7085, "loc": { "start": { "line": 233, "column": 8 }, "end": { "line": 233, "column": 76 } }, "callee": { "type": "Identifier", "start": 7017, "end": 7023, "loc": { "start": { "line": 233, "column": 8 }, "end": { "line": 233, "column": 14 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "BinaryExpression", "start": 7024, "end": 7040, "loc": { "start": { "line": 233, "column": 15 }, "end": { "line": 233, "column": 31 } }, "left": { "type": "BinaryExpression", "start": 7024, "end": 7034, "loc": { "start": { "line": 233, "column": 15 }, "end": { "line": 233, "column": 25 } }, "left": { "type": "MemberExpression", "start": 7024, "end": 7030, "loc": { "start": { "line": 233, "column": 15 }, "end": { "line": 233, "column": 21 } }, "object": { "type": "Identifier", "start": 7024, "end": 7028, "loc": { "start": { "line": 233, "column": 15 }, "end": { "line": 233, "column": 19 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 7029, "end": 7030, "loc": { "start": { "line": 233, "column": 20 }, "end": { "line": 233, "column": 21 }, "identifierName": "x" }, "name": "x" }, "computed": false }, "operator": "%", "right": { "type": "NumericLiteral", "start": 7033, "end": 7034, "loc": { "start": { "line": 233, "column": 24 }, "end": { "line": 233, "column": 25 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } }, "operator": "===", "right": { "type": "NumericLiteral", "start": 7039, "end": 7040, "loc": { "start": { "line": 233, "column": 30 }, "end": { "line": 233, "column": 31 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, { "type": "BinaryExpression", "start": 7042, "end": 7084, "loc": { "start": { "line": 233, "column": 33 }, "end": { "line": 233, "column": 75 } }, "left": { "type": "StringLiteral", "start": 7042, "end": 7075, "loc": { "start": { "line": 233, "column": 33 }, "end": { "line": 233, "column": 66 } }, "extra": { "rawValue": "Tile X is not a valid integer: ", "raw": "\"Tile X is not a valid integer: \"" }, "value": "Tile X is not a valid integer: " }, "operator": "+", "right": { "type": "MemberExpression", "start": 7078, "end": 7084, "loc": { "start": { "line": 233, "column": 69 }, "end": { "line": 233, "column": 75 } }, "object": { "type": "Identifier", "start": 7078, "end": 7082, "loc": { "start": { "line": 233, "column": 69 }, "end": { "line": 233, "column": 73 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 7083, "end": 7084, "loc": { "start": { "line": 233, "column": 74 }, "end": { "line": 233, "column": 75 }, "identifierName": "x" }, "name": "x" }, "computed": false } } ] } }, { "type": "ExpressionStatement", "start": 7096, "end": 7165, "loc": { "start": { "line": 234, "column": 8 }, "end": { "line": 234, "column": 77 } }, "expression": { "type": "CallExpression", "start": 7096, "end": 7164, "loc": { "start": { "line": 234, "column": 8 }, "end": { "line": 234, "column": 76 } }, "callee": { "type": "Identifier", "start": 7096, "end": 7102, "loc": { "start": { "line": 234, "column": 8 }, "end": { "line": 234, "column": 14 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "BinaryExpression", "start": 7103, "end": 7119, "loc": { "start": { "line": 234, "column": 15 }, "end": { "line": 234, "column": 31 } }, "left": { "type": "BinaryExpression", "start": 7103, "end": 7113, "loc": { "start": { "line": 234, "column": 15 }, "end": { "line": 234, "column": 25 } }, "left": { "type": "MemberExpression", "start": 7103, "end": 7109, "loc": { "start": { "line": 234, "column": 15 }, "end": { "line": 234, "column": 21 } }, "object": { "type": "Identifier", "start": 7103, "end": 7107, "loc": { "start": { "line": 234, "column": 15 }, "end": { "line": 234, "column": 19 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 7108, "end": 7109, "loc": { "start": { "line": 234, "column": 20 }, "end": { "line": 234, "column": 21 }, "identifierName": "y" }, "name": "y" }, "computed": false }, "operator": "%", "right": { "type": "NumericLiteral", "start": 7112, "end": 7113, "loc": { "start": { "line": 234, "column": 24 }, "end": { "line": 234, "column": 25 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } }, "operator": "===", "right": { "type": "NumericLiteral", "start": 7118, "end": 7119, "loc": { "start": { "line": 234, "column": 30 }, "end": { "line": 234, "column": 31 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, { "type": "BinaryExpression", "start": 7121, "end": 7163, "loc": { "start": { "line": 234, "column": 33 }, "end": { "line": 234, "column": 75 } }, "left": { "type": "StringLiteral", "start": 7121, "end": 7154, "loc": { "start": { "line": 234, "column": 33 }, "end": { "line": 234, "column": 66 } }, "extra": { "rawValue": "Tile Y is not a valid integer: ", "raw": "\"Tile Y is not a valid integer: \"" }, "value": "Tile Y is not a valid integer: " }, "operator": "+", "right": { "type": "MemberExpression", "start": 7157, "end": 7163, "loc": { "start": { "line": 234, "column": 69 }, "end": { "line": 234, "column": 75 } }, "object": { "type": "Identifier", "start": 7157, "end": 7161, "loc": { "start": { "line": 234, "column": 69 }, "end": { "line": 234, "column": 73 }, "identifierName": "tile" }, "name": "tile" }, "property": { "type": "Identifier", "start": 7162, "end": 7163, "loc": { "start": { "line": 234, "column": 74 }, "end": { "line": 234, "column": 75 }, "identifierName": "y" }, "name": "y" }, "computed": false } } ] } } ], "directives": [] }, "leadingComments": [ { "type": "CommentLine", "value": " Internal", "start": 6802, "end": 6813, "loc": { "start": { "line": 225, "column": 4 }, "end": { "line": 225, "column": 15 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks a given tile for validty\r\n * @param {Vector} tile\r\n ", "start": 6821, "end": 6902, "loc": { "start": { "line": 227, "column": 4 }, "end": { "line": 230, "column": 7 } } } ] } ] }, "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {GameRoot} root\r\n ", "start": 542, "end": 593, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 23, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Mapping of 'X|Y' to chunk\r\n * @type {Map} ", "start": 701, "end": 791, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 32, "column": 47 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns the given chunk by index\r\n * @param {number} chunkX\r\n * @param {number} chunkY\r\n ", "start": 844, "end": 959, "loc": { "start": { "line": 36, "column": 4 }, "end": { "line": 40, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Gets or creates a new chunk if not existent for the given tile\r\n * @param {number} tileX\r\n * @param {number} tileY\r\n * @returns {MapChunkView}\r\n ", "start": 1471, "end": 1646, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 63, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Gets a chunk if not existent for the given tile\r\n * @param {number} tileX\r\n * @param {number} tileY\r\n * @returns {MapChunkView?}\r\n ", "start": 1900, "end": 2061, "loc": { "start": { "line": 70, "column": 4 }, "end": { "line": 75, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if a given tile is within the map bounds\r\n * @param {Vector} tile\r\n * @returns {boolean}\r\n ", "start": 2314, "end": 2438, "loc": { "start": { "line": 82, "column": 4 }, "end": { "line": 86, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns the tile content of a given tile\r\n * @param {Vector} tile\r\n * @param {Layer} layer\r\n * @returns {Entity} Entity or null\r\n ", "start": 2653, "end": 2813, "loc": { "start": { "line": 94, "column": 4 }, "end": { "line": 99, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns the lower layers content of the given tile\r\n * @param {number} x\r\n * @param {number} y\r\n * @returns {BaseItem=}\r\n ", "start": 3094, "end": 3246, "loc": { "start": { "line": 108, "column": 4 }, "end": { "line": 113, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns the tile content of a given tile\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {Layer} layer\r\n * @returns {Entity} Entity or null\r\n ", "start": 3383, "end": 3566, "loc": { "start": { "line": 118, "column": 4 }, "end": { "line": 124, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns the tile contents of a given tile\r\n * @param {number} x\r\n * @param {number} y\r\n * @returns {Array} Entity or null\r\n ", "start": 3751, "end": 3913, "loc": { "start": { "line": 130, "column": 4 }, "end": { "line": 135, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if the tile is used\r\n * @param {Vector} tile\r\n * @param {Layer} layer\r\n * @returns {boolean}\r\n ", "start": 4153, "end": 4285, "loc": { "start": { "line": 144, "column": 4 }, "end": { "line": 149, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if the tile is used\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {Layer} layer\r\n * @returns {boolean}\r\n ", "start": 4570, "end": 4725, "loc": { "start": { "line": 158, "column": 4 }, "end": { "line": 164, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Sets the tiles content\r\n * @param {Vector} tile\r\n * @param {Entity} entity\r\n ", "start": 4913, "end": 5016, "loc": { "start": { "line": 170, "column": 4 }, "end": { "line": 174, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Places an entity with the StaticMapEntity component\r\n * @param {Entity} entity\r\n ", "start": 5484, "end": 5587, "loc": { "start": { "line": 191, "column": 4 }, "end": { "line": 194, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Removes an entity with the StaticMapEntity component\r\n * @param {Entity} entity\r\n ", "start": 6143, "end": 6247, "loc": { "start": { "line": 208, "column": 4 }, "end": { "line": 211, "column": 7 } } }, { "type": "CommentLine", "value": " Internal", "start": 6802, "end": 6813, "loc": { "start": { "line": 225, "column": 4 }, "end": { "line": 225, "column": 15 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks a given tile for validty\r\n * @param {Vector} tile\r\n ", "start": 6821, "end": 6902, "loc": { "start": { "line": 227, "column": 4 }, "end": { "line": 230, "column": 7 } } } ], "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": 45, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 45 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 45, "end": 46, "loc": { "start": { "line": 1, "column": 45 }, "end": { "line": 1, "column": 46 } } }, { "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": 48, "end": 54, "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": 55, "end": 56, "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": "Vector", "start": 57, "end": 63, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 15 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 64, "end": 65, "loc": { "start": { "line": 2, "column": 16 }, "end": { "line": 2, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 66, "end": 70, "loc": { "start": { "line": 2, "column": 18 }, "end": { "line": 2, "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/vector", "start": 71, "end": 87, "loc": { "start": { "line": 2, "column": 23 }, "end": { "line": 2, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 87, "end": 88, "loc": { "start": { "line": 2, "column": 39 }, "end": { "line": 2, "column": 40 } } }, { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 90, "end": 96, "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": 97, "end": 98, "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": "BasicSerializableObject", "start": 99, "end": 122, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 32 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 122, "end": 123, "loc": { "start": { "line": 3, "column": 32 }, "end": { "line": 3, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "types", "start": 124, "end": 129, "loc": { "start": { "line": 3, "column": 34 }, "end": { "line": 3, "column": 39 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 130, "end": 131, "loc": { "start": { "line": 3, "column": 40 }, "end": { "line": 3, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 132, "end": 136, "loc": { "start": { "line": 3, "column": 42 }, "end": { "line": 3, "column": 46 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../savegame/serialization", "start": 137, "end": 164, "loc": { "start": { "line": 3, "column": 47 }, "end": { "line": 3, "column": 74 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 164, "end": 165, "loc": { "start": { "line": 3, "column": 74 }, "end": { "line": 3, "column": 75 } } }, { "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": 167, "end": 173, "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": 174, "end": 175, "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": "BaseItem", "start": 176, "end": 184, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 185, "end": 186, "loc": { "start": { "line": 4, "column": 18 }, "end": { "line": 4, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 187, "end": 191, "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 24 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./base_item", "start": 192, "end": 205, "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 4, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 205, "end": 206, "loc": { "start": { "line": 4, "column": 38 }, "end": { "line": 4, "column": 39 } } }, { "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": 208, "end": 214, "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": 215, "end": 216, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Entity", "start": 217, "end": 223, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 224, "end": 225, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 226, "end": 230, "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 22 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./entity", "start": 231, "end": 241, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 241, "end": 242, "loc": { "start": { "line": 5, "column": 33 }, "end": { "line": 5, "column": 34 } } }, { "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": 244, "end": 250, "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": 251, "end": 252, "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": "MapChunkView", "start": 253, "end": 265, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 266, "end": 267, "loc": { "start": { "line": 6, "column": 22 }, "end": { "line": 6, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 268, "end": 272, "loc": { "start": { "line": 6, "column": 24 }, "end": { "line": 6, "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": 273, "end": 291, "loc": { "start": { "line": 6, "column": 29 }, "end": { "line": 6, "column": 47 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 291, "end": 292, "loc": { "start": { "line": 6, "column": 47 }, "end": { "line": 6, "column": 48 } } }, { "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": 294, "end": 300, "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": 301, "end": 302, "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": "GameRoot", "start": 303, "end": 311, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 312, "end": 313, "loc": { "start": { "line": 7, "column": 18 }, "end": { "line": 7, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 314, "end": 318, "loc": { "start": { "line": 7, "column": 20 }, "end": { "line": 7, "column": 24 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./root", "start": 319, "end": 327, "loc": { "start": { "line": 7, "column": 25 }, "end": { "line": 7, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 327, "end": 328, "loc": { "start": { "line": 7, "column": 33 }, "end": { "line": 7, "column": 34 } } }, { "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": 332, "end": 338, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "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": 339, "end": 344, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 9, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BaseMap", "start": 345, "end": 352, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 20 } } }, { "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": 353, "end": 360, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BasicSerializableObject", "start": 361, "end": 384, "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 52 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 385, "end": 386, "loc": { "start": { "line": 9, "column": 53 }, "end": { "line": 9, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 392, "end": 398, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getId", "start": 399, "end": 404, "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 10, "column": 16 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 404, "end": 405, "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 17 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 405, "end": 406, "loc": { "start": { "line": 10, "column": 17 }, "end": { "line": 10, "column": 18 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 407, "end": 408, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "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": 418, "end": 424, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 14 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Map", "start": 425, "end": 430, "loc": { "start": { "line": 11, "column": 15 }, "end": { "line": 11, "column": 20 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 430, "end": 431, "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 437, "end": 438, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 446, "end": 452, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getSchema", "start": 453, "end": 462, "loc": { "start": { "line": 14, "column": 11 }, "end": { "line": 14, "column": 20 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 462, "end": 463, "loc": { "start": { "line": 14, "column": 20 }, "end": { "line": 14, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 463, "end": 464, "loc": { "start": { "line": 14, "column": 21 }, "end": { "line": 14, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 465, "end": 466, "loc": { "start": { "line": 14, "column": 23 }, "end": { "line": 14, "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": 476, "end": 482, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 14 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 483, "end": 484, "loc": { "start": { "line": 15, "column": 15 }, "end": { "line": 15, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "seed", "start": 498, "end": 502, "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 16 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 502, "end": 503, "loc": { "start": { "line": 16, "column": 16 }, "end": { "line": 16, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "types", "start": 504, "end": 509, "loc": { "start": { "line": 16, "column": 18 }, "end": { "line": 16, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 509, "end": 510, "loc": { "start": { "line": 16, "column": 23 }, "end": { "line": 16, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uint", "start": 510, "end": 514, "loc": { "start": { "line": 16, "column": 24 }, "end": { "line": 16, "column": 28 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 514, "end": 515, "loc": { "start": { "line": 16, "column": 28 }, "end": { "line": 16, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 525, "end": 526, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 9 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 526, "end": 527, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 10 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 533, "end": 534, "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 18, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {GameRoot} root\r\n ", "start": 542, "end": 593, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 23, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 599, "end": 610, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 610, "end": 611, "loc": { "start": { "line": 24, "column": 15 }, "end": { "line": 24, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 611, "end": 615, "loc": { "start": { "line": 24, "column": 16 }, "end": { "line": 24, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 615, "end": 616, "loc": { "start": { "line": 24, "column": 20 }, "end": { "line": 24, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 617, "end": 618, "loc": { "start": { "line": 24, "column": 22 }, "end": { "line": 24, "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": 628, "end": 633, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 633, "end": 634, "loc": { "start": { "line": 25, "column": 13 }, "end": { "line": 25, "column": 14 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 634, "end": 635, "loc": { "start": { "line": 25, "column": 14 }, "end": { "line": 25, "column": 15 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 635, "end": 636, "loc": { "start": { "line": 25, "column": 15 }, "end": { "line": 25, "column": 16 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 646, "end": 650, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 650, "end": 651, "loc": { "start": { "line": 26, "column": 12 }, "end": { "line": 26, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 651, "end": 655, "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 656, "end": 657, "loc": { "start": { "line": 26, "column": 18 }, "end": { "line": 26, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 658, "end": 662, "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 662, "end": 663, "loc": { "start": { "line": 26, "column": 24 }, "end": { "line": 26, "column": 25 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 675, "end": 679, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 679, "end": 680, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "seed", "start": 680, "end": 684, "loc": { "start": { "line": 28, "column": 13 }, "end": { "line": 28, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 685, "end": 686, "loc": { "start": { "line": 28, "column": 18 }, "end": { "line": 28, "column": 19 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 687, "end": 688, "loc": { "start": { "line": 28, "column": 20 }, "end": { "line": 28, "column": 21 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 688, "end": 689, "loc": { "start": { "line": 28, "column": 21 }, "end": { "line": 28, "column": 22 } } }, { "type": "CommentBlock", "value": "*\r\n * Mapping of 'X|Y' to chunk\r\n * @type {Map} ", "start": 701, "end": 791, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 32, "column": 47 } } }, { "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": 801, "end": 805, "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 805, "end": 806, "loc": { "start": { "line": 33, "column": 12 }, "end": { "line": 33, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunksById", "start": 806, "end": 816, "loc": { "start": { "line": 33, "column": 13 }, "end": { "line": 33, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 817, "end": 818, "loc": { "start": { "line": 33, "column": 24 }, "end": { "line": 33, "column": 25 } } }, { "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": 819, "end": 822, "loc": { "start": { "line": 33, "column": 26 }, "end": { "line": 33, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Map", "start": 823, "end": 826, "loc": { "start": { "line": 33, "column": 30 }, "end": { "line": 33, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 826, "end": 827, "loc": { "start": { "line": 33, "column": 33 }, "end": { "line": 33, "column": 34 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 827, "end": 828, "loc": { "start": { "line": 33, "column": 34 }, "end": { "line": 33, "column": 35 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 828, "end": 829, "loc": { "start": { "line": 33, "column": 35 }, "end": { "line": 33, "column": 36 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 835, "end": 836, "loc": { "start": { "line": 34, "column": 4 }, "end": { "line": 34, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns the given chunk by index\r\n * @param {number} chunkX\r\n * @param {number} chunkY\r\n ", "start": 844, "end": 959, "loc": { "start": { "line": 36, "column": 4 }, "end": { "line": 40, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getChunk", "start": 965, "end": 973, "loc": { "start": { "line": 41, "column": 4 }, "end": { "line": 41, "column": 12 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 973, "end": 974, "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkX", "start": 974, "end": 980, "loc": { "start": { "line": 41, "column": 13 }, "end": { "line": 41, "column": 19 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 980, "end": 981, "loc": { "start": { "line": 41, "column": 19 }, "end": { "line": 41, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkY", "start": 982, "end": 988, "loc": { "start": { "line": 41, "column": 21 }, "end": { "line": 41, "column": 27 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 988, "end": 989, "loc": { "start": { "line": 41, "column": 27 }, "end": { "line": 41, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "createIfNotExistent", "start": 990, "end": 1009, "loc": { "start": { "line": 41, "column": 29 }, "end": { "line": 41, "column": 48 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1010, "end": 1011, "loc": { "start": { "line": 41, "column": 49 }, "end": { "line": 41, "column": 50 } } }, { "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": 1012, "end": 1017, "loc": { "start": { "line": 41, "column": 51 }, "end": { "line": 41, "column": 56 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1017, "end": 1018, "loc": { "start": { "line": 41, "column": 56 }, "end": { "line": 41, "column": 57 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1019, "end": 1020, "loc": { "start": { "line": 41, "column": 58 }, "end": { "line": 41, "column": 59 } } }, { "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": 1030, "end": 1035, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkIdentifier", "start": 1036, "end": 1051, "loc": { "start": { "line": 42, "column": 14 }, "end": { "line": 42, "column": 29 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1052, "end": 1053, "loc": { "start": { "line": 42, "column": 30 }, "end": { "line": 42, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkX", "start": 1054, "end": 1060, "loc": { "start": { "line": 42, "column": 32 }, "end": { "line": 42, "column": 38 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 1061, "end": 1062, "loc": { "start": { "line": 42, "column": 39 }, "end": { "line": 42, "column": 40 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "|", "start": 1063, "end": 1066, "loc": { "start": { "line": 42, "column": 41 }, "end": { "line": 42, "column": 44 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 1067, "end": 1068, "loc": { "start": { "line": 42, "column": 45 }, "end": { "line": 42, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkY", "start": 1069, "end": 1075, "loc": { "start": { "line": 42, "column": 47 }, "end": { "line": 42, "column": 53 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1075, "end": 1076, "loc": { "start": { "line": 42, "column": 53 }, "end": { "line": 42, "column": 54 } } }, { "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": 1086, "end": 1089, "loc": { "start": { "line": 43, "column": 8 }, "end": { "line": 43, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "storedChunk", "start": 1090, "end": 1101, "loc": { "start": { "line": 43, "column": 12 }, "end": { "line": 43, "column": 23 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1101, "end": 1102, "loc": { "start": { "line": 43, "column": 23 }, "end": { "line": 43, "column": 24 } } }, { "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": 1114, "end": 1116, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 45, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1117, "end": 1118, "loc": { "start": { "line": 45, "column": 11 }, "end": { "line": 45, "column": 12 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1118, "end": 1119, "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": "storedChunk", "start": 1119, "end": 1130, "loc": { "start": { "line": 45, "column": 13 }, "end": { "line": 45, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1131, "end": 1132, "loc": { "start": { "line": 45, "column": 25 }, "end": { "line": 45, "column": 26 } } }, { "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": 1133, "end": 1137, "loc": { "start": { "line": 45, "column": 27 }, "end": { "line": 45, "column": 31 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1137, "end": 1138, "loc": { "start": { "line": 45, "column": 31 }, "end": { "line": 45, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunksById", "start": 1138, "end": 1148, "loc": { "start": { "line": 45, "column": 32 }, "end": { "line": 45, "column": 42 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1148, "end": 1149, "loc": { "start": { "line": 45, "column": 42 }, "end": { "line": 45, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "get", "start": 1149, "end": 1152, "loc": { "start": { "line": 45, "column": 43 }, "end": { "line": 45, "column": 46 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1152, "end": 1153, "loc": { "start": { "line": 45, "column": 46 }, "end": { "line": 45, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkIdentifier", "start": 1153, "end": 1168, "loc": { "start": { "line": 45, "column": 47 }, "end": { "line": 45, "column": 62 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1168, "end": 1169, "loc": { "start": { "line": 45, "column": 62 }, "end": { "line": 45, "column": 63 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1169, "end": 1170, "loc": { "start": { "line": 45, "column": 63 }, "end": { "line": 45, "column": 64 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1170, "end": 1171, "loc": { "start": { "line": 45, "column": 64 }, "end": { "line": 45, "column": 65 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1172, "end": 1173, "loc": { "start": { "line": 45, "column": 66 }, "end": { "line": 45, "column": 67 } } }, { "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": 1187, "end": 1193, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "storedChunk", "start": 1194, "end": 1205, "loc": { "start": { "line": 46, "column": 19 }, "end": { "line": 46, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1205, "end": 1206, "loc": { "start": { "line": 46, "column": 30 }, "end": { "line": 46, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1216, "end": 1217, "loc": { "start": { "line": 47, "column": 8 }, "end": { "line": 47, "column": 9 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 1229, "end": 1231, "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 49, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1232, "end": 1233, "loc": { "start": { "line": 49, "column": 11 }, "end": { "line": 49, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "createIfNotExistent", "start": 1233, "end": 1252, "loc": { "start": { "line": 49, "column": 12 }, "end": { "line": 49, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1252, "end": 1253, "loc": { "start": { "line": 49, "column": 31 }, "end": { "line": 49, "column": 32 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1254, "end": 1255, "loc": { "start": { "line": 49, "column": 33 }, "end": { "line": 49, "column": 34 } } }, { "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": 1269, "end": 1274, "loc": { "start": { "line": 50, "column": 12 }, "end": { "line": 50, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "instance", "start": 1275, "end": 1283, "loc": { "start": { "line": 50, "column": 18 }, "end": { "line": 50, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1284, "end": 1285, "loc": { "start": { "line": 50, "column": 27 }, "end": { "line": 50, "column": 28 } } }, { "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": 1286, "end": 1289, "loc": { "start": { "line": 50, "column": 29 }, "end": { "line": 50, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "MapChunkView", "start": 1290, "end": 1302, "loc": { "start": { "line": 50, "column": 33 }, "end": { "line": 50, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1302, "end": 1303, "loc": { "start": { "line": 50, "column": 45 }, "end": { "line": 50, "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": 1303, "end": 1307, "loc": { "start": { "line": 50, "column": 46 }, "end": { "line": 50, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1307, "end": 1308, "loc": { "start": { "line": 50, "column": 50 }, "end": { "line": 50, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 1308, "end": 1312, "loc": { "start": { "line": 50, "column": 51 }, "end": { "line": 50, "column": 55 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1312, "end": 1313, "loc": { "start": { "line": 50, "column": 55 }, "end": { "line": 50, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkX", "start": 1314, "end": 1320, "loc": { "start": { "line": 50, "column": 57 }, "end": { "line": 50, "column": 63 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1320, "end": 1321, "loc": { "start": { "line": 50, "column": 63 }, "end": { "line": 50, "column": 64 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkY", "start": 1322, "end": 1328, "loc": { "start": { "line": 50, "column": 65 }, "end": { "line": 50, "column": 71 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1328, "end": 1329, "loc": { "start": { "line": 50, "column": 71 }, "end": { "line": 50, "column": 72 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1329, "end": 1330, "loc": { "start": { "line": 50, "column": 72 }, "end": { "line": 50, "column": 73 } } }, { "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": 1344, "end": 1348, "loc": { "start": { "line": 51, "column": 12 }, "end": { "line": 51, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1348, "end": 1349, "loc": { "start": { "line": 51, "column": 16 }, "end": { "line": 51, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunksById", "start": 1349, "end": 1359, "loc": { "start": { "line": 51, "column": 17 }, "end": { "line": 51, "column": 27 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1359, "end": 1360, "loc": { "start": { "line": 51, "column": 27 }, "end": { "line": 51, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "set", "start": 1360, "end": 1363, "loc": { "start": { "line": 51, "column": 28 }, "end": { "line": 51, "column": 31 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1363, "end": 1364, "loc": { "start": { "line": 51, "column": 31 }, "end": { "line": 51, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkIdentifier", "start": 1364, "end": 1379, "loc": { "start": { "line": 51, "column": 32 }, "end": { "line": 51, "column": 47 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1379, "end": 1380, "loc": { "start": { "line": 51, "column": 47 }, "end": { "line": 51, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "instance", "start": 1381, "end": 1389, "loc": { "start": { "line": 51, "column": 49 }, "end": { "line": 51, "column": 57 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1389, "end": 1390, "loc": { "start": { "line": 51, "column": 57 }, "end": { "line": 51, "column": 58 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1390, "end": 1391, "loc": { "start": { "line": 51, "column": 58 }, "end": { "line": 51, "column": 59 } } }, { "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": 1405, "end": 1411, "loc": { "start": { "line": 52, "column": 12 }, "end": { "line": 52, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "instance", "start": 1412, "end": 1420, "loc": { "start": { "line": 52, "column": 19 }, "end": { "line": 52, "column": 27 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1420, "end": 1421, "loc": { "start": { "line": 52, "column": 27 }, "end": { "line": 52, "column": 28 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1431, "end": 1432, "loc": { "start": { "line": 53, "column": 8 }, "end": { "line": 53, "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": 1444, "end": 1450, "loc": { "start": { "line": 55, "column": 8 }, "end": { "line": 55, "column": 14 } } }, { "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": 1451, "end": 1455, "loc": { "start": { "line": 55, "column": 15 }, "end": { "line": 55, "column": 19 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1455, "end": 1456, "loc": { "start": { "line": 55, "column": 19 }, "end": { "line": 55, "column": 20 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1462, "end": 1463, "loc": { "start": { "line": 56, "column": 4 }, "end": { "line": 56, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Gets or creates a new chunk if not existent for the given tile\r\n * @param {number} tileX\r\n * @param {number} tileY\r\n * @returns {MapChunkView}\r\n ", "start": 1471, "end": 1646, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 63, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getOrCreateChunkAtTile", "start": 1652, "end": 1674, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 26 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1674, "end": 1675, "loc": { "start": { "line": 64, "column": 26 }, "end": { "line": 64, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileX", "start": 1675, "end": 1680, "loc": { "start": { "line": 64, "column": 27 }, "end": { "line": 64, "column": 32 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1680, "end": 1681, "loc": { "start": { "line": 64, "column": 32 }, "end": { "line": 64, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileY", "start": 1682, "end": 1687, "loc": { "start": { "line": 64, "column": 34 }, "end": { "line": 64, "column": 39 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1687, "end": 1688, "loc": { "start": { "line": 64, "column": 39 }, "end": { "line": 64, "column": 40 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1689, "end": 1690, "loc": { "start": { "line": 64, "column": 41 }, "end": { "line": 64, "column": 42 } } }, { "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": 1700, "end": 1705, "loc": { "start": { "line": 65, "column": 8 }, "end": { "line": 65, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkX", "start": 1706, "end": 1712, "loc": { "start": { "line": 65, "column": 14 }, "end": { "line": 65, "column": 20 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1713, "end": 1714, "loc": { "start": { "line": 65, "column": 21 }, "end": { "line": 65, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 1715, "end": 1719, "loc": { "start": { "line": 65, "column": 23 }, "end": { "line": 65, "column": 27 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1719, "end": 1720, "loc": { "start": { "line": 65, "column": 27 }, "end": { "line": 65, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "floor", "start": 1720, "end": 1725, "loc": { "start": { "line": 65, "column": 28 }, "end": { "line": 65, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1725, "end": 1726, "loc": { "start": { "line": 65, "column": 33 }, "end": { "line": 65, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileX", "start": 1726, "end": 1731, "loc": { "start": { "line": 65, "column": 34 }, "end": { "line": 65, "column": 39 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 1732, "end": 1733, "loc": { "start": { "line": 65, "column": 40 }, "end": { "line": 65, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 1734, "end": 1746, "loc": { "start": { "line": 65, "column": 42 }, "end": { "line": 65, "column": 54 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1746, "end": 1747, "loc": { "start": { "line": 65, "column": 54 }, "end": { "line": 65, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mapChunkSize", "start": 1747, "end": 1759, "loc": { "start": { "line": 65, "column": 55 }, "end": { "line": 65, "column": 67 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1759, "end": 1760, "loc": { "start": { "line": 65, "column": 67 }, "end": { "line": 65, "column": 68 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1760, "end": 1761, "loc": { "start": { "line": 65, "column": 68 }, "end": { "line": 65, "column": 69 } } }, { "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": 1771, "end": 1776, "loc": { "start": { "line": 66, "column": 8 }, "end": { "line": 66, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkY", "start": 1777, "end": 1783, "loc": { "start": { "line": 66, "column": 14 }, "end": { "line": 66, "column": 20 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1784, "end": 1785, "loc": { "start": { "line": 66, "column": 21 }, "end": { "line": 66, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 1786, "end": 1790, "loc": { "start": { "line": 66, "column": 23 }, "end": { "line": 66, "column": 27 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1790, "end": 1791, "loc": { "start": { "line": 66, "column": 27 }, "end": { "line": 66, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "floor", "start": 1791, "end": 1796, "loc": { "start": { "line": 66, "column": 28 }, "end": { "line": 66, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1796, "end": 1797, "loc": { "start": { "line": 66, "column": 33 }, "end": { "line": 66, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileY", "start": 1797, "end": 1802, "loc": { "start": { "line": 66, "column": 34 }, "end": { "line": 66, "column": 39 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 1803, "end": 1804, "loc": { "start": { "line": 66, "column": 40 }, "end": { "line": 66, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 1805, "end": 1817, "loc": { "start": { "line": 66, "column": 42 }, "end": { "line": 66, "column": 54 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1817, "end": 1818, "loc": { "start": { "line": 66, "column": 54 }, "end": { "line": 66, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mapChunkSize", "start": 1818, "end": 1830, "loc": { "start": { "line": 66, "column": 55 }, "end": { "line": 66, "column": 67 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1830, "end": 1831, "loc": { "start": { "line": 66, "column": 67 }, "end": { "line": 66, "column": 68 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1831, "end": 1832, "loc": { "start": { "line": 66, "column": 68 }, "end": { "line": 66, "column": 69 } } }, { "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": 1842, "end": 1848, "loc": { "start": { "line": 67, "column": 8 }, "end": { "line": 67, "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": 1849, "end": 1853, "loc": { "start": { "line": 67, "column": 15 }, "end": { "line": 67, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1853, "end": 1854, "loc": { "start": { "line": 67, "column": 19 }, "end": { "line": 67, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getChunk", "start": 1854, "end": 1862, "loc": { "start": { "line": 67, "column": 20 }, "end": { "line": 67, "column": 28 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1862, "end": 1863, "loc": { "start": { "line": 67, "column": 28 }, "end": { "line": 67, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkX", "start": 1863, "end": 1869, "loc": { "start": { "line": 67, "column": 29 }, "end": { "line": 67, "column": 35 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1869, "end": 1870, "loc": { "start": { "line": 67, "column": 35 }, "end": { "line": 67, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkY", "start": 1871, "end": 1877, "loc": { "start": { "line": 67, "column": 37 }, "end": { "line": 67, "column": 43 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1877, "end": 1878, "loc": { "start": { "line": 67, "column": 43 }, "end": { "line": 67, "column": 44 } } }, { "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": 1879, "end": 1883, "loc": { "start": { "line": 67, "column": 45 }, "end": { "line": 67, "column": 49 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1883, "end": 1884, "loc": { "start": { "line": 67, "column": 49 }, "end": { "line": 67, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1884, "end": 1885, "loc": { "start": { "line": 67, "column": 50 }, "end": { "line": 67, "column": 51 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1891, "end": 1892, "loc": { "start": { "line": 68, "column": 4 }, "end": { "line": 68, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Gets a chunk if not existent for the given tile\r\n * @param {number} tileX\r\n * @param {number} tileY\r\n * @returns {MapChunkView?}\r\n ", "start": 1900, "end": 2061, "loc": { "start": { "line": 70, "column": 4 }, "end": { "line": 75, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getChunkAtTileOrNull", "start": 2067, "end": 2087, "loc": { "start": { "line": 76, "column": 4 }, "end": { "line": 76, "column": 24 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2087, "end": 2088, "loc": { "start": { "line": 76, "column": 24 }, "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": "tileX", "start": 2088, "end": 2093, "loc": { "start": { "line": 76, "column": 25 }, "end": { "line": 76, "column": 30 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2093, "end": 2094, "loc": { "start": { "line": 76, "column": 30 }, "end": { "line": 76, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileY", "start": 2095, "end": 2100, "loc": { "start": { "line": 76, "column": 32 }, "end": { "line": 76, "column": 37 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2100, "end": 2101, "loc": { "start": { "line": 76, "column": 37 }, "end": { "line": 76, "column": 38 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2102, "end": 2103, "loc": { "start": { "line": 76, "column": 39 }, "end": { "line": 76, "column": 40 } } }, { "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": 2113, "end": 2118, "loc": { "start": { "line": 77, "column": 8 }, "end": { "line": 77, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkX", "start": 2119, "end": 2125, "loc": { "start": { "line": 77, "column": 14 }, "end": { "line": 77, "column": 20 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2126, "end": 2127, "loc": { "start": { "line": 77, "column": 21 }, "end": { "line": 77, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 2128, "end": 2132, "loc": { "start": { "line": 77, "column": 23 }, "end": { "line": 77, "column": 27 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2132, "end": 2133, "loc": { "start": { "line": 77, "column": 27 }, "end": { "line": 77, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "floor", "start": 2133, "end": 2138, "loc": { "start": { "line": 77, "column": 28 }, "end": { "line": 77, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2138, "end": 2139, "loc": { "start": { "line": 77, "column": 33 }, "end": { "line": 77, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileX", "start": 2139, "end": 2144, "loc": { "start": { "line": 77, "column": 34 }, "end": { "line": 77, "column": 39 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 2145, "end": 2146, "loc": { "start": { "line": 77, "column": 40 }, "end": { "line": 77, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 2147, "end": 2159, "loc": { "start": { "line": 77, "column": 42 }, "end": { "line": 77, "column": 54 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2159, "end": 2160, "loc": { "start": { "line": 77, "column": 54 }, "end": { "line": 77, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mapChunkSize", "start": 2160, "end": 2172, "loc": { "start": { "line": 77, "column": 55 }, "end": { "line": 77, "column": 67 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2172, "end": 2173, "loc": { "start": { "line": 77, "column": 67 }, "end": { "line": 77, "column": 68 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2173, "end": 2174, "loc": { "start": { "line": 77, "column": 68 }, "end": { "line": 77, "column": 69 } } }, { "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": 2184, "end": 2189, "loc": { "start": { "line": 78, "column": 8 }, "end": { "line": 78, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkY", "start": 2190, "end": 2196, "loc": { "start": { "line": 78, "column": 14 }, "end": { "line": 78, "column": 20 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2197, "end": 2198, "loc": { "start": { "line": 78, "column": 21 }, "end": { "line": 78, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 2199, "end": 2203, "loc": { "start": { "line": 78, "column": 23 }, "end": { "line": 78, "column": 27 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2203, "end": 2204, "loc": { "start": { "line": 78, "column": 27 }, "end": { "line": 78, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "floor", "start": 2204, "end": 2209, "loc": { "start": { "line": 78, "column": 28 }, "end": { "line": 78, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2209, "end": 2210, "loc": { "start": { "line": 78, "column": 33 }, "end": { "line": 78, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tileY", "start": 2210, "end": 2215, "loc": { "start": { "line": 78, "column": 34 }, "end": { "line": 78, "column": 39 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 2216, "end": 2217, "loc": { "start": { "line": 78, "column": 40 }, "end": { "line": 78, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 2218, "end": 2230, "loc": { "start": { "line": 78, "column": 42 }, "end": { "line": 78, "column": 54 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2230, "end": 2231, "loc": { "start": { "line": 78, "column": 54 }, "end": { "line": 78, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mapChunkSize", "start": 2231, "end": 2243, "loc": { "start": { "line": 78, "column": 55 }, "end": { "line": 78, "column": 67 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2243, "end": 2244, "loc": { "start": { "line": 78, "column": 67 }, "end": { "line": 78, "column": 68 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2244, "end": 2245, "loc": { "start": { "line": 78, "column": 68 }, "end": { "line": 78, "column": 69 } } }, { "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": 2255, "end": 2261, "loc": { "start": { "line": 79, "column": 8 }, "end": { "line": 79, "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": 2262, "end": 2266, "loc": { "start": { "line": 79, "column": 15 }, "end": { "line": 79, "column": 19 } } }, { "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": 79, "column": 19 }, "end": { "line": 79, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getChunk", "start": 2267, "end": 2275, "loc": { "start": { "line": 79, "column": 20 }, "end": { "line": 79, "column": 28 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2275, "end": 2276, "loc": { "start": { "line": 79, "column": 28 }, "end": { "line": 79, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkX", "start": 2276, "end": 2282, "loc": { "start": { "line": 79, "column": 29 }, "end": { "line": 79, "column": 35 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2282, "end": 2283, "loc": { "start": { "line": 79, "column": 35 }, "end": { "line": 79, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunkY", "start": 2284, "end": 2290, "loc": { "start": { "line": 79, "column": 37 }, "end": { "line": 79, "column": 43 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2290, "end": 2291, "loc": { "start": { "line": 79, "column": 43 }, "end": { "line": 79, "column": 44 } } }, { "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": 2292, "end": 2297, "loc": { "start": { "line": 79, "column": 45 }, "end": { "line": 79, "column": 50 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2297, "end": 2298, "loc": { "start": { "line": 79, "column": 50 }, "end": { "line": 79, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2298, "end": 2299, "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 }, "start": 2305, "end": 2306, "loc": { "start": { "line": 80, "column": 4 }, "end": { "line": 80, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if a given tile is within the map bounds\r\n * @param {Vector} tile\r\n * @returns {boolean}\r\n ", "start": 2314, "end": 2438, "loc": { "start": { "line": 82, "column": 4 }, "end": { "line": 86, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "isValidTile", "start": 2444, "end": 2455, "loc": { "start": { "line": 87, "column": 4 }, "end": { "line": 87, "column": 15 } } }, { "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": 87, "column": 15 }, "end": { "line": 87, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 2456, "end": 2460, "loc": { "start": { "line": 87, "column": 16 }, "end": { "line": 87, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2460, "end": 2461, "loc": { "start": { "line": 87, "column": 20 }, "end": { "line": 87, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2462, "end": 2463, "loc": { "start": { "line": 87, "column": 22 }, "end": { "line": 87, "column": 23 } } }, { "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": 2473, "end": 2475, "loc": { "start": { "line": 88, "column": 8 }, "end": { "line": 88, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2476, "end": 2477, "loc": { "start": { "line": 88, "column": 11 }, "end": { "line": 88, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "G_IS_DEV", "start": 2477, "end": 2485, "loc": { "start": { "line": 88, "column": 12 }, "end": { "line": 88, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2485, "end": 2486, "loc": { "start": { "line": 88, "column": 20 }, "end": { "line": 88, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2487, "end": 2488, "loc": { "start": { "line": 88, "column": 22 }, "end": { "line": 88, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 2502, "end": 2508, "loc": { "start": { "line": 89, "column": 12 }, "end": { "line": 89, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2508, "end": 2509, "loc": { "start": { "line": 89, "column": 18 }, "end": { "line": 89, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 2509, "end": 2513, "loc": { "start": { "line": 89, "column": 19 }, "end": { "line": 89, "column": 23 } } }, { "type": { "label": "instanceof", "keyword": "instanceof", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "instanceof", "start": 2514, "end": 2524, "loc": { "start": { "line": 89, "column": 24 }, "end": { "line": 89, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Vector", "start": 2525, "end": 2531, "loc": { "start": { "line": 89, "column": 35 }, "end": { "line": 89, "column": 41 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2531, "end": 2532, "loc": { "start": { "line": 89, "column": 41 }, "end": { "line": 89, "column": 42 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "tile is not a vector", "start": 2533, "end": 2555, "loc": { "start": { "line": 89, "column": 43 }, "end": { "line": 89, "column": 65 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2555, "end": 2556, "loc": { "start": { "line": 89, "column": 65 }, "end": { "line": 89, "column": 66 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2556, "end": 2557, "loc": { "start": { "line": 89, "column": 66 }, "end": { "line": 89, "column": 67 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2567, "end": 2568, "loc": { "start": { "line": 90, "column": 8 }, "end": { "line": 90, "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": 2578, "end": 2584, "loc": { "start": { "line": 91, "column": 8 }, "end": { "line": 91, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Number", "start": 2585, "end": 2591, "loc": { "start": { "line": 91, "column": 15 }, "end": { "line": 91, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2591, "end": 2592, "loc": { "start": { "line": 91, "column": 21 }, "end": { "line": 91, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "isInteger", "start": 2592, "end": 2601, "loc": { "start": { "line": 91, "column": 22 }, "end": { "line": 91, "column": 31 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2601, "end": 2602, "loc": { "start": { "line": 91, "column": 31 }, "end": { "line": 91, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 2602, "end": 2606, "loc": { "start": { "line": 91, "column": 32 }, "end": { "line": 91, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2606, "end": 2607, "loc": { "start": { "line": 91, "column": 36 }, "end": { "line": 91, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 2607, "end": 2608, "loc": { "start": { "line": 91, "column": 37 }, "end": { "line": 91, "column": 38 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2608, "end": 2609, "loc": { "start": { "line": 91, "column": 38 }, "end": { "line": 91, "column": 39 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 2610, "end": 2612, "loc": { "start": { "line": 91, "column": 40 }, "end": { "line": 91, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Number", "start": 2613, "end": 2619, "loc": { "start": { "line": 91, "column": 43 }, "end": { "line": 91, "column": 49 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2619, "end": 2620, "loc": { "start": { "line": 91, "column": 49 }, "end": { "line": 91, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "isInteger", "start": 2620, "end": 2629, "loc": { "start": { "line": 91, "column": 50 }, "end": { "line": 91, "column": 59 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2629, "end": 2630, "loc": { "start": { "line": 91, "column": 59 }, "end": { "line": 91, "column": 60 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 2630, "end": 2634, "loc": { "start": { "line": 91, "column": 60 }, "end": { "line": 91, "column": 64 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2634, "end": 2635, "loc": { "start": { "line": 91, "column": 64 }, "end": { "line": 91, "column": 65 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 2635, "end": 2636, "loc": { "start": { "line": 91, "column": 65 }, "end": { "line": 91, "column": 66 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2636, "end": 2637, "loc": { "start": { "line": 91, "column": 66 }, "end": { "line": 91, "column": 67 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2637, "end": 2638, "loc": { "start": { "line": 91, "column": 67 }, "end": { "line": 91, "column": 68 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2644, "end": 2645, "loc": { "start": { "line": 92, "column": 4 }, "end": { "line": 92, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns the tile content of a given tile\r\n * @param {Vector} tile\r\n * @param {Layer} layer\r\n * @returns {Entity} Entity or null\r\n ", "start": 2653, "end": 2813, "loc": { "start": { "line": 94, "column": 4 }, "end": { "line": 99, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getTileContent", "start": 2819, "end": 2833, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 100, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2833, "end": 2834, "loc": { "start": { "line": 100, "column": 18 }, "end": { "line": 100, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 2834, "end": 2838, "loc": { "start": { "line": 100, "column": 19 }, "end": { "line": 100, "column": 23 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2838, "end": 2839, "loc": { "start": { "line": 100, "column": 23 }, "end": { "line": 100, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 2840, "end": 2845, "loc": { "start": { "line": 100, "column": 25 }, "end": { "line": 100, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2845, "end": 2846, "loc": { "start": { "line": 100, "column": 30 }, "end": { "line": 100, "column": 31 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2847, "end": 2848, "loc": { "start": { "line": 100, "column": 32 }, "end": { "line": 100, "column": 33 } } }, { "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": 2858, "end": 2860, "loc": { "start": { "line": 101, "column": 8 }, "end": { "line": 101, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2861, "end": 2862, "loc": { "start": { "line": 101, "column": 11 }, "end": { "line": 101, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "G_IS_DEV", "start": 2862, "end": 2870, "loc": { "start": { "line": 101, "column": 12 }, "end": { "line": 101, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2870, "end": 2871, "loc": { "start": { "line": 101, "column": 20 }, "end": { "line": 101, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2872, "end": 2873, "loc": { "start": { "line": 101, "column": 22 }, "end": { "line": 101, "column": 23 } } }, { "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": 2887, "end": 2891, "loc": { "start": { "line": 102, "column": 12 }, "end": { "line": 102, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2891, "end": 2892, "loc": { "start": { "line": 102, "column": 16 }, "end": { "line": 102, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalCheckTile", "start": 2892, "end": 2909, "loc": { "start": { "line": 102, "column": 17 }, "end": { "line": 102, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2909, "end": 2910, "loc": { "start": { "line": 102, "column": 34 }, "end": { "line": 102, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 2910, "end": 2914, "loc": { "start": { "line": 102, "column": 35 }, "end": { "line": 102, "column": 39 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2914, "end": 2915, "loc": { "start": { "line": 102, "column": 39 }, "end": { "line": 102, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2915, "end": 2916, "loc": { "start": { "line": 102, "column": 40 }, "end": { "line": 102, "column": 41 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2926, "end": 2927, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 103, "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": 2937, "end": 2942, "loc": { "start": { "line": 104, "column": 8 }, "end": { "line": 104, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 2943, "end": 2948, "loc": { "start": { "line": 104, "column": 14 }, "end": { "line": 104, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2949, "end": 2950, "loc": { "start": { "line": 104, "column": 20 }, "end": { "line": 104, "column": 21 } } }, { "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": 2951, "end": 2955, "loc": { "start": { "line": 104, "column": 22 }, "end": { "line": 104, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2955, "end": 2956, "loc": { "start": { "line": 104, "column": 26 }, "end": { "line": 104, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getChunkAtTileOrNull", "start": 2956, "end": 2976, "loc": { "start": { "line": 104, "column": 27 }, "end": { "line": 104, "column": 47 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2976, "end": 2977, "loc": { "start": { "line": 104, "column": 47 }, "end": { "line": 104, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 2977, "end": 2981, "loc": { "start": { "line": 104, "column": 48 }, "end": { "line": 104, "column": 52 } } }, { "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": 104, "column": 52 }, "end": { "line": 104, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 2982, "end": 2983, "loc": { "start": { "line": 104, "column": 53 }, "end": { "line": 104, "column": 54 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2983, "end": 2984, "loc": { "start": { "line": 104, "column": 54 }, "end": { "line": 104, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 2985, "end": 2989, "loc": { "start": { "line": 104, "column": 56 }, "end": { "line": 104, "column": 60 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2989, "end": 2990, "loc": { "start": { "line": 104, "column": 60 }, "end": { "line": 104, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 2990, "end": 2991, "loc": { "start": { "line": 104, "column": 61 }, "end": { "line": 104, "column": 62 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2991, "end": 2992, "loc": { "start": { "line": 104, "column": 62 }, "end": { "line": 104, "column": 63 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2992, "end": 2993, "loc": { "start": { "line": 104, "column": 63 }, "end": { "line": 104, "column": 64 } } }, { "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": 3003, "end": 3009, "loc": { "start": { "line": 105, "column": 8 }, "end": { "line": 105, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 3010, "end": 3015, "loc": { "start": { "line": 105, "column": 15 }, "end": { "line": 105, "column": 20 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 3016, "end": 3018, "loc": { "start": { "line": 105, "column": 21 }, "end": { "line": 105, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 3019, "end": 3024, "loc": { "start": { "line": 105, "column": 24 }, "end": { "line": 105, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3024, "end": 3025, "loc": { "start": { "line": 105, "column": 29 }, "end": { "line": 105, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getLayerContentFromWorldCoords", "start": 3025, "end": 3055, "loc": { "start": { "line": 105, "column": 30 }, "end": { "line": 105, "column": 60 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3055, "end": 3056, "loc": { "start": { "line": 105, "column": 60 }, "end": { "line": 105, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 3056, "end": 3060, "loc": { "start": { "line": 105, "column": 61 }, "end": { "line": 105, "column": 65 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3060, "end": 3061, "loc": { "start": { "line": 105, "column": 65 }, "end": { "line": 105, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 3061, "end": 3062, "loc": { "start": { "line": 105, "column": 66 }, "end": { "line": 105, "column": 67 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3062, "end": 3063, "loc": { "start": { "line": 105, "column": 67 }, "end": { "line": 105, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 3064, "end": 3068, "loc": { "start": { "line": 105, "column": 69 }, "end": { "line": 105, "column": 73 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3068, "end": 3069, "loc": { "start": { "line": 105, "column": 73 }, "end": { "line": 105, "column": 74 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 3069, "end": 3070, "loc": { "start": { "line": 105, "column": 74 }, "end": { "line": 105, "column": 75 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3070, "end": 3071, "loc": { "start": { "line": 105, "column": 75 }, "end": { "line": 105, "column": 76 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 3072, "end": 3077, "loc": { "start": { "line": 105, "column": 77 }, "end": { "line": 105, "column": 82 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3077, "end": 3078, "loc": { "start": { "line": 105, "column": 82 }, "end": { "line": 105, "column": 83 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3078, "end": 3079, "loc": { "start": { "line": 105, "column": 83 }, "end": { "line": 105, "column": 84 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3085, "end": 3086, "loc": { "start": { "line": 106, "column": 4 }, "end": { "line": 106, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns the lower layers content of the given tile\r\n * @param {number} x\r\n * @param {number} y\r\n * @returns {BaseItem=}\r\n ", "start": 3094, "end": 3246, "loc": { "start": { "line": 108, "column": 4 }, "end": { "line": 113, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getLowerLayerContentXY", "start": 3252, "end": 3274, "loc": { "start": { "line": 114, "column": 4 }, "end": { "line": 114, "column": 26 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3274, "end": 3275, "loc": { "start": { "line": 114, "column": 26 }, "end": { "line": 114, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 3275, "end": 3276, "loc": { "start": { "line": 114, "column": 27 }, "end": { "line": 114, "column": 28 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3276, "end": 3277, "loc": { "start": { "line": 114, "column": 28 }, "end": { "line": 114, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 3278, "end": 3279, "loc": { "start": { "line": 114, "column": 30 }, "end": { "line": 114, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3279, "end": 3280, "loc": { "start": { "line": 114, "column": 31 }, "end": { "line": 114, "column": 32 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3281, "end": 3282, "loc": { "start": { "line": 114, "column": 33 }, "end": { "line": 114, "column": 34 } } }, { "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": 3292, "end": 3298, "loc": { "start": { "line": 115, "column": 8 }, "end": { "line": 115, "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": 3299, "end": 3303, "loc": { "start": { "line": 115, "column": 15 }, "end": { "line": 115, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3303, "end": 3304, "loc": { "start": { "line": 115, "column": 19 }, "end": { "line": 115, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getOrCreateChunkAtTile", "start": 3304, "end": 3326, "loc": { "start": { "line": 115, "column": 20 }, "end": { "line": 115, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3326, "end": 3327, "loc": { "start": { "line": 115, "column": 42 }, "end": { "line": 115, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 3327, "end": 3328, "loc": { "start": { "line": 115, "column": 43 }, "end": { "line": 115, "column": 44 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3328, "end": 3329, "loc": { "start": { "line": 115, "column": 44 }, "end": { "line": 115, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 3330, "end": 3331, "loc": { "start": { "line": 115, "column": 46 }, "end": { "line": 115, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3331, "end": 3332, "loc": { "start": { "line": 115, "column": 47 }, "end": { "line": 115, "column": 48 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3332, "end": 3333, "loc": { "start": { "line": 115, "column": 48 }, "end": { "line": 115, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getLowerLayerFromWorldCoords", "start": 3333, "end": 3361, "loc": { "start": { "line": 115, "column": 49 }, "end": { "line": 115, "column": 77 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3361, "end": 3362, "loc": { "start": { "line": 115, "column": 77 }, "end": { "line": 115, "column": 78 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 3362, "end": 3363, "loc": { "start": { "line": 115, "column": 78 }, "end": { "line": 115, "column": 79 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3363, "end": 3364, "loc": { "start": { "line": 115, "column": 79 }, "end": { "line": 115, "column": 80 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 3365, "end": 3366, "loc": { "start": { "line": 115, "column": 81 }, "end": { "line": 115, "column": 82 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3366, "end": 3367, "loc": { "start": { "line": 115, "column": 82 }, "end": { "line": 115, "column": 83 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3367, "end": 3368, "loc": { "start": { "line": 115, "column": 83 }, "end": { "line": 115, "column": 84 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3374, "end": 3375, "loc": { "start": { "line": 116, "column": 4 }, "end": { "line": 116, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns the tile content of a given tile\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {Layer} layer\r\n * @returns {Entity} Entity or null\r\n ", "start": 3383, "end": 3566, "loc": { "start": { "line": 118, "column": 4 }, "end": { "line": 124, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getLayerContentXY", "start": 3572, "end": 3589, "loc": { "start": { "line": 125, "column": 4 }, "end": { "line": 125, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3589, "end": 3590, "loc": { "start": { "line": 125, "column": 21 }, "end": { "line": 125, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 3590, "end": 3591, "loc": { "start": { "line": 125, "column": 22 }, "end": { "line": 125, "column": 23 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3591, "end": 3592, "loc": { "start": { "line": 125, "column": 23 }, "end": { "line": 125, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 3593, "end": 3594, "loc": { "start": { "line": 125, "column": 25 }, "end": { "line": 125, "column": 26 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3594, "end": 3595, "loc": { "start": { "line": 125, "column": 26 }, "end": { "line": 125, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 3596, "end": 3601, "loc": { "start": { "line": 125, "column": 28 }, "end": { "line": 125, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3601, "end": 3602, "loc": { "start": { "line": 125, "column": 33 }, "end": { "line": 125, "column": 34 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3603, "end": 3604, "loc": { "start": { "line": 125, "column": 35 }, "end": { "line": 125, "column": 36 } } }, { "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": 3614, "end": 3619, "loc": { "start": { "line": 126, "column": 8 }, "end": { "line": 126, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 3620, "end": 3625, "loc": { "start": { "line": 126, "column": 14 }, "end": { "line": 126, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3626, "end": 3627, "loc": { "start": { "line": 126, "column": 20 }, "end": { "line": 126, "column": 21 } } }, { "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": 3628, "end": 3632, "loc": { "start": { "line": 126, "column": 22 }, "end": { "line": 126, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3632, "end": 3633, "loc": { "start": { "line": 126, "column": 26 }, "end": { "line": 126, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getChunkAtTileOrNull", "start": 3633, "end": 3653, "loc": { "start": { "line": 126, "column": 27 }, "end": { "line": 126, "column": 47 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3653, "end": 3654, "loc": { "start": { "line": 126, "column": 47 }, "end": { "line": 126, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 3654, "end": 3655, "loc": { "start": { "line": 126, "column": 48 }, "end": { "line": 126, "column": 49 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3655, "end": 3656, "loc": { "start": { "line": 126, "column": 49 }, "end": { "line": 126, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 3657, "end": 3658, "loc": { "start": { "line": 126, "column": 51 }, "end": { "line": 126, "column": 52 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3658, "end": 3659, "loc": { "start": { "line": 126, "column": 52 }, "end": { "line": 126, "column": 53 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3659, "end": 3660, "loc": { "start": { "line": 126, "column": 53 }, "end": { "line": 126, "column": 54 } } }, { "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": 3670, "end": 3676, "loc": { "start": { "line": 127, "column": 8 }, "end": { "line": 127, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 3677, "end": 3682, "loc": { "start": { "line": 127, "column": 15 }, "end": { "line": 127, "column": 20 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 3683, "end": 3685, "loc": { "start": { "line": 127, "column": 21 }, "end": { "line": 127, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 3686, "end": 3691, "loc": { "start": { "line": 127, "column": 24 }, "end": { "line": 127, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3691, "end": 3692, "loc": { "start": { "line": 127, "column": 29 }, "end": { "line": 127, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getLayerContentFromWorldCoords", "start": 3692, "end": 3722, "loc": { "start": { "line": 127, "column": 30 }, "end": { "line": 127, "column": 60 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3722, "end": 3723, "loc": { "start": { "line": 127, "column": 60 }, "end": { "line": 127, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 3723, "end": 3724, "loc": { "start": { "line": 127, "column": 61 }, "end": { "line": 127, "column": 62 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3724, "end": 3725, "loc": { "start": { "line": 127, "column": 62 }, "end": { "line": 127, "column": 63 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 3726, "end": 3727, "loc": { "start": { "line": 127, "column": 64 }, "end": { "line": 127, "column": 65 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3727, "end": 3728, "loc": { "start": { "line": 127, "column": 65 }, "end": { "line": 127, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 3729, "end": 3734, "loc": { "start": { "line": 127, "column": 67 }, "end": { "line": 127, "column": 72 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3734, "end": 3735, "loc": { "start": { "line": 127, "column": 72 }, "end": { "line": 127, "column": 73 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3735, "end": 3736, "loc": { "start": { "line": 127, "column": 73 }, "end": { "line": 127, "column": 74 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3742, "end": 3743, "loc": { "start": { "line": 128, "column": 4 }, "end": { "line": 128, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns the tile contents of a given tile\r\n * @param {number} x\r\n * @param {number} y\r\n * @returns {Array} Entity or null\r\n ", "start": 3751, "end": 3913, "loc": { "start": { "line": 130, "column": 4 }, "end": { "line": 135, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getLayersContentsMultipleXY", "start": 3919, "end": 3946, "loc": { "start": { "line": 136, "column": 4 }, "end": { "line": 136, "column": 31 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3946, "end": 3947, "loc": { "start": { "line": 136, "column": 31 }, "end": { "line": 136, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 3947, "end": 3948, "loc": { "start": { "line": 136, "column": 32 }, "end": { "line": 136, "column": 33 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3948, "end": 3949, "loc": { "start": { "line": 136, "column": 33 }, "end": { "line": 136, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 3950, "end": 3951, "loc": { "start": { "line": 136, "column": 35 }, "end": { "line": 136, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3951, "end": 3952, "loc": { "start": { "line": 136, "column": 36 }, "end": { "line": 136, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3953, "end": 3954, "loc": { "start": { "line": 136, "column": 38 }, "end": { "line": 136, "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": 3964, "end": 3969, "loc": { "start": { "line": 137, "column": 8 }, "end": { "line": 137, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 3970, "end": 3975, "loc": { "start": { "line": 137, "column": 14 }, "end": { "line": 137, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3976, "end": 3977, "loc": { "start": { "line": 137, "column": 20 }, "end": { "line": 137, "column": 21 } } }, { "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": 3978, "end": 3982, "loc": { "start": { "line": 137, "column": 22 }, "end": { "line": 137, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3982, "end": 3983, "loc": { "start": { "line": 137, "column": 26 }, "end": { "line": 137, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getChunkAtTileOrNull", "start": 3983, "end": 4003, "loc": { "start": { "line": 137, "column": 27 }, "end": { "line": 137, "column": 47 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4003, "end": 4004, "loc": { "start": { "line": 137, "column": 47 }, "end": { "line": 137, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 4004, "end": 4005, "loc": { "start": { "line": 137, "column": 48 }, "end": { "line": 137, "column": 49 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4005, "end": 4006, "loc": { "start": { "line": 137, "column": 49 }, "end": { "line": 137, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 4007, "end": 4008, "loc": { "start": { "line": 137, "column": 51 }, "end": { "line": 137, "column": 52 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4008, "end": 4009, "loc": { "start": { "line": 137, "column": 52 }, "end": { "line": 137, "column": 53 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4009, "end": 4010, "loc": { "start": { "line": 137, "column": 53 }, "end": { "line": 137, "column": 54 } } }, { "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": 4020, "end": 4022, "loc": { "start": { "line": 138, "column": 8 }, "end": { "line": 138, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4023, "end": 4024, "loc": { "start": { "line": 138, "column": 11 }, "end": { "line": 138, "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": 4024, "end": 4025, "loc": { "start": { "line": 138, "column": 12 }, "end": { "line": 138, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 4025, "end": 4030, "loc": { "start": { "line": 138, "column": 13 }, "end": { "line": 138, "column": 18 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4030, "end": 4031, "loc": { "start": { "line": 138, "column": 18 }, "end": { "line": 138, "column": 19 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4032, "end": 4033, "loc": { "start": { "line": 138, "column": 20 }, "end": { "line": 138, "column": 21 } } }, { "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": 4047, "end": 4053, "loc": { "start": { "line": 139, "column": 12 }, "end": { "line": 139, "column": 18 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4054, "end": 4055, "loc": { "start": { "line": 139, "column": 19 }, "end": { "line": 139, "column": 20 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4055, "end": 4056, "loc": { "start": { "line": 139, "column": 20 }, "end": { "line": 139, "column": 21 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4056, "end": 4057, "loc": { "start": { "line": 139, "column": 21 }, "end": { "line": 139, "column": 22 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4067, "end": 4068, "loc": { "start": { "line": 140, "column": 8 }, "end": { "line": 140, "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": 4078, "end": 4084, "loc": { "start": { "line": 141, "column": 8 }, "end": { "line": 141, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 4085, "end": 4090, "loc": { "start": { "line": 141, "column": 15 }, "end": { "line": 141, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4090, "end": 4091, "loc": { "start": { "line": 141, "column": 20 }, "end": { "line": 141, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getLayersContentsMultipleFromWorldCoords", "start": 4091, "end": 4131, "loc": { "start": { "line": 141, "column": 21 }, "end": { "line": 141, "column": 61 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4131, "end": 4132, "loc": { "start": { "line": 141, "column": 61 }, "end": { "line": 141, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 4132, "end": 4133, "loc": { "start": { "line": 141, "column": 62 }, "end": { "line": 141, "column": 63 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4133, "end": 4134, "loc": { "start": { "line": 141, "column": 63 }, "end": { "line": 141, "column": 64 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 4135, "end": 4136, "loc": { "start": { "line": 141, "column": 65 }, "end": { "line": 141, "column": 66 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4136, "end": 4137, "loc": { "start": { "line": 141, "column": 66 }, "end": { "line": 141, "column": 67 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4137, "end": 4138, "loc": { "start": { "line": 141, "column": 67 }, "end": { "line": 141, "column": 68 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4144, "end": 4145, "loc": { "start": { "line": 142, "column": 4 }, "end": { "line": 142, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if the tile is used\r\n * @param {Vector} tile\r\n * @param {Layer} layer\r\n * @returns {boolean}\r\n ", "start": 4153, "end": 4285, "loc": { "start": { "line": 144, "column": 4 }, "end": { "line": 149, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "isTileUsed", "start": 4291, "end": 4301, "loc": { "start": { "line": 150, "column": 4 }, "end": { "line": 150, "column": 14 } } }, { "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": 150, "column": 14 }, "end": { "line": 150, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 4302, "end": 4306, "loc": { "start": { "line": 150, "column": 15 }, "end": { "line": 150, "column": 19 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4306, "end": 4307, "loc": { "start": { "line": 150, "column": 19 }, "end": { "line": 150, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 4308, "end": 4313, "loc": { "start": { "line": 150, "column": 21 }, "end": { "line": 150, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4313, "end": 4314, "loc": { "start": { "line": 150, "column": 26 }, "end": { "line": 150, "column": 27 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4315, "end": 4316, "loc": { "start": { "line": 150, "column": 28 }, "end": { "line": 150, "column": 29 } } }, { "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": 4326, "end": 4328, "loc": { "start": { "line": 151, "column": 8 }, "end": { "line": 151, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4329, "end": 4330, "loc": { "start": { "line": 151, "column": 11 }, "end": { "line": 151, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "G_IS_DEV", "start": 4330, "end": 4338, "loc": { "start": { "line": 151, "column": 12 }, "end": { "line": 151, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4338, "end": 4339, "loc": { "start": { "line": 151, "column": 20 }, "end": { "line": 151, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4340, "end": 4341, "loc": { "start": { "line": 151, "column": 22 }, "end": { "line": 151, "column": 23 } } }, { "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": 4355, "end": 4359, "loc": { "start": { "line": 152, "column": 12 }, "end": { "line": 152, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4359, "end": 4360, "loc": { "start": { "line": 152, "column": 16 }, "end": { "line": 152, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalCheckTile", "start": 4360, "end": 4377, "loc": { "start": { "line": 152, "column": 17 }, "end": { "line": 152, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4377, "end": 4378, "loc": { "start": { "line": 152, "column": 34 }, "end": { "line": 152, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 4378, "end": 4382, "loc": { "start": { "line": 152, "column": 35 }, "end": { "line": 152, "column": 39 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4382, "end": 4383, "loc": { "start": { "line": 152, "column": 39 }, "end": { "line": 152, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4383, "end": 4384, "loc": { "start": { "line": 152, "column": 40 }, "end": { "line": 152, "column": 41 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4394, "end": 4395, "loc": { "start": { "line": 153, "column": 8 }, "end": { "line": 153, "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": 4405, "end": 4410, "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": "chunk", "start": 4411, "end": 4416, "loc": { "start": { "line": 154, "column": 14 }, "end": { "line": 154, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4417, "end": 4418, "loc": { "start": { "line": 154, "column": 20 }, "end": { "line": 154, "column": 21 } } }, { "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": 4419, "end": 4423, "loc": { "start": { "line": 154, "column": 22 }, "end": { "line": 154, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4423, "end": 4424, "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": "getChunkAtTileOrNull", "start": 4424, "end": 4444, "loc": { "start": { "line": 154, "column": 27 }, "end": { "line": 154, "column": 47 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4444, "end": 4445, "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": "tile", "start": 4445, "end": 4449, "loc": { "start": { "line": 154, "column": 48 }, "end": { "line": 154, "column": 52 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4449, "end": 4450, "loc": { "start": { "line": 154, "column": 52 }, "end": { "line": 154, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 4450, "end": 4451, "loc": { "start": { "line": 154, "column": 53 }, "end": { "line": 154, "column": 54 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4451, "end": 4452, "loc": { "start": { "line": 154, "column": 54 }, "end": { "line": 154, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 4453, "end": 4457, "loc": { "start": { "line": 154, "column": 56 }, "end": { "line": 154, "column": 60 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4457, "end": 4458, "loc": { "start": { "line": 154, "column": 60 }, "end": { "line": 154, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 4458, "end": 4459, "loc": { "start": { "line": 154, "column": 61 }, "end": { "line": 154, "column": 62 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4459, "end": 4460, "loc": { "start": { "line": 154, "column": 62 }, "end": { "line": 154, "column": 63 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4460, "end": 4461, "loc": { "start": { "line": 154, "column": 63 }, "end": { "line": 154, "column": 64 } } }, { "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": 4471, "end": 4477, "loc": { "start": { "line": 155, "column": 8 }, "end": { "line": 155, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 4478, "end": 4483, "loc": { "start": { "line": 155, "column": 15 }, "end": { "line": 155, "column": 20 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 4484, "end": 4486, "loc": { "start": { "line": 155, "column": 21 }, "end": { "line": 155, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 4487, "end": 4492, "loc": { "start": { "line": 155, "column": 24 }, "end": { "line": 155, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4492, "end": 4493, "loc": { "start": { "line": 155, "column": 29 }, "end": { "line": 155, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getLayerContentFromWorldCoords", "start": 4493, "end": 4523, "loc": { "start": { "line": 155, "column": 30 }, "end": { "line": 155, "column": 60 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4523, "end": 4524, "loc": { "start": { "line": 155, "column": 60 }, "end": { "line": 155, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 4524, "end": 4528, "loc": { "start": { "line": 155, "column": 61 }, "end": { "line": 155, "column": 65 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4528, "end": 4529, "loc": { "start": { "line": 155, "column": 65 }, "end": { "line": 155, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 4529, "end": 4530, "loc": { "start": { "line": 155, "column": 66 }, "end": { "line": 155, "column": 67 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4530, "end": 4531, "loc": { "start": { "line": 155, "column": 67 }, "end": { "line": 155, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 4532, "end": 4536, "loc": { "start": { "line": 155, "column": 69 }, "end": { "line": 155, "column": 73 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4536, "end": 4537, "loc": { "start": { "line": 155, "column": 73 }, "end": { "line": 155, "column": 74 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 4537, "end": 4538, "loc": { "start": { "line": 155, "column": 74 }, "end": { "line": 155, "column": 75 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4538, "end": 4539, "loc": { "start": { "line": 155, "column": 75 }, "end": { "line": 155, "column": 76 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 4540, "end": 4545, "loc": { "start": { "line": 155, "column": 77 }, "end": { "line": 155, "column": 82 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4545, "end": 4546, "loc": { "start": { "line": 155, "column": 82 }, "end": { "line": 155, "column": 83 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!=", "start": 4547, "end": 4549, "loc": { "start": { "line": 155, "column": 84 }, "end": { "line": 155, "column": 86 } } }, { "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": 4550, "end": 4554, "loc": { "start": { "line": 155, "column": 87 }, "end": { "line": 155, "column": 91 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4554, "end": 4555, "loc": { "start": { "line": 155, "column": 91 }, "end": { "line": 155, "column": 92 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4561, "end": 4562, "loc": { "start": { "line": 156, "column": 4 }, "end": { "line": 156, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if the tile is used\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {Layer} layer\r\n * @returns {boolean}\r\n ", "start": 4570, "end": 4725, "loc": { "start": { "line": 158, "column": 4 }, "end": { "line": 164, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "isTileUsedXY", "start": 4731, "end": 4743, "loc": { "start": { "line": 165, "column": 4 }, "end": { "line": 165, "column": 16 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4743, "end": 4744, "loc": { "start": { "line": 165, "column": 16 }, "end": { "line": 165, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 4744, "end": 4745, "loc": { "start": { "line": 165, "column": 17 }, "end": { "line": 165, "column": 18 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4745, "end": 4746, "loc": { "start": { "line": 165, "column": 18 }, "end": { "line": 165, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 4747, "end": 4748, "loc": { "start": { "line": 165, "column": 20 }, "end": { "line": 165, "column": 21 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4748, "end": 4749, "loc": { "start": { "line": 165, "column": 21 }, "end": { "line": 165, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 4750, "end": 4755, "loc": { "start": { "line": 165, "column": 23 }, "end": { "line": 165, "column": 28 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4755, "end": 4756, "loc": { "start": { "line": 165, "column": 28 }, "end": { "line": 165, "column": 29 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4757, "end": 4758, "loc": { "start": { "line": 165, "column": 30 }, "end": { "line": 165, "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": 4768, "end": 4773, "loc": { "start": { "line": 166, "column": 8 }, "end": { "line": 166, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 4774, "end": 4779, "loc": { "start": { "line": 166, "column": 14 }, "end": { "line": 166, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4780, "end": 4781, "loc": { "start": { "line": 166, "column": 20 }, "end": { "line": 166, "column": 21 } } }, { "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": 4782, "end": 4786, "loc": { "start": { "line": 166, "column": 22 }, "end": { "line": 166, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4786, "end": 4787, "loc": { "start": { "line": 166, "column": 26 }, "end": { "line": 166, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getChunkAtTileOrNull", "start": 4787, "end": 4807, "loc": { "start": { "line": 166, "column": 27 }, "end": { "line": 166, "column": 47 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4807, "end": 4808, "loc": { "start": { "line": 166, "column": 47 }, "end": { "line": 166, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 4808, "end": 4809, "loc": { "start": { "line": 166, "column": 48 }, "end": { "line": 166, "column": 49 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4809, "end": 4810, "loc": { "start": { "line": 166, "column": 49 }, "end": { "line": 166, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 4811, "end": 4812, "loc": { "start": { "line": 166, "column": 51 }, "end": { "line": 166, "column": 52 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4812, "end": 4813, "loc": { "start": { "line": 166, "column": 52 }, "end": { "line": 166, "column": 53 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4813, "end": 4814, "loc": { "start": { "line": 166, "column": 53 }, "end": { "line": 166, "column": 54 } } }, { "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": 4824, "end": 4830, "loc": { "start": { "line": 167, "column": 8 }, "end": { "line": 167, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 4831, "end": 4836, "loc": { "start": { "line": 167, "column": 15 }, "end": { "line": 167, "column": 20 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 4837, "end": 4839, "loc": { "start": { "line": 167, "column": 21 }, "end": { "line": 167, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "chunk", "start": 4840, "end": 4845, "loc": { "start": { "line": 167, "column": 24 }, "end": { "line": 167, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4845, "end": 4846, "loc": { "start": { "line": 167, "column": 29 }, "end": { "line": 167, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getLayerContentFromWorldCoords", "start": 4846, "end": 4876, "loc": { "start": { "line": 167, "column": 30 }, "end": { "line": 167, "column": 60 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4876, "end": 4877, "loc": { "start": { "line": 167, "column": 60 }, "end": { "line": 167, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 4877, "end": 4878, "loc": { "start": { "line": 167, "column": 61 }, "end": { "line": 167, "column": 62 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4878, "end": 4879, "loc": { "start": { "line": 167, "column": 62 }, "end": { "line": 167, "column": 63 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 4880, "end": 4881, "loc": { "start": { "line": 167, "column": 64 }, "end": { "line": 167, "column": 65 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4881, "end": 4882, "loc": { "start": { "line": 167, "column": 65 }, "end": { "line": 167, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 4883, "end": 4888, "loc": { "start": { "line": 167, "column": 67 }, "end": { "line": 167, "column": 72 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4888, "end": 4889, "loc": { "start": { "line": 167, "column": 72 }, "end": { "line": 167, "column": 73 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!=", "start": 4890, "end": 4892, "loc": { "start": { "line": 167, "column": 74 }, "end": { "line": 167, "column": 76 } } }, { "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": 4893, "end": 4897, "loc": { "start": { "line": 167, "column": 77 }, "end": { "line": 167, "column": 81 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4897, "end": 4898, "loc": { "start": { "line": 167, "column": 81 }, "end": { "line": 167, "column": 82 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4904, "end": 4905, "loc": { "start": { "line": 168, "column": 4 }, "end": { "line": 168, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Sets the tiles content\r\n * @param {Vector} tile\r\n * @param {Entity} entity\r\n ", "start": 4913, "end": 5016, "loc": { "start": { "line": 170, "column": 4 }, "end": { "line": 174, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "setTileContent", "start": 5022, "end": 5036, "loc": { "start": { "line": 175, "column": 4 }, "end": { "line": 175, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5036, "end": 5037, "loc": { "start": { "line": 175, "column": 18 }, "end": { "line": 175, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 5037, "end": 5041, "loc": { "start": { "line": 175, "column": 19 }, "end": { "line": 175, "column": 23 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5041, "end": 5042, "loc": { "start": { "line": 175, "column": 23 }, "end": { "line": 175, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 5043, "end": 5049, "loc": { "start": { "line": 175, "column": 25 }, "end": { "line": 175, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5049, "end": 5050, "loc": { "start": { "line": 175, "column": 31 }, "end": { "line": 175, "column": 32 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5051, "end": 5052, "loc": { "start": { "line": 175, "column": 33 }, "end": { "line": 175, "column": 34 } } }, { "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": 5062, "end": 5064, "loc": { "start": { "line": 176, "column": 8 }, "end": { "line": 176, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5065, "end": 5066, "loc": { "start": { "line": 176, "column": 11 }, "end": { "line": 176, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "G_IS_DEV", "start": 5066, "end": 5074, "loc": { "start": { "line": 176, "column": 12 }, "end": { "line": 176, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5074, "end": 5075, "loc": { "start": { "line": 176, "column": 20 }, "end": { "line": 176, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5076, "end": 5077, "loc": { "start": { "line": 176, "column": 22 }, "end": { "line": 176, "column": 23 } } }, { "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": 5091, "end": 5095, "loc": { "start": { "line": 177, "column": 12 }, "end": { "line": 177, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5095, "end": 5096, "loc": { "start": { "line": 177, "column": 16 }, "end": { "line": 177, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalCheckTile", "start": 5096, "end": 5113, "loc": { "start": { "line": 177, "column": 17 }, "end": { "line": 177, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5113, "end": 5114, "loc": { "start": { "line": 177, "column": 34 }, "end": { "line": 177, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 5114, "end": 5118, "loc": { "start": { "line": 177, "column": 35 }, "end": { "line": 177, "column": 39 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5118, "end": 5119, "loc": { "start": { "line": 177, "column": 39 }, "end": { "line": 177, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5119, "end": 5120, "loc": { "start": { "line": 177, "column": 40 }, "end": { "line": 177, "column": 41 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5130, "end": 5131, "loc": { "start": { "line": 178, "column": 8 }, "end": { "line": 178, "column": 9 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 5143, "end": 5147, "loc": { "start": { "line": 180, "column": 8 }, "end": { "line": 180, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5147, "end": 5148, "loc": { "start": { "line": 180, "column": 12 }, "end": { "line": 180, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getOrCreateChunkAtTile", "start": 5148, "end": 5170, "loc": { "start": { "line": 180, "column": 13 }, "end": { "line": 180, "column": 35 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5170, "end": 5171, "loc": { "start": { "line": 180, "column": 35 }, "end": { "line": 180, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 5171, "end": 5175, "loc": { "start": { "line": 180, "column": 36 }, "end": { "line": 180, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5175, "end": 5176, "loc": { "start": { "line": 180, "column": 40 }, "end": { "line": 180, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 5176, "end": 5177, "loc": { "start": { "line": 180, "column": 41 }, "end": { "line": 180, "column": 42 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5177, "end": 5178, "loc": { "start": { "line": 180, "column": 42 }, "end": { "line": 180, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 5179, "end": 5183, "loc": { "start": { "line": 180, "column": 44 }, "end": { "line": 180, "column": 48 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5183, "end": 5184, "loc": { "start": { "line": 180, "column": 48 }, "end": { "line": 180, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 5184, "end": 5185, "loc": { "start": { "line": 180, "column": 49 }, "end": { "line": 180, "column": 50 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5185, "end": 5186, "loc": { "start": { "line": 180, "column": 50 }, "end": { "line": 180, "column": 51 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5186, "end": 5187, "loc": { "start": { "line": 180, "column": 51 }, "end": { "line": 180, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "setLayerContentFromWorldCords", "start": 5187, "end": 5216, "loc": { "start": { "line": 180, "column": 52 }, "end": { "line": 180, "column": 81 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5216, "end": 5217, "loc": { "start": { "line": 180, "column": 81 }, "end": { "line": 180, "column": 82 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 5231, "end": 5235, "loc": { "start": { "line": 181, "column": 12 }, "end": { "line": 181, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5235, "end": 5236, "loc": { "start": { "line": 181, "column": 16 }, "end": { "line": 181, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 5236, "end": 5237, "loc": { "start": { "line": 181, "column": 17 }, "end": { "line": 181, "column": 18 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5237, "end": 5238, "loc": { "start": { "line": 181, "column": 18 }, "end": { "line": 181, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 5252, "end": 5256, "loc": { "start": { "line": 182, "column": 12 }, "end": { "line": 182, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5256, "end": 5257, "loc": { "start": { "line": 182, "column": 16 }, "end": { "line": 182, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 5257, "end": 5258, "loc": { "start": { "line": 182, "column": 17 }, "end": { "line": 182, "column": 18 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5258, "end": 5259, "loc": { "start": { "line": 182, "column": 18 }, "end": { "line": 182, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 5273, "end": 5279, "loc": { "start": { "line": 183, "column": 12 }, "end": { "line": 183, "column": 18 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5279, "end": 5280, "loc": { "start": { "line": 183, "column": 18 }, "end": { "line": 183, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 5294, "end": 5300, "loc": { "start": { "line": 184, "column": 12 }, "end": { "line": 184, "column": 18 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5300, "end": 5301, "loc": { "start": { "line": 184, "column": 18 }, "end": { "line": 184, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 5301, "end": 5306, "loc": { "start": { "line": 184, "column": 19 }, "end": { "line": 184, "column": 24 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5316, "end": 5317, "loc": { "start": { "line": 185, "column": 8 }, "end": { "line": 185, "column": 9 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5317, "end": 5318, "loc": { "start": { "line": 185, "column": 9 }, "end": { "line": 185, "column": 10 } } }, { "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": 5330, "end": 5335, "loc": { "start": { "line": 187, "column": 8 }, "end": { "line": 187, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComponent", "start": 5336, "end": 5351, "loc": { "start": { "line": 187, "column": 14 }, "end": { "line": 187, "column": 29 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5352, "end": 5353, "loc": { "start": { "line": 187, "column": 30 }, "end": { "line": 187, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 5354, "end": 5360, "loc": { "start": { "line": 187, "column": 32 }, "end": { "line": 187, "column": 38 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5360, "end": 5361, "loc": { "start": { "line": 187, "column": 38 }, "end": { "line": 187, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 5361, "end": 5371, "loc": { "start": { "line": 187, "column": 39 }, "end": { "line": 187, "column": 49 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5371, "end": 5372, "loc": { "start": { "line": 187, "column": 49 }, "end": { "line": 187, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "StaticMapEntity", "start": 5372, "end": 5387, "loc": { "start": { "line": 187, "column": 50 }, "end": { "line": 187, "column": 65 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5387, "end": 5388, "loc": { "start": { "line": 187, "column": 65 }, "end": { "line": 187, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 5398, "end": 5404, "loc": { "start": { "line": 188, "column": 8 }, "end": { "line": 188, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5404, "end": 5405, "loc": { "start": { "line": 188, "column": 14 }, "end": { "line": 188, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComponent", "start": 5405, "end": 5420, "loc": { "start": { "line": 188, "column": 15 }, "end": { "line": 188, "column": 30 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5420, "end": 5421, "loc": { "start": { "line": 188, "column": 30 }, "end": { "line": 188, "column": 31 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Can only place static map entities in tiles", "start": 5422, "end": 5467, "loc": { "start": { "line": 188, "column": 32 }, "end": { "line": 188, "column": 77 } } }, { "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": 188, "column": 77 }, "end": { "line": 188, "column": 78 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5468, "end": 5469, "loc": { "start": { "line": 188, "column": 78 }, "end": { "line": 188, "column": 79 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5475, "end": 5476, "loc": { "start": { "line": 189, "column": 4 }, "end": { "line": 189, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Places an entity with the StaticMapEntity component\r\n * @param {Entity} entity\r\n ", "start": 5484, "end": 5587, "loc": { "start": { "line": 191, "column": 4 }, "end": { "line": 194, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "placeStaticEntity", "start": 5593, "end": 5610, "loc": { "start": { "line": 195, "column": 4 }, "end": { "line": 195, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5610, "end": 5611, "loc": { "start": { "line": 195, "column": 21 }, "end": { "line": 195, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 5611, "end": 5617, "loc": { "start": { "line": 195, "column": 22 }, "end": { "line": 195, "column": 28 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5617, "end": 5618, "loc": { "start": { "line": 195, "column": 28 }, "end": { "line": 195, "column": 29 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5619, "end": 5620, "loc": { "start": { "line": 195, "column": 30 }, "end": { "line": 195, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 5630, "end": 5636, "loc": { "start": { "line": 196, "column": 8 }, "end": { "line": 196, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5636, "end": 5637, "loc": { "start": { "line": 196, "column": 14 }, "end": { "line": 196, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 5637, "end": 5643, "loc": { "start": { "line": 196, "column": 15 }, "end": { "line": 196, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5643, "end": 5644, "loc": { "start": { "line": 196, "column": 21 }, "end": { "line": 196, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 5644, "end": 5654, "loc": { "start": { "line": 196, "column": 22 }, "end": { "line": 196, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5654, "end": 5655, "loc": { "start": { "line": 196, "column": 32 }, "end": { "line": 196, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "StaticMapEntity", "start": 5655, "end": 5670, "loc": { "start": { "line": 196, "column": 33 }, "end": { "line": 196, "column": 48 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5670, "end": 5671, "loc": { "start": { "line": 196, "column": 48 }, "end": { "line": 196, "column": 49 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Entity is not static", "start": 5672, "end": 5694, "loc": { "start": { "line": 196, "column": 50 }, "end": { "line": 196, "column": 72 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5694, "end": 5695, "loc": { "start": { "line": 196, "column": 72 }, "end": { "line": 196, "column": 73 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5695, "end": 5696, "loc": { "start": { "line": 196, "column": 73 }, "end": { "line": 196, "column": 74 } } }, { "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": 5706, "end": 5711, "loc": { "start": { "line": 197, "column": 8 }, "end": { "line": 197, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 5712, "end": 5722, "loc": { "start": { "line": 197, "column": 14 }, "end": { "line": 197, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5723, "end": 5724, "loc": { "start": { "line": 197, "column": 25 }, "end": { "line": 197, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 5725, "end": 5731, "loc": { "start": { "line": 197, "column": 27 }, "end": { "line": 197, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5731, "end": 5732, "loc": { "start": { "line": 197, "column": 33 }, "end": { "line": 197, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 5732, "end": 5742, "loc": { "start": { "line": 197, "column": 34 }, "end": { "line": 197, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5742, "end": 5743, "loc": { "start": { "line": 197, "column": 44 }, "end": { "line": 197, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "StaticMapEntity", "start": 5743, "end": 5758, "loc": { "start": { "line": 197, "column": 45 }, "end": { "line": 197, "column": 60 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5758, "end": 5759, "loc": { "start": { "line": 197, "column": 60 }, "end": { "line": 197, "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": 5769, "end": 5774, "loc": { "start": { "line": 198, "column": 8 }, "end": { "line": 198, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 5775, "end": 5779, "loc": { "start": { "line": 198, "column": 14 }, "end": { "line": 198, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5780, "end": 5781, "loc": { "start": { "line": 198, "column": 19 }, "end": { "line": 198, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 5782, "end": 5792, "loc": { "start": { "line": 198, "column": 21 }, "end": { "line": 198, "column": 31 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5792, "end": 5793, "loc": { "start": { "line": 198, "column": 31 }, "end": { "line": 198, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getTileSpaceBounds", "start": 5793, "end": 5811, "loc": { "start": { "line": 198, "column": 32 }, "end": { "line": 198, "column": 50 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5811, "end": 5812, "loc": { "start": { "line": 198, "column": 50 }, "end": { "line": 198, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5812, "end": 5813, "loc": { "start": { "line": 198, "column": 51 }, "end": { "line": 198, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5813, "end": 5814, "loc": { "start": { "line": 198, "column": 52 }, "end": { "line": 198, "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": 5824, "end": 5827, "loc": { "start": { "line": 199, "column": 8 }, "end": { "line": 199, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5828, "end": 5829, "loc": { "start": { "line": 199, "column": 12 }, "end": { "line": 199, "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": 5829, "end": 5832, "loc": { "start": { "line": 199, "column": 13 }, "end": { "line": 199, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dx", "start": 5833, "end": 5835, "loc": { "start": { "line": 199, "column": 17 }, "end": { "line": 199, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5836, "end": 5837, "loc": { "start": { "line": 199, "column": 20 }, "end": { "line": 199, "column": 21 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 5838, "end": 5839, "loc": { "start": { "line": 199, "column": 22 }, "end": { "line": 199, "column": 23 } } }, { "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": 199, "column": 23 }, "end": { "line": 199, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dx", "start": 5841, "end": 5843, "loc": { "start": { "line": 199, "column": 25 }, "end": { "line": 199, "column": 27 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 5844, "end": 5845, "loc": { "start": { "line": 199, "column": 28 }, "end": { "line": 199, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 5846, "end": 5850, "loc": { "start": { "line": 199, "column": 30 }, "end": { "line": 199, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5850, "end": 5851, "loc": { "start": { "line": 199, "column": 34 }, "end": { "line": 199, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "w", "start": 5851, "end": 5852, "loc": { "start": { "line": 199, "column": 35 }, "end": { "line": 199, "column": 36 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5852, "end": 5853, "loc": { "start": { "line": 199, "column": 36 }, "end": { "line": 199, "column": 37 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 5854, "end": 5856, "loc": { "start": { "line": 199, "column": 38 }, "end": { "line": 199, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dx", "start": 5856, "end": 5858, "loc": { "start": { "line": 199, "column": 40 }, "end": { "line": 199, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5858, "end": 5859, "loc": { "start": { "line": 199, "column": 42 }, "end": { "line": 199, "column": 43 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5860, "end": 5861, "loc": { "start": { "line": 199, "column": 44 }, "end": { "line": 199, "column": 45 } } }, { "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": 5875, "end": 5878, "loc": { "start": { "line": 200, "column": 12 }, "end": { "line": 200, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5879, "end": 5880, "loc": { "start": { "line": 200, "column": 16 }, "end": { "line": 200, "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": 5880, "end": 5883, "loc": { "start": { "line": 200, "column": 17 }, "end": { "line": 200, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dy", "start": 5884, "end": 5886, "loc": { "start": { "line": 200, "column": 21 }, "end": { "line": 200, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5887, "end": 5888, "loc": { "start": { "line": 200, "column": 24 }, "end": { "line": 200, "column": 25 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 5889, "end": 5890, "loc": { "start": { "line": 200, "column": 26 }, "end": { "line": 200, "column": 27 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5890, "end": 5891, "loc": { "start": { "line": 200, "column": 27 }, "end": { "line": 200, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dy", "start": 5892, "end": 5894, "loc": { "start": { "line": 200, "column": 29 }, "end": { "line": 200, "column": 31 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 5895, "end": 5896, "loc": { "start": { "line": 200, "column": 32 }, "end": { "line": 200, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 5897, "end": 5901, "loc": { "start": { "line": 200, "column": 34 }, "end": { "line": 200, "column": 38 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5901, "end": 5902, "loc": { "start": { "line": 200, "column": 38 }, "end": { "line": 200, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "h", "start": 5902, "end": 5903, "loc": { "start": { "line": 200, "column": 39 }, "end": { "line": 200, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5903, "end": 5904, "loc": { "start": { "line": 200, "column": 40 }, "end": { "line": 200, "column": 41 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 5905, "end": 5907, "loc": { "start": { "line": 200, "column": 42 }, "end": { "line": 200, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dy", "start": 5907, "end": 5909, "loc": { "start": { "line": 200, "column": 44 }, "end": { "line": 200, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5909, "end": 5910, "loc": { "start": { "line": 200, "column": 46 }, "end": { "line": 200, "column": 47 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5911, "end": 5912, "loc": { "start": { "line": 200, "column": 48 }, "end": { "line": 200, "column": 49 } } }, { "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": 5930, "end": 5935, "loc": { "start": { "line": 201, "column": 16 }, "end": { "line": 201, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 5936, "end": 5937, "loc": { "start": { "line": 201, "column": 22 }, "end": { "line": 201, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5938, "end": 5939, "loc": { "start": { "line": 201, "column": 24 }, "end": { "line": 201, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 5940, "end": 5944, "loc": { "start": { "line": 201, "column": 26 }, "end": { "line": 201, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5944, "end": 5945, "loc": { "start": { "line": 201, "column": 30 }, "end": { "line": 201, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 5945, "end": 5946, "loc": { "start": { "line": 201, "column": 31 }, "end": { "line": 201, "column": 32 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 5947, "end": 5948, "loc": { "start": { "line": 201, "column": 33 }, "end": { "line": 201, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dx", "start": 5949, "end": 5951, "loc": { "start": { "line": 201, "column": 35 }, "end": { "line": 201, "column": 37 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5951, "end": 5952, "loc": { "start": { "line": 201, "column": 37 }, "end": { "line": 201, "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": 5970, "end": 5975, "loc": { "start": { "line": 202, "column": 16 }, "end": { "line": 202, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 5976, "end": 5977, "loc": { "start": { "line": 202, "column": 22 }, "end": { "line": 202, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5978, "end": 5979, "loc": { "start": { "line": 202, "column": 24 }, "end": { "line": 202, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 5980, "end": 5984, "loc": { "start": { "line": 202, "column": 26 }, "end": { "line": 202, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5984, "end": 5985, "loc": { "start": { "line": 202, "column": 30 }, "end": { "line": 202, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 5985, "end": 5986, "loc": { "start": { "line": 202, "column": 31 }, "end": { "line": 202, "column": 32 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 5987, "end": 5988, "loc": { "start": { "line": 202, "column": 33 }, "end": { "line": 202, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dy", "start": 5989, "end": 5991, "loc": { "start": { "line": 202, "column": 35 }, "end": { "line": 202, "column": 37 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5991, "end": 5992, "loc": { "start": { "line": 202, "column": 37 }, "end": { "line": 202, "column": 38 } } }, { "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": 6010, "end": 6014, "loc": { "start": { "line": 203, "column": 16 }, "end": { "line": 203, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6014, "end": 6015, "loc": { "start": { "line": 203, "column": 20 }, "end": { "line": 203, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getOrCreateChunkAtTile", "start": 6015, "end": 6037, "loc": { "start": { "line": 203, "column": 21 }, "end": { "line": 203, "column": 43 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6037, "end": 6038, "loc": { "start": { "line": 203, "column": 43 }, "end": { "line": 203, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 6038, "end": 6039, "loc": { "start": { "line": 203, "column": 44 }, "end": { "line": 203, "column": 45 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6039, "end": 6040, "loc": { "start": { "line": 203, "column": 45 }, "end": { "line": 203, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 6041, "end": 6042, "loc": { "start": { "line": 203, "column": 47 }, "end": { "line": 203, "column": 48 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6042, "end": 6043, "loc": { "start": { "line": 203, "column": 48 }, "end": { "line": 203, "column": 49 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6043, "end": 6044, "loc": { "start": { "line": 203, "column": 49 }, "end": { "line": 203, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "setLayerContentFromWorldCords", "start": 6044, "end": 6073, "loc": { "start": { "line": 203, "column": 50 }, "end": { "line": 203, "column": 79 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6073, "end": 6074, "loc": { "start": { "line": 203, "column": 79 }, "end": { "line": 203, "column": 80 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 6074, "end": 6075, "loc": { "start": { "line": 203, "column": 80 }, "end": { "line": 203, "column": 81 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6075, "end": 6076, "loc": { "start": { "line": 203, "column": 81 }, "end": { "line": 203, "column": 82 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 6077, "end": 6078, "loc": { "start": { "line": 203, "column": 83 }, "end": { "line": 203, "column": 84 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6078, "end": 6079, "loc": { "start": { "line": 203, "column": 84 }, "end": { "line": 203, "column": 85 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 6080, "end": 6086, "loc": { "start": { "line": 203, "column": 86 }, "end": { "line": 203, "column": 92 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6086, "end": 6087, "loc": { "start": { "line": 203, "column": 92 }, "end": { "line": 203, "column": 93 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 6088, "end": 6094, "loc": { "start": { "line": 203, "column": 94 }, "end": { "line": 203, "column": 100 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6094, "end": 6095, "loc": { "start": { "line": 203, "column": 100 }, "end": { "line": 203, "column": 101 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 6095, "end": 6100, "loc": { "start": { "line": 203, "column": 101 }, "end": { "line": 203, "column": 106 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6100, "end": 6101, "loc": { "start": { "line": 203, "column": 106 }, "end": { "line": 203, "column": 107 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6101, "end": 6102, "loc": { "start": { "line": 203, "column": 107 }, "end": { "line": 203, "column": 108 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6116, "end": 6117, "loc": { "start": { "line": 204, "column": 12 }, "end": { "line": 204, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6127, "end": 6128, "loc": { "start": { "line": 205, "column": 8 }, "end": { "line": 205, "column": 9 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6134, "end": 6135, "loc": { "start": { "line": 206, "column": 4 }, "end": { "line": 206, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Removes an entity with the StaticMapEntity component\r\n * @param {Entity} entity\r\n ", "start": 6143, "end": 6247, "loc": { "start": { "line": 208, "column": 4 }, "end": { "line": 211, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "removeStaticEntity", "start": 6253, "end": 6271, "loc": { "start": { "line": 212, "column": 4 }, "end": { "line": 212, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6271, "end": 6272, "loc": { "start": { "line": 212, "column": 22 }, "end": { "line": 212, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 6272, "end": 6278, "loc": { "start": { "line": 212, "column": 23 }, "end": { "line": 212, "column": 29 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6278, "end": 6279, "loc": { "start": { "line": 212, "column": 29 }, "end": { "line": 212, "column": 30 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6280, "end": 6281, "loc": { "start": { "line": 212, "column": 31 }, "end": { "line": 212, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 6291, "end": 6297, "loc": { "start": { "line": 213, "column": 8 }, "end": { "line": 213, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6297, "end": 6298, "loc": { "start": { "line": 213, "column": 14 }, "end": { "line": 213, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 6298, "end": 6304, "loc": { "start": { "line": 213, "column": 15 }, "end": { "line": 213, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6304, "end": 6305, "loc": { "start": { "line": 213, "column": 21 }, "end": { "line": 213, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "components", "start": 6305, "end": 6315, "loc": { "start": { "line": 213, "column": 22 }, "end": { "line": 213, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6315, "end": 6316, "loc": { "start": { "line": 213, "column": 32 }, "end": { "line": 213, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "StaticMapEntity", "start": 6316, "end": 6331, "loc": { "start": { "line": 213, "column": 33 }, "end": { "line": 213, "column": 48 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6331, "end": 6332, "loc": { "start": { "line": 213, "column": 48 }, "end": { "line": 213, "column": 49 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Entity is not static", "start": 6333, "end": 6355, "loc": { "start": { "line": 213, "column": 50 }, "end": { "line": 213, "column": 72 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6355, "end": 6356, "loc": { "start": { "line": 213, "column": 72 }, "end": { "line": 213, "column": 73 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6356, "end": 6357, "loc": { "start": { "line": 213, "column": 73 }, "end": { "line": 213, "column": 74 } } }, { "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": 6367, "end": 6372, "loc": { "start": { "line": 214, "column": 8 }, "end": { "line": 214, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 6373, "end": 6383, "loc": { "start": { "line": 214, "column": 14 }, "end": { "line": 214, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6384, "end": 6385, "loc": { "start": { "line": 214, "column": 25 }, "end": { "line": 214, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 6386, "end": 6392, "loc": { "start": { "line": 214, "column": 27 }, "end": { "line": 214, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6392, "end": 6393, "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": "components", "start": 6393, "end": 6403, "loc": { "start": { "line": 214, "column": 34 }, "end": { "line": 214, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6403, "end": 6404, "loc": { "start": { "line": 214, "column": 44 }, "end": { "line": 214, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "StaticMapEntity", "start": 6404, "end": 6419, "loc": { "start": { "line": 214, "column": 45 }, "end": { "line": 214, "column": 60 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6419, "end": 6420, "loc": { "start": { "line": 214, "column": 60 }, "end": { "line": 214, "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": 6430, "end": 6435, "loc": { "start": { "line": 215, "column": 8 }, "end": { "line": 215, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 6436, "end": 6440, "loc": { "start": { "line": 215, "column": 14 }, "end": { "line": 215, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6441, "end": 6442, "loc": { "start": { "line": 215, "column": 19 }, "end": { "line": 215, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "staticComp", "start": 6443, "end": 6453, "loc": { "start": { "line": 215, "column": 21 }, "end": { "line": 215, "column": 31 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6453, "end": 6454, "loc": { "start": { "line": 215, "column": 31 }, "end": { "line": 215, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getTileSpaceBounds", "start": 6454, "end": 6472, "loc": { "start": { "line": 215, "column": 32 }, "end": { "line": 215, "column": 50 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6472, "end": 6473, "loc": { "start": { "line": 215, "column": 50 }, "end": { "line": 215, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6473, "end": 6474, "loc": { "start": { "line": 215, "column": 51 }, "end": { "line": 215, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6474, "end": 6475, "loc": { "start": { "line": 215, "column": 52 }, "end": { "line": 215, "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": 6485, "end": 6488, "loc": { "start": { "line": 216, "column": 8 }, "end": { "line": 216, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6489, "end": 6490, "loc": { "start": { "line": 216, "column": 12 }, "end": { "line": 216, "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": 6490, "end": 6493, "loc": { "start": { "line": 216, "column": 13 }, "end": { "line": 216, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dx", "start": 6494, "end": 6496, "loc": { "start": { "line": 216, "column": 17 }, "end": { "line": 216, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6497, "end": 6498, "loc": { "start": { "line": 216, "column": 20 }, "end": { "line": 216, "column": 21 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 6499, "end": 6500, "loc": { "start": { "line": 216, "column": 22 }, "end": { "line": 216, "column": 23 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6500, "end": 6501, "loc": { "start": { "line": 216, "column": 23 }, "end": { "line": 216, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dx", "start": 6502, "end": 6504, "loc": { "start": { "line": 216, "column": 25 }, "end": { "line": 216, "column": 27 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 6505, "end": 6506, "loc": { "start": { "line": 216, "column": 28 }, "end": { "line": 216, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 6507, "end": 6511, "loc": { "start": { "line": 216, "column": 30 }, "end": { "line": 216, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6511, "end": 6512, "loc": { "start": { "line": 216, "column": 34 }, "end": { "line": 216, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "w", "start": 6512, "end": 6513, "loc": { "start": { "line": 216, "column": 35 }, "end": { "line": 216, "column": 36 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6513, "end": 6514, "loc": { "start": { "line": 216, "column": 36 }, "end": { "line": 216, "column": 37 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 6515, "end": 6517, "loc": { "start": { "line": 216, "column": 38 }, "end": { "line": 216, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dx", "start": 6517, "end": 6519, "loc": { "start": { "line": 216, "column": 40 }, "end": { "line": 216, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6519, "end": 6520, "loc": { "start": { "line": 216, "column": 42 }, "end": { "line": 216, "column": 43 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6521, "end": 6522, "loc": { "start": { "line": 216, "column": 44 }, "end": { "line": 216, "column": 45 } } }, { "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": 6536, "end": 6539, "loc": { "start": { "line": 217, "column": 12 }, "end": { "line": 217, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6540, "end": 6541, "loc": { "start": { "line": 217, "column": 16 }, "end": { "line": 217, "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": 6541, "end": 6544, "loc": { "start": { "line": 217, "column": 17 }, "end": { "line": 217, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dy", "start": 6545, "end": 6547, "loc": { "start": { "line": 217, "column": 21 }, "end": { "line": 217, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6548, "end": 6549, "loc": { "start": { "line": 217, "column": 24 }, "end": { "line": 217, "column": 25 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 6550, "end": 6551, "loc": { "start": { "line": 217, "column": 26 }, "end": { "line": 217, "column": 27 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6551, "end": 6552, "loc": { "start": { "line": 217, "column": 27 }, "end": { "line": 217, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dy", "start": 6553, "end": 6555, "loc": { "start": { "line": 217, "column": 29 }, "end": { "line": 217, "column": 31 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 6556, "end": 6557, "loc": { "start": { "line": 217, "column": 32 }, "end": { "line": 217, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 6558, "end": 6562, "loc": { "start": { "line": 217, "column": 34 }, "end": { "line": 217, "column": 38 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6562, "end": 6563, "loc": { "start": { "line": 217, "column": 38 }, "end": { "line": 217, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "h", "start": 6563, "end": 6564, "loc": { "start": { "line": 217, "column": 39 }, "end": { "line": 217, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6564, "end": 6565, "loc": { "start": { "line": 217, "column": 40 }, "end": { "line": 217, "column": 41 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 6566, "end": 6568, "loc": { "start": { "line": 217, "column": 42 }, "end": { "line": 217, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dy", "start": 6568, "end": 6570, "loc": { "start": { "line": 217, "column": 44 }, "end": { "line": 217, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6570, "end": 6571, "loc": { "start": { "line": 217, "column": 46 }, "end": { "line": 217, "column": 47 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6572, "end": 6573, "loc": { "start": { "line": 217, "column": 48 }, "end": { "line": 217, "column": 49 } } }, { "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": 6591, "end": 6596, "loc": { "start": { "line": 218, "column": 16 }, "end": { "line": 218, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 6597, "end": 6598, "loc": { "start": { "line": 218, "column": 22 }, "end": { "line": 218, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6599, "end": 6600, "loc": { "start": { "line": 218, "column": 24 }, "end": { "line": 218, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 6601, "end": 6605, "loc": { "start": { "line": 218, "column": 26 }, "end": { "line": 218, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6605, "end": 6606, "loc": { "start": { "line": 218, "column": 30 }, "end": { "line": 218, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 6606, "end": 6607, "loc": { "start": { "line": 218, "column": 31 }, "end": { "line": 218, "column": 32 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 6608, "end": 6609, "loc": { "start": { "line": 218, "column": 33 }, "end": { "line": 218, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dx", "start": 6610, "end": 6612, "loc": { "start": { "line": 218, "column": 35 }, "end": { "line": 218, "column": 37 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6612, "end": 6613, "loc": { "start": { "line": 218, "column": 37 }, "end": { "line": 218, "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": 6631, "end": 6636, "loc": { "start": { "line": 219, "column": 16 }, "end": { "line": 219, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 6637, "end": 6638, "loc": { "start": { "line": 219, "column": 22 }, "end": { "line": 219, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 6639, "end": 6640, "loc": { "start": { "line": 219, "column": 24 }, "end": { "line": 219, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 6641, "end": 6645, "loc": { "start": { "line": 219, "column": 26 }, "end": { "line": 219, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6645, "end": 6646, "loc": { "start": { "line": 219, "column": 30 }, "end": { "line": 219, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 6646, "end": 6647, "loc": { "start": { "line": 219, "column": 31 }, "end": { "line": 219, "column": 32 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 6648, "end": 6649, "loc": { "start": { "line": 219, "column": 33 }, "end": { "line": 219, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dy", "start": 6650, "end": 6652, "loc": { "start": { "line": 219, "column": 35 }, "end": { "line": 219, "column": 37 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6652, "end": 6653, "loc": { "start": { "line": 219, "column": 37 }, "end": { "line": 219, "column": 38 } } }, { "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": 6671, "end": 6675, "loc": { "start": { "line": 220, "column": 16 }, "end": { "line": 220, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6675, "end": 6676, "loc": { "start": { "line": 220, "column": 20 }, "end": { "line": 220, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getOrCreateChunkAtTile", "start": 6676, "end": 6698, "loc": { "start": { "line": 220, "column": 21 }, "end": { "line": 220, "column": 43 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6698, "end": 6699, "loc": { "start": { "line": 220, "column": 43 }, "end": { "line": 220, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 6699, "end": 6700, "loc": { "start": { "line": 220, "column": 44 }, "end": { "line": 220, "column": 45 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6700, "end": 6701, "loc": { "start": { "line": 220, "column": 45 }, "end": { "line": 220, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 6702, "end": 6703, "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": 6703, "end": 6704, "loc": { "start": { "line": 220, "column": 48 }, "end": { "line": 220, "column": 49 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6704, "end": 6705, "loc": { "start": { "line": 220, "column": 49 }, "end": { "line": 220, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "setLayerContentFromWorldCords", "start": 6705, "end": 6734, "loc": { "start": { "line": 220, "column": 50 }, "end": { "line": 220, "column": 79 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6734, "end": 6735, "loc": { "start": { "line": 220, "column": 79 }, "end": { "line": 220, "column": 80 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 6735, "end": 6736, "loc": { "start": { "line": 220, "column": 80 }, "end": { "line": 220, "column": 81 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6736, "end": 6737, "loc": { "start": { "line": 220, "column": 81 }, "end": { "line": 220, "column": 82 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 6738, "end": 6739, "loc": { "start": { "line": 220, "column": 83 }, "end": { "line": 220, "column": 84 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6739, "end": 6740, "loc": { "start": { "line": 220, "column": 84 }, "end": { "line": 220, "column": 85 } } }, { "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": 6741, "end": 6745, "loc": { "start": { "line": 220, "column": 86 }, "end": { "line": 220, "column": 90 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6745, "end": 6746, "loc": { "start": { "line": 220, "column": 90 }, "end": { "line": 220, "column": 91 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "entity", "start": 6747, "end": 6753, "loc": { "start": { "line": 220, "column": 92 }, "end": { "line": 220, "column": 98 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6753, "end": 6754, "loc": { "start": { "line": 220, "column": 98 }, "end": { "line": 220, "column": 99 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 6754, "end": 6759, "loc": { "start": { "line": 220, "column": 99 }, "end": { "line": 220, "column": 104 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6759, "end": 6760, "loc": { "start": { "line": 220, "column": 104 }, "end": { "line": 220, "column": 105 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6760, "end": 6761, "loc": { "start": { "line": 220, "column": 105 }, "end": { "line": 220, "column": 106 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6775, "end": 6776, "loc": { "start": { "line": 221, "column": 12 }, "end": { "line": 221, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6786, "end": 6787, "loc": { "start": { "line": 222, "column": 8 }, "end": { "line": 222, "column": 9 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6793, "end": 6794, "loc": { "start": { "line": 223, "column": 4 }, "end": { "line": 223, "column": 5 } } }, { "type": "CommentLine", "value": " Internal", "start": 6802, "end": 6813, "loc": { "start": { "line": 225, "column": 4 }, "end": { "line": 225, "column": 15 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks a given tile for validty\r\n * @param {Vector} tile\r\n ", "start": 6821, "end": 6902, "loc": { "start": { "line": 227, "column": 4 }, "end": { "line": 230, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalCheckTile", "start": 6908, "end": 6925, "loc": { "start": { "line": 231, "column": 4 }, "end": { "line": 231, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6925, "end": 6926, "loc": { "start": { "line": 231, "column": 21 }, "end": { "line": 231, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 6926, "end": 6930, "loc": { "start": { "line": 231, "column": 22 }, "end": { "line": 231, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6930, "end": 6931, "loc": { "start": { "line": 231, "column": 26 }, "end": { "line": 231, "column": 27 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6932, "end": 6933, "loc": { "start": { "line": 231, "column": 28 }, "end": { "line": 231, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 6943, "end": 6949, "loc": { "start": { "line": 232, "column": 8 }, "end": { "line": 232, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6949, "end": 6950, "loc": { "start": { "line": 232, "column": 14 }, "end": { "line": 232, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 6950, "end": 6954, "loc": { "start": { "line": 232, "column": 15 }, "end": { "line": 232, "column": 19 } } }, { "type": { "label": "instanceof", "keyword": "instanceof", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "instanceof", "start": 6955, "end": 6965, "loc": { "start": { "line": 232, "column": 20 }, "end": { "line": 232, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Vector", "start": 6966, "end": 6972, "loc": { "start": { "line": 232, "column": 31 }, "end": { "line": 232, "column": 37 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6972, "end": 6973, "loc": { "start": { "line": 232, "column": 37 }, "end": { "line": 232, "column": 38 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "tile is not a vector: ", "start": 6974, "end": 6998, "loc": { "start": { "line": 232, "column": 39 }, "end": { "line": 232, "column": 63 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 6999, "end": 7000, "loc": { "start": { "line": 232, "column": 64 }, "end": { "line": 232, "column": 65 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 7001, "end": 7005, "loc": { "start": { "line": 232, "column": 66 }, "end": { "line": 232, "column": 70 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7005, "end": 7006, "loc": { "start": { "line": 232, "column": 70 }, "end": { "line": 232, "column": 71 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7006, "end": 7007, "loc": { "start": { "line": 232, "column": 71 }, "end": { "line": 232, "column": 72 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 7017, "end": 7023, "loc": { "start": { "line": 233, "column": 8 }, "end": { "line": 233, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7023, "end": 7024, "loc": { "start": { "line": 233, "column": 14 }, "end": { "line": 233, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 7024, "end": 7028, "loc": { "start": { "line": 233, "column": 15 }, "end": { "line": 233, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7028, "end": 7029, "loc": { "start": { "line": 233, "column": 19 }, "end": { "line": 233, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 7029, "end": 7030, "loc": { "start": { "line": 233, "column": 20 }, "end": { "line": 233, "column": 21 } } }, { "type": { "label": "%", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "%", "start": 7031, "end": 7032, "loc": { "start": { "line": 233, "column": 22 }, "end": { "line": 233, "column": 23 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 7033, "end": 7034, "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": 6, "updateContext": null }, "value": "===", "start": 7035, "end": 7038, "loc": { "start": { "line": 233, "column": 26 }, "end": { "line": 233, "column": 29 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 7039, "end": 7040, "loc": { "start": { "line": 233, "column": 30 }, "end": { "line": 233, "column": 31 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7040, "end": 7041, "loc": { "start": { "line": 233, "column": 31 }, "end": { "line": 233, "column": 32 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Tile X is not a valid integer: ", "start": 7042, "end": 7075, "loc": { "start": { "line": 233, "column": 33 }, "end": { "line": 233, "column": 66 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 7076, "end": 7077, "loc": { "start": { "line": 233, "column": 67 }, "end": { "line": 233, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 7078, "end": 7082, "loc": { "start": { "line": 233, "column": 69 }, "end": { "line": 233, "column": 73 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7082, "end": 7083, "loc": { "start": { "line": 233, "column": 73 }, "end": { "line": 233, "column": 74 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 7083, "end": 7084, "loc": { "start": { "line": 233, "column": 74 }, "end": { "line": 233, "column": 75 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7084, "end": 7085, "loc": { "start": { "line": 233, "column": 75 }, "end": { "line": 233, "column": 76 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7085, "end": 7086, "loc": { "start": { "line": 233, "column": 76 }, "end": { "line": 233, "column": 77 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 7096, "end": 7102, "loc": { "start": { "line": 234, "column": 8 }, "end": { "line": 234, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7102, "end": 7103, "loc": { "start": { "line": 234, "column": 14 }, "end": { "line": 234, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 7103, "end": 7107, "loc": { "start": { "line": 234, "column": 15 }, "end": { "line": 234, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7107, "end": 7108, "loc": { "start": { "line": 234, "column": 19 }, "end": { "line": 234, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 7108, "end": 7109, "loc": { "start": { "line": 234, "column": 20 }, "end": { "line": 234, "column": 21 } } }, { "type": { "label": "%", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "%", "start": 7110, "end": 7111, "loc": { "start": { "line": 234, "column": 22 }, "end": { "line": 234, "column": 23 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 7112, "end": 7113, "loc": { "start": { "line": 234, "column": 24 }, "end": { "line": 234, "column": 25 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 7114, "end": 7117, "loc": { "start": { "line": 234, "column": 26 }, "end": { "line": 234, "column": 29 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 7118, "end": 7119, "loc": { "start": { "line": 234, "column": 30 }, "end": { "line": 234, "column": 31 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7119, "end": 7120, "loc": { "start": { "line": 234, "column": 31 }, "end": { "line": 234, "column": 32 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Tile Y is not a valid integer: ", "start": 7121, "end": 7154, "loc": { "start": { "line": 234, "column": 33 }, "end": { "line": 234, "column": 66 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 7155, "end": 7156, "loc": { "start": { "line": 234, "column": 67 }, "end": { "line": 234, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tile", "start": 7157, "end": 7161, "loc": { "start": { "line": 234, "column": 69 }, "end": { "line": 234, "column": 73 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7161, "end": 7162, "loc": { "start": { "line": 234, "column": 73 }, "end": { "line": 234, "column": 74 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 7162, "end": 7163, "loc": { "start": { "line": 234, "column": 74 }, "end": { "line": 234, "column": 75 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7163, "end": 7164, "loc": { "start": { "line": 234, "column": 75 }, "end": { "line": 234, "column": 76 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7164, "end": 7165, "loc": { "start": { "line": 234, "column": 76 }, "end": { "line": 234, "column": 77 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7171, "end": 7172, "loc": { "start": { "line": 235, "column": 4 }, "end": { "line": 235, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7174, "end": 7175, "loc": { "start": { "line": 236, "column": 0 }, "end": { "line": 236, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7177, "end": 7177, "loc": { "start": { "line": 237, "column": 0 }, "end": { "line": 237, "column": 0 } } } ] }