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

18828 lines
484 KiB
JSON

{
"type": "File",
"start": 0,
"end": 4190,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 144,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 4190,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 144,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 81,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 81
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 22
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 22
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 22
},
"identifierName": "enumDirection"
},
"name": "enumDirection"
}
},
{
"type": "ImportSpecifier",
"start": 24,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 45
}
},
"imported": {
"type": "Identifier",
"start": 24,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 45
},
"identifierName": "enumDirectionToVector"
},
"name": "enumDirectionToVector"
},
"local": {
"type": "Identifier",
"start": 24,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 45
},
"identifierName": "enumDirectionToVector"
},
"name": "enumDirectionToVector"
}
},
{
"type": "ImportSpecifier",
"start": 47,
"end": 53,
"loc": {
"start": {
"line": 1,
"column": 47
},
"end": {
"line": 1,
"column": 53
}
},
"imported": {
"type": "Identifier",
"start": 47,
"end": 53,
"loc": {
"start": {
"line": 1,
"column": 47
},
"end": {
"line": 1,
"column": 53
},
"identifierName": "Vector"
},
"name": "Vector"
},
"local": {
"type": "Identifier",
"start": 47,
"end": 53,
"loc": {
"start": {
"line": 1,
"column": 47
},
"end": {
"line": 1,
"column": 53
},
"identifierName": "Vector"
},
"name": "Vector"
}
}
],
"source": {
"type": "StringLiteral",
"start": 61,
"end": 80,
"loc": {
"start": {
"line": 1,
"column": 61
},
"end": {
"line": 1,
"column": 80
}
},
"extra": {
"rawValue": "../../core/vector",
"raw": "\"../../core/vector\""
},
"value": "../../core/vector"
}
},
{
"type": "ImportDeclaration",
"start": 83,
"end": 136,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 53
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 92,
"end": 97,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 14
}
},
"imported": {
"type": "Identifier",
"start": 92,
"end": 97,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 14
},
"identifierName": "types"
},
"name": "types"
},
"local": {
"type": "Identifier",
"start": 92,
"end": 97,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 14
},
"identifierName": "types"
},
"name": "types"
}
}
],
"source": {
"type": "StringLiteral",
"start": 105,
"end": 135,
"loc": {
"start": {
"line": 2,
"column": 22
},
"end": {
"line": 2,
"column": 52
}
},
"extra": {
"rawValue": "../../savegame/serialization",
"raw": "\"../../savegame/serialization\""
},
"value": "../../savegame/serialization"
}
},
{
"type": "ImportDeclaration",
"start": 138,
"end": 178,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 40
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 147,
"end": 155,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 17
}
},
"imported": {
"type": "Identifier",
"start": 147,
"end": 155,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 17
},
"identifierName": "BaseItem"
},
"name": "BaseItem"
},
"local": {
"type": "Identifier",
"start": 147,
"end": 155,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 17
},
"identifierName": "BaseItem"
},
"name": "BaseItem"
}
}
],
"source": {
"type": "StringLiteral",
"start": 163,
"end": 177,
"loc": {
"start": {
"line": 3,
"column": 25
},
"end": {
"line": 3,
"column": 39
}
},
"extra": {
"rawValue": "../base_item",
"raw": "\"../base_item\""
},
"value": "../base_item"
}
},
{
"type": "ImportDeclaration",
"start": 180,
"end": 220,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 40
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 189,
"end": 197,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 17
}
},
"imported": {
"type": "Identifier",
"start": 189,
"end": 197,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 17
},
"identifierName": "BeltPath"
},
"name": "BeltPath"
},
"local": {
"type": "Identifier",
"start": 189,
"end": 197,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 17
},
"identifierName": "BeltPath"
},
"name": "BeltPath"
}
}
],
"source": {
"type": "StringLiteral",
"start": 205,
"end": 219,
"loc": {
"start": {
"line": 4,
"column": 25
},
"end": {
"line": 4,
"column": 39
}
},
"extra": {
"rawValue": "../belt_path",
"raw": "\"../belt_path\""
},
"value": "../belt_path"
}
},
{
"type": "ImportDeclaration",
"start": 222,
"end": 263,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 41
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 231,
"end": 240,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 231,
"end": 240,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 18
},
"identifierName": "Component"
},
"name": "Component"
},
"local": {
"type": "Identifier",
"start": 231,
"end": 240,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 18
},
"identifierName": "Component"
},
"name": "Component"
}
}
],
"source": {
"type": "StringLiteral",
"start": 248,
"end": 262,
"loc": {
"start": {
"line": 5,
"column": 26
},
"end": {
"line": 5,
"column": 40
}
},
"extra": {
"rawValue": "../component",
"raw": "\"../component\""
},
"value": "../component"
}
},
{
"type": "ImportDeclaration",
"start": 265,
"end": 300,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 35
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 274,
"end": 280,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 15
}
},
"imported": {
"type": "Identifier",
"start": 274,
"end": 280,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 15
},
"identifierName": "Entity"
},
"name": "Entity"
},
"local": {
"type": "Identifier",
"start": 274,
"end": 280,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 15
},
"identifierName": "Entity"
},
"name": "Entity"
}
}
],
"source": {
"type": "StringLiteral",
"start": 288,
"end": 299,
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 6,
"column": 34
}
},
"extra": {
"rawValue": "../entity",
"raw": "\"../entity\""
},
"value": "../entity"
}
},
{
"type": "ImportDeclaration",
"start": 302,
"end": 355,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 53
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 311,
"end": 328,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 26
}
},
"imported": {
"type": "Identifier",
"start": 311,
"end": 328,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 26
},
"identifierName": "typeItemSingleton"
},
"name": "typeItemSingleton"
},
"local": {
"type": "Identifier",
"start": 311,
"end": 328,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 26
},
"identifierName": "typeItemSingleton"
},
"name": "typeItemSingleton"
}
}
],
"source": {
"type": "StringLiteral",
"start": 336,
"end": 354,
"loc": {
"start": {
"line": 7,
"column": 34
},
"end": {
"line": 7,
"column": 52
}
},
"extra": {
"rawValue": "../item_resolver",
"raw": "\"../item_resolver\""
},
"value": "../item_resolver"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @typedef {{\r\n * pos: Vector,\r\n * direction: enumDirection,\r\n * item: BaseItem,\r\n * progress: number?,\r\n * cachedDestSlot?: import(\"./item_acceptor\").ItemAcceptorLocatedSlot,\r\n * cachedBeltPath?: BeltPath,\r\n * cachedTargetEntity?: Entity\r\n * }} ItemEjectorSlot\r\n ",
"start": 359,
"end": 652,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 19,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 656,
"end": 4188,
"loc": {
"start": {
"line": 21,
"column": 0
},
"end": {
"line": 143,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 663,
"end": 4188,
"loc": {
"start": {
"line": 21,
"column": 7
},
"end": {
"line": 143,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 669,
"end": 689,
"loc": {
"start": {
"line": 21,
"column": 13
},
"end": {
"line": 21,
"column": 33
},
"identifierName": "ItemEjectorComponent"
},
"name": "ItemEjectorComponent",
"leadingComments": null
},
"superClass": {
"type": "Identifier",
"start": 698,
"end": 707,
"loc": {
"start": {
"line": 21,
"column": 42
},
"end": {
"line": 21,
"column": 51
},
"identifierName": "Component"
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 708,
"end": 4188,
"loc": {
"start": {
"line": 21,
"column": 52
},
"end": {
"line": 143,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 715,
"end": 769,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 24,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 722,
"end": 727,
"loc": {
"start": {
"line": 22,
"column": 11
},
"end": {
"line": 22,
"column": 16
},
"identifierName": "getId"
},
"name": "getId"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 730,
"end": 769,
"loc": {
"start": {
"line": 22,
"column": 19
},
"end": {
"line": 24,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 741,
"end": 762,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 29
}
},
"argument": {
"type": "StringLiteral",
"start": 748,
"end": 761,
"loc": {
"start": {
"line": 23,
"column": 15
},
"end": {
"line": 23,
"column": 28
}
},
"extra": {
"rawValue": "ItemEjector",
"raw": "\"ItemEjector\""
},
"value": "ItemEjector"
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 777,
"end": 1132,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 36,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 784,
"end": 793,
"loc": {
"start": {
"line": 26,
"column": 11
},
"end": {
"line": 26,
"column": 20
},
"identifierName": "getSchema"
},
"name": "getSchema"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 796,
"end": 1132,
"loc": {
"start": {
"line": 26,
"column": 23
},
"end": {
"line": 36,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 885,
"end": 1125,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 35,
"column": 10
}
},
"argument": {
"type": "ObjectExpression",
"start": 892,
"end": 1124,
"loc": {
"start": {
"line": 28,
"column": 15
},
"end": {
"line": 35,
"column": 9
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 907,
"end": 1112,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 34,
"column": 13
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 907,
"end": 912,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 17
},
"identifierName": "slots"
},
"name": "slots",
"leadingComments": null
},
"value": {
"type": "CallExpression",
"start": 914,
"end": 1112,
"loc": {
"start": {
"line": 29,
"column": 19
},
"end": {
"line": 34,
"column": 13
}
},
"callee": {
"type": "MemberExpression",
"start": 914,
"end": 934,
"loc": {
"start": {
"line": 29,
"column": 19
},
"end": {
"line": 29,
"column": 39
}
},
"object": {
"type": "Identifier",
"start": 914,
"end": 919,
"loc": {
"start": {
"line": 29,
"column": 19
},
"end": {
"line": 29,
"column": 24
},
"identifierName": "types"
},
"name": "types"
},
"property": {
"type": "Identifier",
"start": 920,
"end": 934,
"loc": {
"start": {
"line": 29,
"column": 25
},
"end": {
"line": 29,
"column": 39
},
"identifierName": "fixedSizeArray"
},
"name": "fixedSizeArray"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 953,
"end": 1097,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 33,
"column": 18
}
},
"callee": {
"type": "MemberExpression",
"start": 953,
"end": 969,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 953,
"end": 958,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 21
},
"identifierName": "types"
},
"name": "types"
},
"property": {
"type": "Identifier",
"start": 959,
"end": 969,
"loc": {
"start": {
"line": 30,
"column": 22
},
"end": {
"line": 30,
"column": 32
},
"identifierName": "structured"
},
"name": "structured"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 970,
"end": 1096,
"loc": {
"start": {
"line": 30,
"column": 33
},
"end": {
"line": 33,
"column": 17
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 993,
"end": 1032,
"loc": {
"start": {
"line": 31,
"column": 20
},
"end": {
"line": 31,
"column": 59
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 993,
"end": 997,
"loc": {
"start": {
"line": 31,
"column": 20
},
"end": {
"line": 31,
"column": 24
},
"identifierName": "item"
},
"name": "item"
},
"value": {
"type": "CallExpression",
"start": 999,
"end": 1032,
"loc": {
"start": {
"line": 31,
"column": 26
},
"end": {
"line": 31,
"column": 59
}
},
"callee": {
"type": "MemberExpression",
"start": 999,
"end": 1013,
"loc": {
"start": {
"line": 31,
"column": 26
},
"end": {
"line": 31,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 999,
"end": 1004,
"loc": {
"start": {
"line": 31,
"column": 26
},
"end": {
"line": 31,
"column": 31
},
"identifierName": "types"
},
"name": "types"
},
"property": {
"type": "Identifier",
"start": 1005,
"end": 1013,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 40
},
"identifierName": "nullable"
},
"name": "nullable"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1014,
"end": 1031,
"loc": {
"start": {
"line": 31,
"column": 41
},
"end": {
"line": 31,
"column": 58
},
"identifierName": "typeItemSingleton"
},
"name": "typeItemSingleton"
}
]
}
},
{
"type": "ObjectProperty",
"start": 1055,
"end": 1076,
"loc": {
"start": {
"line": 32,
"column": 20
},
"end": {
"line": 32,
"column": 41
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1055,
"end": 1063,
"loc": {
"start": {
"line": 32,
"column": 20
},
"end": {
"line": 32,
"column": 28
},
"identifierName": "progress"
},
"name": "progress"
},
"value": {
"type": "MemberExpression",
"start": 1065,
"end": 1076,
"loc": {
"start": {
"line": 32,
"column": 30
},
"end": {
"line": 32,
"column": 41
}
},
"object": {
"type": "Identifier",
"start": 1065,
"end": 1070,
"loc": {
"start": {
"line": 32,
"column": 30
},
"end": {
"line": 32,
"column": 35
},
"identifierName": "types"
},
"name": "types"
},
"property": {
"type": "Identifier",
"start": 1071,
"end": 1076,
"loc": {
"start": {
"line": 32,
"column": 36
},
"end": {
"line": 32,
"column": 41
},
"identifierName": "float"
},
"name": "float"
},
"computed": false
}
}
]
}
]
}
]
},
"leadingComments": null
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " The cachedDestSlot, cachedTargetEntity fields are not serialized.",
"start": 807,
"end": 875,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 76
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {object} param0\r\n * @param {Array<{pos: Vector, direction: enumDirection }>=} param0.slots The slots to eject on\r\n * @param {boolean=} param0.renderFloatingItems Whether to render items even if they are not connected\r\n ",
"start": 1140,
"end": 1400,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 43,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1406,
"end": 1578,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 49,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1406,
"end": 1417,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "ObjectPattern",
"start": 1418,
"end": 1460,
"loc": {
"start": {
"line": 44,
"column": 16
},
"end": {
"line": 44,
"column": 58
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 1420,
"end": 1430,
"loc": {
"start": {
"line": 44,
"column": 18
},
"end": {
"line": 44,
"column": 28
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1420,
"end": 1425,
"loc": {
"start": {
"line": 44,
"column": 18
},
"end": {
"line": 44,
"column": 23
},
"identifierName": "slots"
},
"name": "slots"
},
"value": {
"type": "AssignmentPattern",
"start": 1420,
"end": 1430,
"loc": {
"start": {
"line": 44,
"column": 18
},
"end": {
"line": 44,
"column": 28
}
},
"left": {
"type": "Identifier",
"start": 1420,
"end": 1425,
"loc": {
"start": {
"line": 44,
"column": 18
},
"end": {
"line": 44,
"column": 23
},
"identifierName": "slots"
},
"name": "slots"
},
"right": {
"type": "ArrayExpression",
"start": 1428,
"end": 1430,
"loc": {
"start": {
"line": 44,
"column": 26
},
"end": {
"line": 44,
"column": 28
}
},
"elements": []
}
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start": 1432,
"end": 1458,
"loc": {
"start": {
"line": 44,
"column": 30
},
"end": {
"line": 44,
"column": 56
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1432,
"end": 1451,
"loc": {
"start": {
"line": 44,
"column": 30
},
"end": {
"line": 44,
"column": 49
},
"identifierName": "renderFloatingItems"
},
"name": "renderFloatingItems"
},
"value": {
"type": "AssignmentPattern",
"start": 1432,
"end": 1458,
"loc": {
"start": {
"line": 44,
"column": 30
},
"end": {
"line": 44,
"column": 56
}
},
"left": {
"type": "Identifier",
"start": 1432,
"end": 1451,
"loc": {
"start": {
"line": 44,
"column": 30
},
"end": {
"line": 44,
"column": 49
},
"identifierName": "renderFloatingItems"
},
"name": "renderFloatingItems"
},
"right": {
"type": "BooleanLiteral",
"start": 1454,
"end": 1458,
"loc": {
"start": {
"line": 44,
"column": 52
},
"end": {
"line": 44,
"column": 56
}
},
"value": true
}
},
"extra": {
"shorthand": true
}
}
]
}
],
"body": {
"type": "BlockStatement",
"start": 1462,
"end": 1578,
"loc": {
"start": {
"line": 44,
"column": 60
},
"end": {
"line": 49,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1473,
"end": 1481,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 1473,
"end": 1480,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 1473,
"end": 1478,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 13
}
}
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 1493,
"end": 1514,
"loc": {
"start": {
"line": 47,
"column": 8
},
"end": {
"line": 47,
"column": 29
}
},
"expression": {
"type": "CallExpression",
"start": 1493,
"end": 1513,
"loc": {
"start": {
"line": 47,
"column": 8
},
"end": {
"line": 47,
"column": 28
}
},
"callee": {
"type": "MemberExpression",
"start": 1493,
"end": 1506,
"loc": {
"start": {
"line": 47,
"column": 8
},
"end": {
"line": 47,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 1493,
"end": 1497,
"loc": {
"start": {
"line": 47,
"column": 8
},
"end": {
"line": 47,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1498,
"end": 1506,
"loc": {
"start": {
"line": 47,
"column": 13
},
"end": {
"line": 47,
"column": 21
},
"identifierName": "setSlots"
},
"name": "setSlots"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1507,
"end": 1512,
"loc": {
"start": {
"line": 47,
"column": 22
},
"end": {
"line": 47,
"column": 27
},
"identifierName": "slots"
},
"name": "slots"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 1524,
"end": 1571,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 55
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1524,
"end": 1570,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 54
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1524,
"end": 1548,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 1524,
"end": 1528,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1529,
"end": 1548,
"loc": {
"start": {
"line": 48,
"column": 13
},
"end": {
"line": 48,
"column": 32
},
"identifierName": "renderFloatingItems"
},
"name": "renderFloatingItems"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 1551,
"end": 1570,
"loc": {
"start": {
"line": 48,
"column": 35
},
"end": {
"line": 48,
"column": 54
},
"identifierName": "renderFloatingItems"
},
"name": "renderFloatingItems"
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {object} param0\r\n * @param {Array<{pos: Vector, direction: enumDirection }>=} param0.slots The slots to eject on\r\n * @param {boolean=} param0.renderFloatingItems Whether to render items even if they are not connected\r\n ",
"start": 1140,
"end": 1400,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 43,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @param {Array<{pos: Vector, direction: enumDirection }>} slots The slots to eject on\r\n ",
"start": 1586,
"end": 1691,
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 53,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1697,
"end": 2156,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 68,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1697,
"end": 1705,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 12
},
"identifierName": "setSlots"
},
"name": "setSlots",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1706,
"end": 1711,
"loc": {
"start": {
"line": 54,
"column": 13
},
"end": {
"line": 54,
"column": 18
},
"identifierName": "slots"
},
"name": "slots"
}
],
"body": {
"type": "BlockStatement",
"start": 1713,
"end": 2156,
"loc": {
"start": {
"line": 54,
"column": 20
},
"end": {
"line": 68,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1771,
"end": 1787,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 24
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1771,
"end": 1786,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 23
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1771,
"end": 1781,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 1771,
"end": 1775,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1776,
"end": 1781,
"loc": {
"start": {
"line": 56,
"column": 13
},
"end": {
"line": 56,
"column": 18
},
"identifierName": "slots"
},
"name": "slots"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "ArrayExpression",
"start": 1784,
"end": 1786,
"loc": {
"start": {
"line": 56,
"column": 21
},
"end": {
"line": 56,
"column": 23
}
},
"elements": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @type {Array<ItemEjectorSlot>} ",
"start": 1724,
"end": 1761,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 45
}
}
}
]
},
{
"type": "ForStatement",
"start": 1797,
"end": 2149,
"loc": {
"start": {
"line": 57,
"column": 8
},
"end": {
"line": 67,
"column": 9
}
},
"init": {
"type": "VariableDeclaration",
"start": 1802,
"end": 1811,
"loc": {
"start": {
"line": 57,
"column": 13
},
"end": {
"line": 57,
"column": 22
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1806,
"end": 1811,
"loc": {
"start": {
"line": 57,
"column": 17
},
"end": {
"line": 57,
"column": 22
}
},
"id": {
"type": "Identifier",
"start": 1806,
"end": 1807,
"loc": {
"start": {
"line": 57,
"column": 17
},
"end": {
"line": 57,
"column": 18
},
"identifierName": "i"
},
"name": "i"
},
"init": {
"type": "NumericLiteral",
"start": 1810,
"end": 1811,
"loc": {
"start": {
"line": 57,
"column": 21
},
"end": {
"line": 57,
"column": 22
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 1813,
"end": 1829,
"loc": {
"start": {
"line": 57,
"column": 24
},
"end": {
"line": 57,
"column": 40
}
},
"left": {
"type": "Identifier",
"start": 1813,
"end": 1814,
"loc": {
"start": {
"line": 57,
"column": 24
},
"end": {
"line": 57,
"column": 25
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 1817,
"end": 1829,
"loc": {
"start": {
"line": 57,
"column": 28
},
"end": {
"line": 57,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 1817,
"end": 1822,
"loc": {
"start": {
"line": 57,
"column": 28
},
"end": {
"line": 57,
"column": 33
},
"identifierName": "slots"
},
"name": "slots"
},
"property": {
"type": "Identifier",
"start": 1823,
"end": 1829,
"loc": {
"start": {
"line": 57,
"column": 34
},
"end": {
"line": 57,
"column": 40
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
},
"update": {
"type": "UpdateExpression",
"start": 1831,
"end": 1834,
"loc": {
"start": {
"line": 57,
"column": 42
},
"end": {
"line": 57,
"column": 45
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 1833,
"end": 1834,
"loc": {
"start": {
"line": 57,
"column": 44
},
"end": {
"line": 57,
"column": 45
},
"identifierName": "i"
},
"name": "i"
},
"extra": {
"parenthesizedArgument": false
}
},
"body": {
"type": "BlockStatement",
"start": 1836,
"end": 2149,
"loc": {
"start": {
"line": 57,
"column": 47
},
"end": {
"line": 67,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1851,
"end": 1873,
"loc": {
"start": {
"line": 58,
"column": 12
},
"end": {
"line": 58,
"column": 34
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1857,
"end": 1872,
"loc": {
"start": {
"line": 58,
"column": 18
},
"end": {
"line": 58,
"column": 33
}
},
"id": {
"type": "Identifier",
"start": 1857,
"end": 1861,
"loc": {
"start": {
"line": 58,
"column": 18
},
"end": {
"line": 58,
"column": 22
},
"identifierName": "slot"
},
"name": "slot"
},
"init": {
"type": "MemberExpression",
"start": 1864,
"end": 1872,
"loc": {
"start": {
"line": 58,
"column": 25
},
"end": {
"line": 58,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 1864,
"end": 1869,
"loc": {
"start": {
"line": 58,
"column": 25
},
"end": {
"line": 58,
"column": 30
},
"identifierName": "slots"
},
"name": "slots"
},
"property": {
"type": "Identifier",
"start": 1870,
"end": 1871,
"loc": {
"start": {
"line": 58,
"column": 31
},
"end": {
"line": 58,
"column": 32
},
"identifierName": "i"
},
"name": "i"
},
"computed": true
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 1887,
"end": 2138,
"loc": {
"start": {
"line": 59,
"column": 12
},
"end": {
"line": 66,
"column": 15
}
},
"expression": {
"type": "CallExpression",
"start": 1887,
"end": 2137,
"loc": {
"start": {
"line": 59,
"column": 12
},
"end": {
"line": 66,
"column": 14
}
},
"callee": {
"type": "MemberExpression",
"start": 1887,
"end": 1902,
"loc": {
"start": {
"line": 59,
"column": 12
},
"end": {
"line": 59,
"column": 27
}
},
"object": {
"type": "MemberExpression",
"start": 1887,
"end": 1897,
"loc": {
"start": {
"line": 59,
"column": 12
},
"end": {
"line": 59,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 1887,
"end": 1891,
"loc": {
"start": {
"line": 59,
"column": 12
},
"end": {
"line": 59,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 1892,
"end": 1897,
"loc": {
"start": {
"line": 59,
"column": 17
},
"end": {
"line": 59,
"column": 22
},
"identifierName": "slots"
},
"name": "slots"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1898,
"end": 1902,
"loc": {
"start": {
"line": 59,
"column": 23
},
"end": {
"line": 59,
"column": 27
},
"identifierName": "push"
},
"name": "push"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 1903,
"end": 2136,
"loc": {
"start": {
"line": 59,
"column": 28
},
"end": {
"line": 66,
"column": 13
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 1922,
"end": 1935,
"loc": {
"start": {
"line": 60,
"column": 16
},
"end": {
"line": 60,
"column": 29
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1922,
"end": 1925,
"loc": {
"start": {
"line": 60,
"column": 16
},
"end": {
"line": 60,
"column": 19
},
"identifierName": "pos"
},
"name": "pos"
},
"value": {
"type": "MemberExpression",
"start": 1927,
"end": 1935,
"loc": {
"start": {
"line": 60,
"column": 21
},
"end": {
"line": 60,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 1927,
"end": 1931,
"loc": {
"start": {
"line": 60,
"column": 21
},
"end": {
"line": 60,
"column": 25
},
"identifierName": "slot"
},
"name": "slot"
},
"property": {
"type": "Identifier",
"start": 1932,
"end": 1935,
"loc": {
"start": {
"line": 60,
"column": 26
},
"end": {
"line": 60,
"column": 29
},
"identifierName": "pos"
},
"name": "pos"
},
"computed": false
}
},
{
"type": "ObjectProperty",
"start": 1954,
"end": 1979,
"loc": {
"start": {
"line": 61,
"column": 16
},
"end": {
"line": 61,
"column": 41
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1954,
"end": 1963,
"loc": {
"start": {
"line": 61,
"column": 16
},
"end": {
"line": 61,
"column": 25
},
"identifierName": "direction"
},
"name": "direction"
},
"value": {
"type": "MemberExpression",
"start": 1965,
"end": 1979,
"loc": {
"start": {
"line": 61,
"column": 27
},
"end": {
"line": 61,
"column": 41
}
},
"object": {
"type": "Identifier",
"start": 1965,
"end": 1969,
"loc": {
"start": {
"line": 61,
"column": 27
},
"end": {
"line": 61,
"column": 31
},
"identifierName": "slot"
},
"name": "slot"
},
"property": {
"type": "Identifier",
"start": 1970,
"end": 1979,
"loc": {
"start": {
"line": 61,
"column": 32
},
"end": {
"line": 61,
"column": 41
},
"identifierName": "direction"
},
"name": "direction"
},
"computed": false
}
},
{
"type": "ObjectProperty",
"start": 1998,
"end": 2008,
"loc": {
"start": {
"line": 62,
"column": 16
},
"end": {
"line": 62,
"column": 26
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1998,
"end": 2002,
"loc": {
"start": {
"line": 62,
"column": 16
},
"end": {
"line": 62,
"column": 20
},
"identifierName": "item"
},
"name": "item"
},
"value": {
"type": "NullLiteral",
"start": 2004,
"end": 2008,
"loc": {
"start": {
"line": 62,
"column": 22
},
"end": {
"line": 62,
"column": 26
}
}
}
},
{
"type": "ObjectProperty",
"start": 2027,
"end": 2038,
"loc": {
"start": {
"line": 63,
"column": 16
},
"end": {
"line": 63,
"column": 27
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2027,
"end": 2035,
"loc": {
"start": {
"line": 63,
"column": 16
},
"end": {
"line": 63,
"column": 24
},
"identifierName": "progress"
},
"name": "progress"
},
"value": {
"type": "NumericLiteral",
"start": 2037,
"end": 2038,
"loc": {
"start": {
"line": 63,
"column": 26
},
"end": {
"line": 63,
"column": 27
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "ObjectProperty",
"start": 2057,
"end": 2077,
"loc": {
"start": {
"line": 64,
"column": 16
},
"end": {
"line": 64,
"column": 36
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2057,
"end": 2071,
"loc": {
"start": {
"line": 64,
"column": 16
},
"end": {
"line": 64,
"column": 30
},
"identifierName": "cachedDestSlot"
},
"name": "cachedDestSlot"
},
"value": {
"type": "NullLiteral",
"start": 2073,
"end": 2077,
"loc": {
"start": {
"line": 64,
"column": 32
},
"end": {
"line": 64,
"column": 36
}
}
}
},
{
"type": "ObjectProperty",
"start": 2096,
"end": 2120,
"loc": {
"start": {
"line": 65,
"column": 16
},
"end": {
"line": 65,
"column": 40
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2096,
"end": 2114,
"loc": {
"start": {
"line": 65,
"column": 16
},
"end": {
"line": 65,
"column": 34
},
"identifierName": "cachedTargetEntity"
},
"name": "cachedTargetEntity"
},
"value": {
"type": "NullLiteral",
"start": 2116,
"end": 2120,
"loc": {
"start": {
"line": 65,
"column": 36
},
"end": {
"line": 65,
"column": 40
}
}
}
}
]
}
]
}
}
],
"directives": []
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @param {Array<{pos: Vector, direction: enumDirection }>} slots The slots to eject on\r\n ",
"start": 1586,
"end": 1691,
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 53,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns where this slot ejects to\r\n * @param {ItemEjectorSlot} slot\r\n * @returns {Vector}\r\n ",
"start": 2164,
"end": 2282,
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 74,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2288,
"end": 2444,
"loc": {
"start": {
"line": 75,
"column": 4
},
"end": {
"line": 78,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2288,
"end": 2310,
"loc": {
"start": {
"line": 75,
"column": 4
},
"end": {
"line": 75,
"column": 26
},
"identifierName": "getSlotTargetLocalTile"
},
"name": "getSlotTargetLocalTile",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2311,
"end": 2315,
"loc": {
"start": {
"line": 75,
"column": 27
},
"end": {
"line": 75,
"column": 31
},
"identifierName": "slot"
},
"name": "slot"
}
],
"body": {
"type": "BlockStatement",
"start": 2317,
"end": 2444,
"loc": {
"start": {
"line": 75,
"column": 33
},
"end": {
"line": 78,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 2328,
"end": 2390,
"loc": {
"start": {
"line": 76,
"column": 8
},
"end": {
"line": 76,
"column": 70
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2334,
"end": 2389,
"loc": {
"start": {
"line": 76,
"column": 14
},
"end": {
"line": 76,
"column": 69
}
},
"id": {
"type": "Identifier",
"start": 2334,
"end": 2349,
"loc": {
"start": {
"line": 76,
"column": 14
},
"end": {
"line": 76,
"column": 29
},
"identifierName": "directionVector"
},
"name": "directionVector"
},
"init": {
"type": "MemberExpression",
"start": 2352,
"end": 2389,
"loc": {
"start": {
"line": 76,
"column": 32
},
"end": {
"line": 76,
"column": 69
}
},
"object": {
"type": "Identifier",
"start": 2352,
"end": 2373,
"loc": {
"start": {
"line": 76,
"column": 32
},
"end": {
"line": 76,
"column": 53
},
"identifierName": "enumDirectionToVector"
},
"name": "enumDirectionToVector"
},
"property": {
"type": "MemberExpression",
"start": 2374,
"end": 2388,
"loc": {
"start": {
"line": 76,
"column": 54
},
"end": {
"line": 76,
"column": 68
}
},
"object": {
"type": "Identifier",
"start": 2374,
"end": 2378,
"loc": {
"start": {
"line": 76,
"column": 54
},
"end": {
"line": 76,
"column": 58
},
"identifierName": "slot"
},
"name": "slot"
},
"property": {
"type": "Identifier",
"start": 2379,
"end": 2388,
"loc": {
"start": {
"line": 76,
"column": 59
},
"end": {
"line": 76,
"column": 68
},
"identifierName": "direction"
},
"name": "direction"
},
"computed": false
},
"computed": true
}
}
],
"kind": "const"
},
{
"type": "ReturnStatement",
"start": 2400,
"end": 2437,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 45
}
},
"argument": {
"type": "CallExpression",
"start": 2407,
"end": 2436,
"loc": {
"start": {
"line": 77,
"column": 15
},
"end": {
"line": 77,
"column": 44
}
},
"callee": {
"type": "MemberExpression",
"start": 2407,
"end": 2419,
"loc": {
"start": {
"line": 77,
"column": 15
},
"end": {
"line": 77,
"column": 27
}
},
"object": {
"type": "MemberExpression",
"start": 2407,
"end": 2415,
"loc": {
"start": {
"line": 77,
"column": 15
},
"end": {
"line": 77,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 2407,
"end": 2411,
"loc": {
"start": {
"line": 77,
"column": 15
},
"end": {
"line": 77,
"column": 19
},
"identifierName": "slot"
},
"name": "slot"
},
"property": {
"type": "Identifier",
"start": 2412,
"end": 2415,
"loc": {
"start": {
"line": 77,
"column": 20
},
"end": {
"line": 77,
"column": 23
},
"identifierName": "pos"
},
"name": "pos"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2416,
"end": 2419,
"loc": {
"start": {
"line": 77,
"column": 24
},
"end": {
"line": 77,
"column": 27
},
"identifierName": "add"
},
"name": "add"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2420,
"end": 2435,
"loc": {
"start": {
"line": 77,
"column": 28
},
"end": {
"line": 77,
"column": 43
},
"identifierName": "directionVector"
},
"name": "directionVector"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns where this slot ejects to\r\n * @param {ItemEjectorSlot} slot\r\n * @returns {Vector}\r\n ",
"start": 2164,
"end": 2282,
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 74,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns whether any slot ejects to the given local tile\r\n * @param {Vector} tile\r\n ",
"start": 2452,
"end": 2557,
"loc": {
"start": {
"line": 80,
"column": 4
},
"end": {
"line": 83,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2563,
"end": 2812,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 91,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2563,
"end": 2587,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 28
},
"identifierName": "anySlotEjectsToLocalTile"
},
"name": "anySlotEjectsToLocalTile",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2588,
"end": 2592,
"loc": {
"start": {
"line": 84,
"column": 29
},
"end": {
"line": 84,
"column": 33
},
"identifierName": "tile"
},
"name": "tile"
}
],
"body": {
"type": "BlockStatement",
"start": 2594,
"end": 2812,
"loc": {
"start": {
"line": 84,
"column": 35
},
"end": {
"line": 91,
"column": 5
}
},
"body": [
{
"type": "ForStatement",
"start": 2605,
"end": 2782,
"loc": {
"start": {
"line": 85,
"column": 8
},
"end": {
"line": 89,
"column": 9
}
},
"init": {
"type": "VariableDeclaration",
"start": 2610,
"end": 2619,
"loc": {
"start": {
"line": 85,
"column": 13
},
"end": {
"line": 85,
"column": 22
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2614,
"end": 2619,
"loc": {
"start": {
"line": 85,
"column": 17
},
"end": {
"line": 85,
"column": 22
}
},
"id": {
"type": "Identifier",
"start": 2614,
"end": 2615,
"loc": {
"start": {
"line": 85,
"column": 17
},
"end": {
"line": 85,
"column": 18
},
"identifierName": "i"
},
"name": "i"
},
"init": {
"type": "NumericLiteral",
"start": 2618,
"end": 2619,
"loc": {
"start": {
"line": 85,
"column": 21
},
"end": {
"line": 85,
"column": 22
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 2621,
"end": 2642,
"loc": {
"start": {
"line": 85,
"column": 24
},
"end": {
"line": 85,
"column": 45
}
},
"left": {
"type": "Identifier",
"start": 2621,
"end": 2622,
"loc": {
"start": {
"line": 85,
"column": 24
},
"end": {
"line": 85,
"column": 25
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 2625,
"end": 2642,
"loc": {
"start": {
"line": 85,
"column": 28
},
"end": {
"line": 85,
"column": 45
}
},
"object": {
"type": "MemberExpression",
"start": 2625,
"end": 2635,
"loc": {
"start": {
"line": 85,
"column": 28
},
"end": {
"line": 85,
"column": 38
}
},
"object": {
"type": "ThisExpression",
"start": 2625,
"end": 2629,
"loc": {
"start": {
"line": 85,
"column": 28
},
"end": {
"line": 85,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 2630,
"end": 2635,
"loc": {
"start": {
"line": 85,
"column": 33
},
"end": {
"line": 85,
"column": 38
},
"identifierName": "slots"
},
"name": "slots"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2636,
"end": 2642,
"loc": {
"start": {
"line": 85,
"column": 39
},
"end": {
"line": 85,
"column": 45
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
},
"update": {
"type": "UpdateExpression",
"start": 2644,
"end": 2647,
"loc": {
"start": {
"line": 85,
"column": 47
},
"end": {
"line": 85,
"column": 50
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 2646,
"end": 2647,
"loc": {
"start": {
"line": 85,
"column": 49
},
"end": {
"line": 85,
"column": 50
},
"identifierName": "i"
},
"name": "i"
},
"extra": {
"parenthesizedArgument": false
}
},
"body": {
"type": "BlockStatement",
"start": 2649,
"end": 2782,
"loc": {
"start": {
"line": 85,
"column": 52
},
"end": {
"line": 89,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
"start": 2664,
"end": 2771,
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 88,
"column": 13
}
},
"test": {
"type": "CallExpression",
"start": 2668,
"end": 2723,
"loc": {
"start": {
"line": 86,
"column": 16
},
"end": {
"line": 86,
"column": 71
}
},
"callee": {
"type": "MemberExpression",
"start": 2668,
"end": 2717,
"loc": {
"start": {
"line": 86,
"column": 16
},
"end": {
"line": 86,
"column": 65
}
},
"object": {
"type": "CallExpression",
"start": 2668,
"end": 2710,
"loc": {
"start": {
"line": 86,
"column": 16
},
"end": {
"line": 86,
"column": 58
}
},
"callee": {
"type": "MemberExpression",
"start": 2668,
"end": 2695,
"loc": {
"start": {
"line": 86,
"column": 16
},
"end": {
"line": 86,
"column": 43
}
},
"object": {
"type": "ThisExpression",
"start": 2668,
"end": 2672,
"loc": {
"start": {
"line": 86,
"column": 16
},
"end": {
"line": 86,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"start": 2673,
"end": 2695,
"loc": {
"start": {
"line": 86,
"column": 21
},
"end": {
"line": 86,
"column": 43
},
"identifierName": "getSlotTargetLocalTile"
},
"name": "getSlotTargetLocalTile"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 2696,
"end": 2709,
"loc": {
"start": {
"line": 86,
"column": 44
},
"end": {
"line": 86,
"column": 57
}
},
"object": {
"type": "MemberExpression",
"start": 2696,
"end": 2706,
"loc": {
"start": {
"line": 86,
"column": 44
},
"end": {
"line": 86,
"column": 54
}
},
"object": {
"type": "ThisExpression",
"start": 2696,
"end": 2700,
"loc": {
"start": {
"line": 86,
"column": 44
},
"end": {
"line": 86,
"column": 48
}
}
},
"property": {
"type": "Identifier",
"start": 2701,
"end": 2706,
"loc": {
"start": {
"line": 86,
"column": 49
},
"end": {
"line": 86,
"column": 54
},
"identifierName": "slots"
},
"name": "slots"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2707,
"end": 2708,
"loc": {
"start": {
"line": 86,
"column": 55
},
"end": {
"line": 86,
"column": 56
},
"identifierName": "i"
},
"name": "i"
},
"computed": true
}
]
},
"property": {
"type": "Identifier",
"start": 2711,
"end": 2717,
"loc": {
"start": {
"line": 86,
"column": 59
},
"end": {
"line": 86,
"column": 65
},
"identifierName": "equals"
},
"name": "equals"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2718,
"end": 2722,
"loc": {
"start": {
"line": 86,
"column": 66
},
"end": {
"line": 86,
"column": 70
},
"identifierName": "tile"
},
"name": "tile"
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 2725,
"end": 2771,
"loc": {
"start": {
"line": 86,
"column": 73
},
"end": {
"line": 88,
"column": 13
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2744,
"end": 2756,
"loc": {
"start": {
"line": 87,
"column": 16
},
"end": {
"line": 87,
"column": 28
}
},
"argument": {
"type": "BooleanLiteral",
"start": 2751,
"end": 2755,
"loc": {
"start": {
"line": 87,
"column": 23
},
"end": {
"line": 87,
"column": 27
}
},
"value": true
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
},
{
"type": "ReturnStatement",
"start": 2792,
"end": 2805,
"loc": {
"start": {
"line": 90,
"column": 8
},
"end": {
"line": 90,
"column": 21
}
},
"argument": {
"type": "BooleanLiteral",
"start": 2799,
"end": 2804,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 20
}
},
"value": false
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns whether any slot ejects to the given local tile\r\n * @param {Vector} tile\r\n ",
"start": 2452,
"end": 2557,
"loc": {
"start": {
"line": 80,
"column": 4
},
"end": {
"line": 83,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if we can eject on a given slot\r\n * @param {number} slotIndex\r\n * @returns {boolean}\r\n ",
"start": 2820,
"end": 2941,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 97,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2947,
"end": 3130,
"loc": {
"start": {
"line": 98,
"column": 4
},
"end": {
"line": 101,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2947,
"end": 2961,
"loc": {
"start": {
"line": 98,
"column": 4
},
"end": {
"line": 98,
"column": 18
},
"identifierName": "canEjectOnSlot"
},
"name": "canEjectOnSlot",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2962,
"end": 2971,
"loc": {
"start": {
"line": 98,
"column": 19
},
"end": {
"line": 98,
"column": 28
},
"identifierName": "slotIndex"
},
"name": "slotIndex"
}
],
"body": {
"type": "BlockStatement",
"start": 2973,
"end": 3130,
"loc": {
"start": {
"line": 98,
"column": 30
},
"end": {
"line": 101,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2984,
"end": 3078,
"loc": {
"start": {
"line": 99,
"column": 8
},
"end": {
"line": 99,
"column": 102
}
},
"expression": {
"type": "CallExpression",
"start": 2984,
"end": 3077,
"loc": {
"start": {
"line": 99,
"column": 8
},
"end": {
"line": 99,
"column": 101
}
},
"callee": {
"type": "Identifier",
"start": 2984,
"end": 2990,
"loc": {
"start": {
"line": 99,
"column": 8
},
"end": {
"line": 99,
"column": 14
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "LogicalExpression",
"start": 2991,
"end": 3038,
"loc": {
"start": {
"line": 99,
"column": 15
},
"end": {
"line": 99,
"column": 62
}
},
"left": {
"type": "BinaryExpression",
"start": 2991,
"end": 3005,
"loc": {
"start": {
"line": 99,
"column": 15
},
"end": {
"line": 99,
"column": 29
}
},
"left": {
"type": "Identifier",
"start": 2991,
"end": 3000,
"loc": {
"start": {
"line": 99,
"column": 15
},
"end": {
"line": 99,
"column": 24
},
"identifierName": "slotIndex"
},
"name": "slotIndex"
},
"operator": ">=",
"right": {
"type": "NumericLiteral",
"start": 3004,
"end": 3005,
"loc": {
"start": {
"line": 99,
"column": 28
},
"end": {
"line": 99,
"column": 29
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 3009,
"end": 3038,
"loc": {
"start": {
"line": 99,
"column": 33
},
"end": {
"line": 99,
"column": 62
}
},
"left": {
"type": "Identifier",
"start": 3009,
"end": 3018,
"loc": {
"start": {
"line": 99,
"column": 33
},
"end": {
"line": 99,
"column": 42
},
"identifierName": "slotIndex"
},
"name": "slotIndex"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 3021,
"end": 3038,
"loc": {
"start": {
"line": 99,
"column": 45
},
"end": {
"line": 99,
"column": 62
}
},
"object": {
"type": "MemberExpression",
"start": 3021,
"end": 3031,
"loc": {
"start": {
"line": 99,
"column": 45
},
"end": {
"line": 99,
"column": 55
}
},
"object": {
"type": "ThisExpression",
"start": 3021,
"end": 3025,
"loc": {
"start": {
"line": 99,
"column": 45
},
"end": {
"line": 99,
"column": 49
}
}
},
"property": {
"type": "Identifier",
"start": 3026,
"end": 3031,
"loc": {
"start": {
"line": 99,
"column": 50
},
"end": {
"line": 99,
"column": 55
},
"identifierName": "slots"
},
"name": "slots"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3032,
"end": 3038,
"loc": {
"start": {
"line": 99,
"column": 56
},
"end": {
"line": 99,
"column": 62
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
}
},
{
"type": "BinaryExpression",
"start": 3040,
"end": 3076,
"loc": {
"start": {
"line": 99,
"column": 64
},
"end": {
"line": 99,
"column": 100
}
},
"left": {
"type": "StringLiteral",
"start": 3040,
"end": 3064,
"loc": {
"start": {
"line": 99,
"column": 64
},
"end": {
"line": 99,
"column": 88
}
},
"extra": {
"rawValue": "Invalid ejector slot: ",
"raw": "\"Invalid ejector slot: \""
},
"value": "Invalid ejector slot: "
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 3067,
"end": 3076,
"loc": {
"start": {
"line": 99,
"column": 91
},
"end": {
"line": 99,
"column": 100
},
"identifierName": "slotIndex"
},
"name": "slotIndex"
}
}
]
}
},
{
"type": "ReturnStatement",
"start": 3088,
"end": 3123,
"loc": {
"start": {
"line": 100,
"column": 8
},
"end": {
"line": 100,
"column": 43
}
},
"argument": {
"type": "UnaryExpression",
"start": 3095,
"end": 3122,
"loc": {
"start": {
"line": 100,
"column": 15
},
"end": {
"line": 100,
"column": 42
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 3096,
"end": 3122,
"loc": {
"start": {
"line": 100,
"column": 16
},
"end": {
"line": 100,
"column": 42
}
},
"object": {
"type": "MemberExpression",
"start": 3096,
"end": 3117,
"loc": {
"start": {
"line": 100,
"column": 16
},
"end": {
"line": 100,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 3096,
"end": 3106,
"loc": {
"start": {
"line": 100,
"column": 16
},
"end": {
"line": 100,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 3096,
"end": 3100,
"loc": {
"start": {
"line": 100,
"column": 16
},
"end": {
"line": 100,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"start": 3101,
"end": 3106,
"loc": {
"start": {
"line": 100,
"column": 21
},
"end": {
"line": 100,
"column": 26
},
"identifierName": "slots"
},
"name": "slots"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3107,
"end": 3116,
"loc": {
"start": {
"line": 100,
"column": 27
},
"end": {
"line": 100,
"column": 36
},
"identifierName": "slotIndex"
},
"name": "slotIndex"
},
"computed": true
},
"property": {
"type": "Identifier",
"start": 3118,
"end": 3122,
"loc": {
"start": {
"line": 100,
"column": 38
},
"end": {
"line": 100,
"column": 42
},
"identifierName": "item"
},
"name": "item"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if we can eject on a given slot\r\n * @param {number} slotIndex\r\n * @returns {boolean}\r\n ",
"start": 2820,
"end": 2941,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 97,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the first free slot on this ejector or null if there is none\r\n * @returns {number?}\r\n ",
"start": 3138,
"end": 3254,
"loc": {
"start": {
"line": 103,
"column": 4
},
"end": {
"line": 106,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3260,
"end": 3460,
"loc": {
"start": {
"line": 107,
"column": 4
},
"end": {
"line": 114,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3260,
"end": 3276,
"loc": {
"start": {
"line": 107,
"column": 4
},
"end": {
"line": 107,
"column": 20
},
"identifierName": "getFirstFreeSlot"
},
"name": "getFirstFreeSlot",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 3279,
"end": 3460,
"loc": {
"start": {
"line": 107,
"column": 23
},
"end": {
"line": 114,
"column": 5
}
},
"body": [
{
"type": "ForStatement",
"start": 3290,
"end": 3431,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 112,
"column": 9
}
},
"init": {
"type": "VariableDeclaration",
"start": 3295,
"end": 3304,
"loc": {
"start": {
"line": 108,
"column": 13
},
"end": {
"line": 108,
"column": 22
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3299,
"end": 3304,
"loc": {
"start": {
"line": 108,
"column": 17
},
"end": {
"line": 108,
"column": 22
}
},
"id": {
"type": "Identifier",
"start": 3299,
"end": 3300,
"loc": {
"start": {
"line": 108,
"column": 17
},
"end": {
"line": 108,
"column": 18
},
"identifierName": "i"
},
"name": "i"
},
"init": {
"type": "NumericLiteral",
"start": 3303,
"end": 3304,
"loc": {
"start": {
"line": 108,
"column": 21
},
"end": {
"line": 108,
"column": 22
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 3306,
"end": 3327,
"loc": {
"start": {
"line": 108,
"column": 24
},
"end": {
"line": 108,
"column": 45
}
},
"left": {
"type": "Identifier",
"start": 3306,
"end": 3307,
"loc": {
"start": {
"line": 108,
"column": 24
},
"end": {
"line": 108,
"column": 25
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 3310,
"end": 3327,
"loc": {
"start": {
"line": 108,
"column": 28
},
"end": {
"line": 108,
"column": 45
}
},
"object": {
"type": "MemberExpression",
"start": 3310,
"end": 3320,
"loc": {
"start": {
"line": 108,
"column": 28
},
"end": {
"line": 108,
"column": 38
}
},
"object": {
"type": "ThisExpression",
"start": 3310,
"end": 3314,
"loc": {
"start": {
"line": 108,
"column": 28
},
"end": {
"line": 108,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 3315,
"end": 3320,
"loc": {
"start": {
"line": 108,
"column": 33
},
"end": {
"line": 108,
"column": 38
},
"identifierName": "slots"
},
"name": "slots"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3321,
"end": 3327,
"loc": {
"start": {
"line": 108,
"column": 39
},
"end": {
"line": 108,
"column": 45
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
},
"update": {
"type": "UpdateExpression",
"start": 3329,
"end": 3332,
"loc": {
"start": {
"line": 108,
"column": 47
},
"end": {
"line": 108,
"column": 50
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 3331,
"end": 3332,
"loc": {
"start": {
"line": 108,
"column": 49
},
"end": {
"line": 108,
"column": 50
},
"identifierName": "i"
},
"name": "i"
},
"extra": {
"parenthesizedArgument": false
}
},
"body": {
"type": "BlockStatement",
"start": 3334,
"end": 3431,
"loc": {
"start": {
"line": 108,
"column": 52
},
"end": {
"line": 112,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
"start": 3349,
"end": 3420,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 111,
"column": 13
}
},
"test": {
"type": "CallExpression",
"start": 3353,
"end": 3375,
"loc": {
"start": {
"line": 109,
"column": 16
},
"end": {
"line": 109,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 3353,
"end": 3372,
"loc": {
"start": {
"line": 109,
"column": 16
},
"end": {
"line": 109,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 3353,
"end": 3357,
"loc": {
"start": {
"line": 109,
"column": 16
},
"end": {
"line": 109,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"start": 3358,
"end": 3372,
"loc": {
"start": {
"line": 109,
"column": 21
},
"end": {
"line": 109,
"column": 35
},
"identifierName": "canEjectOnSlot"
},
"name": "canEjectOnSlot"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3373,
"end": 3374,
"loc": {
"start": {
"line": 109,
"column": 36
},
"end": {
"line": 109,
"column": 37
},
"identifierName": "i"
},
"name": "i"
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 3377,
"end": 3420,
"loc": {
"start": {
"line": 109,
"column": 40
},
"end": {
"line": 111,
"column": 13
}
},
"body": [
{
"type": "ReturnStatement",
"start": 3396,
"end": 3405,
"loc": {
"start": {
"line": 110,
"column": 16
},
"end": {
"line": 110,
"column": 25
}
},
"argument": {
"type": "Identifier",
"start": 3403,
"end": 3404,
"loc": {
"start": {
"line": 110,
"column": 23
},
"end": {
"line": 110,
"column": 24
},
"identifierName": "i"
},
"name": "i"
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
},
{
"type": "ReturnStatement",
"start": 3441,
"end": 3453,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 20
}
},
"argument": {
"type": "NullLiteral",
"start": 3448,
"end": 3452,
"loc": {
"start": {
"line": 113,
"column": 15
},
"end": {
"line": 113,
"column": 19
}
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the first free slot on this ejector or null if there is none\r\n * @returns {number?}\r\n ",
"start": 3138,
"end": 3254,
"loc": {
"start": {
"line": 103,
"column": 4
},
"end": {
"line": 106,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Tries to eject a given item\r\n * @param {number} slotIndex\r\n * @param {BaseItem} item\r\n * @returns {boolean}\r\n ",
"start": 3468,
"end": 3608,
"loc": {
"start": {
"line": 116,
"column": 4
},
"end": {
"line": 121,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3614,
"end": 3845,
"loc": {
"start": {
"line": 122,
"column": 4
},
"end": {
"line": 129,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3614,
"end": 3622,
"loc": {
"start": {
"line": 122,
"column": 4
},
"end": {
"line": 122,
"column": 12
},
"identifierName": "tryEject"
},
"name": "tryEject",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 3623,
"end": 3632,
"loc": {
"start": {
"line": 122,
"column": 13
},
"end": {
"line": 122,
"column": 22
},
"identifierName": "slotIndex"
},
"name": "slotIndex"
},
{
"type": "Identifier",
"start": 3634,
"end": 3638,
"loc": {
"start": {
"line": 122,
"column": 24
},
"end": {
"line": 122,
"column": 28
},
"identifierName": "item"
},
"name": "item"
}
],
"body": {
"type": "BlockStatement",
"start": 3640,
"end": 3845,
"loc": {
"start": {
"line": 122,
"column": 30
},
"end": {
"line": 129,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 3651,
"end": 3727,
"loc": {
"start": {
"line": 123,
"column": 8
},
"end": {
"line": 125,
"column": 9
}
},
"test": {
"type": "UnaryExpression",
"start": 3655,
"end": 3686,
"loc": {
"start": {
"line": 123,
"column": 12
},
"end": {
"line": 123,
"column": 43
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "CallExpression",
"start": 3656,
"end": 3686,
"loc": {
"start": {
"line": 123,
"column": 13
},
"end": {
"line": 123,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 3656,
"end": 3675,
"loc": {
"start": {
"line": 123,
"column": 13
},
"end": {
"line": 123,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 3656,
"end": 3660,
"loc": {
"start": {
"line": 123,
"column": 13
},
"end": {
"line": 123,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"start": 3661,
"end": 3675,
"loc": {
"start": {
"line": 123,
"column": 18
},
"end": {
"line": 123,
"column": 32
},
"identifierName": "canEjectOnSlot"
},
"name": "canEjectOnSlot"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3676,
"end": 3685,
"loc": {
"start": {
"line": 123,
"column": 33
},
"end": {
"line": 123,
"column": 42
},
"identifierName": "slotIndex"
},
"name": "slotIndex"
}
]
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 3688,
"end": 3727,
"loc": {
"start": {
"line": 123,
"column": 45
},
"end": {
"line": 125,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 3703,
"end": 3716,
"loc": {
"start": {
"line": 124,
"column": 12
},
"end": {
"line": 124,
"column": 25
}
},
"argument": {
"type": "BooleanLiteral",
"start": 3710,
"end": 3715,
"loc": {
"start": {
"line": 124,
"column": 19
},
"end": {
"line": 124,
"column": 24
}
},
"value": false
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ExpressionStatement",
"start": 3737,
"end": 3771,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 42
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3737,
"end": 3770,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 41
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3737,
"end": 3763,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 34
}
},
"object": {
"type": "MemberExpression",
"start": 3737,
"end": 3758,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 3737,
"end": 3747,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 3737,
"end": 3741,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3742,
"end": 3747,
"loc": {
"start": {
"line": 126,
"column": 13
},
"end": {
"line": 126,
"column": 18
},
"identifierName": "slots"
},
"name": "slots"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3748,
"end": 3757,
"loc": {
"start": {
"line": 126,
"column": 19
},
"end": {
"line": 126,
"column": 28
},
"identifierName": "slotIndex"
},
"name": "slotIndex"
},
"computed": true
},
"property": {
"type": "Identifier",
"start": 3759,
"end": 3763,
"loc": {
"start": {
"line": 126,
"column": 30
},
"end": {
"line": 126,
"column": 34
},
"identifierName": "item"
},
"name": "item"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 3766,
"end": 3770,
"loc": {
"start": {
"line": 126,
"column": 37
},
"end": {
"line": 126,
"column": 41
},
"identifierName": "item"
},
"name": "item"
}
}
},
{
"type": "ExpressionStatement",
"start": 3781,
"end": 3816,
"loc": {
"start": {
"line": 127,
"column": 8
},
"end": {
"line": 127,
"column": 43
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3781,
"end": 3815,
"loc": {
"start": {
"line": 127,
"column": 8
},
"end": {
"line": 127,
"column": 42
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3781,
"end": 3811,
"loc": {
"start": {
"line": 127,
"column": 8
},
"end": {
"line": 127,
"column": 38
}
},
"object": {
"type": "MemberExpression",
"start": 3781,
"end": 3802,
"loc": {
"start": {
"line": 127,
"column": 8
},
"end": {
"line": 127,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 3781,
"end": 3791,
"loc": {
"start": {
"line": 127,
"column": 8
},
"end": {
"line": 127,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 3781,
"end": 3785,
"loc": {
"start": {
"line": 127,
"column": 8
},
"end": {
"line": 127,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3786,
"end": 3791,
"loc": {
"start": {
"line": 127,
"column": 13
},
"end": {
"line": 127,
"column": 18
},
"identifierName": "slots"
},
"name": "slots"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3792,
"end": 3801,
"loc": {
"start": {
"line": 127,
"column": 19
},
"end": {
"line": 127,
"column": 28
},
"identifierName": "slotIndex"
},
"name": "slotIndex"
},
"computed": true
},
"property": {
"type": "Identifier",
"start": 3803,
"end": 3811,
"loc": {
"start": {
"line": 127,
"column": 30
},
"end": {
"line": 127,
"column": 38
},
"identifierName": "progress"
},
"name": "progress"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 3814,
"end": 3815,
"loc": {
"start": {
"line": 127,
"column": 41
},
"end": {
"line": 127,
"column": 42
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
},
{
"type": "ReturnStatement",
"start": 3826,
"end": 3838,
"loc": {
"start": {
"line": 128,
"column": 8
},
"end": {
"line": 128,
"column": 20
}
},
"argument": {
"type": "BooleanLiteral",
"start": 3833,
"end": 3837,
"loc": {
"start": {
"line": 128,
"column": 15
},
"end": {
"line": 128,
"column": 19
}
},
"value": true
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Tries to eject a given item\r\n * @param {number} slotIndex\r\n * @param {BaseItem} item\r\n * @returns {boolean}\r\n ",
"start": 3468,
"end": 3608,
"loc": {
"start": {
"line": 116,
"column": 4
},
"end": {
"line": 121,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Clears the given slot and returns the item it had\r\n * @param {number} slotIndex\r\n * @returns {BaseItem|null}\r\n ",
"start": 3853,
"end": 3990,
"loc": {
"start": {
"line": 131,
"column": 4
},
"end": {
"line": 135,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3996,
"end": 4185,
"loc": {
"start": {
"line": 136,
"column": 4
},
"end": {
"line": 142,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3996,
"end": 4008,
"loc": {
"start": {
"line": 136,
"column": 4
},
"end": {
"line": 136,
"column": 16
},
"identifierName": "takeSlotItem"
},
"name": "takeSlotItem",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 4009,
"end": 4018,
"loc": {
"start": {
"line": 136,
"column": 17
},
"end": {
"line": 136,
"column": 26
},
"identifierName": "slotIndex"
},
"name": "slotIndex"
}
],
"body": {
"type": "BlockStatement",
"start": 4020,
"end": 4185,
"loc": {
"start": {
"line": 136,
"column": 28
},
"end": {
"line": 142,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 4031,
"end": 4066,
"loc": {
"start": {
"line": 137,
"column": 8
},
"end": {
"line": 137,
"column": 43
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4037,
"end": 4065,
"loc": {
"start": {
"line": 137,
"column": 14
},
"end": {
"line": 137,
"column": 42
}
},
"id": {
"type": "Identifier",
"start": 4037,
"end": 4041,
"loc": {
"start": {
"line": 137,
"column": 14
},
"end": {
"line": 137,
"column": 18
},
"identifierName": "slot"
},
"name": "slot"
},
"init": {
"type": "MemberExpression",
"start": 4044,
"end": 4065,
"loc": {
"start": {
"line": 137,
"column": 21
},
"end": {
"line": 137,
"column": 42
}
},
"object": {
"type": "MemberExpression",
"start": 4044,
"end": 4054,
"loc": {
"start": {
"line": 137,
"column": 21
},
"end": {
"line": 137,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 4044,
"end": 4048,
"loc": {
"start": {
"line": 137,
"column": 21
},
"end": {
"line": 137,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"start": 4049,
"end": 4054,
"loc": {
"start": {
"line": 137,
"column": 26
},
"end": {
"line": 137,
"column": 31
},
"identifierName": "slots"
},
"name": "slots"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 4055,
"end": 4064,
"loc": {
"start": {
"line": 137,
"column": 32
},
"end": {
"line": 137,
"column": 41
},
"identifierName": "slotIndex"
},
"name": "slotIndex"
},
"computed": true
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 4076,
"end": 4099,
"loc": {
"start": {
"line": 138,
"column": 8
},
"end": {
"line": 138,
"column": 31
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4082,
"end": 4098,
"loc": {
"start": {
"line": 138,
"column": 14
},
"end": {
"line": 138,
"column": 30
}
},
"id": {
"type": "Identifier",
"start": 4082,
"end": 4086,
"loc": {
"start": {
"line": 138,
"column": 14
},
"end": {
"line": 138,
"column": 18
},
"identifierName": "item"
},
"name": "item"
},
"init": {
"type": "MemberExpression",
"start": 4089,
"end": 4098,
"loc": {
"start": {
"line": 138,
"column": 21
},
"end": {
"line": 138,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 4089,
"end": 4093,
"loc": {
"start": {
"line": 138,
"column": 21
},
"end": {
"line": 138,
"column": 25
},
"identifierName": "slot"
},
"name": "slot"
},
"property": {
"type": "Identifier",
"start": 4094,
"end": 4098,
"loc": {
"start": {
"line": 138,
"column": 26
},
"end": {
"line": 138,
"column": 30
},
"identifierName": "item"
},
"name": "item"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 4109,
"end": 4126,
"loc": {
"start": {
"line": 139,
"column": 8
},
"end": {
"line": 139,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4109,
"end": 4125,
"loc": {
"start": {
"line": 139,
"column": 8
},
"end": {
"line": 139,
"column": 24
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 4109,
"end": 4118,
"loc": {
"start": {
"line": 139,
"column": 8
},
"end": {
"line": 139,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 4109,
"end": 4113,
"loc": {
"start": {
"line": 139,
"column": 8
},
"end": {
"line": 139,
"column": 12
},
"identifierName": "slot"
},
"name": "slot"
},
"property": {
"type": "Identifier",
"start": 4114,
"end": 4118,
"loc": {
"start": {
"line": 139,
"column": 13
},
"end": {
"line": 139,
"column": 17
},
"identifierName": "item"
},
"name": "item"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 4121,
"end": 4125,
"loc": {
"start": {
"line": 139,
"column": 20
},
"end": {
"line": 139,
"column": 24
}
}
}
}
},
{
"type": "ExpressionStatement",
"start": 4136,
"end": 4156,
"loc": {
"start": {
"line": 140,
"column": 8
},
"end": {
"line": 140,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4136,
"end": 4155,
"loc": {
"start": {
"line": 140,
"column": 8
},
"end": {
"line": 140,
"column": 27
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 4136,
"end": 4149,
"loc": {
"start": {
"line": 140,
"column": 8
},
"end": {
"line": 140,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 4136,
"end": 4140,
"loc": {
"start": {
"line": 140,
"column": 8
},
"end": {
"line": 140,
"column": 12
},
"identifierName": "slot"
},
"name": "slot"
},
"property": {
"type": "Identifier",
"start": 4141,
"end": 4149,
"loc": {
"start": {
"line": 140,
"column": 13
},
"end": {
"line": 140,
"column": 21
},
"identifierName": "progress"
},
"name": "progress"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 4152,
"end": 4155,
"loc": {
"start": {
"line": 140,
"column": 24
},
"end": {
"line": 140,
"column": 27
}
},
"extra": {
"rawValue": 0,
"raw": "0.0"
},
"value": 0
}
}
},
{
"type": "ReturnStatement",
"start": 4166,
"end": 4178,
"loc": {
"start": {
"line": 141,
"column": 8
},
"end": {
"line": 141,
"column": 20
}
},
"argument": {
"type": "Identifier",
"start": 4173,
"end": 4177,
"loc": {
"start": {
"line": 141,
"column": 15
},
"end": {
"line": 141,
"column": 19
},
"identifierName": "item"
},
"name": "item"
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Clears the given slot and returns the item it had\r\n * @param {number} slotIndex\r\n * @returns {BaseItem|null}\r\n ",
"start": 3853,
"end": 3990,
"loc": {
"start": {
"line": 131,
"column": 4
},
"end": {
"line": 135,
"column": 7
}
}
}
]
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @typedef {{\r\n * pos: Vector,\r\n * direction: enumDirection,\r\n * item: BaseItem,\r\n * progress: number?,\r\n * cachedDestSlot?: import(\"./item_acceptor\").ItemAcceptorLocatedSlot,\r\n * cachedBeltPath?: BeltPath,\r\n * cachedTargetEntity?: Entity\r\n * }} ItemEjectorSlot\r\n ",
"start": 359,
"end": 652,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 19,
"column": 3
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @typedef {{\r\n * pos: Vector,\r\n * direction: enumDirection,\r\n * item: BaseItem,\r\n * progress: number?,\r\n * cachedDestSlot?: import(\"./item_acceptor\").ItemAcceptorLocatedSlot,\r\n * cachedBeltPath?: BeltPath,\r\n * cachedTargetEntity?: Entity\r\n * }} ItemEjectorSlot\r\n ",
"start": 359,
"end": 652,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 19,
"column": 3
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\r\n * @typedef {{\r\n * pos: Vector,\r\n * direction: enumDirection,\r\n * item: BaseItem,\r\n * progress: number?,\r\n * cachedDestSlot?: import(\"./item_acceptor\").ItemAcceptorLocatedSlot,\r\n * cachedBeltPath?: BeltPath,\r\n * cachedTargetEntity?: Entity\r\n * }} ItemEjectorSlot\r\n ",
"start": 359,
"end": 652,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 19,
"column": 3
}
}
},
{
"type": "CommentLine",
"value": " The cachedDestSlot, cachedTargetEntity fields are not serialized.",
"start": 807,
"end": 875,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 76
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {object} param0\r\n * @param {Array<{pos: Vector, direction: enumDirection }>=} param0.slots The slots to eject on\r\n * @param {boolean=} param0.renderFloatingItems Whether to render items even if they are not connected\r\n ",
"start": 1140,
"end": 1400,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 43,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @param {Array<{pos: Vector, direction: enumDirection }>} slots The slots to eject on\r\n ",
"start": 1586,
"end": 1691,
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 53,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Array<ItemEjectorSlot>} ",
"start": 1724,
"end": 1761,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 45
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns where this slot ejects to\r\n * @param {ItemEjectorSlot} slot\r\n * @returns {Vector}\r\n ",
"start": 2164,
"end": 2282,
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 74,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns whether any slot ejects to the given local tile\r\n * @param {Vector} tile\r\n ",
"start": 2452,
"end": 2557,
"loc": {
"start": {
"line": 80,
"column": 4
},
"end": {
"line": 83,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if we can eject on a given slot\r\n * @param {number} slotIndex\r\n * @returns {boolean}\r\n ",
"start": 2820,
"end": 2941,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 97,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the first free slot on this ejector or null if there is none\r\n * @returns {number?}\r\n ",
"start": 3138,
"end": 3254,
"loc": {
"start": {
"line": 103,
"column": 4
},
"end": {
"line": 106,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Tries to eject a given item\r\n * @param {number} slotIndex\r\n * @param {BaseItem} item\r\n * @returns {boolean}\r\n ",
"start": 3468,
"end": 3608,
"loc": {
"start": {
"line": 116,
"column": 4
},
"end": {
"line": 121,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Clears the given slot and returns the item it had\r\n * @param {number} slotIndex\r\n * @returns {BaseItem|null}\r\n ",
"start": 3853,
"end": 3990,
"loc": {
"start": {
"line": 131,
"column": 4
},
"end": {
"line": 135,
"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": "enumDirection",
"start": 9,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 22
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": 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": "enumDirectionToVector",
"start": 24,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 24
},
"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": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Vector",
"start": 47,
"end": 53,
"loc": {
"start": {
"line": 1,
"column": 47
},
"end": {
"line": 1,
"column": 53
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 54,
"end": 55,
"loc": {
"start": {
"line": 1,
"column": 54
},
"end": {
"line": 1,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 56,
"end": 60,
"loc": {
"start": {
"line": 1,
"column": 56
},
"end": {
"line": 1,
"column": 60
}
}
},
{
"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": 61,
"end": 80,
"loc": {
"start": {
"line": 1,
"column": 61
},
"end": {
"line": 1,
"column": 80
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 80,
"end": 81,
"loc": {
"start": {
"line": 1,
"column": 80
},
"end": {
"line": 1,
"column": 81
}
}
},
{
"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": 83,
"end": 89,
"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": 90,
"end": 91,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "types",
"start": 92,
"end": 97,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 14
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 98,
"end": 99,
"loc": {
"start": {
"line": 2,
"column": 15
},
"end": {
"line": 2,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 100,
"end": 104,
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 21
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../../savegame/serialization",
"start": 105,
"end": 135,
"loc": {
"start": {
"line": 2,
"column": 22
},
"end": {
"line": 2,
"column": 52
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 135,
"end": 136,
"loc": {
"start": {
"line": 2,
"column": 52
},
"end": {
"line": 2,
"column": 53
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 138,
"end": 144,
"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": 145,
"end": 146,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BaseItem",
"start": 147,
"end": 155,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 156,
"end": 157,
"loc": {
"start": {
"line": 3,
"column": 18
},
"end": {
"line": 3,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 158,
"end": 162,
"loc": {
"start": {
"line": 3,
"column": 20
},
"end": {
"line": 3,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../base_item",
"start": 163,
"end": 177,
"loc": {
"start": {
"line": 3,
"column": 25
},
"end": {
"line": 3,
"column": 39
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 177,
"end": 178,
"loc": {
"start": {
"line": 3,
"column": 39
},
"end": {
"line": 3,
"column": 40
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 180,
"end": 186,
"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": 187,
"end": 188,
"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": "BeltPath",
"start": 189,
"end": 197,
"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": 198,
"end": 199,
"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": 200,
"end": 204,
"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": "../belt_path",
"start": 205,
"end": 219,
"loc": {
"start": {
"line": 4,
"column": 25
},
"end": {
"line": 4,
"column": 39
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 219,
"end": 220,
"loc": {
"start": {
"line": 4,
"column": 39
},
"end": {
"line": 4,
"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": 222,
"end": 228,
"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": 229,
"end": 230,
"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": "Component",
"start": 231,
"end": 240,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 241,
"end": 242,
"loc": {
"start": {
"line": 5,
"column": 19
},
"end": {
"line": 5,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 243,
"end": 247,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 25
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../component",
"start": 248,
"end": 262,
"loc": {
"start": {
"line": 5,
"column": 26
},
"end": {
"line": 5,
"column": 40
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 262,
"end": 263,
"loc": {
"start": {
"line": 5,
"column": 40
},
"end": {
"line": 5,
"column": 41
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 265,
"end": 271,
"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": 272,
"end": 273,
"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": "Entity",
"start": 274,
"end": 280,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 281,
"end": 282,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 283,
"end": 287,
"loc": {
"start": {
"line": 6,
"column": 18
},
"end": {
"line": 6,
"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": 288,
"end": 299,
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 6,
"column": 34
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 299,
"end": 300,
"loc": {
"start": {
"line": 6,
"column": 34
},
"end": {
"line": 6,
"column": 35
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 302,
"end": 308,
"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": 309,
"end": 310,
"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": "typeItemSingleton",
"start": 311,
"end": 328,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 26
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 329,
"end": 330,
"loc": {
"start": {
"line": 7,
"column": 27
},
"end": {
"line": 7,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 331,
"end": 335,
"loc": {
"start": {
"line": 7,
"column": 29
},
"end": {
"line": 7,
"column": 33
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../item_resolver",
"start": 336,
"end": 354,
"loc": {
"start": {
"line": 7,
"column": 34
},
"end": {
"line": 7,
"column": 52
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 354,
"end": 355,
"loc": {
"start": {
"line": 7,
"column": 52
},
"end": {
"line": 7,
"column": 53
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @typedef {{\r\n * pos: Vector,\r\n * direction: enumDirection,\r\n * item: BaseItem,\r\n * progress: number?,\r\n * cachedDestSlot?: import(\"./item_acceptor\").ItemAcceptorLocatedSlot,\r\n * cachedBeltPath?: BeltPath,\r\n * cachedTargetEntity?: Entity\r\n * }} ItemEjectorSlot\r\n ",
"start": 359,
"end": 652,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 19,
"column": 3
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 656,
"end": 662,
"loc": {
"start": {
"line": 21,
"column": 0
},
"end": {
"line": 21,
"column": 6
}
}
},
{
"type": {
"label": "class",
"keyword": "class",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "class",
"start": 663,
"end": 668,
"loc": {
"start": {
"line": 21,
"column": 7
},
"end": {
"line": 21,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ItemEjectorComponent",
"start": 669,
"end": 689,
"loc": {
"start": {
"line": 21,
"column": 13
},
"end": {
"line": 21,
"column": 33
}
}
},
{
"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": 690,
"end": 697,
"loc": {
"start": {
"line": 21,
"column": 34
},
"end": {
"line": 21,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Component",
"start": 698,
"end": 707,
"loc": {
"start": {
"line": 21,
"column": 42
},
"end": {
"line": 21,
"column": 51
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 708,
"end": 709,
"loc": {
"start": {
"line": 21,
"column": 52
},
"end": {
"line": 21,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 715,
"end": 721,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getId",
"start": 722,
"end": 727,
"loc": {
"start": {
"line": 22,
"column": 11
},
"end": {
"line": 22,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 727,
"end": 728,
"loc": {
"start": {
"line": 22,
"column": 16
},
"end": {
"line": 22,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 728,
"end": 729,
"loc": {
"start": {
"line": 22,
"column": 17
},
"end": {
"line": 22,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 730,
"end": 731,
"loc": {
"start": {
"line": 22,
"column": 19
},
"end": {
"line": 22,
"column": 20
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 741,
"end": 747,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 14
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "ItemEjector",
"start": 748,
"end": 761,
"loc": {
"start": {
"line": 23,
"column": 15
},
"end": {
"line": 23,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 761,
"end": 762,
"loc": {
"start": {
"line": 23,
"column": 28
},
"end": {
"line": 23,
"column": 29
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 768,
"end": 769,
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 24,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 777,
"end": 783,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 26,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSchema",
"start": 784,
"end": 793,
"loc": {
"start": {
"line": 26,
"column": 11
},
"end": {
"line": 26,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 793,
"end": 794,
"loc": {
"start": {
"line": 26,
"column": 20
},
"end": {
"line": 26,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 794,
"end": 795,
"loc": {
"start": {
"line": 26,
"column": 21
},
"end": {
"line": 26,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 796,
"end": 797,
"loc": {
"start": {
"line": 26,
"column": 23
},
"end": {
"line": 26,
"column": 24
}
}
},
{
"type": "CommentLine",
"value": " The cachedDestSlot, cachedTargetEntity fields are not serialized.",
"start": 807,
"end": 875,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 76
}
}
},
{
"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": 885,
"end": 891,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 892,
"end": 893,
"loc": {
"start": {
"line": 28,
"column": 15
},
"end": {
"line": 28,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 907,
"end": 912,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 17
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 912,
"end": 913,
"loc": {
"start": {
"line": 29,
"column": 17
},
"end": {
"line": 29,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "types",
"start": 914,
"end": 919,
"loc": {
"start": {
"line": 29,
"column": 19
},
"end": {
"line": 29,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 919,
"end": 920,
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fixedSizeArray",
"start": 920,
"end": 934,
"loc": {
"start": {
"line": 29,
"column": 25
},
"end": {
"line": 29,
"column": 39
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 934,
"end": 935,
"loc": {
"start": {
"line": 29,
"column": 39
},
"end": {
"line": 29,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "types",
"start": 953,
"end": 958,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 958,
"end": 959,
"loc": {
"start": {
"line": 30,
"column": 21
},
"end": {
"line": 30,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "structured",
"start": 959,
"end": 969,
"loc": {
"start": {
"line": 30,
"column": 22
},
"end": {
"line": 30,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 969,
"end": 970,
"loc": {
"start": {
"line": 30,
"column": 32
},
"end": {
"line": 30,
"column": 33
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 970,
"end": 971,
"loc": {
"start": {
"line": 30,
"column": 33
},
"end": {
"line": 30,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 993,
"end": 997,
"loc": {
"start": {
"line": 31,
"column": 20
},
"end": {
"line": 31,
"column": 24
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 997,
"end": 998,
"loc": {
"start": {
"line": 31,
"column": 24
},
"end": {
"line": 31,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "types",
"start": 999,
"end": 1004,
"loc": {
"start": {
"line": 31,
"column": 26
},
"end": {
"line": 31,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1004,
"end": 1005,
"loc": {
"start": {
"line": 31,
"column": 31
},
"end": {
"line": 31,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nullable",
"start": 1005,
"end": 1013,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 40
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1013,
"end": 1014,
"loc": {
"start": {
"line": 31,
"column": 40
},
"end": {
"line": 31,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "typeItemSingleton",
"start": 1014,
"end": 1031,
"loc": {
"start": {
"line": 31,
"column": 41
},
"end": {
"line": 31,
"column": 58
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1031,
"end": 1032,
"loc": {
"start": {
"line": 31,
"column": 58
},
"end": {
"line": 31,
"column": 59
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1032,
"end": 1033,
"loc": {
"start": {
"line": 31,
"column": 59
},
"end": {
"line": 31,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 1055,
"end": 1063,
"loc": {
"start": {
"line": 32,
"column": 20
},
"end": {
"line": 32,
"column": 28
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1063,
"end": 1064,
"loc": {
"start": {
"line": 32,
"column": 28
},
"end": {
"line": 32,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "types",
"start": 1065,
"end": 1070,
"loc": {
"start": {
"line": 32,
"column": 30
},
"end": {
"line": 32,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1070,
"end": 1071,
"loc": {
"start": {
"line": 32,
"column": 35
},
"end": {
"line": 32,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "float",
"start": 1071,
"end": 1076,
"loc": {
"start": {
"line": 32,
"column": 36
},
"end": {
"line": 32,
"column": 41
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1076,
"end": 1077,
"loc": {
"start": {
"line": 32,
"column": 41
},
"end": {
"line": 32,
"column": 42
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1095,
"end": 1096,
"loc": {
"start": {
"line": 33,
"column": 16
},
"end": {
"line": 33,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1096,
"end": 1097,
"loc": {
"start": {
"line": 33,
"column": 17
},
"end": {
"line": 33,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1111,
"end": 1112,
"loc": {
"start": {
"line": 34,
"column": 12
},
"end": {
"line": 34,
"column": 13
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1112,
"end": 1113,
"loc": {
"start": {
"line": 34,
"column": 13
},
"end": {
"line": 34,
"column": 14
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1123,
"end": 1124,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 9
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1124,
"end": 1125,
"loc": {
"start": {
"line": 35,
"column": 9
},
"end": {
"line": 35,
"column": 10
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1131,
"end": 1132,
"loc": {
"start": {
"line": 36,
"column": 4
},
"end": {
"line": 36,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {object} param0\r\n * @param {Array<{pos: Vector, direction: enumDirection }>=} param0.slots The slots to eject on\r\n * @param {boolean=} param0.renderFloatingItems Whether to render items even if they are not connected\r\n ",
"start": 1140,
"end": 1400,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 43,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 1406,
"end": 1417,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1417,
"end": 1418,
"loc": {
"start": {
"line": 44,
"column": 15
},
"end": {
"line": 44,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1418,
"end": 1419,
"loc": {
"start": {
"line": 44,
"column": 16
},
"end": {
"line": 44,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 1420,
"end": 1425,
"loc": {
"start": {
"line": 44,
"column": 18
},
"end": {
"line": 44,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1426,
"end": 1427,
"loc": {
"start": {
"line": 44,
"column": 24
},
"end": {
"line": 44,
"column": 25
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1428,
"end": 1429,
"loc": {
"start": {
"line": 44,
"column": 26
},
"end": {
"line": 44,
"column": 27
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1429,
"end": 1430,
"loc": {
"start": {
"line": 44,
"column": 27
},
"end": {
"line": 44,
"column": 28
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1430,
"end": 1431,
"loc": {
"start": {
"line": 44,
"column": 28
},
"end": {
"line": 44,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "renderFloatingItems",
"start": 1432,
"end": 1451,
"loc": {
"start": {
"line": 44,
"column": 30
},
"end": {
"line": 44,
"column": 49
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1452,
"end": 1453,
"loc": {
"start": {
"line": 44,
"column": 50
},
"end": {
"line": 44,
"column": 51
}
}
},
{
"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": 1454,
"end": 1458,
"loc": {
"start": {
"line": 44,
"column": 52
},
"end": {
"line": 44,
"column": 56
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1459,
"end": 1460,
"loc": {
"start": {
"line": 44,
"column": 57
},
"end": {
"line": 44,
"column": 58
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1460,
"end": 1461,
"loc": {
"start": {
"line": 44,
"column": 58
},
"end": {
"line": 44,
"column": 59
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1462,
"end": 1463,
"loc": {
"start": {
"line": 44,
"column": 60
},
"end": {
"line": 44,
"column": 61
}
}
},
{
"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": 1473,
"end": 1478,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1478,
"end": 1479,
"loc": {
"start": {
"line": 45,
"column": 13
},
"end": {
"line": 45,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1479,
"end": 1480,
"loc": {
"start": {
"line": 45,
"column": 14
},
"end": {
"line": 45,
"column": 15
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1480,
"end": 1481,
"loc": {
"start": {
"line": 45,
"column": 15
},
"end": {
"line": 45,
"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": 1493,
"end": 1497,
"loc": {
"start": {
"line": 47,
"column": 8
},
"end": {
"line": 47,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1497,
"end": 1498,
"loc": {
"start": {
"line": 47,
"column": 12
},
"end": {
"line": 47,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setSlots",
"start": 1498,
"end": 1506,
"loc": {
"start": {
"line": 47,
"column": 13
},
"end": {
"line": 47,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1506,
"end": 1507,
"loc": {
"start": {
"line": 47,
"column": 21
},
"end": {
"line": 47,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 1507,
"end": 1512,
"loc": {
"start": {
"line": 47,
"column": 22
},
"end": {
"line": 47,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1512,
"end": 1513,
"loc": {
"start": {
"line": 47,
"column": 27
},
"end": {
"line": 47,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1513,
"end": 1514,
"loc": {
"start": {
"line": 47,
"column": 28
},
"end": {
"line": 47,
"column": 29
}
}
},
{
"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": 1524,
"end": 1528,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1528,
"end": 1529,
"loc": {
"start": {
"line": 48,
"column": 12
},
"end": {
"line": 48,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "renderFloatingItems",
"start": 1529,
"end": 1548,
"loc": {
"start": {
"line": 48,
"column": 13
},
"end": {
"line": 48,
"column": 32
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1549,
"end": 1550,
"loc": {
"start": {
"line": 48,
"column": 33
},
"end": {
"line": 48,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "renderFloatingItems",
"start": 1551,
"end": 1570,
"loc": {
"start": {
"line": 48,
"column": 35
},
"end": {
"line": 48,
"column": 54
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1570,
"end": 1571,
"loc": {
"start": {
"line": 48,
"column": 54
},
"end": {
"line": 48,
"column": 55
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1577,
"end": 1578,
"loc": {
"start": {
"line": 49,
"column": 4
},
"end": {
"line": 49,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @param {Array<{pos: Vector, direction: enumDirection }>} slots The slots to eject on\r\n ",
"start": 1586,
"end": 1691,
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 53,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setSlots",
"start": 1697,
"end": 1705,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1705,
"end": 1706,
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 1706,
"end": 1711,
"loc": {
"start": {
"line": 54,
"column": 13
},
"end": {
"line": 54,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1711,
"end": 1712,
"loc": {
"start": {
"line": 54,
"column": 18
},
"end": {
"line": 54,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1713,
"end": 1714,
"loc": {
"start": {
"line": 54,
"column": 20
},
"end": {
"line": 54,
"column": 21
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Array<ItemEjectorSlot>} ",
"start": 1724,
"end": 1761,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 45
}
}
},
{
"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": 1771,
"end": 1775,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1775,
"end": 1776,
"loc": {
"start": {
"line": 56,
"column": 12
},
"end": {
"line": 56,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 1776,
"end": 1781,
"loc": {
"start": {
"line": 56,
"column": 13
},
"end": {
"line": 56,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1782,
"end": 1783,
"loc": {
"start": {
"line": 56,
"column": 19
},
"end": {
"line": 56,
"column": 20
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1784,
"end": 1785,
"loc": {
"start": {
"line": 56,
"column": 21
},
"end": {
"line": 56,
"column": 22
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1785,
"end": 1786,
"loc": {
"start": {
"line": 56,
"column": 22
},
"end": {
"line": 56,
"column": 23
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1786,
"end": 1787,
"loc": {
"start": {
"line": 56,
"column": 23
},
"end": {
"line": 56,
"column": 24
}
}
},
{
"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": 1797,
"end": 1800,
"loc": {
"start": {
"line": 57,
"column": 8
},
"end": {
"line": 57,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1801,
"end": 1802,
"loc": {
"start": {
"line": 57,
"column": 12
},
"end": {
"line": 57,
"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": 1802,
"end": 1805,
"loc": {
"start": {
"line": 57,
"column": 13
},
"end": {
"line": 57,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 1806,
"end": 1807,
"loc": {
"start": {
"line": 57,
"column": 17
},
"end": {
"line": 57,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1808,
"end": 1809,
"loc": {
"start": {
"line": 57,
"column": 19
},
"end": {
"line": 57,
"column": 20
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 1810,
"end": 1811,
"loc": {
"start": {
"line": 57,
"column": 21
},
"end": {
"line": 57,
"column": 22
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1811,
"end": 1812,
"loc": {
"start": {
"line": 57,
"column": 22
},
"end": {
"line": 57,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 1813,
"end": 1814,
"loc": {
"start": {
"line": 57,
"column": 24
},
"end": {
"line": 57,
"column": 25
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 1815,
"end": 1816,
"loc": {
"start": {
"line": 57,
"column": 26
},
"end": {
"line": 57,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 1817,
"end": 1822,
"loc": {
"start": {
"line": 57,
"column": 28
},
"end": {
"line": 57,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1822,
"end": 1823,
"loc": {
"start": {
"line": 57,
"column": 33
},
"end": {
"line": 57,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 1823,
"end": 1829,
"loc": {
"start": {
"line": 57,
"column": 34
},
"end": {
"line": 57,
"column": 40
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1829,
"end": 1830,
"loc": {
"start": {
"line": 57,
"column": 40
},
"end": {
"line": 57,
"column": 41
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 1831,
"end": 1833,
"loc": {
"start": {
"line": 57,
"column": 42
},
"end": {
"line": 57,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 1833,
"end": 1834,
"loc": {
"start": {
"line": 57,
"column": 44
},
"end": {
"line": 57,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1834,
"end": 1835,
"loc": {
"start": {
"line": 57,
"column": 45
},
"end": {
"line": 57,
"column": 46
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1836,
"end": 1837,
"loc": {
"start": {
"line": 57,
"column": 47
},
"end": {
"line": 57,
"column": 48
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1851,
"end": 1856,
"loc": {
"start": {
"line": 58,
"column": 12
},
"end": {
"line": 58,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slot",
"start": 1857,
"end": 1861,
"loc": {
"start": {
"line": 58,
"column": 18
},
"end": {
"line": 58,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1862,
"end": 1863,
"loc": {
"start": {
"line": 58,
"column": 23
},
"end": {
"line": 58,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 1864,
"end": 1869,
"loc": {
"start": {
"line": 58,
"column": 25
},
"end": {
"line": 58,
"column": 30
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1869,
"end": 1870,
"loc": {
"start": {
"line": 58,
"column": 30
},
"end": {
"line": 58,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 1870,
"end": 1871,
"loc": {
"start": {
"line": 58,
"column": 31
},
"end": {
"line": 58,
"column": 32
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1871,
"end": 1872,
"loc": {
"start": {
"line": 58,
"column": 32
},
"end": {
"line": 58,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1872,
"end": 1873,
"loc": {
"start": {
"line": 58,
"column": 33
},
"end": {
"line": 58,
"column": 34
}
}
},
{
"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": 1887,
"end": 1891,
"loc": {
"start": {
"line": 59,
"column": 12
},
"end": {
"line": 59,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1891,
"end": 1892,
"loc": {
"start": {
"line": 59,
"column": 16
},
"end": {
"line": 59,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 1892,
"end": 1897,
"loc": {
"start": {
"line": 59,
"column": 17
},
"end": {
"line": 59,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1897,
"end": 1898,
"loc": {
"start": {
"line": 59,
"column": 22
},
"end": {
"line": 59,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "push",
"start": 1898,
"end": 1902,
"loc": {
"start": {
"line": 59,
"column": 23
},
"end": {
"line": 59,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1902,
"end": 1903,
"loc": {
"start": {
"line": 59,
"column": 27
},
"end": {
"line": 59,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1903,
"end": 1904,
"loc": {
"start": {
"line": 59,
"column": 28
},
"end": {
"line": 59,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pos",
"start": 1922,
"end": 1925,
"loc": {
"start": {
"line": 60,
"column": 16
},
"end": {
"line": 60,
"column": 19
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1925,
"end": 1926,
"loc": {
"start": {
"line": 60,
"column": 19
},
"end": {
"line": 60,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slot",
"start": 1927,
"end": 1931,
"loc": {
"start": {
"line": 60,
"column": 21
},
"end": {
"line": 60,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1931,
"end": 1932,
"loc": {
"start": {
"line": 60,
"column": 25
},
"end": {
"line": 60,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pos",
"start": 1932,
"end": 1935,
"loc": {
"start": {
"line": 60,
"column": 26
},
"end": {
"line": 60,
"column": 29
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1935,
"end": 1936,
"loc": {
"start": {
"line": 60,
"column": 29
},
"end": {
"line": 60,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 1954,
"end": 1963,
"loc": {
"start": {
"line": 61,
"column": 16
},
"end": {
"line": 61,
"column": 25
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1963,
"end": 1964,
"loc": {
"start": {
"line": 61,
"column": 25
},
"end": {
"line": 61,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slot",
"start": 1965,
"end": 1969,
"loc": {
"start": {
"line": 61,
"column": 27
},
"end": {
"line": 61,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1969,
"end": 1970,
"loc": {
"start": {
"line": 61,
"column": 31
},
"end": {
"line": 61,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 1970,
"end": 1979,
"loc": {
"start": {
"line": 61,
"column": 32
},
"end": {
"line": 61,
"column": 41
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1979,
"end": 1980,
"loc": {
"start": {
"line": 61,
"column": 41
},
"end": {
"line": 61,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 1998,
"end": 2002,
"loc": {
"start": {
"line": 62,
"column": 16
},
"end": {
"line": 62,
"column": 20
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2002,
"end": 2003,
"loc": {
"start": {
"line": 62,
"column": 20
},
"end": {
"line": 62,
"column": 21
}
}
},
{
"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": 2004,
"end": 2008,
"loc": {
"start": {
"line": 62,
"column": 22
},
"end": {
"line": 62,
"column": 26
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2008,
"end": 2009,
"loc": {
"start": {
"line": 62,
"column": 26
},
"end": {
"line": 62,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 2027,
"end": 2035,
"loc": {
"start": {
"line": 63,
"column": 16
},
"end": {
"line": 63,
"column": 24
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2035,
"end": 2036,
"loc": {
"start": {
"line": 63,
"column": 24
},
"end": {
"line": 63,
"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": 2037,
"end": 2038,
"loc": {
"start": {
"line": 63,
"column": 26
},
"end": {
"line": 63,
"column": 27
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2038,
"end": 2039,
"loc": {
"start": {
"line": 63,
"column": 27
},
"end": {
"line": 63,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cachedDestSlot",
"start": 2057,
"end": 2071,
"loc": {
"start": {
"line": 64,
"column": 16
},
"end": {
"line": 64,
"column": 30
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2071,
"end": 2072,
"loc": {
"start": {
"line": 64,
"column": 30
},
"end": {
"line": 64,
"column": 31
}
}
},
{
"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": 2073,
"end": 2077,
"loc": {
"start": {
"line": 64,
"column": 32
},
"end": {
"line": 64,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2077,
"end": 2078,
"loc": {
"start": {
"line": 64,
"column": 36
},
"end": {
"line": 64,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cachedTargetEntity",
"start": 2096,
"end": 2114,
"loc": {
"start": {
"line": 65,
"column": 16
},
"end": {
"line": 65,
"column": 34
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2114,
"end": 2115,
"loc": {
"start": {
"line": 65,
"column": 34
},
"end": {
"line": 65,
"column": 35
}
}
},
{
"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": 2116,
"end": 2120,
"loc": {
"start": {
"line": 65,
"column": 36
},
"end": {
"line": 65,
"column": 40
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2120,
"end": 2121,
"loc": {
"start": {
"line": 65,
"column": 40
},
"end": {
"line": 65,
"column": 41
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2135,
"end": 2136,
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 13
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2136,
"end": 2137,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 14
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2137,
"end": 2138,
"loc": {
"start": {
"line": 66,
"column": 14
},
"end": {
"line": 66,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2148,
"end": 2149,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2155,
"end": 2156,
"loc": {
"start": {
"line": 68,
"column": 4
},
"end": {
"line": 68,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns where this slot ejects to\r\n * @param {ItemEjectorSlot} slot\r\n * @returns {Vector}\r\n ",
"start": 2164,
"end": 2282,
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 74,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSlotTargetLocalTile",
"start": 2288,
"end": 2310,
"loc": {
"start": {
"line": 75,
"column": 4
},
"end": {
"line": 75,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2310,
"end": 2311,
"loc": {
"start": {
"line": 75,
"column": 26
},
"end": {
"line": 75,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slot",
"start": 2311,
"end": 2315,
"loc": {
"start": {
"line": 75,
"column": 27
},
"end": {
"line": 75,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2315,
"end": 2316,
"loc": {
"start": {
"line": 75,
"column": 31
},
"end": {
"line": 75,
"column": 32
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2317,
"end": 2318,
"loc": {
"start": {
"line": 75,
"column": 33
},
"end": {
"line": 75,
"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": 2328,
"end": 2333,
"loc": {
"start": {
"line": 76,
"column": 8
},
"end": {
"line": 76,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "directionVector",
"start": 2334,
"end": 2349,
"loc": {
"start": {
"line": 76,
"column": 14
},
"end": {
"line": 76,
"column": 29
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2350,
"end": 2351,
"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": "enumDirectionToVector",
"start": 2352,
"end": 2373,
"loc": {
"start": {
"line": 76,
"column": 32
},
"end": {
"line": 76,
"column": 53
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2373,
"end": 2374,
"loc": {
"start": {
"line": 76,
"column": 53
},
"end": {
"line": 76,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slot",
"start": 2374,
"end": 2378,
"loc": {
"start": {
"line": 76,
"column": 54
},
"end": {
"line": 76,
"column": 58
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2378,
"end": 2379,
"loc": {
"start": {
"line": 76,
"column": 58
},
"end": {
"line": 76,
"column": 59
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "direction",
"start": 2379,
"end": 2388,
"loc": {
"start": {
"line": 76,
"column": 59
},
"end": {
"line": 76,
"column": 68
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2388,
"end": 2389,
"loc": {
"start": {
"line": 76,
"column": 68
},
"end": {
"line": 76,
"column": 69
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2389,
"end": 2390,
"loc": {
"start": {
"line": 76,
"column": 69
},
"end": {
"line": 76,
"column": 70
}
}
},
{
"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": 2400,
"end": 2406,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slot",
"start": 2407,
"end": 2411,
"loc": {
"start": {
"line": 77,
"column": 15
},
"end": {
"line": 77,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2411,
"end": 2412,
"loc": {
"start": {
"line": 77,
"column": 19
},
"end": {
"line": 77,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pos",
"start": 2412,
"end": 2415,
"loc": {
"start": {
"line": 77,
"column": 20
},
"end": {
"line": 77,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2415,
"end": 2416,
"loc": {
"start": {
"line": 77,
"column": 23
},
"end": {
"line": 77,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "add",
"start": 2416,
"end": 2419,
"loc": {
"start": {
"line": 77,
"column": 24
},
"end": {
"line": 77,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2419,
"end": 2420,
"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": "directionVector",
"start": 2420,
"end": 2435,
"loc": {
"start": {
"line": 77,
"column": 28
},
"end": {
"line": 77,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2435,
"end": 2436,
"loc": {
"start": {
"line": 77,
"column": 43
},
"end": {
"line": 77,
"column": 44
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2436,
"end": 2437,
"loc": {
"start": {
"line": 77,
"column": 44
},
"end": {
"line": 77,
"column": 45
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2443,
"end": 2444,
"loc": {
"start": {
"line": 78,
"column": 4
},
"end": {
"line": 78,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns whether any slot ejects to the given local tile\r\n * @param {Vector} tile\r\n ",
"start": 2452,
"end": 2557,
"loc": {
"start": {
"line": 80,
"column": 4
},
"end": {
"line": 83,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "anySlotEjectsToLocalTile",
"start": 2563,
"end": 2587,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2587,
"end": 2588,
"loc": {
"start": {
"line": 84,
"column": 28
},
"end": {
"line": 84,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tile",
"start": 2588,
"end": 2592,
"loc": {
"start": {
"line": 84,
"column": 29
},
"end": {
"line": 84,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2592,
"end": 2593,
"loc": {
"start": {
"line": 84,
"column": 33
},
"end": {
"line": 84,
"column": 34
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2594,
"end": 2595,
"loc": {
"start": {
"line": 84,
"column": 35
},
"end": {
"line": 84,
"column": 36
}
}
},
{
"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": 2605,
"end": 2608,
"loc": {
"start": {
"line": 85,
"column": 8
},
"end": {
"line": 85,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2609,
"end": 2610,
"loc": {
"start": {
"line": 85,
"column": 12
},
"end": {
"line": 85,
"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": 2610,
"end": 2613,
"loc": {
"start": {
"line": 85,
"column": 13
},
"end": {
"line": 85,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 2614,
"end": 2615,
"loc": {
"start": {
"line": 85,
"column": 17
},
"end": {
"line": 85,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2616,
"end": 2617,
"loc": {
"start": {
"line": 85,
"column": 19
},
"end": {
"line": 85,
"column": 20
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 2618,
"end": 2619,
"loc": {
"start": {
"line": 85,
"column": 21
},
"end": {
"line": 85,
"column": 22
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2619,
"end": 2620,
"loc": {
"start": {
"line": 85,
"column": 22
},
"end": {
"line": 85,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 2621,
"end": 2622,
"loc": {
"start": {
"line": 85,
"column": 24
},
"end": {
"line": 85,
"column": 25
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 2623,
"end": 2624,
"loc": {
"start": {
"line": 85,
"column": 26
},
"end": {
"line": 85,
"column": 27
}
}
},
{
"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": 2625,
"end": 2629,
"loc": {
"start": {
"line": 85,
"column": 28
},
"end": {
"line": 85,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2629,
"end": 2630,
"loc": {
"start": {
"line": 85,
"column": 32
},
"end": {
"line": 85,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 2630,
"end": 2635,
"loc": {
"start": {
"line": 85,
"column": 33
},
"end": {
"line": 85,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2635,
"end": 2636,
"loc": {
"start": {
"line": 85,
"column": 38
},
"end": {
"line": 85,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 2636,
"end": 2642,
"loc": {
"start": {
"line": 85,
"column": 39
},
"end": {
"line": 85,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2642,
"end": 2643,
"loc": {
"start": {
"line": 85,
"column": 45
},
"end": {
"line": 85,
"column": 46
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 2644,
"end": 2646,
"loc": {
"start": {
"line": 85,
"column": 47
},
"end": {
"line": 85,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 2646,
"end": 2647,
"loc": {
"start": {
"line": 85,
"column": 49
},
"end": {
"line": 85,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2647,
"end": 2648,
"loc": {
"start": {
"line": 85,
"column": 50
},
"end": {
"line": 85,
"column": 51
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2649,
"end": 2650,
"loc": {
"start": {
"line": 85,
"column": 52
},
"end": {
"line": 85,
"column": 53
}
}
},
{
"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": 2664,
"end": 2666,
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2667,
"end": 2668,
"loc": {
"start": {
"line": 86,
"column": 15
},
"end": {
"line": 86,
"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": 2668,
"end": 2672,
"loc": {
"start": {
"line": 86,
"column": 16
},
"end": {
"line": 86,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2672,
"end": 2673,
"loc": {
"start": {
"line": 86,
"column": 20
},
"end": {
"line": 86,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSlotTargetLocalTile",
"start": 2673,
"end": 2695,
"loc": {
"start": {
"line": 86,
"column": 21
},
"end": {
"line": 86,
"column": 43
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2695,
"end": 2696,
"loc": {
"start": {
"line": 86,
"column": 43
},
"end": {
"line": 86,
"column": 44
}
}
},
{
"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": 2696,
"end": 2700,
"loc": {
"start": {
"line": 86,
"column": 44
},
"end": {
"line": 86,
"column": 48
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2700,
"end": 2701,
"loc": {
"start": {
"line": 86,
"column": 48
},
"end": {
"line": 86,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 2701,
"end": 2706,
"loc": {
"start": {
"line": 86,
"column": 49
},
"end": {
"line": 86,
"column": 54
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2706,
"end": 2707,
"loc": {
"start": {
"line": 86,
"column": 54
},
"end": {
"line": 86,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 2707,
"end": 2708,
"loc": {
"start": {
"line": 86,
"column": 55
},
"end": {
"line": 86,
"column": 56
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2708,
"end": 2709,
"loc": {
"start": {
"line": 86,
"column": 56
},
"end": {
"line": 86,
"column": 57
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2709,
"end": 2710,
"loc": {
"start": {
"line": 86,
"column": 57
},
"end": {
"line": 86,
"column": 58
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2710,
"end": 2711,
"loc": {
"start": {
"line": 86,
"column": 58
},
"end": {
"line": 86,
"column": 59
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "equals",
"start": 2711,
"end": 2717,
"loc": {
"start": {
"line": 86,
"column": 59
},
"end": {
"line": 86,
"column": 65
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2717,
"end": 2718,
"loc": {
"start": {
"line": 86,
"column": 65
},
"end": {
"line": 86,
"column": 66
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tile",
"start": 2718,
"end": 2722,
"loc": {
"start": {
"line": 86,
"column": 66
},
"end": {
"line": 86,
"column": 70
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2722,
"end": 2723,
"loc": {
"start": {
"line": 86,
"column": 70
},
"end": {
"line": 86,
"column": 71
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2723,
"end": 2724,
"loc": {
"start": {
"line": 86,
"column": 71
},
"end": {
"line": 86,
"column": 72
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2725,
"end": 2726,
"loc": {
"start": {
"line": 86,
"column": 73
},
"end": {
"line": 86,
"column": 74
}
}
},
{
"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": 2744,
"end": 2750,
"loc": {
"start": {
"line": 87,
"column": 16
},
"end": {
"line": 87,
"column": 22
}
}
},
{
"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": 2751,
"end": 2755,
"loc": {
"start": {
"line": 87,
"column": 23
},
"end": {
"line": 87,
"column": 27
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2755,
"end": 2756,
"loc": {
"start": {
"line": 87,
"column": 27
},
"end": {
"line": 87,
"column": 28
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2770,
"end": 2771,
"loc": {
"start": {
"line": 88,
"column": 12
},
"end": {
"line": 88,
"column": 13
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2781,
"end": 2782,
"loc": {
"start": {
"line": 89,
"column": 8
},
"end": {
"line": 89,
"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": 2792,
"end": 2798,
"loc": {
"start": {
"line": 90,
"column": 8
},
"end": {
"line": 90,
"column": 14
}
}
},
{
"type": {
"label": "false",
"keyword": "false",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "false",
"start": 2799,
"end": 2804,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 20
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2804,
"end": 2805,
"loc": {
"start": {
"line": 90,
"column": 20
},
"end": {
"line": 90,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2811,
"end": 2812,
"loc": {
"start": {
"line": 91,
"column": 4
},
"end": {
"line": 91,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if we can eject on a given slot\r\n * @param {number} slotIndex\r\n * @returns {boolean}\r\n ",
"start": 2820,
"end": 2941,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 97,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canEjectOnSlot",
"start": 2947,
"end": 2961,
"loc": {
"start": {
"line": 98,
"column": 4
},
"end": {
"line": 98,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2961,
"end": 2962,
"loc": {
"start": {
"line": 98,
"column": 18
},
"end": {
"line": 98,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slotIndex",
"start": 2962,
"end": 2971,
"loc": {
"start": {
"line": 98,
"column": 19
},
"end": {
"line": 98,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2971,
"end": 2972,
"loc": {
"start": {
"line": 98,
"column": 28
},
"end": {
"line": 98,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2973,
"end": 2974,
"loc": {
"start": {
"line": 98,
"column": 30
},
"end": {
"line": 98,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 2984,
"end": 2990,
"loc": {
"start": {
"line": 99,
"column": 8
},
"end": {
"line": 99,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2990,
"end": 2991,
"loc": {
"start": {
"line": 99,
"column": 14
},
"end": {
"line": 99,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slotIndex",
"start": 2991,
"end": 3000,
"loc": {
"start": {
"line": 99,
"column": 15
},
"end": {
"line": 99,
"column": 24
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": ">=",
"start": 3001,
"end": 3003,
"loc": {
"start": {
"line": 99,
"column": 25
},
"end": {
"line": 99,
"column": 27
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3004,
"end": 3005,
"loc": {
"start": {
"line": 99,
"column": 28
},
"end": {
"line": 99,
"column": 29
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 3006,
"end": 3008,
"loc": {
"start": {
"line": 99,
"column": 30
},
"end": {
"line": 99,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slotIndex",
"start": 3009,
"end": 3018,
"loc": {
"start": {
"line": 99,
"column": 33
},
"end": {
"line": 99,
"column": 42
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 3019,
"end": 3020,
"loc": {
"start": {
"line": 99,
"column": 43
},
"end": {
"line": 99,
"column": 44
}
}
},
{
"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": 3021,
"end": 3025,
"loc": {
"start": {
"line": 99,
"column": 45
},
"end": {
"line": 99,
"column": 49
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3025,
"end": 3026,
"loc": {
"start": {
"line": 99,
"column": 49
},
"end": {
"line": 99,
"column": 50
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 3026,
"end": 3031,
"loc": {
"start": {
"line": 99,
"column": 50
},
"end": {
"line": 99,
"column": 55
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3031,
"end": 3032,
"loc": {
"start": {
"line": 99,
"column": 55
},
"end": {
"line": 99,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 3032,
"end": 3038,
"loc": {
"start": {
"line": 99,
"column": 56
},
"end": {
"line": 99,
"column": 62
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3038,
"end": 3039,
"loc": {
"start": {
"line": 99,
"column": 62
},
"end": {
"line": 99,
"column": 63
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Invalid ejector slot: ",
"start": 3040,
"end": 3064,
"loc": {
"start": {
"line": 99,
"column": 64
},
"end": {
"line": 99,
"column": 88
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 3065,
"end": 3066,
"loc": {
"start": {
"line": 99,
"column": 89
},
"end": {
"line": 99,
"column": 90
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slotIndex",
"start": 3067,
"end": 3076,
"loc": {
"start": {
"line": 99,
"column": 91
},
"end": {
"line": 99,
"column": 100
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3076,
"end": 3077,
"loc": {
"start": {
"line": 99,
"column": 100
},
"end": {
"line": 99,
"column": 101
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3077,
"end": 3078,
"loc": {
"start": {
"line": 99,
"column": 101
},
"end": {
"line": 99,
"column": 102
}
}
},
{
"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": 3088,
"end": 3094,
"loc": {
"start": {
"line": 100,
"column": 8
},
"end": {
"line": 100,
"column": 14
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 3095,
"end": 3096,
"loc": {
"start": {
"line": 100,
"column": 15
},
"end": {
"line": 100,
"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": 3096,
"end": 3100,
"loc": {
"start": {
"line": 100,
"column": 16
},
"end": {
"line": 100,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3100,
"end": 3101,
"loc": {
"start": {
"line": 100,
"column": 20
},
"end": {
"line": 100,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 3101,
"end": 3106,
"loc": {
"start": {
"line": 100,
"column": 21
},
"end": {
"line": 100,
"column": 26
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3106,
"end": 3107,
"loc": {
"start": {
"line": 100,
"column": 26
},
"end": {
"line": 100,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slotIndex",
"start": 3107,
"end": 3116,
"loc": {
"start": {
"line": 100,
"column": 27
},
"end": {
"line": 100,
"column": 36
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3116,
"end": 3117,
"loc": {
"start": {
"line": 100,
"column": 36
},
"end": {
"line": 100,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3117,
"end": 3118,
"loc": {
"start": {
"line": 100,
"column": 37
},
"end": {
"line": 100,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 3118,
"end": 3122,
"loc": {
"start": {
"line": 100,
"column": 38
},
"end": {
"line": 100,
"column": 42
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3122,
"end": 3123,
"loc": {
"start": {
"line": 100,
"column": 42
},
"end": {
"line": 100,
"column": 43
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3129,
"end": 3130,
"loc": {
"start": {
"line": 101,
"column": 4
},
"end": {
"line": 101,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the first free slot on this ejector or null if there is none\r\n * @returns {number?}\r\n ",
"start": 3138,
"end": 3254,
"loc": {
"start": {
"line": 103,
"column": 4
},
"end": {
"line": 106,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getFirstFreeSlot",
"start": 3260,
"end": 3276,
"loc": {
"start": {
"line": 107,
"column": 4
},
"end": {
"line": 107,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3276,
"end": 3277,
"loc": {
"start": {
"line": 107,
"column": 20
},
"end": {
"line": 107,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3277,
"end": 3278,
"loc": {
"start": {
"line": 107,
"column": 21
},
"end": {
"line": 107,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3279,
"end": 3280,
"loc": {
"start": {
"line": 107,
"column": 23
},
"end": {
"line": 107,
"column": 24
}
}
},
{
"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": 3290,
"end": 3293,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3294,
"end": 3295,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"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": 3295,
"end": 3298,
"loc": {
"start": {
"line": 108,
"column": 13
},
"end": {
"line": 108,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 3299,
"end": 3300,
"loc": {
"start": {
"line": 108,
"column": 17
},
"end": {
"line": 108,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3301,
"end": 3302,
"loc": {
"start": {
"line": 108,
"column": 19
},
"end": {
"line": 108,
"column": 20
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3303,
"end": 3304,
"loc": {
"start": {
"line": 108,
"column": 21
},
"end": {
"line": 108,
"column": 22
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3304,
"end": 3305,
"loc": {
"start": {
"line": 108,
"column": 22
},
"end": {
"line": 108,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 3306,
"end": 3307,
"loc": {
"start": {
"line": 108,
"column": 24
},
"end": {
"line": 108,
"column": 25
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 3308,
"end": 3309,
"loc": {
"start": {
"line": 108,
"column": 26
},
"end": {
"line": 108,
"column": 27
}
}
},
{
"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": 3310,
"end": 3314,
"loc": {
"start": {
"line": 108,
"column": 28
},
"end": {
"line": 108,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3314,
"end": 3315,
"loc": {
"start": {
"line": 108,
"column": 32
},
"end": {
"line": 108,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 3315,
"end": 3320,
"loc": {
"start": {
"line": 108,
"column": 33
},
"end": {
"line": 108,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3320,
"end": 3321,
"loc": {
"start": {
"line": 108,
"column": 38
},
"end": {
"line": 108,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 3321,
"end": 3327,
"loc": {
"start": {
"line": 108,
"column": 39
},
"end": {
"line": 108,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3327,
"end": 3328,
"loc": {
"start": {
"line": 108,
"column": 45
},
"end": {
"line": 108,
"column": 46
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 3329,
"end": 3331,
"loc": {
"start": {
"line": 108,
"column": 47
},
"end": {
"line": 108,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 3331,
"end": 3332,
"loc": {
"start": {
"line": 108,
"column": 49
},
"end": {
"line": 108,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3332,
"end": 3333,
"loc": {
"start": {
"line": 108,
"column": 50
},
"end": {
"line": 108,
"column": 51
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3334,
"end": 3335,
"loc": {
"start": {
"line": 108,
"column": 52
},
"end": {
"line": 108,
"column": 53
}
}
},
{
"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": 3349,
"end": 3351,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3352,
"end": 3353,
"loc": {
"start": {
"line": 109,
"column": 15
},
"end": {
"line": 109,
"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": 3353,
"end": 3357,
"loc": {
"start": {
"line": 109,
"column": 16
},
"end": {
"line": 109,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3357,
"end": 3358,
"loc": {
"start": {
"line": 109,
"column": 20
},
"end": {
"line": 109,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canEjectOnSlot",
"start": 3358,
"end": 3372,
"loc": {
"start": {
"line": 109,
"column": 21
},
"end": {
"line": 109,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3372,
"end": 3373,
"loc": {
"start": {
"line": 109,
"column": 35
},
"end": {
"line": 109,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 3373,
"end": 3374,
"loc": {
"start": {
"line": 109,
"column": 36
},
"end": {
"line": 109,
"column": 37
}
}
},
{
"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": 109,
"column": 37
},
"end": {
"line": 109,
"column": 38
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3375,
"end": 3376,
"loc": {
"start": {
"line": 109,
"column": 38
},
"end": {
"line": 109,
"column": 39
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3377,
"end": 3378,
"loc": {
"start": {
"line": 109,
"column": 40
},
"end": {
"line": 109,
"column": 41
}
}
},
{
"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": 3396,
"end": 3402,
"loc": {
"start": {
"line": 110,
"column": 16
},
"end": {
"line": 110,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 3403,
"end": 3404,
"loc": {
"start": {
"line": 110,
"column": 23
},
"end": {
"line": 110,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3404,
"end": 3405,
"loc": {
"start": {
"line": 110,
"column": 24
},
"end": {
"line": 110,
"column": 25
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3419,
"end": 3420,
"loc": {
"start": {
"line": 111,
"column": 12
},
"end": {
"line": 111,
"column": 13
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3430,
"end": 3431,
"loc": {
"start": {
"line": 112,
"column": 8
},
"end": {
"line": 112,
"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": 3441,
"end": 3447,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"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": 3448,
"end": 3452,
"loc": {
"start": {
"line": 113,
"column": 15
},
"end": {
"line": 113,
"column": 19
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3452,
"end": 3453,
"loc": {
"start": {
"line": 113,
"column": 19
},
"end": {
"line": 113,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3459,
"end": 3460,
"loc": {
"start": {
"line": 114,
"column": 4
},
"end": {
"line": 114,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Tries to eject a given item\r\n * @param {number} slotIndex\r\n * @param {BaseItem} item\r\n * @returns {boolean}\r\n ",
"start": 3468,
"end": 3608,
"loc": {
"start": {
"line": 116,
"column": 4
},
"end": {
"line": 121,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tryEject",
"start": 3614,
"end": 3622,
"loc": {
"start": {
"line": 122,
"column": 4
},
"end": {
"line": 122,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3622,
"end": 3623,
"loc": {
"start": {
"line": 122,
"column": 12
},
"end": {
"line": 122,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slotIndex",
"start": 3623,
"end": 3632,
"loc": {
"start": {
"line": 122,
"column": 13
},
"end": {
"line": 122,
"column": 22
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3632,
"end": 3633,
"loc": {
"start": {
"line": 122,
"column": 22
},
"end": {
"line": 122,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 3634,
"end": 3638,
"loc": {
"start": {
"line": 122,
"column": 24
},
"end": {
"line": 122,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3638,
"end": 3639,
"loc": {
"start": {
"line": 122,
"column": 28
},
"end": {
"line": 122,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3640,
"end": 3641,
"loc": {
"start": {
"line": 122,
"column": 30
},
"end": {
"line": 122,
"column": 31
}
}
},
{
"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": 3651,
"end": 3653,
"loc": {
"start": {
"line": 123,
"column": 8
},
"end": {
"line": 123,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3654,
"end": 3655,
"loc": {
"start": {
"line": 123,
"column": 11
},
"end": {
"line": 123,
"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": 3655,
"end": 3656,
"loc": {
"start": {
"line": 123,
"column": 12
},
"end": {
"line": 123,
"column": 13
}
}
},
{
"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": 3656,
"end": 3660,
"loc": {
"start": {
"line": 123,
"column": 13
},
"end": {
"line": 123,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3660,
"end": 3661,
"loc": {
"start": {
"line": 123,
"column": 17
},
"end": {
"line": 123,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canEjectOnSlot",
"start": 3661,
"end": 3675,
"loc": {
"start": {
"line": 123,
"column": 18
},
"end": {
"line": 123,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3675,
"end": 3676,
"loc": {
"start": {
"line": 123,
"column": 32
},
"end": {
"line": 123,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slotIndex",
"start": 3676,
"end": 3685,
"loc": {
"start": {
"line": 123,
"column": 33
},
"end": {
"line": 123,
"column": 42
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3685,
"end": 3686,
"loc": {
"start": {
"line": 123,
"column": 42
},
"end": {
"line": 123,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3686,
"end": 3687,
"loc": {
"start": {
"line": 123,
"column": 43
},
"end": {
"line": 123,
"column": 44
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3688,
"end": 3689,
"loc": {
"start": {
"line": 123,
"column": 45
},
"end": {
"line": 123,
"column": 46
}
}
},
{
"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": 3703,
"end": 3709,
"loc": {
"start": {
"line": 124,
"column": 12
},
"end": {
"line": 124,
"column": 18
}
}
},
{
"type": {
"label": "false",
"keyword": "false",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "false",
"start": 3710,
"end": 3715,
"loc": {
"start": {
"line": 124,
"column": 19
},
"end": {
"line": 124,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3715,
"end": 3716,
"loc": {
"start": {
"line": 124,
"column": 24
},
"end": {
"line": 124,
"column": 25
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3726,
"end": 3727,
"loc": {
"start": {
"line": 125,
"column": 8
},
"end": {
"line": 125,
"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": 3737,
"end": 3741,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3741,
"end": 3742,
"loc": {
"start": {
"line": 126,
"column": 12
},
"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": "slots",
"start": 3742,
"end": 3747,
"loc": {
"start": {
"line": 126,
"column": 13
},
"end": {
"line": 126,
"column": 18
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3747,
"end": 3748,
"loc": {
"start": {
"line": 126,
"column": 18
},
"end": {
"line": 126,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slotIndex",
"start": 3748,
"end": 3757,
"loc": {
"start": {
"line": 126,
"column": 19
},
"end": {
"line": 126,
"column": 28
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3757,
"end": 3758,
"loc": {
"start": {
"line": 126,
"column": 28
},
"end": {
"line": 126,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3758,
"end": 3759,
"loc": {
"start": {
"line": 126,
"column": 29
},
"end": {
"line": 126,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 3759,
"end": 3763,
"loc": {
"start": {
"line": 126,
"column": 30
},
"end": {
"line": 126,
"column": 34
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3764,
"end": 3765,
"loc": {
"start": {
"line": 126,
"column": 35
},
"end": {
"line": 126,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 3766,
"end": 3770,
"loc": {
"start": {
"line": 126,
"column": 37
},
"end": {
"line": 126,
"column": 41
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3770,
"end": 3771,
"loc": {
"start": {
"line": 126,
"column": 41
},
"end": {
"line": 126,
"column": 42
}
}
},
{
"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": 3781,
"end": 3785,
"loc": {
"start": {
"line": 127,
"column": 8
},
"end": {
"line": 127,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3785,
"end": 3786,
"loc": {
"start": {
"line": 127,
"column": 12
},
"end": {
"line": 127,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 3786,
"end": 3791,
"loc": {
"start": {
"line": 127,
"column": 13
},
"end": {
"line": 127,
"column": 18
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3791,
"end": 3792,
"loc": {
"start": {
"line": 127,
"column": 18
},
"end": {
"line": 127,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slotIndex",
"start": 3792,
"end": 3801,
"loc": {
"start": {
"line": 127,
"column": 19
},
"end": {
"line": 127,
"column": 28
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3801,
"end": 3802,
"loc": {
"start": {
"line": 127,
"column": 28
},
"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": 3802,
"end": 3803,
"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": "progress",
"start": 3803,
"end": 3811,
"loc": {
"start": {
"line": 127,
"column": 30
},
"end": {
"line": 127,
"column": 38
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3812,
"end": 3813,
"loc": {
"start": {
"line": 127,
"column": 39
},
"end": {
"line": 127,
"column": 40
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3814,
"end": 3815,
"loc": {
"start": {
"line": 127,
"column": 41
},
"end": {
"line": 127,
"column": 42
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3815,
"end": 3816,
"loc": {
"start": {
"line": 127,
"column": 42
},
"end": {
"line": 127,
"column": 43
}
}
},
{
"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": 3826,
"end": 3832,
"loc": {
"start": {
"line": 128,
"column": 8
},
"end": {
"line": 128,
"column": 14
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 3833,
"end": 3837,
"loc": {
"start": {
"line": 128,
"column": 15
},
"end": {
"line": 128,
"column": 19
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3837,
"end": 3838,
"loc": {
"start": {
"line": 128,
"column": 19
},
"end": {
"line": 128,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3844,
"end": 3845,
"loc": {
"start": {
"line": 129,
"column": 4
},
"end": {
"line": 129,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Clears the given slot and returns the item it had\r\n * @param {number} slotIndex\r\n * @returns {BaseItem|null}\r\n ",
"start": 3853,
"end": 3990,
"loc": {
"start": {
"line": 131,
"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": "takeSlotItem",
"start": 3996,
"end": 4008,
"loc": {
"start": {
"line": 136,
"column": 4
},
"end": {
"line": 136,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4008,
"end": 4009,
"loc": {
"start": {
"line": 136,
"column": 16
},
"end": {
"line": 136,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slotIndex",
"start": 4009,
"end": 4018,
"loc": {
"start": {
"line": 136,
"column": 17
},
"end": {
"line": 136,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4018,
"end": 4019,
"loc": {
"start": {
"line": 136,
"column": 26
},
"end": {
"line": 136,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4020,
"end": 4021,
"loc": {
"start": {
"line": 136,
"column": 28
},
"end": {
"line": 136,
"column": 29
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 4031,
"end": 4036,
"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": "slot",
"start": 4037,
"end": 4041,
"loc": {
"start": {
"line": 137,
"column": 14
},
"end": {
"line": 137,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4042,
"end": 4043,
"loc": {
"start": {
"line": 137,
"column": 19
},
"end": {
"line": 137,
"column": 20
}
}
},
{
"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": 4044,
"end": 4048,
"loc": {
"start": {
"line": 137,
"column": 21
},
"end": {
"line": 137,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4048,
"end": 4049,
"loc": {
"start": {
"line": 137,
"column": 25
},
"end": {
"line": 137,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slots",
"start": 4049,
"end": 4054,
"loc": {
"start": {
"line": 137,
"column": 26
},
"end": {
"line": 137,
"column": 31
}
}
},
{
"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": 137,
"column": 31
},
"end": {
"line": 137,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slotIndex",
"start": 4055,
"end": 4064,
"loc": {
"start": {
"line": 137,
"column": 32
},
"end": {
"line": 137,
"column": 41
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4064,
"end": 4065,
"loc": {
"start": {
"line": 137,
"column": 41
},
"end": {
"line": 137,
"column": 42
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4065,
"end": 4066,
"loc": {
"start": {
"line": 137,
"column": 42
},
"end": {
"line": 137,
"column": 43
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 4076,
"end": 4081,
"loc": {
"start": {
"line": 138,
"column": 8
},
"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": "item",
"start": 4082,
"end": 4086,
"loc": {
"start": {
"line": 138,
"column": 14
},
"end": {
"line": 138,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4087,
"end": 4088,
"loc": {
"start": {
"line": 138,
"column": 19
},
"end": {
"line": 138,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slot",
"start": 4089,
"end": 4093,
"loc": {
"start": {
"line": 138,
"column": 21
},
"end": {
"line": 138,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4093,
"end": 4094,
"loc": {
"start": {
"line": 138,
"column": 25
},
"end": {
"line": 138,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 4094,
"end": 4098,
"loc": {
"start": {
"line": 138,
"column": 26
},
"end": {
"line": 138,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4098,
"end": 4099,
"loc": {
"start": {
"line": 138,
"column": 30
},
"end": {
"line": 138,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slot",
"start": 4109,
"end": 4113,
"loc": {
"start": {
"line": 139,
"column": 8
},
"end": {
"line": 139,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4113,
"end": 4114,
"loc": {
"start": {
"line": 139,
"column": 12
},
"end": {
"line": 139,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "item",
"start": 4114,
"end": 4118,
"loc": {
"start": {
"line": 139,
"column": 13
},
"end": {
"line": 139,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4119,
"end": 4120,
"loc": {
"start": {
"line": 139,
"column": 18
},
"end": {
"line": 139,
"column": 19
}
}
},
{
"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": 4121,
"end": 4125,
"loc": {
"start": {
"line": 139,
"column": 20
},
"end": {
"line": 139,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4125,
"end": 4126,
"loc": {
"start": {
"line": 139,
"column": 24
},
"end": {
"line": 139,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "slot",
"start": 4136,
"end": 4140,
"loc": {
"start": {
"line": 140,
"column": 8
},
"end": {
"line": 140,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4140,
"end": 4141,
"loc": {
"start": {
"line": 140,
"column": 12
},
"end": {
"line": 140,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "progress",
"start": 4141,
"end": 4149,
"loc": {
"start": {
"line": 140,
"column": 13
},
"end": {
"line": 140,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4150,
"end": 4151,
"loc": {
"start": {
"line": 140,
"column": 22
},
"end": {
"line": 140,
"column": 23
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 4152,
"end": 4155,
"loc": {
"start": {
"line": 140,
"column": 24
},
"end": {
"line": 140,
"column": 27
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4155,
"end": 4156,
"loc": {
"start": {
"line": 140,
"column": 27
},
"end": {
"line": 140,
"column": 28
}
}
},
{
"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": 4166,
"end": 4172,
"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": "item",
"start": 4173,
"end": 4177,
"loc": {
"start": {
"line": 141,
"column": 15
},
"end": {
"line": 141,
"column": 19
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4177,
"end": 4178,
"loc": {
"start": {
"line": 141,
"column": 19
},
"end": {
"line": 141,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4184,
"end": 4185,
"loc": {
"start": {
"line": 142,
"column": 4
},
"end": {
"line": 142,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4187,
"end": 4188,
"loc": {
"start": {
"line": 143,
"column": 0
},
"end": {
"line": 143,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4190,
"end": 4190,
"loc": {
"start": {
"line": 144,
"column": 0
},
"end": {
"line": 144,
"column": 0
}
}
}
]
}