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/entity_manager.js.json
2021-02-26 15:20:37 +01:00

39923 lines
1.0 MiB

{
"type": "File",
"start": 0,
"end": 7957,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 241,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 7957,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 241,
"column": 1
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 84,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 84
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 25
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 25
},
"identifierName": "arrayDeleteValue"
},
"name": "arrayDeleteValue"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 25
},
"identifierName": "arrayDeleteValue"
},
"name": "arrayDeleteValue"
}
},
{
"type": "ImportSpecifier",
"start": 27,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 38
}
},
"imported": {
"type": "Identifier",
"start": 27,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 38
},
"identifierName": "newEmptyMap"
},
"name": "newEmptyMap"
},
"local": {
"type": "Identifier",
"start": 27,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 38
},
"identifierName": "newEmptyMap"
},
"name": "newEmptyMap"
}
},
{
"type": "ImportSpecifier",
"start": 40,
"end": 60,
"loc": {
"start": {
"line": 1,
"column": 40
},
"end": {
"line": 1,
"column": 60
}
},
"imported": {
"type": "Identifier",
"start": 40,
"end": 60,
"loc": {
"start": {
"line": 1,
"column": 40
},
"end": {
"line": 1,
"column": 60
},
"identifierName": "fastArrayDeleteValue"
},
"name": "fastArrayDeleteValue"
},
"local": {
"type": "Identifier",
"start": 40,
"end": 60,
"loc": {
"start": {
"line": 1,
"column": 40
},
"end": {
"line": 1,
"column": 60
},
"identifierName": "fastArrayDeleteValue"
},
"name": "fastArrayDeleteValue"
}
}
],
"source": {
"type": "StringLiteral",
"start": 68,
"end": 83,
"loc": {
"start": {
"line": 1,
"column": 68
},
"end": {
"line": 1,
"column": 83
}
},
"extra": {
"rawValue": "../core/utils",
"raw": "\"../core/utils\""
},
"value": "../core/utils"
}
},
{
"type": "ImportDeclaration",
"start": 86,
"end": 126,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 40
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 95,
"end": 104,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 95,
"end": 104,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 18
},
"identifierName": "Component"
},
"name": "Component"
},
"local": {
"type": "Identifier",
"start": 95,
"end": 104,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 18
},
"identifierName": "Component"
},
"name": "Component"
}
}
],
"source": {
"type": "StringLiteral",
"start": 112,
"end": 125,
"loc": {
"start": {
"line": 2,
"column": 26
},
"end": {
"line": 2,
"column": 39
}
},
"extra": {
"rawValue": "./component",
"raw": "\"./component\""
},
"value": "./component"
}
},
{
"type": "ImportDeclaration",
"start": 128,
"end": 162,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 34
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 137,
"end": 145,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 17
}
},
"imported": {
"type": "Identifier",
"start": 137,
"end": 145,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 17
},
"identifierName": "GameRoot"
},
"name": "GameRoot"
},
"local": {
"type": "Identifier",
"start": 137,
"end": 145,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 17
},
"identifierName": "GameRoot"
},
"name": "GameRoot"
}
}
],
"source": {
"type": "StringLiteral",
"start": 153,
"end": 161,
"loc": {
"start": {
"line": 3,
"column": 25
},
"end": {
"line": 3,
"column": 33
}
},
"extra": {
"rawValue": "./root",
"raw": "\"./root\""
},
"value": "./root"
}
},
{
"type": "ImportDeclaration",
"start": 164,
"end": 198,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 34
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 173,
"end": 179,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 15
}
},
"imported": {
"type": "Identifier",
"start": 173,
"end": 179,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 15
},
"identifierName": "Entity"
},
"name": "Entity"
},
"local": {
"type": "Identifier",
"start": 173,
"end": 179,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 15
},
"identifierName": "Entity"
},
"name": "Entity"
}
}
],
"source": {
"type": "StringLiteral",
"start": 187,
"end": 197,
"loc": {
"start": {
"line": 4,
"column": 23
},
"end": {
"line": 4,
"column": 33
}
},
"extra": {
"rawValue": "./entity",
"raw": "\"./entity\""
},
"value": "./entity"
}
},
{
"type": "ImportDeclaration",
"start": 200,
"end": 275,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 75
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 209,
"end": 232,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 32
}
},
"imported": {
"type": "Identifier",
"start": 209,
"end": 232,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 32
},
"identifierName": "BasicSerializableObject"
},
"name": "BasicSerializableObject"
},
"local": {
"type": "Identifier",
"start": 209,
"end": 232,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 32
},
"identifierName": "BasicSerializableObject"
},
"name": "BasicSerializableObject"
}
},
{
"type": "ImportSpecifier",
"start": 234,
"end": 239,
"loc": {
"start": {
"line": 5,
"column": 34
},
"end": {
"line": 5,
"column": 39
}
},
"imported": {
"type": "Identifier",
"start": 234,
"end": 239,
"loc": {
"start": {
"line": 5,
"column": 34
},
"end": {
"line": 5,
"column": 39
},
"identifierName": "types"
},
"name": "types"
},
"local": {
"type": "Identifier",
"start": 234,
"end": 239,
"loc": {
"start": {
"line": 5,
"column": 34
},
"end": {
"line": 5,
"column": 39
},
"identifierName": "types"
},
"name": "types"
}
}
],
"source": {
"type": "StringLiteral",
"start": 247,
"end": 274,
"loc": {
"start": {
"line": 5,
"column": 47
},
"end": {
"line": 5,
"column": 74
}
},
"extra": {
"rawValue": "../savegame/serialization",
"raw": "\"../savegame/serialization\""
},
"value": "../savegame/serialization"
}
},
{
"type": "ImportDeclaration",
"start": 277,
"end": 324,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 47
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 286,
"end": 298,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 21
}
},
"imported": {
"type": "Identifier",
"start": 286,
"end": 298,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 21
},
"identifierName": "createLogger"
},
"name": "createLogger"
},
"local": {
"type": "Identifier",
"start": 286,
"end": 298,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 21
},
"identifierName": "createLogger"
},
"name": "createLogger"
}
}
],
"source": {
"type": "StringLiteral",
"start": 306,
"end": 323,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 46
}
},
"extra": {
"rawValue": "../core/logging",
"raw": "\"../core/logging\""
},
"value": "../core/logging"
}
},
{
"type": "ImportDeclaration",
"start": 326,
"end": 372,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 46
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 335,
"end": 347,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 21
}
},
"imported": {
"type": "Identifier",
"start": 335,
"end": 347,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 21
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"local": {
"type": "Identifier",
"start": 335,
"end": 347,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 21
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
}
}
],
"source": {
"type": "StringLiteral",
"start": 355,
"end": 371,
"loc": {
"start": {
"line": 7,
"column": 29
},
"end": {
"line": 7,
"column": 45
}
},
"extra": {
"rawValue": "../core/config",
"raw": "\"../core/config\""
},
"value": "../core/config"
}
},
{
"type": "VariableDeclaration",
"start": 376,
"end": 422,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 46
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 382,
"end": 421,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 45
}
},
"id": {
"type": "Identifier",
"start": 382,
"end": 388,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 12
},
"identifierName": "logger"
},
"name": "logger"
},
"init": {
"type": "CallExpression",
"start": 391,
"end": 421,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 45
}
},
"callee": {
"type": "Identifier",
"start": 391,
"end": 403,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 27
},
"identifierName": "createLogger"
},
"name": "createLogger"
},
"arguments": [
{
"type": "StringLiteral",
"start": 404,
"end": 420,
"loc": {
"start": {
"line": 9,
"column": 28
},
"end": {
"line": 9,
"column": 44
}
},
"extra": {
"rawValue": "entity_manager",
"raw": "\"entity_manager\""
},
"value": "entity_manager"
}
]
}
}
],
"kind": "const",
"trailingComments": [
{
"type": "CommentLine",
"value": " Manages all entities",
"start": 426,
"end": 449,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 23
}
}
},
{
"type": "CommentLine",
"value": " NOTICE: We use arrayDeleteValue instead of fastArrayDeleteValue since that does not preserve the order",
"start": 453,
"end": 558,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 105
}
}
},
{
"type": "CommentLine",
"value": " This is slower but we need it for the street path generation",
"start": 560,
"end": 623,
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 14,
"column": 63
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 627,
"end": 7957,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 241,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 634,
"end": 7957,
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 241,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 640,
"end": 653,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 26
},
"identifierName": "EntityManager"
},
"name": "EntityManager",
"leadingComments": null
},
"superClass": {
"type": "Identifier",
"start": 662,
"end": 685,
"loc": {
"start": {
"line": 16,
"column": 35
},
"end": {
"line": 16,
"column": 58
},
"identifierName": "BasicSerializableObject"
},
"name": "BasicSerializableObject"
},
"body": {
"type": "ClassBody",
"start": 686,
"end": 7957,
"loc": {
"start": {
"line": 16,
"column": 59
},
"end": {
"line": 241,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 693,
"end": 1351,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 38,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 693,
"end": 704,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 705,
"end": 709,
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 20
},
"identifierName": "root"
},
"name": "root"
}
],
"body": {
"type": "BlockStatement",
"start": 711,
"end": 1351,
"loc": {
"start": {
"line": 17,
"column": 22
},
"end": {
"line": 38,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 722,
"end": 730,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 722,
"end": 729,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 722,
"end": 727,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 13
}
}
},
"arguments": []
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @type {GameRoot} ",
"start": 742,
"end": 765,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 31
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 775,
"end": 792,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 775,
"end": 791,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 24
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 775,
"end": 784,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 775,
"end": 779,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 780,
"end": 784,
"loc": {
"start": {
"line": 21,
"column": 13
},
"end": {
"line": 21,
"column": 17
},
"identifierName": "root"
},
"name": "root"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 787,
"end": 791,
"loc": {
"start": {
"line": 21,
"column": 20
},
"end": {
"line": 21,
"column": 24
},
"identifierName": "root"
},
"name": "root"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @type {GameRoot} ",
"start": 742,
"end": 765,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 31
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @type {Array<Entity>} ",
"start": 804,
"end": 832,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 36
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 842,
"end": 861,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 842,
"end": 860,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 842,
"end": 855,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 842,
"end": 846,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 847,
"end": 855,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 21
},
"identifierName": "entities"
},
"name": "entities"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "ArrayExpression",
"start": 858,
"end": 860,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 26
}
},
"elements": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @type {Array<Entity>} ",
"start": 804,
"end": 832,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 36
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " We store a separate list with entities to destroy, since we don't destroy",
"start": 873,
"end": 949,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 84
}
}
},
{
"type": "CommentLine",
"value": " them instantly",
"start": 959,
"end": 976,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 25
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Array<Entity>} ",
"start": 986,
"end": 1014,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 36
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1024,
"end": 1046,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 30
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1024,
"end": 1045,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 29
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1024,
"end": 1040,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 1024,
"end": 1028,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1029,
"end": 1040,
"loc": {
"start": {
"line": 29,
"column": 13
},
"end": {
"line": 29,
"column": 24
},
"identifierName": "destroyList"
},
"name": "destroyList"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "ArrayExpression",
"start": 1043,
"end": 1045,
"loc": {
"start": {
"line": 29,
"column": 27
},
"end": {
"line": 29,
"column": 29
}
},
"elements": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " We store a separate list with entities to destroy, since we don't destroy",
"start": 873,
"end": 949,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 84
}
}
},
{
"type": "CommentLine",
"value": " them instantly",
"start": 959,
"end": 976,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 25
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Array<Entity>} ",
"start": 986,
"end": 1014,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 36
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Store a map from componentid to entities - This is used by the game system",
"start": 1058,
"end": 1135,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 85
}
}
},
{
"type": "CommentLine",
"value": " for faster processing",
"start": 1145,
"end": 1169,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 32
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Object.<string, Array<Entity>>} ",
"start": 1179,
"end": 1224,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 53
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1234,
"end": 1273,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 47
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1234,
"end": 1272,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 46
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1234,
"end": 1256,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 1234,
"end": 1238,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1239,
"end": 1256,
"loc": {
"start": {
"line": 34,
"column": 13
},
"end": {
"line": 34,
"column": 30
},
"identifierName": "componentToEntity"
},
"name": "componentToEntity"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "CallExpression",
"start": 1259,
"end": 1272,
"loc": {
"start": {
"line": 34,
"column": 33
},
"end": {
"line": 34,
"column": 46
}
},
"callee": {
"type": "Identifier",
"start": 1259,
"end": 1270,
"loc": {
"start": {
"line": 34,
"column": 33
},
"end": {
"line": 34,
"column": 44
},
"identifierName": "newEmptyMap"
},
"name": "newEmptyMap"
},
"arguments": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Store a map from componentid to entities - This is used by the game system",
"start": 1058,
"end": 1135,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 85
}
}
},
{
"type": "CommentLine",
"value": " for faster processing",
"start": 1145,
"end": 1169,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 32
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Object.<string, Array<Entity>>} ",
"start": 1179,
"end": 1224,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 53
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Store the next uid to use",
"start": 1285,
"end": 1313,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 36
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1323,
"end": 1344,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 29
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1323,
"end": 1343,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1323,
"end": 1335,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 1323,
"end": 1327,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1328,
"end": 1335,
"loc": {
"start": {
"line": 37,
"column": 13
},
"end": {
"line": 37,
"column": 20
},
"identifierName": "nextUid"
},
"name": "nextUid"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NumericLiteral",
"start": 1338,
"end": 1343,
"loc": {
"start": {
"line": 37,
"column": 23
},
"end": {
"line": 37,
"column": 28
}
},
"extra": {
"rawValue": 10000,
"raw": "10000"
},
"value": 10000
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Store the next uid to use",
"start": 1285,
"end": 1313,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 36
}
}
}
]
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 1359,
"end": 1415,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 42,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1366,
"end": 1371,
"loc": {
"start": {
"line": 40,
"column": 11
},
"end": {
"line": 40,
"column": 16
},
"identifierName": "getId"
},
"name": "getId"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1374,
"end": 1415,
"loc": {
"start": {
"line": 40,
"column": 19
},
"end": {
"line": 42,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1385,
"end": 1408,
"loc": {
"start": {
"line": 41,
"column": 8
},
"end": {
"line": 41,
"column": 31
}
},
"argument": {
"type": "StringLiteral",
"start": 1392,
"end": 1407,
"loc": {
"start": {
"line": 41,
"column": 15
},
"end": {
"line": 41,
"column": 30
}
},
"extra": {
"rawValue": "EntityManager",
"raw": "\"EntityManager\""
},
"value": "EntityManager"
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 1423,
"end": 1514,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 48,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1430,
"end": 1439,
"loc": {
"start": {
"line": 44,
"column": 11
},
"end": {
"line": 44,
"column": 20
},
"identifierName": "getSchema"
},
"name": "getSchema"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1442,
"end": 1514,
"loc": {
"start": {
"line": 44,
"column": 23
},
"end": {
"line": 48,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1453,
"end": 1507,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 47,
"column": 10
}
},
"argument": {
"type": "ObjectExpression",
"start": 1460,
"end": 1506,
"loc": {
"start": {
"line": 45,
"column": 15
},
"end": {
"line": 47,
"column": 9
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 1475,
"end": 1494,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 31
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1475,
"end": 1482,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 19
},
"identifierName": "nextUid"
},
"name": "nextUid"
},
"value": {
"type": "MemberExpression",
"start": 1484,
"end": 1494,
"loc": {
"start": {
"line": 46,
"column": 21
},
"end": {
"line": 46,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 1484,
"end": 1489,
"loc": {
"start": {
"line": 46,
"column": 21
},
"end": {
"line": 46,
"column": 26
},
"identifierName": "types"
},
"name": "types"
},
"property": {
"type": "Identifier",
"start": 1490,
"end": 1494,
"loc": {
"start": {
"line": 46,
"column": 27
},
"end": {
"line": 46,
"column": 31
},
"identifierName": "uint"
},
"name": "uint"
},
"computed": false
}
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 1522,
"end": 1639,
"loc": {
"start": {
"line": 50,
"column": 4
},
"end": {
"line": 52,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1522,
"end": 1534,
"loc": {
"start": {
"line": 50,
"column": 4
},
"end": {
"line": 50,
"column": 16
},
"identifierName": "getStatsText"
},
"name": "getStatsText"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1537,
"end": 1639,
"loc": {
"start": {
"line": 50,
"column": 19
},
"end": {
"line": 52,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1548,
"end": 1632,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 92
}
},
"argument": {
"type": "BinaryExpression",
"start": 1555,
"end": 1631,
"loc": {
"start": {
"line": 51,
"column": 15
},
"end": {
"line": 51,
"column": 91
}
},
"left": {
"type": "BinaryExpression",
"start": 1555,
"end": 1617,
"loc": {
"start": {
"line": 51,
"column": 15
},
"end": {
"line": 51,
"column": 77
}
},
"left": {
"type": "BinaryExpression",
"start": 1555,
"end": 1591,
"loc": {
"start": {
"line": 51,
"column": 15
},
"end": {
"line": 51,
"column": 51
}
},
"left": {
"type": "MemberExpression",
"start": 1555,
"end": 1575,
"loc": {
"start": {
"line": 51,
"column": 15
},
"end": {
"line": 51,
"column": 35
}
},
"object": {
"type": "MemberExpression",
"start": 1555,
"end": 1568,
"loc": {
"start": {
"line": 51,
"column": 15
},
"end": {
"line": 51,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 1555,
"end": 1559,
"loc": {
"start": {
"line": 51,
"column": 15
},
"end": {
"line": 51,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 1560,
"end": 1568,
"loc": {
"start": {
"line": 51,
"column": 20
},
"end": {
"line": 51,
"column": 28
},
"identifierName": "entities"
},
"name": "entities"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1569,
"end": 1575,
"loc": {
"start": {
"line": 51,
"column": 29
},
"end": {
"line": 51,
"column": 35
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
},
"operator": "+",
"right": {
"type": "StringLiteral",
"start": 1578,
"end": 1591,
"loc": {
"start": {
"line": 51,
"column": 38
},
"end": {
"line": 51,
"column": 51
}
},
"extra": {
"rawValue": " entities [",
"raw": "\" entities [\""
},
"value": " entities ["
}
},
"operator": "+",
"right": {
"type": "MemberExpression",
"start": 1594,
"end": 1617,
"loc": {
"start": {
"line": 51,
"column": 54
},
"end": {
"line": 51,
"column": 77
}
},
"object": {
"type": "MemberExpression",
"start": 1594,
"end": 1610,
"loc": {
"start": {
"line": 51,
"column": 54
},
"end": {
"line": 51,
"column": 70
}
},
"object": {
"type": "ThisExpression",
"start": 1594,
"end": 1598,
"loc": {
"start": {
"line": 51,
"column": 54
},
"end": {
"line": 51,
"column": 58
}
}
},
"property": {
"type": "Identifier",
"start": 1599,
"end": 1610,
"loc": {
"start": {
"line": 51,
"column": 59
},
"end": {
"line": 51,
"column": 70
},
"identifierName": "destroyList"
},
"name": "destroyList"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1611,
"end": 1617,
"loc": {
"start": {
"line": 51,
"column": 71
},
"end": {
"line": 51,
"column": 77
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
},
"operator": "+",
"right": {
"type": "StringLiteral",
"start": 1620,
"end": 1631,
"loc": {
"start": {
"line": 51,
"column": 80
},
"end": {
"line": 51,
"column": 91
}
},
"extra": {
"rawValue": " to kill]",
"raw": "\" to kill]\""
},
"value": " to kill]"
}
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentLine",
"value": " Main update",
"start": 1647,
"end": 1661,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 18
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1667,
"end": 1720,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
"line": 57,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1667,
"end": 1673,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
"line": 55,
"column": 10
},
"identifierName": "update"
},
"name": "update",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1676,
"end": 1720,
"loc": {
"start": {
"line": 55,
"column": 13
},
"end": {
"line": 57,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1687,
"end": 1713,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 34
}
},
"expression": {
"type": "CallExpression",
"start": 1687,
"end": 1712,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 1687,
"end": 1710,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 1687,
"end": 1691,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1692,
"end": 1710,
"loc": {
"start": {
"line": 56,
"column": 13
},
"end": {
"line": 56,
"column": 31
},
"identifierName": "processDestroyList"
},
"name": "processDestroyList"
},
"computed": false
},
"arguments": []
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Main update",
"start": 1647,
"end": 1661,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 18
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Registers a new entity\r\n * @param {Entity} entity\r\n * @param {number=} uid Optional predefined uid\r\n ",
"start": 1728,
"end": 1855,
"loc": {
"start": {
"line": 59,
"column": 4
},
"end": {
"line": 63,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1861,
"end": 3149,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 93,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1861,
"end": 1875,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 64,
"column": 18
},
"identifierName": "registerEntity"
},
"name": "registerEntity",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1876,
"end": 1882,
"loc": {
"start": {
"line": 64,
"column": 19
},
"end": {
"line": 64,
"column": 25
},
"identifierName": "entity"
},
"name": "entity"
},
{
"type": "AssignmentPattern",
"start": 1884,
"end": 1894,
"loc": {
"start": {
"line": 64,
"column": 27
},
"end": {
"line": 64,
"column": 37
}
},
"left": {
"type": "Identifier",
"start": 1884,
"end": 1887,
"loc": {
"start": {
"line": 64,
"column": 27
},
"end": {
"line": 64,
"column": 30
},
"identifierName": "uid"
},
"name": "uid"
},
"right": {
"type": "NullLiteral",
"start": 1890,
"end": 1894,
"loc": {
"start": {
"line": 64,
"column": 33
},
"end": {
"line": 64,
"column": 37
}
}
}
},
{
"type": "AssignmentPattern",
"start": 1896,
"end": 1913,
"loc": {
"start": {
"line": 64,
"column": 39
},
"end": {
"line": 64,
"column": 56
}
},
"left": {
"type": "Identifier",
"start": 1896,
"end": 1905,
"loc": {
"start": {
"line": 64,
"column": 39
},
"end": {
"line": 64,
"column": 48
},
"identifierName": "blueprint"
},
"name": "blueprint"
},
"right": {
"type": "BooleanLiteral",
"start": 1908,
"end": 1913,
"loc": {
"start": {
"line": 64,
"column": 51
},
"end": {
"line": 64,
"column": 56
}
},
"value": false
}
}
],
"body": {
"type": "BlockStatement",
"start": 1915,
"end": 3149,
"loc": {
"start": {
"line": 64,
"column": 58
},
"end": {
"line": 93,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 1926,
"end": 2104,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 67,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
"start": 1930,
"end": 1980,
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 62
}
},
"left": {
"type": "Identifier",
"start": 1930,
"end": 1938,
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 20
},
"identifierName": "G_IS_DEV"
},
"name": "G_IS_DEV"
},
"operator": "&&",
"right": {
"type": "UnaryExpression",
"start": 1942,
"end": 1980,
"loc": {
"start": {
"line": 65,
"column": 24
},
"end": {
"line": 65,
"column": 62
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 1943,
"end": 1980,
"loc": {
"start": {
"line": 65,
"column": 25
},
"end": {
"line": 65,
"column": 62
}
},
"object": {
"type": "MemberExpression",
"start": 1943,
"end": 1961,
"loc": {
"start": {
"line": 65,
"column": 25
},
"end": {
"line": 65,
"column": 43
}
},
"object": {
"type": "Identifier",
"start": 1943,
"end": 1955,
"loc": {
"start": {
"line": 65,
"column": 25
},
"end": {
"line": 65,
"column": 37
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 1956,
"end": 1961,
"loc": {
"start": {
"line": 65,
"column": 38
},
"end": {
"line": 65,
"column": 43
},
"identifierName": "debug"
},
"name": "debug"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1962,
"end": 1980,
"loc": {
"start": {
"line": 65,
"column": 44
},
"end": {
"line": 65,
"column": 62
},
"identifierName": "disableSlowAsserts"
},
"name": "disableSlowAsserts"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 1982,
"end": 2104,
"loc": {
"start": {
"line": 65,
"column": 64
},
"end": {
"line": 67,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1997,
"end": 2093,
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 108
}
},
"expression": {
"type": "CallExpression",
"start": 1997,
"end": 2092,
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 107
}
},
"callee": {
"type": "Identifier",
"start": 1997,
"end": 2003,
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 18
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2004,
"end": 2037,
"loc": {
"start": {
"line": 66,
"column": 19
},
"end": {
"line": 66,
"column": 52
}
},
"left": {
"type": "CallExpression",
"start": 2004,
"end": 2033,
"loc": {
"start": {
"line": 66,
"column": 19
},
"end": {
"line": 66,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 2004,
"end": 2025,
"loc": {
"start": {
"line": 66,
"column": 19
},
"end": {
"line": 66,
"column": 40
}
},
"object": {
"type": "MemberExpression",
"start": 2004,
"end": 2017,
"loc": {
"start": {
"line": 66,
"column": 19
},
"end": {
"line": 66,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 2004,
"end": 2008,
"loc": {
"start": {
"line": 66,
"column": 19
},
"end": {
"line": 66,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"start": 2009,
"end": 2017,
"loc": {
"start": {
"line": 66,
"column": 24
},
"end": {
"line": 66,
"column": 32
},
"identifierName": "entities"
},
"name": "entities"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2018,
"end": 2025,
"loc": {
"start": {
"line": 66,
"column": 33
},
"end": {
"line": 66,
"column": 40
},
"identifierName": "indexOf"
},
"name": "indexOf"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2026,
"end": 2032,
"loc": {
"start": {
"line": 66,
"column": 41
},
"end": {
"line": 66,
"column": 47
},
"identifierName": "entity"
},
"name": "entity"
}
]
},
"operator": "<",
"right": {
"type": "NumericLiteral",
"start": 2036,
"end": 2037,
"loc": {
"start": {
"line": 66,
"column": 51
},
"end": {
"line": 66,
"column": 52
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "TemplateLiteral",
"start": 2039,
"end": 2091,
"loc": {
"start": {
"line": 66,
"column": 54
},
"end": {
"line": 66,
"column": 106
}
},
"expressions": [
{
"type": "Identifier",
"start": 2083,
"end": 2089,
"loc": {
"start": {
"line": 66,
"column": 98
},
"end": {
"line": 66,
"column": 104
},
"identifierName": "entity"
},
"name": "entity"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 2040,
"end": 2081,
"loc": {
"start": {
"line": 66,
"column": 55
},
"end": {
"line": 66,
"column": 96
}
},
"value": {
"raw": "RegisterEntity() called twice for entity ",
"cooked": "RegisterEntity() called twice for entity "
},
"tail": false
},
{
"type": "TemplateElement",
"start": 2090,
"end": 2090,
"loc": {
"start": {
"line": 66,
"column": 105
},
"end": {
"line": 66,
"column": 105
}
},
"value": {
"raw": "",
"cooked": ""
},
"tail": true
}
]
}
]
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ExpressionStatement",
"start": 2114,
"end": 2193,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 87
}
},
"expression": {
"type": "CallExpression",
"start": 2114,
"end": 2192,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 86
}
},
"callee": {
"type": "Identifier",
"start": 2114,
"end": 2120,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 14
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "UnaryExpression",
"start": 2121,
"end": 2138,
"loc": {
"start": {
"line": 68,
"column": 15
},
"end": {
"line": 68,
"column": 32
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 2122,
"end": 2138,
"loc": {
"start": {
"line": 68,
"column": 16
},
"end": {
"line": 68,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 2122,
"end": 2128,
"loc": {
"start": {
"line": 68,
"column": 16
},
"end": {
"line": 68,
"column": 22
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 2129,
"end": 2138,
"loc": {
"start": {
"line": 68,
"column": 23
},
"end": {
"line": 68,
"column": 32
},
"identifierName": "destroyed"
},
"name": "destroyed"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
},
{
"type": "TemplateLiteral",
"start": 2140,
"end": 2191,
"loc": {
"start": {
"line": 68,
"column": 34
},
"end": {
"line": 68,
"column": 85
}
},
"expressions": [
{
"type": "Identifier",
"start": 2183,
"end": 2189,
"loc": {
"start": {
"line": 68,
"column": 77
},
"end": {
"line": 68,
"column": 83
},
"identifierName": "entity"
},
"name": "entity"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 2141,
"end": 2181,
"loc": {
"start": {
"line": 68,
"column": 35
},
"end": {
"line": 68,
"column": 75
}
},
"value": {
"raw": "Attempting to register destroyed entity ",
"cooked": "Attempting to register destroyed entity "
},
"tail": false
},
{
"type": "TemplateElement",
"start": 2190,
"end": 2190,
"loc": {
"start": {
"line": 68,
"column": 84
},
"end": {
"line": 68,
"column": 84
}
},
"value": {
"raw": "",
"cooked": ""
},
"tail": true
}
]
}
]
}
},
{
"type": "IfStatement",
"start": 2205,
"end": 2469,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 73,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
"start": 2209,
"end": 2275,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 78
}
},
"left": {
"type": "LogicalExpression",
"start": 2209,
"end": 2259,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 62
}
},
"left": {
"type": "Identifier",
"start": 2209,
"end": 2217,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 20
},
"identifierName": "G_IS_DEV"
},
"name": "G_IS_DEV"
},
"operator": "&&",
"right": {
"type": "UnaryExpression",
"start": 2221,
"end": 2259,
"loc": {
"start": {
"line": 70,
"column": 24
},
"end": {
"line": 70,
"column": 62
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 2222,
"end": 2259,
"loc": {
"start": {
"line": 70,
"column": 25
},
"end": {
"line": 70,
"column": 62
}
},
"object": {
"type": "MemberExpression",
"start": 2222,
"end": 2240,
"loc": {
"start": {
"line": 70,
"column": 25
},
"end": {
"line": 70,
"column": 43
}
},
"object": {
"type": "Identifier",
"start": 2222,
"end": 2234,
"loc": {
"start": {
"line": 70,
"column": 25
},
"end": {
"line": 70,
"column": 37
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 2235,
"end": 2240,
"loc": {
"start": {
"line": 70,
"column": 38
},
"end": {
"line": 70,
"column": 43
},
"identifierName": "debug"
},
"name": "debug"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2241,
"end": 2259,
"loc": {
"start": {
"line": 70,
"column": 44
},
"end": {
"line": 70,
"column": 62
},
"identifierName": "disableSlowAsserts"
},
"name": "disableSlowAsserts"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 2263,
"end": 2275,
"loc": {
"start": {
"line": 70,
"column": 66
},
"end": {
"line": 70,
"column": 78
}
},
"left": {
"type": "Identifier",
"start": 2263,
"end": 2266,
"loc": {
"start": {
"line": 70,
"column": 66
},
"end": {
"line": 70,
"column": 69
},
"identifierName": "uid"
},
"name": "uid"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 2271,
"end": 2275,
"loc": {
"start": {
"line": 70,
"column": 74
},
"end": {
"line": 70,
"column": 78
}
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 2277,
"end": 2469,
"loc": {
"start": {
"line": 70,
"column": 80
},
"end": {
"line": 73,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2292,
"end": 2364,
"loc": {
"start": {
"line": 71,
"column": 12
},
"end": {
"line": 71,
"column": 84
}
},
"expression": {
"type": "CallExpression",
"start": 2292,
"end": 2363,
"loc": {
"start": {
"line": 71,
"column": 12
},
"end": {
"line": 71,
"column": 83
}
},
"callee": {
"type": "Identifier",
"start": 2292,
"end": 2298,
"loc": {
"start": {
"line": 71,
"column": 12
},
"end": {
"line": 71,
"column": 18
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "UnaryExpression",
"start": 2299,
"end": 2326,
"loc": {
"start": {
"line": 71,
"column": 19
},
"end": {
"line": 71,
"column": 46
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "CallExpression",
"start": 2300,
"end": 2326,
"loc": {
"start": {
"line": 71,
"column": 20
},
"end": {
"line": 71,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 2300,
"end": 2314,
"loc": {
"start": {
"line": 71,
"column": 20
},
"end": {
"line": 71,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 2300,
"end": 2304,
"loc": {
"start": {
"line": 71,
"column": 20
},
"end": {
"line": 71,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 2305,
"end": 2314,
"loc": {
"start": {
"line": 71,
"column": 25
},
"end": {
"line": 71,
"column": 34
},
"identifierName": "findByUid"
},
"name": "findByUid"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2315,
"end": 2318,
"loc": {
"start": {
"line": 71,
"column": 35
},
"end": {
"line": 71,
"column": 38
},
"identifierName": "uid"
},
"name": "uid"
},
{
"type": "BooleanLiteral",
"start": 2320,
"end": 2325,
"loc": {
"start": {
"line": 71,
"column": 40
},
"end": {
"line": 71,
"column": 45
}
},
"value": false
}
]
},
"extra": {
"parenthesizedArgument": false
}
},
{
"type": "BinaryExpression",
"start": 2328,
"end": 2362,
"loc": {
"start": {
"line": 71,
"column": 48
},
"end": {
"line": 71,
"column": 82
}
},
"left": {
"type": "StringLiteral",
"start": 2328,
"end": 2356,
"loc": {
"start": {
"line": 71,
"column": 48
},
"end": {
"line": 71,
"column": 76
}
},
"extra": {
"rawValue": "Entity uid already taken: ",
"raw": "\"Entity uid already taken: \""
},
"value": "Entity uid already taken: "
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 2359,
"end": 2362,
"loc": {
"start": {
"line": 71,
"column": 79
},
"end": {
"line": 71,
"column": 82
},
"identifierName": "uid"
},
"name": "uid"
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 2378,
"end": 2458,
"loc": {
"start": {
"line": 72,
"column": 12
},
"end": {
"line": 72,
"column": 92
}
},
"expression": {
"type": "CallExpression",
"start": 2378,
"end": 2457,
"loc": {
"start": {
"line": 72,
"column": 12
},
"end": {
"line": 72,
"column": 91
}
},
"callee": {
"type": "Identifier",
"start": 2378,
"end": 2384,
"loc": {
"start": {
"line": 72,
"column": 12
},
"end": {
"line": 72,
"column": 18
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "LogicalExpression",
"start": 2385,
"end": 2426,
"loc": {
"start": {
"line": 72,
"column": 19
},
"end": {
"line": 72,
"column": 60
}
},
"left": {
"type": "BinaryExpression",
"start": 2385,
"end": 2393,
"loc": {
"start": {
"line": 72,
"column": 19
},
"end": {
"line": 72,
"column": 27
}
},
"left": {
"type": "Identifier",
"start": 2385,
"end": 2388,
"loc": {
"start": {
"line": 72,
"column": 19
},
"end": {
"line": 72,
"column": 22
},
"identifierName": "uid"
},
"name": "uid"
},
"operator": ">=",
"right": {
"type": "NumericLiteral",
"start": 2392,
"end": 2393,
"loc": {
"start": {
"line": 72,
"column": 26
},
"end": {
"line": 72,
"column": 27
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 2397,
"end": 2426,
"loc": {
"start": {
"line": 72,
"column": 31
},
"end": {
"line": 72,
"column": 60
}
},
"left": {
"type": "Identifier",
"start": 2397,
"end": 2400,
"loc": {
"start": {
"line": 72,
"column": 31
},
"end": {
"line": 72,
"column": 34
},
"identifierName": "uid"
},
"name": "uid"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 2403,
"end": 2426,
"loc": {
"start": {
"line": 72,
"column": 37
},
"end": {
"line": 72,
"column": 60
}
},
"object": {
"type": "Identifier",
"start": 2403,
"end": 2409,
"loc": {
"start": {
"line": 72,
"column": 37
},
"end": {
"line": 72,
"column": 43
},
"identifierName": "Number"
},
"name": "Number"
},
"property": {
"type": "Identifier",
"start": 2410,
"end": 2426,
"loc": {
"start": {
"line": 72,
"column": 44
},
"end": {
"line": 72,
"column": 60
},
"identifierName": "MAX_SAFE_INTEGER"
},
"name": "MAX_SAFE_INTEGER"
},
"computed": false
}
}
},
{
"type": "BinaryExpression",
"start": 2428,
"end": 2456,
"loc": {
"start": {
"line": 72,
"column": 62
},
"end": {
"line": 72,
"column": 90
}
},
"left": {
"type": "StringLiteral",
"start": 2428,
"end": 2450,
"loc": {
"start": {
"line": 72,
"column": 62
},
"end": {
"line": 72,
"column": 84
}
},
"extra": {
"rawValue": "Invalid uid passed: ",
"raw": "\"Invalid uid passed: \""
},
"value": "Invalid uid passed: "
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 2453,
"end": 2456,
"loc": {
"start": {
"line": 72,
"column": 87
},
"end": {
"line": 72,
"column": 90
},
"identifierName": "uid"
},
"name": "uid"
}
}
]
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ExpressionStatement",
"start": 2481,
"end": 2508,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 35
}
},
"expression": {
"type": "CallExpression",
"start": 2481,
"end": 2507,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 2481,
"end": 2499,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 26
}
},
"object": {
"type": "MemberExpression",
"start": 2481,
"end": 2494,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 2481,
"end": 2485,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 2486,
"end": 2494,
"loc": {
"start": {
"line": 75,
"column": 13
},
"end": {
"line": 75,
"column": 21
},
"identifierName": "entities"
},
"name": "entities"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2495,
"end": 2499,
"loc": {
"start": {
"line": 75,
"column": 22
},
"end": {
"line": 75,
"column": 26
},
"identifierName": "push"
},
"name": "push"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2500,
"end": 2506,
"loc": {
"start": {
"line": 75,
"column": 27
},
"end": {
"line": 75,
"column": 33
},
"identifierName": "entity"
},
"name": "entity"
}
]
},
"trailingComments": [
{
"type": "CommentLine",
"value": " Register into the componentToEntity map",
"start": 2520,
"end": 2562,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 50
}
}
}
]
},
{
"type": "ForInStatement",
"start": 2572,
"end": 2940,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 86,
"column": 9
}
},
"left": {
"type": "VariableDeclaration",
"start": 2577,
"end": 2594,
"loc": {
"start": {
"line": 78,
"column": 13
},
"end": {
"line": 78,
"column": 30
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2583,
"end": 2594,
"loc": {
"start": {
"line": 78,
"column": 19
},
"end": {
"line": 78,
"column": 30
}
},
"id": {
"type": "Identifier",
"start": 2583,
"end": 2594,
"loc": {
"start": {
"line": 78,
"column": 19
},
"end": {
"line": 78,
"column": 30
},
"identifierName": "componentId"
},
"name": "componentId",
"leadingComments": null
},
"init": null,
"leadingComments": null
}
],
"kind": "const",
"leadingComments": null
},
"right": {
"type": "MemberExpression",
"start": 2598,
"end": 2615,
"loc": {
"start": {
"line": 78,
"column": 34
},
"end": {
"line": 78,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 2598,
"end": 2604,
"loc": {
"start": {
"line": 78,
"column": 34
},
"end": {
"line": 78,
"column": 40
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 2605,
"end": 2615,
"loc": {
"start": {
"line": 78,
"column": 41
},
"end": {
"line": 78,
"column": 51
},
"identifierName": "components"
},
"name": "components"
},
"computed": false
},
"body": {
"type": "BlockStatement",
"start": 2617,
"end": 2940,
"loc": {
"start": {
"line": 78,
"column": 53
},
"end": {
"line": 86,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
"start": 2632,
"end": 2929,
"loc": {
"start": {
"line": 79,
"column": 12
},
"end": {
"line": 85,
"column": 13
}
},
"test": {
"type": "MemberExpression",
"start": 2636,
"end": 2666,
"loc": {
"start": {
"line": 79,
"column": 16
},
"end": {
"line": 79,
"column": 46
}
},
"object": {
"type": "MemberExpression",
"start": 2636,
"end": 2653,
"loc": {
"start": {
"line": 79,
"column": 16
},
"end": {
"line": 79,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 2636,
"end": 2642,
"loc": {
"start": {
"line": 79,
"column": 16
},
"end": {
"line": 79,
"column": 22
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 2643,
"end": 2653,
"loc": {
"start": {
"line": 79,
"column": 23
},
"end": {
"line": 79,
"column": 33
},
"identifierName": "components"
},
"name": "components"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2654,
"end": 2665,
"loc": {
"start": {
"line": 79,
"column": 34
},
"end": {
"line": 79,
"column": 45
},
"identifierName": "componentId"
},
"name": "componentId"
},
"computed": true
},
"consequent": {
"type": "BlockStatement",
"start": 2668,
"end": 2929,
"loc": {
"start": {
"line": 79,
"column": 48
},
"end": {
"line": 85,
"column": 13
}
},
"body": [
{
"type": "IfStatement",
"start": 2687,
"end": 2914,
"loc": {
"start": {
"line": 80,
"column": 16
},
"end": {
"line": 84,
"column": 17
}
},
"test": {
"type": "MemberExpression",
"start": 2691,
"end": 2726,
"loc": {
"start": {
"line": 80,
"column": 20
},
"end": {
"line": 80,
"column": 55
}
},
"object": {
"type": "MemberExpression",
"start": 2691,
"end": 2713,
"loc": {
"start": {
"line": 80,
"column": 20
},
"end": {
"line": 80,
"column": 42
}
},
"object": {
"type": "ThisExpression",
"start": 2691,
"end": 2695,
"loc": {
"start": {
"line": 80,
"column": 20
},
"end": {
"line": 80,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 2696,
"end": 2713,
"loc": {
"start": {
"line": 80,
"column": 25
},
"end": {
"line": 80,
"column": 42
},
"identifierName": "componentToEntity"
},
"name": "componentToEntity"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2714,
"end": 2725,
"loc": {
"start": {
"line": 80,
"column": 43
},
"end": {
"line": 80,
"column": 54
},
"identifierName": "componentId"
},
"name": "componentId"
},
"computed": true
},
"consequent": {
"type": "BlockStatement",
"start": 2728,
"end": 2819,
"loc": {
"start": {
"line": 80,
"column": 57
},
"end": {
"line": 82,
"column": 17
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2751,
"end": 2800,
"loc": {
"start": {
"line": 81,
"column": 20
},
"end": {
"line": 81,
"column": 69
}
},
"expression": {
"type": "CallExpression",
"start": 2751,
"end": 2799,
"loc": {
"start": {
"line": 81,
"column": 20
},
"end": {
"line": 81,
"column": 68
}
},
"callee": {
"type": "MemberExpression",
"start": 2751,
"end": 2791,
"loc": {
"start": {
"line": 81,
"column": 20
},
"end": {
"line": 81,
"column": 60
}
},
"object": {
"type": "MemberExpression",
"start": 2751,
"end": 2786,
"loc": {
"start": {
"line": 81,
"column": 20
},
"end": {
"line": 81,
"column": 55
}
},
"object": {
"type": "MemberExpression",
"start": 2751,
"end": 2773,
"loc": {
"start": {
"line": 81,
"column": 20
},
"end": {
"line": 81,
"column": 42
}
},
"object": {
"type": "ThisExpression",
"start": 2751,
"end": 2755,
"loc": {
"start": {
"line": 81,
"column": 20
},
"end": {
"line": 81,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 2756,
"end": 2773,
"loc": {
"start": {
"line": 81,
"column": 25
},
"end": {
"line": 81,
"column": 42
},
"identifierName": "componentToEntity"
},
"name": "componentToEntity"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2774,
"end": 2785,
"loc": {
"start": {
"line": 81,
"column": 43
},
"end": {
"line": 81,
"column": 54
},
"identifierName": "componentId"
},
"name": "componentId"
},
"computed": true
},
"property": {
"type": "Identifier",
"start": 2787,
"end": 2791,
"loc": {
"start": {
"line": 81,
"column": 56
},
"end": {
"line": 81,
"column": 60
},
"identifierName": "push"
},
"name": "push"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2792,
"end": 2798,
"loc": {
"start": {
"line": 81,
"column": 61
},
"end": {
"line": 81,
"column": 67
},
"identifierName": "entity"
},
"name": "entity"
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 2825,
"end": 2914,
"loc": {
"start": {
"line": 82,
"column": 23
},
"end": {
"line": 84,
"column": 17
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2848,
"end": 2895,
"loc": {
"start": {
"line": 83,
"column": 20
},
"end": {
"line": 83,
"column": 67
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2848,
"end": 2894,
"loc": {
"start": {
"line": 83,
"column": 20
},
"end": {
"line": 83,
"column": 66
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2848,
"end": 2883,
"loc": {
"start": {
"line": 83,
"column": 20
},
"end": {
"line": 83,
"column": 55
}
},
"object": {
"type": "MemberExpression",
"start": 2848,
"end": 2870,
"loc": {
"start": {
"line": 83,
"column": 20
},
"end": {
"line": 83,
"column": 42
}
},
"object": {
"type": "ThisExpression",
"start": 2848,
"end": 2852,
"loc": {
"start": {
"line": 83,
"column": 20
},
"end": {
"line": 83,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 2853,
"end": 2870,
"loc": {
"start": {
"line": 83,
"column": 25
},
"end": {
"line": 83,
"column": 42
},
"identifierName": "componentToEntity"
},
"name": "componentToEntity"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2871,
"end": 2882,
"loc": {
"start": {
"line": 83,
"column": 43
},
"end": {
"line": 83,
"column": 54
},
"identifierName": "componentId"
},
"name": "componentId"
},
"computed": true
},
"right": {
"type": "ArrayExpression",
"start": 2886,
"end": 2894,
"loc": {
"start": {
"line": 83,
"column": 58
},
"end": {
"line": 83,
"column": 66
}
},
"elements": [
{
"type": "Identifier",
"start": 2887,
"end": 2893,
"loc": {
"start": {
"line": 83,
"column": 59
},
"end": {
"line": 83,
"column": 65
},
"identifierName": "entity"
},
"name": "entity"
}
]
}
}
}
],
"directives": []
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Register into the componentToEntity map",
"start": 2520,
"end": 2562,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 50
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Give each entity a unique id",
"start": 2952,
"end": 2983,
"loc": {
"start": {
"line": 88,
"column": 8
},
"end": {
"line": 88,
"column": 39
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 2993,
"end": 3037,
"loc": {
"start": {
"line": 89,
"column": 8
},
"end": {
"line": 89,
"column": 52
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2993,
"end": 3036,
"loc": {
"start": {
"line": 89,
"column": 8
},
"end": {
"line": 89,
"column": 51
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2993,
"end": 3003,
"loc": {
"start": {
"line": 89,
"column": 8
},
"end": {
"line": 89,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 2993,
"end": 2999,
"loc": {
"start": {
"line": 89,
"column": 8
},
"end": {
"line": 89,
"column": 14
},
"identifierName": "entity"
},
"name": "entity",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 3000,
"end": 3003,
"loc": {
"start": {
"line": 89,
"column": 15
},
"end": {
"line": 89,
"column": 18
},
"identifierName": "uid"
},
"name": "uid"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "ConditionalExpression",
"start": 3006,
"end": 3036,
"loc": {
"start": {
"line": 89,
"column": 21
},
"end": {
"line": 89,
"column": 51
}
},
"test": {
"type": "Identifier",
"start": 3006,
"end": 3009,
"loc": {
"start": {
"line": 89,
"column": 21
},
"end": {
"line": 89,
"column": 24
},
"identifierName": "uid"
},
"name": "uid"
},
"consequent": {
"type": "Identifier",
"start": 3012,
"end": 3015,
"loc": {
"start": {
"line": 89,
"column": 27
},
"end": {
"line": 89,
"column": 30
},
"identifierName": "uid"
},
"name": "uid"
},
"alternate": {
"type": "CallExpression",
"start": 3018,
"end": 3036,
"loc": {
"start": {
"line": 89,
"column": 33
},
"end": {
"line": 89,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
"start": 3018,
"end": 3034,
"loc": {
"start": {
"line": 89,
"column": 33
},
"end": {
"line": 89,
"column": 49
}
},
"object": {
"type": "ThisExpression",
"start": 3018,
"end": 3022,
"loc": {
"start": {
"line": 89,
"column": 33
},
"end": {
"line": 89,
"column": 37
}
}
},
"property": {
"type": "Identifier",
"start": 3023,
"end": 3034,
"loc": {
"start": {
"line": 89,
"column": 38
},
"end": {
"line": 89,
"column": 49
},
"identifierName": "generateUid"
},
"name": "generateUid"
},
"computed": false
},
"arguments": []
}
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Give each entity a unique id",
"start": 2952,
"end": 2983,
"loc": {
"start": {
"line": 88,
"column": 8
},
"end": {
"line": 88,
"column": 39
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 3047,
"end": 3072,
"loc": {
"start": {
"line": 90,
"column": 8
},
"end": {
"line": 90,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3047,
"end": 3071,
"loc": {
"start": {
"line": 90,
"column": 8
},
"end": {
"line": 90,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3047,
"end": 3064,
"loc": {
"start": {
"line": 90,
"column": 8
},
"end": {
"line": 90,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 3047,
"end": 3053,
"loc": {
"start": {
"line": 90,
"column": 8
},
"end": {
"line": 90,
"column": 14
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 3054,
"end": 3064,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 25
},
"identifierName": "registered"
},
"name": "registered"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 3067,
"end": 3071,
"loc": {
"start": {
"line": 90,
"column": 28
},
"end": {
"line": 90,
"column": 32
}
},
"value": true
}
}
},
{
"type": "ExpressionStatement",
"start": 3084,
"end": 3142,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 66
}
},
"expression": {
"type": "CallExpression",
"start": 3084,
"end": 3141,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 65
}
},
"callee": {
"type": "MemberExpression",
"start": 3084,
"end": 3122,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 46
}
},
"object": {
"type": "MemberExpression",
"start": 3084,
"end": 3113,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 3084,
"end": 3101,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 3084,
"end": 3093,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 3084,
"end": 3088,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3089,
"end": 3093,
"loc": {
"start": {
"line": 92,
"column": 13
},
"end": {
"line": 92,
"column": 17
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3094,
"end": 3101,
"loc": {
"start": {
"line": 92,
"column": 18
},
"end": {
"line": 92,
"column": 25
},
"identifierName": "signals"
},
"name": "signals"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3102,
"end": 3113,
"loc": {
"start": {
"line": 92,
"column": 26
},
"end": {
"line": 92,
"column": 37
},
"identifierName": "entityAdded"
},
"name": "entityAdded"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3114,
"end": 3122,
"loc": {
"start": {
"line": 92,
"column": 38
},
"end": {
"line": 92,
"column": 46
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3123,
"end": 3129,
"loc": {
"start": {
"line": 92,
"column": 47
},
"end": {
"line": 92,
"column": 53
},
"identifierName": "entity"
},
"name": "entity"
},
{
"type": "Identifier",
"start": 3131,
"end": 3140,
"loc": {
"start": {
"line": 92,
"column": 55
},
"end": {
"line": 92,
"column": 64
},
"identifierName": "blueprint"
},
"name": "blueprint"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Registers a new entity\r\n * @param {Entity} entity\r\n * @param {number=} uid Optional predefined uid\r\n ",
"start": 1728,
"end": 1855,
"loc": {
"start": {
"line": 59,
"column": 4
},
"end": {
"line": 63,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Generates a new uid\r\n * @returns {number}\r\n ",
"start": 3157,
"end": 3223,
"loc": {
"start": {
"line": 95,
"column": 4
},
"end": {
"line": 98,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3229,
"end": 3283,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 101,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3229,
"end": 3240,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 99,
"column": 15
},
"identifierName": "generateUid"
},
"name": "generateUid",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 3243,
"end": 3283,
"loc": {
"start": {
"line": 99,
"column": 18
},
"end": {
"line": 101,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 3254,
"end": 3276,
"loc": {
"start": {
"line": 100,
"column": 8
},
"end": {
"line": 100,
"column": 30
}
},
"argument": {
"type": "UpdateExpression",
"start": 3261,
"end": 3275,
"loc": {
"start": {
"line": 100,
"column": 15
},
"end": {
"line": 100,
"column": 29
}
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"start": 3261,
"end": 3273,
"loc": {
"start": {
"line": 100,
"column": 15
},
"end": {
"line": 100,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 3261,
"end": 3265,
"loc": {
"start": {
"line": 100,
"column": 15
},
"end": {
"line": 100,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 3266,
"end": 3273,
"loc": {
"start": {
"line": 100,
"column": 20
},
"end": {
"line": 100,
"column": 27
},
"identifierName": "nextUid"
},
"name": "nextUid"
},
"computed": false
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Generates a new uid\r\n * @returns {number}\r\n ",
"start": 3157,
"end": 3223,
"loc": {
"start": {
"line": 95,
"column": 4
},
"end": {
"line": 98,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Call to attach a new component after the creation of the entity\r\n * @param {Entity} entity\r\n * @param {Component} component\r\n ",
"start": 3291,
"end": 3443,
"loc": {
"start": {
"line": 103,
"column": 4
},
"end": {
"line": 107,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3449,
"end": 3912,
"loc": {
"start": {
"line": 108,
"column": 4
},
"end": {
"line": 117,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3449,
"end": 3471,
"loc": {
"start": {
"line": 108,
"column": 4
},
"end": {
"line": 108,
"column": 26
},
"identifierName": "attachDynamicComponent"
},
"name": "attachDynamicComponent",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 3472,
"end": 3478,
"loc": {
"start": {
"line": 108,
"column": 27
},
"end": {
"line": 108,
"column": 33
},
"identifierName": "entity"
},
"name": "entity"
},
{
"type": "Identifier",
"start": 3480,
"end": 3489,
"loc": {
"start": {
"line": 108,
"column": 35
},
"end": {
"line": 108,
"column": 44
},
"identifierName": "component"
},
"name": "component"
}
],
"body": {
"type": "BlockStatement",
"start": 3491,
"end": 3912,
"loc": {
"start": {
"line": 108,
"column": 46
},
"end": {
"line": 117,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3502,
"end": 3539,
"loc": {
"start": {
"line": 109,
"column": 8
},
"end": {
"line": 109,
"column": 45
}
},
"expression": {
"type": "CallExpression",
"start": 3502,
"end": 3538,
"loc": {
"start": {
"line": 109,
"column": 8
},
"end": {
"line": 109,
"column": 44
}
},
"callee": {
"type": "MemberExpression",
"start": 3502,
"end": 3521,
"loc": {
"start": {
"line": 109,
"column": 8
},
"end": {
"line": 109,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 3502,
"end": 3508,
"loc": {
"start": {
"line": 109,
"column": 8
},
"end": {
"line": 109,
"column": 14
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 3509,
"end": 3521,
"loc": {
"start": {
"line": 109,
"column": 15
},
"end": {
"line": 109,
"column": 27
},
"identifierName": "addComponent"
},
"name": "addComponent"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3522,
"end": 3531,
"loc": {
"start": {
"line": 109,
"column": 28
},
"end": {
"line": 109,
"column": 37
},
"identifierName": "component"
},
"name": "component"
},
{
"type": "BooleanLiteral",
"start": 3533,
"end": 3537,
"loc": {
"start": {
"line": 109,
"column": 39
},
"end": {
"line": 109,
"column": 43
}
},
"value": true
}
]
}
},
{
"type": "VariableDeclaration",
"start": 3549,
"end": 3633,
"loc": {
"start": {
"line": 110,
"column": 8
},
"end": {
"line": 110,
"column": 92
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3555,
"end": 3632,
"loc": {
"start": {
"line": 110,
"column": 14
},
"end": {
"line": 110,
"column": 91
}
},
"id": {
"type": "Identifier",
"start": 3555,
"end": 3566,
"loc": {
"start": {
"line": 110,
"column": 14
},
"end": {
"line": 110,
"column": 25
},
"identifierName": "componentId"
},
"name": "componentId"
},
"init": {
"type": "CallExpression",
"start": 3601,
"end": 3632,
"loc": {
"start": {
"line": 110,
"column": 60
},
"end": {
"line": 110,
"column": 91
}
},
"callee": {
"type": "MemberExpression",
"start": 3601,
"end": 3630,
"loc": {
"start": {
"line": 110,
"column": 60
},
"end": {
"line": 110,
"column": 89
}
},
"object": {
"type": "MemberExpression",
"start": 3602,
"end": 3623,
"loc": {
"start": {
"line": 110,
"column": 61
},
"end": {
"line": 110,
"column": 82
}
},
"object": {
"type": "Identifier",
"start": 3602,
"end": 3611,
"loc": {
"start": {
"line": 110,
"column": 61
},
"end": {
"line": 110,
"column": 70
},
"identifierName": "component"
},
"name": "component",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 3612,
"end": 3623,
"loc": {
"start": {
"line": 110,
"column": 71
},
"end": {
"line": 110,
"column": 82
},
"identifierName": "constructor"
},
"name": "constructor"
},
"computed": false,
"leadingComments": null,
"extra": {
"parenthesized": true,
"parenStart": 3601
}
},
"property": {
"type": "Identifier",
"start": 3625,
"end": 3630,
"loc": {
"start": {
"line": 110,
"column": 84
},
"end": {
"line": 110,
"column": 89
},
"identifierName": "getId"
},
"name": "getId"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @type {typeof Component} ",
"start": 3569,
"end": 3600,
"loc": {
"start": {
"line": 110,
"column": 28
},
"end": {
"line": 110,
"column": 59
}
}
}
]
}
}
],
"kind": "const"
},
{
"type": "IfStatement",
"start": 3643,
"end": 3838,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 115,
"column": 9
}
},
"test": {
"type": "MemberExpression",
"start": 3647,
"end": 3682,
"loc": {
"start": {
"line": 111,
"column": 12
},
"end": {
"line": 111,
"column": 47
}
},
"object": {
"type": "MemberExpression",
"start": 3647,
"end": 3669,
"loc": {
"start": {
"line": 111,
"column": 12
},
"end": {
"line": 111,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 3647,
"end": 3651,
"loc": {
"start": {
"line": 111,
"column": 12
},
"end": {
"line": 111,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 3652,
"end": 3669,
"loc": {
"start": {
"line": 111,
"column": 17
},
"end": {
"line": 111,
"column": 34
},
"identifierName": "componentToEntity"
},
"name": "componentToEntity"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3670,
"end": 3681,
"loc": {
"start": {
"line": 111,
"column": 35
},
"end": {
"line": 111,
"column": 46
},
"identifierName": "componentId"
},
"name": "componentId"
},
"computed": true
},
"consequent": {
"type": "BlockStatement",
"start": 3684,
"end": 3759,
"loc": {
"start": {
"line": 111,
"column": 49
},
"end": {
"line": 113,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3699,
"end": 3748,
"loc": {
"start": {
"line": 112,
"column": 12
},
"end": {
"line": 112,
"column": 61
}
},
"expression": {
"type": "CallExpression",
"start": 3699,
"end": 3747,
"loc": {
"start": {
"line": 112,
"column": 12
},
"end": {
"line": 112,
"column": 60
}
},
"callee": {
"type": "MemberExpression",
"start": 3699,
"end": 3739,
"loc": {
"start": {
"line": 112,
"column": 12
},
"end": {
"line": 112,
"column": 52
}
},
"object": {
"type": "MemberExpression",
"start": 3699,
"end": 3734,
"loc": {
"start": {
"line": 112,
"column": 12
},
"end": {
"line": 112,
"column": 47
}
},
"object": {
"type": "MemberExpression",
"start": 3699,
"end": 3721,
"loc": {
"start": {
"line": 112,
"column": 12
},
"end": {
"line": 112,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 3699,
"end": 3703,
"loc": {
"start": {
"line": 112,
"column": 12
},
"end": {
"line": 112,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 3704,
"end": 3721,
"loc": {
"start": {
"line": 112,
"column": 17
},
"end": {
"line": 112,
"column": 34
},
"identifierName": "componentToEntity"
},
"name": "componentToEntity"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3722,
"end": 3733,
"loc": {
"start": {
"line": 112,
"column": 35
},
"end": {
"line": 112,
"column": 46
},
"identifierName": "componentId"
},
"name": "componentId"
},
"computed": true
},
"property": {
"type": "Identifier",
"start": 3735,
"end": 3739,
"loc": {
"start": {
"line": 112,
"column": 48
},
"end": {
"line": 112,
"column": 52
},
"identifierName": "push"
},
"name": "push"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3740,
"end": 3746,
"loc": {
"start": {
"line": 112,
"column": 53
},
"end": {
"line": 112,
"column": 59
},
"identifierName": "entity"
},
"name": "entity"
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 3765,
"end": 3838,
"loc": {
"start": {
"line": 113,
"column": 15
},
"end": {
"line": 115,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3780,
"end": 3827,
"loc": {
"start": {
"line": 114,
"column": 12
},
"end": {
"line": 114,
"column": 59
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3780,
"end": 3826,
"loc": {
"start": {
"line": 114,
"column": 12
},
"end": {
"line": 114,
"column": 58
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3780,
"end": 3815,
"loc": {
"start": {
"line": 114,
"column": 12
},
"end": {
"line": 114,
"column": 47
}
},
"object": {
"type": "MemberExpression",
"start": 3780,
"end": 3802,
"loc": {
"start": {
"line": 114,
"column": 12
},
"end": {
"line": 114,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 3780,
"end": 3784,
"loc": {
"start": {
"line": 114,
"column": 12
},
"end": {
"line": 114,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 3785,
"end": 3802,
"loc": {
"start": {
"line": 114,
"column": 17
},
"end": {
"line": 114,
"column": 34
},
"identifierName": "componentToEntity"
},
"name": "componentToEntity"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3803,
"end": 3814,
"loc": {
"start": {
"line": 114,
"column": 35
},
"end": {
"line": 114,
"column": 46
},
"identifierName": "componentId"
},
"name": "componentId"
},
"computed": true
},
"right": {
"type": "ArrayExpression",
"start": 3818,
"end": 3826,
"loc": {
"start": {
"line": 114,
"column": 50
},
"end": {
"line": 114,
"column": 58
}
},
"elements": [
{
"type": "Identifier",
"start": 3819,
"end": 3825,
"loc": {
"start": {
"line": 114,
"column": 51
},
"end": {
"line": 114,
"column": 57
},
"identifierName": "entity"
},
"name": "entity"
}
]
}
}
}
],
"directives": []
}
},
{
"type": "ExpressionStatement",
"start": 3848,
"end": 3905,
"loc": {
"start": {
"line": 116,
"column": 8
},
"end": {
"line": 116,
"column": 65
}
},
"expression": {
"type": "CallExpression",
"start": 3848,
"end": 3904,
"loc": {
"start": {
"line": 116,
"column": 8
},
"end": {
"line": 116,
"column": 64
}
},
"callee": {
"type": "MemberExpression",
"start": 3848,
"end": 3896,
"loc": {
"start": {
"line": 116,
"column": 8
},
"end": {
"line": 116,
"column": 56
}
},
"object": {
"type": "MemberExpression",
"start": 3848,
"end": 3887,
"loc": {
"start": {
"line": 116,
"column": 8
},
"end": {
"line": 116,
"column": 47
}
},
"object": {
"type": "MemberExpression",
"start": 3848,
"end": 3865,
"loc": {
"start": {
"line": 116,
"column": 8
},
"end": {
"line": 116,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 3848,
"end": 3857,
"loc": {
"start": {
"line": 116,
"column": 8
},
"end": {
"line": 116,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 3848,
"end": 3852,
"loc": {
"start": {
"line": 116,
"column": 8
},
"end": {
"line": 116,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3853,
"end": 3857,
"loc": {
"start": {
"line": 116,
"column": 13
},
"end": {
"line": 116,
"column": 17
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3858,
"end": 3865,
"loc": {
"start": {
"line": 116,
"column": 18
},
"end": {
"line": 116,
"column": 25
},
"identifierName": "signals"
},
"name": "signals"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3866,
"end": 3887,
"loc": {
"start": {
"line": 116,
"column": 26
},
"end": {
"line": 116,
"column": 47
},
"identifierName": "entityGotNewComponent"
},
"name": "entityGotNewComponent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3888,
"end": 3896,
"loc": {
"start": {
"line": 116,
"column": 48
},
"end": {
"line": 116,
"column": 56
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3897,
"end": 3903,
"loc": {
"start": {
"line": 116,
"column": 57
},
"end": {
"line": 116,
"column": 63
},
"identifierName": "entity"
},
"name": "entity"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Call to attach a new component after the creation of the entity\r\n * @param {Entity} entity\r\n * @param {Component} component\r\n ",
"start": 3291,
"end": 3443,
"loc": {
"start": {
"line": 103,
"column": 4
},
"end": {
"line": 107,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Call to remove a component after the creation of the entity\r\n * @param {Entity} entity\r\n * @param {typeof Component} component\r\n ",
"start": 3920,
"end": 4075,
"loc": {
"start": {
"line": 119,
"column": 4
},
"end": {
"line": 123,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 4081,
"end": 4421,
"loc": {
"start": {
"line": 124,
"column": 4
},
"end": {
"line": 130,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 4081,
"end": 4103,
"loc": {
"start": {
"line": 124,
"column": 4
},
"end": {
"line": 124,
"column": 26
},
"identifierName": "removeDynamicComponent"
},
"name": "removeDynamicComponent",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 4104,
"end": 4110,
"loc": {
"start": {
"line": 124,
"column": 27
},
"end": {
"line": 124,
"column": 33
},
"identifierName": "entity"
},
"name": "entity"
},
{
"type": "Identifier",
"start": 4112,
"end": 4121,
"loc": {
"start": {
"line": 124,
"column": 35
},
"end": {
"line": 124,
"column": 44
},
"identifierName": "component"
},
"name": "component"
}
],
"body": {
"type": "BlockStatement",
"start": 4123,
"end": 4421,
"loc": {
"start": {
"line": 124,
"column": 46
},
"end": {
"line": 130,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 4134,
"end": 4174,
"loc": {
"start": {
"line": 125,
"column": 8
},
"end": {
"line": 125,
"column": 48
}
},
"expression": {
"type": "CallExpression",
"start": 4134,
"end": 4173,
"loc": {
"start": {
"line": 125,
"column": 8
},
"end": {
"line": 125,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
"start": 4134,
"end": 4156,
"loc": {
"start": {
"line": 125,
"column": 8
},
"end": {
"line": 125,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 4134,
"end": 4140,
"loc": {
"start": {
"line": 125,
"column": 8
},
"end": {
"line": 125,
"column": 14
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 4141,
"end": 4156,
"loc": {
"start": {
"line": 125,
"column": 15
},
"end": {
"line": 125,
"column": 30
},
"identifierName": "removeComponent"
},
"name": "removeComponent"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 4157,
"end": 4166,
"loc": {
"start": {
"line": 125,
"column": 31
},
"end": {
"line": 125,
"column": 40
},
"identifierName": "component"
},
"name": "component"
},
{
"type": "BooleanLiteral",
"start": 4168,
"end": 4172,
"loc": {
"start": {
"line": 125,
"column": 42
},
"end": {
"line": 125,
"column": 46
}
},
"value": true
}
]
}
},
{
"type": "VariableDeclaration",
"start": 4184,
"end": 4268,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 92
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4190,
"end": 4267,
"loc": {
"start": {
"line": 126,
"column": 14
},
"end": {
"line": 126,
"column": 91
}
},
"id": {
"type": "Identifier",
"start": 4190,
"end": 4201,
"loc": {
"start": {
"line": 126,
"column": 14
},
"end": {
"line": 126,
"column": 25
},
"identifierName": "componentId"
},
"name": "componentId"
},
"init": {
"type": "CallExpression",
"start": 4236,
"end": 4267,
"loc": {
"start": {
"line": 126,
"column": 60
},
"end": {
"line": 126,
"column": 91
}
},
"callee": {
"type": "MemberExpression",
"start": 4236,
"end": 4265,
"loc": {
"start": {
"line": 126,
"column": 60
},
"end": {
"line": 126,
"column": 89
}
},
"object": {
"type": "MemberExpression",
"start": 4237,
"end": 4258,
"loc": {
"start": {
"line": 126,
"column": 61
},
"end": {
"line": 126,
"column": 82
}
},
"object": {
"type": "Identifier",
"start": 4237,
"end": 4246,
"loc": {
"start": {
"line": 126,
"column": 61
},
"end": {
"line": 126,
"column": 70
},
"identifierName": "component"
},
"name": "component",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 4247,
"end": 4258,
"loc": {
"start": {
"line": 126,
"column": 71
},
"end": {
"line": 126,
"column": 82
},
"identifierName": "constructor"
},
"name": "constructor"
},
"computed": false,
"leadingComments": null,
"extra": {
"parenthesized": true,
"parenStart": 4236
}
},
"property": {
"type": "Identifier",
"start": 4260,
"end": 4265,
"loc": {
"start": {
"line": 126,
"column": 84
},
"end": {
"line": 126,
"column": 89
},
"identifierName": "getId"
},
"name": "getId"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @type {typeof Component} ",
"start": 4204,
"end": 4235,
"loc": {
"start": {
"line": 126,
"column": 28
},
"end": {
"line": 126,
"column": 59
}
}
}
]
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 4280,
"end": 4346,
"loc": {
"start": {
"line": 128,
"column": 8
},
"end": {
"line": 128,
"column": 74
}
},
"expression": {
"type": "CallExpression",
"start": 4280,
"end": 4345,
"loc": {
"start": {
"line": 128,
"column": 8
},
"end": {
"line": 128,
"column": 73
}
},
"callee": {
"type": "Identifier",
"start": 4280,
"end": 4300,
"loc": {
"start": {
"line": 128,
"column": 8
},
"end": {
"line": 128,
"column": 28
},
"identifierName": "fastArrayDeleteValue"
},
"name": "fastArrayDeleteValue"
},
"arguments": [
{
"type": "MemberExpression",
"start": 4301,
"end": 4336,
"loc": {
"start": {
"line": 128,
"column": 29
},
"end": {
"line": 128,
"column": 64
}
},
"object": {
"type": "MemberExpression",
"start": 4301,
"end": 4323,
"loc": {
"start": {
"line": 128,
"column": 29
},
"end": {
"line": 128,
"column": 51
}
},
"object": {
"type": "ThisExpression",
"start": 4301,
"end": 4305,
"loc": {
"start": {
"line": 128,
"column": 29
},
"end": {
"line": 128,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"start": 4306,
"end": 4323,
"loc": {
"start": {
"line": 128,
"column": 34
},
"end": {
"line": 128,
"column": 51
},
"identifierName": "componentToEntity"
},
"name": "componentToEntity"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 4324,
"end": 4335,
"loc": {
"start": {
"line": 128,
"column": 52
},
"end": {
"line": 128,
"column": 63
},
"identifierName": "componentId"
},
"name": "componentId"
},
"computed": true
},
{
"type": "Identifier",
"start": 4338,
"end": 4344,
"loc": {
"start": {
"line": 128,
"column": 66
},
"end": {
"line": 128,
"column": 72
},
"identifierName": "entity"
},
"name": "entity"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 4356,
"end": 4414,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 66
}
},
"expression": {
"type": "CallExpression",
"start": 4356,
"end": 4413,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 65
}
},
"callee": {
"type": "MemberExpression",
"start": 4356,
"end": 4405,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 57
}
},
"object": {
"type": "MemberExpression",
"start": 4356,
"end": 4396,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 48
}
},
"object": {
"type": "MemberExpression",
"start": 4356,
"end": 4373,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 4356,
"end": 4365,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 4356,
"end": 4360,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 4361,
"end": 4365,
"loc": {
"start": {
"line": 129,
"column": 13
},
"end": {
"line": 129,
"column": 17
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 4366,
"end": 4373,
"loc": {
"start": {
"line": 129,
"column": 18
},
"end": {
"line": 129,
"column": 25
},
"identifierName": "signals"
},
"name": "signals"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 4374,
"end": 4396,
"loc": {
"start": {
"line": 129,
"column": 26
},
"end": {
"line": 129,
"column": 48
},
"identifierName": "entityComponentRemoved"
},
"name": "entityComponentRemoved"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 4397,
"end": 4405,
"loc": {
"start": {
"line": 129,
"column": 49
},
"end": {
"line": 129,
"column": 57
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 4406,
"end": 4412,
"loc": {
"start": {
"line": 129,
"column": 58
},
"end": {
"line": 129,
"column": 64
},
"identifierName": "entity"
},
"name": "entity"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Call to remove a component after the creation of the entity\r\n * @param {Entity} entity\r\n * @param {typeof Component} component\r\n ",
"start": 3920,
"end": 4075,
"loc": {
"start": {
"line": 119,
"column": 4
},
"end": {
"line": 123,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Finds an entity buy its uid, kinda slow since it loops over all entities\r\n * @param {number} uid\r\n * @param {boolean=} errorWhenNotFound\r\n * @returns {Entity}\r\n ",
"start": 4429,
"end": 4620,
"loc": {
"start": {
"line": 132,
"column": 4
},
"end": {
"line": 137,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 4626,
"end": 5310,
"loc": {
"start": {
"line": 138,
"column": 4
},
"end": {
"line": 156,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 4626,
"end": 4635,
"loc": {
"start": {
"line": 138,
"column": 4
},
"end": {
"line": 138,
"column": 13
},
"identifierName": "findByUid"
},
"name": "findByUid",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 4636,
"end": 4639,
"loc": {
"start": {
"line": 138,
"column": 14
},
"end": {
"line": 138,
"column": 17
},
"identifierName": "uid"
},
"name": "uid"
},
{
"type": "AssignmentPattern",
"start": 4641,
"end": 4665,
"loc": {
"start": {
"line": 138,
"column": 19
},
"end": {
"line": 138,
"column": 43
}
},
"left": {
"type": "Identifier",
"start": 4641,
"end": 4658,
"loc": {
"start": {
"line": 138,
"column": 19
},
"end": {
"line": 138,
"column": 36
},
"identifierName": "errorWhenNotFound"
},
"name": "errorWhenNotFound"
},
"right": {
"type": "BooleanLiteral",
"start": 4661,
"end": 4665,
"loc": {
"start": {
"line": 138,
"column": 39
},
"end": {
"line": 138,
"column": 43
}
},
"value": true
}
}
],
"body": {
"type": "BlockStatement",
"start": 4667,
"end": 5310,
"loc": {
"start": {
"line": 138,
"column": 45
},
"end": {
"line": 156,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 4678,
"end": 4704,
"loc": {
"start": {
"line": 139,
"column": 8
},
"end": {
"line": 139,
"column": 34
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4684,
"end": 4703,
"loc": {
"start": {
"line": 139,
"column": 14
},
"end": {
"line": 139,
"column": 33
}
},
"id": {
"type": "Identifier",
"start": 4684,
"end": 4687,
"loc": {
"start": {
"line": 139,
"column": 14
},
"end": {
"line": 139,
"column": 17
},
"identifierName": "arr"
},
"name": "arr"
},
"init": {
"type": "MemberExpression",
"start": 4690,
"end": 4703,
"loc": {
"start": {
"line": 139,
"column": 20
},
"end": {
"line": 139,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 4690,
"end": 4694,
"loc": {
"start": {
"line": 139,
"column": 20
},
"end": {
"line": 139,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 4695,
"end": 4703,
"loc": {
"start": {
"line": 139,
"column": 25
},
"end": {
"line": 139,
"column": 33
},
"identifierName": "entities"
},
"name": "entities"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "ForStatement",
"start": 4714,
"end": 5173,
"loc": {
"start": {
"line": 140,
"column": 8
},
"end": {
"line": 151,
"column": 9
}
},
"init": {
"type": "VariableDeclaration",
"start": 4719,
"end": 4746,
"loc": {
"start": {
"line": 140,
"column": 13
},
"end": {
"line": 140,
"column": 40
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4723,
"end": 4728,
"loc": {
"start": {
"line": 140,
"column": 17
},
"end": {
"line": 140,
"column": 22
}
},
"id": {
"type": "Identifier",
"start": 4723,
"end": 4724,
"loc": {
"start": {
"line": 140,
"column": 17
},
"end": {
"line": 140,
"column": 18
},
"identifierName": "i"
},
"name": "i"
},
"init": {
"type": "NumericLiteral",
"start": 4727,
"end": 4728,
"loc": {
"start": {
"line": 140,
"column": 21
},
"end": {
"line": 140,
"column": 22
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "VariableDeclarator",
"start": 4730,
"end": 4746,
"loc": {
"start": {
"line": 140,
"column": 24
},
"end": {
"line": 140,
"column": 40
}
},
"id": {
"type": "Identifier",
"start": 4730,
"end": 4733,
"loc": {
"start": {
"line": 140,
"column": 24
},
"end": {
"line": 140,
"column": 27
},
"identifierName": "len"
},
"name": "len"
},
"init": {
"type": "MemberExpression",
"start": 4736,
"end": 4746,
"loc": {
"start": {
"line": 140,
"column": 30
},
"end": {
"line": 140,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 4736,
"end": 4739,
"loc": {
"start": {
"line": 140,
"column": 30
},
"end": {
"line": 140,
"column": 33
},
"identifierName": "arr"
},
"name": "arr"
},
"property": {
"type": "Identifier",
"start": 4740,
"end": 4746,
"loc": {
"start": {
"line": 140,
"column": 34
},
"end": {
"line": 140,
"column": 40
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 4748,
"end": 4755,
"loc": {
"start": {
"line": 140,
"column": 42
},
"end": {
"line": 140,
"column": 49
}
},
"left": {
"type": "Identifier",
"start": 4748,
"end": 4749,
"loc": {
"start": {
"line": 140,
"column": 42
},
"end": {
"line": 140,
"column": 43
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "Identifier",
"start": 4752,
"end": 4755,
"loc": {
"start": {
"line": 140,
"column": 46
},
"end": {
"line": 140,
"column": 49
},
"identifierName": "len"
},
"name": "len"
}
},
"update": {
"type": "UpdateExpression",
"start": 4757,
"end": 4760,
"loc": {
"start": {
"line": 140,
"column": 51
},
"end": {
"line": 140,
"column": 54
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 4759,
"end": 4760,
"loc": {
"start": {
"line": 140,
"column": 53
},
"end": {
"line": 140,
"column": 54
},
"identifierName": "i"
},
"name": "i"
},
"extra": {
"parenthesizedArgument": false
}
},
"body": {
"type": "BlockStatement",
"start": 4762,
"end": 5173,
"loc": {
"start": {
"line": 140,
"column": 56
},
"end": {
"line": 151,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 4777,
"end": 4799,
"loc": {
"start": {
"line": 141,
"column": 12
},
"end": {
"line": 141,
"column": 34
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4783,
"end": 4798,
"loc": {
"start": {
"line": 141,
"column": 18
},
"end": {
"line": 141,
"column": 33
}
},
"id": {
"type": "Identifier",
"start": 4783,
"end": 4789,
"loc": {
"start": {
"line": 141,
"column": 18
},
"end": {
"line": 141,
"column": 24
},
"identifierName": "entity"
},
"name": "entity"
},
"init": {
"type": "MemberExpression",
"start": 4792,
"end": 4798,
"loc": {
"start": {
"line": 141,
"column": 27
},
"end": {
"line": 141,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 4792,
"end": 4795,
"loc": {
"start": {
"line": 141,
"column": 27
},
"end": {
"line": 141,
"column": 30
},
"identifierName": "arr"
},
"name": "arr"
},
"property": {
"type": "Identifier",
"start": 4796,
"end": 4797,
"loc": {
"start": {
"line": 141,
"column": 31
},
"end": {
"line": 141,
"column": 32
},
"identifierName": "i"
},
"name": "i"
},
"computed": true
}
}
],
"kind": "const"
},
{
"type": "IfStatement",
"start": 4813,
"end": 5162,
"loc": {
"start": {
"line": 142,
"column": 12
},
"end": {
"line": 150,
"column": 13
}
},
"test": {
"type": "BinaryExpression",
"start": 4817,
"end": 4835,
"loc": {
"start": {
"line": 142,
"column": 16
},
"end": {
"line": 142,
"column": 34
}
},
"left": {
"type": "MemberExpression",
"start": 4817,
"end": 4827,
"loc": {
"start": {
"line": 142,
"column": 16
},
"end": {
"line": 142,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 4817,
"end": 4823,
"loc": {
"start": {
"line": 142,
"column": 16
},
"end": {
"line": 142,
"column": 22
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 4824,
"end": 4827,
"loc": {
"start": {
"line": 142,
"column": 23
},
"end": {
"line": 142,
"column": 26
},
"identifierName": "uid"
},
"name": "uid"
},
"computed": false
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 4832,
"end": 4835,
"loc": {
"start": {
"line": 142,
"column": 31
},
"end": {
"line": 142,
"column": 34
},
"identifierName": "uid"
},
"name": "uid"
}
},
"consequent": {
"type": "BlockStatement",
"start": 4837,
"end": 5162,
"loc": {
"start": {
"line": 142,
"column": 36
},
"end": {
"line": 150,
"column": 13
}
},
"body": [
{
"type": "IfStatement",
"start": 4856,
"end": 5115,
"loc": {
"start": {
"line": 143,
"column": 16
},
"end": {
"line": 148,
"column": 17
}
},
"test": {
"type": "LogicalExpression",
"start": 4860,
"end": 4903,
"loc": {
"start": {
"line": 143,
"column": 20
},
"end": {
"line": 143,
"column": 63
}
},
"left": {
"type": "MemberExpression",
"start": 4860,
"end": 4883,
"loc": {
"start": {
"line": 143,
"column": 20
},
"end": {
"line": 143,
"column": 43
}
},
"object": {
"type": "Identifier",
"start": 4860,
"end": 4866,
"loc": {
"start": {
"line": 143,
"column": 20
},
"end": {
"line": 143,
"column": 26
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 4867,
"end": 4883,
"loc": {
"start": {
"line": 143,
"column": 27
},
"end": {
"line": 143,
"column": 43
},
"identifierName": "queuedForDestroy"
},
"name": "queuedForDestroy"
},
"computed": false
},
"operator": "||",
"right": {
"type": "MemberExpression",
"start": 4887,
"end": 4903,
"loc": {
"start": {
"line": 143,
"column": 47
},
"end": {
"line": 143,
"column": 63
}
},
"object": {
"type": "Identifier",
"start": 4887,
"end": 4893,
"loc": {
"start": {
"line": 143,
"column": 47
},
"end": {
"line": 143,
"column": 53
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 4894,
"end": 4903,
"loc": {
"start": {
"line": 143,
"column": 54
},
"end": {
"line": 143,
"column": 63
},
"identifierName": "destroyed"
},
"name": "destroyed"
},
"computed": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 4905,
"end": 5115,
"loc": {
"start": {
"line": 143,
"column": 65
},
"end": {
"line": 148,
"column": 17
}
},
"body": [
{
"type": "IfStatement",
"start": 4928,
"end": 5062,
"loc": {
"start": {
"line": 144,
"column": 20
},
"end": {
"line": 146,
"column": 21
}
},
"test": {
"type": "Identifier",
"start": 4932,
"end": 4949,
"loc": {
"start": {
"line": 144,
"column": 24
},
"end": {
"line": 144,
"column": 41
},
"identifierName": "errorWhenNotFound"
},
"name": "errorWhenNotFound"
},
"consequent": {
"type": "BlockStatement",
"start": 4951,
"end": 5062,
"loc": {
"start": {
"line": 144,
"column": 43
},
"end": {
"line": 146,
"column": 21
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 4978,
"end": 5039,
"loc": {
"start": {
"line": 145,
"column": 24
},
"end": {
"line": 145,
"column": 85
}
},
"expression": {
"type": "CallExpression",
"start": 4978,
"end": 5038,
"loc": {
"start": {
"line": 145,
"column": 24
},
"end": {
"line": 145,
"column": 84
}
},
"callee": {
"type": "MemberExpression",
"start": 4978,
"end": 4989,
"loc": {
"start": {
"line": 145,
"column": 24
},
"end": {
"line": 145,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 4978,
"end": 4984,
"loc": {
"start": {
"line": 145,
"column": 24
},
"end": {
"line": 145,
"column": 30
},
"identifierName": "logger"
},
"name": "logger"
},
"property": {
"type": "Identifier",
"start": 4985,
"end": 4989,
"loc": {
"start": {
"line": 145,
"column": 31
},
"end": {
"line": 145,
"column": 35
},
"identifierName": "warn"
},
"name": "warn"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 4990,
"end": 5007,
"loc": {
"start": {
"line": 145,
"column": 36
},
"end": {
"line": 145,
"column": 53
}
},
"extra": {
"rawValue": "Entity with UID",
"raw": "\"Entity with UID\""
},
"value": "Entity with UID"
},
{
"type": "Identifier",
"start": 5009,
"end": 5012,
"loc": {
"start": {
"line": 145,
"column": 55
},
"end": {
"line": 145,
"column": 58
},
"identifierName": "uid"
},
"name": "uid"
},
{
"type": "StringLiteral",
"start": 5014,
"end": 5037,
"loc": {
"start": {
"line": 145,
"column": 60
},
"end": {
"line": 145,
"column": 83
}
},
"extra": {
"rawValue": "not found (destroyed)",
"raw": "\"not found (destroyed)\""
},
"value": "not found (destroyed)"
}
]
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 5084,
"end": 5096,
"loc": {
"start": {
"line": 147,
"column": 20
},
"end": {
"line": 147,
"column": 32
}
},
"argument": {
"type": "NullLiteral",
"start": 5091,
"end": 5095,
"loc": {
"start": {
"line": 147,
"column": 27
},
"end": {
"line": 147,
"column": 31
}
}
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 5133,
"end": 5147,
"loc": {
"start": {
"line": 149,
"column": 16
},
"end": {
"line": 149,
"column": 30
}
},
"argument": {
"type": "Identifier",
"start": 5140,
"end": 5146,
"loc": {
"start": {
"line": 149,
"column": 23
},
"end": {
"line": 149,
"column": 29
},
"identifierName": "entity"
},
"name": "entity"
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
},
{
"type": "IfStatement",
"start": 5183,
"end": 5281,
"loc": {
"start": {
"line": 152,
"column": 8
},
"end": {
"line": 154,
"column": 9
}
},
"test": {
"type": "Identifier",
"start": 5187,
"end": 5204,
"loc": {
"start": {
"line": 152,
"column": 12
},
"end": {
"line": 152,
"column": 29
},
"identifierName": "errorWhenNotFound"
},
"name": "errorWhenNotFound"
},
"consequent": {
"type": "BlockStatement",
"start": 5206,
"end": 5281,
"loc": {
"start": {
"line": 152,
"column": 31
},
"end": {
"line": 154,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 5221,
"end": 5270,
"loc": {
"start": {
"line": 153,
"column": 12
},
"end": {
"line": 153,
"column": 61
}
},
"expression": {
"type": "CallExpression",
"start": 5221,
"end": 5269,
"loc": {
"start": {
"line": 153,
"column": 12
},
"end": {
"line": 153,
"column": 60
}
},
"callee": {
"type": "MemberExpression",
"start": 5221,
"end": 5232,
"loc": {
"start": {
"line": 153,
"column": 12
},
"end": {
"line": 153,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 5221,
"end": 5227,
"loc": {
"start": {
"line": 153,
"column": 12
},
"end": {
"line": 153,
"column": 18
},
"identifierName": "logger"
},
"name": "logger"
},
"property": {
"type": "Identifier",
"start": 5228,
"end": 5232,
"loc": {
"start": {
"line": 153,
"column": 19
},
"end": {
"line": 153,
"column": 23
},
"identifierName": "warn"
},
"name": "warn"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 5233,
"end": 5250,
"loc": {
"start": {
"line": 153,
"column": 24
},
"end": {
"line": 153,
"column": 41
}
},
"extra": {
"rawValue": "Entity with UID",
"raw": "\"Entity with UID\""
},
"value": "Entity with UID"
},
{
"type": "Identifier",
"start": 5252,
"end": 5255,
"loc": {
"start": {
"line": 153,
"column": 43
},
"end": {
"line": 153,
"column": 46
},
"identifierName": "uid"
},
"name": "uid"
},
{
"type": "StringLiteral",
"start": 5257,
"end": 5268,
"loc": {
"start": {
"line": 153,
"column": 48
},
"end": {
"line": 153,
"column": 59
}
},
"extra": {
"rawValue": "not found",
"raw": "\"not found\""
},
"value": "not found"
}
]
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 5291,
"end": 5303,
"loc": {
"start": {
"line": 155,
"column": 8
},
"end": {
"line": 155,
"column": 20
}
},
"argument": {
"type": "NullLiteral",
"start": 5298,
"end": 5302,
"loc": {
"start": {
"line": 155,
"column": 15
},
"end": {
"line": 155,
"column": 19
}
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Finds an entity buy its uid, kinda slow since it loops over all entities\r\n * @param {number} uid\r\n * @param {boolean=} errorWhenNotFound\r\n * @returns {Entity}\r\n ",
"start": 4429,
"end": 4620,
"loc": {
"start": {
"line": 132,
"column": 4
},
"end": {
"line": 137,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns a map which gives a mapping from UID to Entity.\r\n * This map is not updated.\r\n *\r\n * @returns {Map<number, Entity>}\r\n ",
"start": 5318,
"end": 5474,
"loc": {
"start": {
"line": 158,
"column": 4
},
"end": {
"line": 163,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 5480,
"end": 5849,
"loc": {
"start": {
"line": 164,
"column": 4
},
"end": {
"line": 174,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 5480,
"end": 5501,
"loc": {
"start": {
"line": 164,
"column": 4
},
"end": {
"line": 164,
"column": 25
},
"identifierName": "getFrozenUidSearchMap"
},
"name": "getFrozenUidSearchMap",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 5504,
"end": 5849,
"loc": {
"start": {
"line": 164,
"column": 28
},
"end": {
"line": 174,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 5515,
"end": 5540,
"loc": {
"start": {
"line": 165,
"column": 8
},
"end": {
"line": 165,
"column": 33
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 5521,
"end": 5539,
"loc": {
"start": {
"line": 165,
"column": 14
},
"end": {
"line": 165,
"column": 32
}
},
"id": {
"type": "Identifier",
"start": 5521,
"end": 5527,
"loc": {
"start": {
"line": 165,
"column": 14
},
"end": {
"line": 165,
"column": 20
},
"identifierName": "result"
},
"name": "result"
},
"init": {
"type": "NewExpression",
"start": 5530,
"end": 5539,
"loc": {
"start": {
"line": 165,
"column": 23
},
"end": {
"line": 165,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 5534,
"end": 5537,
"loc": {
"start": {
"line": 165,
"column": 27
},
"end": {
"line": 165,
"column": 30
},
"identifierName": "Map"
},
"name": "Map"
},
"arguments": []
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 5550,
"end": 5578,
"loc": {
"start": {
"line": 166,
"column": 8
},
"end": {
"line": 166,
"column": 36
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 5556,
"end": 5577,
"loc": {
"start": {
"line": 166,
"column": 14
},
"end": {
"line": 166,
"column": 35
}
},
"id": {
"type": "Identifier",
"start": 5556,
"end": 5561,
"loc": {
"start": {
"line": 166,
"column": 14
},
"end": {
"line": 166,
"column": 19
},
"identifierName": "array"
},
"name": "array"
},
"init": {
"type": "MemberExpression",
"start": 5564,
"end": 5577,
"loc": {
"start": {
"line": 166,
"column": 22
},
"end": {
"line": 166,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 5564,
"end": 5568,
"loc": {
"start": {
"line": 166,
"column": 22
},
"end": {
"line": 166,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"start": 5569,
"end": 5577,
"loc": {
"start": {
"line": 166,
"column": 27
},
"end": {
"line": 166,
"column": 35
},
"identifierName": "entities"
},
"name": "entities"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "ForStatement",
"start": 5588,
"end": 5818,
"loc": {
"start": {
"line": 167,
"column": 8
},
"end": {
"line": 172,
"column": 9
}
},
"init": {
"type": "VariableDeclaration",
"start": 5593,
"end": 5622,
"loc": {
"start": {
"line": 167,
"column": 13
},
"end": {
"line": 167,
"column": 42
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 5597,
"end": 5602,
"loc": {
"start": {
"line": 167,
"column": 17
},
"end": {
"line": 167,
"column": 22
}
},
"id": {
"type": "Identifier",
"start": 5597,
"end": 5598,
"loc": {
"start": {
"line": 167,
"column": 17
},
"end": {
"line": 167,
"column": 18
},
"identifierName": "i"
},
"name": "i"
},
"init": {
"type": "NumericLiteral",
"start": 5601,
"end": 5602,
"loc": {
"start": {
"line": 167,
"column": 21
},
"end": {
"line": 167,
"column": 22
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "VariableDeclarator",
"start": 5604,
"end": 5622,
"loc": {
"start": {
"line": 167,
"column": 24
},
"end": {
"line": 167,
"column": 42
}
},
"id": {
"type": "Identifier",
"start": 5604,
"end": 5607,
"loc": {
"start": {
"line": 167,
"column": 24
},
"end": {
"line": 167,
"column": 27
},
"identifierName": "len"
},
"name": "len"
},
"init": {
"type": "MemberExpression",
"start": 5610,
"end": 5622,
"loc": {
"start": {
"line": 167,
"column": 30
},
"end": {
"line": 167,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 5610,
"end": 5615,
"loc": {
"start": {
"line": 167,
"column": 30
},
"end": {
"line": 167,
"column": 35
},
"identifierName": "array"
},
"name": "array"
},
"property": {
"type": "Identifier",
"start": 5616,
"end": 5622,
"loc": {
"start": {
"line": 167,
"column": 36
},
"end": {
"line": 167,
"column": 42
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 5624,
"end": 5631,
"loc": {
"start": {
"line": 167,
"column": 44
},
"end": {
"line": 167,
"column": 51
}
},
"left": {
"type": "Identifier",
"start": 5624,
"end": 5625,
"loc": {
"start": {
"line": 167,
"column": 44
},
"end": {
"line": 167,
"column": 45
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "Identifier",
"start": 5628,
"end": 5631,
"loc": {
"start": {
"line": 167,
"column": 48
},
"end": {
"line": 167,
"column": 51
},
"identifierName": "len"
},
"name": "len"
}
},
"update": {
"type": "UpdateExpression",
"start": 5633,
"end": 5636,
"loc": {
"start": {
"line": 167,
"column": 53
},
"end": {
"line": 167,
"column": 56
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 5635,
"end": 5636,
"loc": {
"start": {
"line": 167,
"column": 55
},
"end": {
"line": 167,
"column": 56
},
"identifierName": "i"
},
"name": "i"
},
"extra": {
"parenthesizedArgument": false
}
},
"body": {
"type": "BlockStatement",
"start": 5638,
"end": 5818,
"loc": {
"start": {
"line": 167,
"column": 58
},
"end": {
"line": 172,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 5653,
"end": 5677,
"loc": {
"start": {
"line": 168,
"column": 12
},
"end": {
"line": 168,
"column": 36
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 5659,
"end": 5676,
"loc": {
"start": {
"line": 168,
"column": 18
},
"end": {
"line": 168,
"column": 35
}
},
"id": {
"type": "Identifier",
"start": 5659,
"end": 5665,
"loc": {
"start": {
"line": 168,
"column": 18
},
"end": {
"line": 168,
"column": 24
},
"identifierName": "entity"
},
"name": "entity"
},
"init": {
"type": "MemberExpression",
"start": 5668,
"end": 5676,
"loc": {
"start": {
"line": 168,
"column": 27
},
"end": {
"line": 168,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 5668,
"end": 5673,
"loc": {
"start": {
"line": 168,
"column": 27
},
"end": {
"line": 168,
"column": 32
},
"identifierName": "array"
},
"name": "array"
},
"property": {
"type": "Identifier",
"start": 5674,
"end": 5675,
"loc": {
"start": {
"line": 168,
"column": 33
},
"end": {
"line": 168,
"column": 34
},
"identifierName": "i"
},
"name": "i"
},
"computed": true
}
}
],
"kind": "const"
},
{
"type": "IfStatement",
"start": 5691,
"end": 5807,
"loc": {
"start": {
"line": 169,
"column": 12
},
"end": {
"line": 171,
"column": 13
}
},
"test": {
"type": "LogicalExpression",
"start": 5695,
"end": 5740,
"loc": {
"start": {
"line": 169,
"column": 16
},
"end": {
"line": 169,
"column": 61
}
},
"left": {
"type": "UnaryExpression",
"start": 5695,
"end": 5719,
"loc": {
"start": {
"line": 169,
"column": 16
},
"end": {
"line": 169,
"column": 40
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 5696,
"end": 5719,
"loc": {
"start": {
"line": 169,
"column": 17
},
"end": {
"line": 169,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 5696,
"end": 5702,
"loc": {
"start": {
"line": 169,
"column": 17
},
"end": {
"line": 169,
"column": 23
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 5703,
"end": 5719,
"loc": {
"start": {
"line": 169,
"column": 24
},
"end": {
"line": 169,
"column": 40
},
"identifierName": "queuedForDestroy"
},
"name": "queuedForDestroy"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
},
"operator": "&&",
"right": {
"type": "UnaryExpression",
"start": 5723,
"end": 5740,
"loc": {
"start": {
"line": 169,
"column": 44
},
"end": {
"line": 169,
"column": 61
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 5724,
"end": 5740,
"loc": {
"start": {
"line": 169,
"column": 45
},
"end": {
"line": 169,
"column": 61
}
},
"object": {
"type": "Identifier",
"start": 5724,
"end": 5730,
"loc": {
"start": {
"line": 169,
"column": 45
},
"end": {
"line": 169,
"column": 51
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 5731,
"end": 5740,
"loc": {
"start": {
"line": 169,
"column": 52
},
"end": {
"line": 169,
"column": 61
},
"identifierName": "destroyed"
},
"name": "destroyed"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 5742,
"end": 5807,
"loc": {
"start": {
"line": 169,
"column": 63
},
"end": {
"line": 171,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 5761,
"end": 5792,
"loc": {
"start": {
"line": 170,
"column": 16
},
"end": {
"line": 170,
"column": 47
}
},
"expression": {
"type": "CallExpression",
"start": 5761,
"end": 5791,
"loc": {
"start": {
"line": 170,
"column": 16
},
"end": {
"line": 170,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 5761,
"end": 5771,
"loc": {
"start": {
"line": 170,
"column": 16
},
"end": {
"line": 170,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 5761,
"end": 5767,
"loc": {
"start": {
"line": 170,
"column": 16
},
"end": {
"line": 170,
"column": 22
},
"identifierName": "result"
},
"name": "result"
},
"property": {
"type": "Identifier",
"start": 5768,
"end": 5771,
"loc": {
"start": {
"line": 170,
"column": 23
},
"end": {
"line": 170,
"column": 26
},
"identifierName": "set"
},
"name": "set"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 5772,
"end": 5782,
"loc": {
"start": {
"line": 170,
"column": 27
},
"end": {
"line": 170,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 5772,
"end": 5778,
"loc": {
"start": {
"line": 170,
"column": 27
},
"end": {
"line": 170,
"column": 33
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 5779,
"end": 5782,
"loc": {
"start": {
"line": 170,
"column": 34
},
"end": {
"line": 170,
"column": 37
},
"identifierName": "uid"
},
"name": "uid"
},
"computed": false
},
{
"type": "Identifier",
"start": 5784,
"end": 5790,
"loc": {
"start": {
"line": 170,
"column": 39
},
"end": {
"line": 170,
"column": 45
},
"identifierName": "entity"
},
"name": "entity"
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
},
{
"type": "ReturnStatement",
"start": 5828,
"end": 5842,
"loc": {
"start": {
"line": 173,
"column": 8
},
"end": {
"line": 173,
"column": 22
}
},
"argument": {
"type": "Identifier",
"start": 5835,
"end": 5841,
"loc": {
"start": {
"line": 173,
"column": 15
},
"end": {
"line": 173,
"column": 21
},
"identifierName": "result"
},
"name": "result"
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns a map which gives a mapping from UID to Entity.\r\n * This map is not updated.\r\n *\r\n * @returns {Map<number, Entity>}\r\n ",
"start": 5318,
"end": 5474,
"loc": {
"start": {
"line": 158,
"column": 4
},
"end": {
"line": 163,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns all entities having the given component\r\n * @param {typeof Component} componentHandle\r\n * @returns {Array<Entity>} entities\r\n ",
"start": 5857,
"end": 6017,
"loc": {
"start": {
"line": 176,
"column": 4
},
"end": {
"line": 180,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 6023,
"end": 6139,
"loc": {
"start": {
"line": 181,
"column": 4
},
"end": {
"line": 183,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6023,
"end": 6042,
"loc": {
"start": {
"line": 181,
"column": 4
},
"end": {
"line": 181,
"column": 23
},
"identifierName": "getAllWithComponent"
},
"name": "getAllWithComponent",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 6043,
"end": 6058,
"loc": {
"start": {
"line": 181,
"column": 24
},
"end": {
"line": 181,
"column": 39
},
"identifierName": "componentHandle"
},
"name": "componentHandle"
}
],
"body": {
"type": "BlockStatement",
"start": 6060,
"end": 6139,
"loc": {
"start": {
"line": 181,
"column": 41
},
"end": {
"line": 183,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 6071,
"end": 6132,
"loc": {
"start": {
"line": 182,
"column": 8
},
"end": {
"line": 182,
"column": 69
}
},
"argument": {
"type": "LogicalExpression",
"start": 6078,
"end": 6131,
"loc": {
"start": {
"line": 182,
"column": 15
},
"end": {
"line": 182,
"column": 68
}
},
"left": {
"type": "MemberExpression",
"start": 6078,
"end": 6125,
"loc": {
"start": {
"line": 182,
"column": 15
},
"end": {
"line": 182,
"column": 62
}
},
"object": {
"type": "MemberExpression",
"start": 6078,
"end": 6100,
"loc": {
"start": {
"line": 182,
"column": 15
},
"end": {
"line": 182,
"column": 37
}
},
"object": {
"type": "ThisExpression",
"start": 6078,
"end": 6082,
"loc": {
"start": {
"line": 182,
"column": 15
},
"end": {
"line": 182,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 6083,
"end": 6100,
"loc": {
"start": {
"line": 182,
"column": 20
},
"end": {
"line": 182,
"column": 37
},
"identifierName": "componentToEntity"
},
"name": "componentToEntity"
},
"computed": false
},
"property": {
"type": "CallExpression",
"start": 6101,
"end": 6124,
"loc": {
"start": {
"line": 182,
"column": 38
},
"end": {
"line": 182,
"column": 61
}
},
"callee": {
"type": "MemberExpression",
"start": 6101,
"end": 6122,
"loc": {
"start": {
"line": 182,
"column": 38
},
"end": {
"line": 182,
"column": 59
}
},
"object": {
"type": "Identifier",
"start": 6101,
"end": 6116,
"loc": {
"start": {
"line": 182,
"column": 38
},
"end": {
"line": 182,
"column": 53
},
"identifierName": "componentHandle"
},
"name": "componentHandle"
},
"property": {
"type": "Identifier",
"start": 6117,
"end": 6122,
"loc": {
"start": {
"line": 182,
"column": 54
},
"end": {
"line": 182,
"column": 59
},
"identifierName": "getId"
},
"name": "getId"
},
"computed": false
},
"arguments": []
},
"computed": true
},
"operator": "||",
"right": {
"type": "ArrayExpression",
"start": 6129,
"end": 6131,
"loc": {
"start": {
"line": 182,
"column": 66
},
"end": {
"line": 182,
"column": 68
}
},
"elements": []
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns all entities having the given component\r\n * @param {typeof Component} componentHandle\r\n * @returns {Array<Entity>} entities\r\n ",
"start": 5857,
"end": 6017,
"loc": {
"start": {
"line": 176,
"column": 4
},
"end": {
"line": 180,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Unregisters all components of an entity from the component to entity mapping\r\n * @param {Entity} entity\r\n ",
"start": 6147,
"end": 6275,
"loc": {
"start": {
"line": 185,
"column": 4
},
"end": {
"line": 188,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 6281,
"end": 6537,
"loc": {
"start": {
"line": 189,
"column": 4
},
"end": {
"line": 195,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6281,
"end": 6307,
"loc": {
"start": {
"line": 189,
"column": 4
},
"end": {
"line": 189,
"column": 30
},
"identifierName": "unregisterEntityComponents"
},
"name": "unregisterEntityComponents",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 6308,
"end": 6314,
"loc": {
"start": {
"line": 189,
"column": 31
},
"end": {
"line": 189,
"column": 37
},
"identifierName": "entity"
},
"name": "entity"
}
],
"body": {
"type": "BlockStatement",
"start": 6316,
"end": 6537,
"loc": {
"start": {
"line": 189,
"column": 39
},
"end": {
"line": 195,
"column": 5
}
},
"body": [
{
"type": "ForInStatement",
"start": 6327,
"end": 6530,
"loc": {
"start": {
"line": 190,
"column": 8
},
"end": {
"line": 194,
"column": 9
}
},
"left": {
"type": "VariableDeclaration",
"start": 6332,
"end": 6349,
"loc": {
"start": {
"line": 190,
"column": 13
},
"end": {
"line": 190,
"column": 30
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 6338,
"end": 6349,
"loc": {
"start": {
"line": 190,
"column": 19
},
"end": {
"line": 190,
"column": 30
}
},
"id": {
"type": "Identifier",
"start": 6338,
"end": 6349,
"loc": {
"start": {
"line": 190,
"column": 19
},
"end": {
"line": 190,
"column": 30
},
"identifierName": "componentId"
},
"name": "componentId"
},
"init": null
}
],
"kind": "const"
},
"right": {
"type": "MemberExpression",
"start": 6353,
"end": 6370,
"loc": {
"start": {
"line": 190,
"column": 34
},
"end": {
"line": 190,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 6353,
"end": 6359,
"loc": {
"start": {
"line": 190,
"column": 34
},
"end": {
"line": 190,
"column": 40
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 6360,
"end": 6370,
"loc": {
"start": {
"line": 190,
"column": 41
},
"end": {
"line": 190,
"column": 51
},
"identifierName": "components"
},
"name": "components"
},
"computed": false
},
"body": {
"type": "BlockStatement",
"start": 6372,
"end": 6530,
"loc": {
"start": {
"line": 190,
"column": 53
},
"end": {
"line": 194,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
"start": 6387,
"end": 6519,
"loc": {
"start": {
"line": 191,
"column": 12
},
"end": {
"line": 193,
"column": 13
}
},
"test": {
"type": "MemberExpression",
"start": 6391,
"end": 6421,
"loc": {
"start": {
"line": 191,
"column": 16
},
"end": {
"line": 191,
"column": 46
}
},
"object": {
"type": "MemberExpression",
"start": 6391,
"end": 6408,
"loc": {
"start": {
"line": 191,
"column": 16
},
"end": {
"line": 191,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 6391,
"end": 6397,
"loc": {
"start": {
"line": 191,
"column": 16
},
"end": {
"line": 191,
"column": 22
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 6398,
"end": 6408,
"loc": {
"start": {
"line": 191,
"column": 23
},
"end": {
"line": 191,
"column": 33
},
"identifierName": "components"
},
"name": "components"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 6409,
"end": 6420,
"loc": {
"start": {
"line": 191,
"column": 34
},
"end": {
"line": 191,
"column": 45
},
"identifierName": "componentId"
},
"name": "componentId"
},
"computed": true
},
"consequent": {
"type": "BlockStatement",
"start": 6423,
"end": 6519,
"loc": {
"start": {
"line": 191,
"column": 48
},
"end": {
"line": 193,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 6442,
"end": 6504,
"loc": {
"start": {
"line": 192,
"column": 16
},
"end": {
"line": 192,
"column": 78
}
},
"expression": {
"type": "CallExpression",
"start": 6442,
"end": 6503,
"loc": {
"start": {
"line": 192,
"column": 16
},
"end": {
"line": 192,
"column": 77
}
},
"callee": {
"type": "Identifier",
"start": 6442,
"end": 6458,
"loc": {
"start": {
"line": 192,
"column": 16
},
"end": {
"line": 192,
"column": 32
},
"identifierName": "arrayDeleteValue"
},
"name": "arrayDeleteValue"
},
"arguments": [
{
"type": "MemberExpression",
"start": 6459,
"end": 6494,
"loc": {
"start": {
"line": 192,
"column": 33
},
"end": {
"line": 192,
"column": 68
}
},
"object": {
"type": "MemberExpression",
"start": 6459,
"end": 6481,
"loc": {
"start": {
"line": 192,
"column": 33
},
"end": {
"line": 192,
"column": 55
}
},
"object": {
"type": "ThisExpression",
"start": 6459,
"end": 6463,
"loc": {
"start": {
"line": 192,
"column": 33
},
"end": {
"line": 192,
"column": 37
}
}
},
"property": {
"type": "Identifier",
"start": 6464,
"end": 6481,
"loc": {
"start": {
"line": 192,
"column": 38
},
"end": {
"line": 192,
"column": 55
},
"identifierName": "componentToEntity"
},
"name": "componentToEntity"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 6482,
"end": 6493,
"loc": {
"start": {
"line": 192,
"column": 56
},
"end": {
"line": 192,
"column": 67
},
"identifierName": "componentId"
},
"name": "componentId"
},
"computed": true
},
{
"type": "Identifier",
"start": 6496,
"end": 6502,
"loc": {
"start": {
"line": 192,
"column": 70
},
"end": {
"line": 192,
"column": 76
},
"identifierName": "entity"
},
"name": "entity"
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Unregisters all components of an entity from the component to entity mapping\r\n * @param {Entity} entity\r\n ",
"start": 6147,
"end": 6275,
"loc": {
"start": {
"line": 185,
"column": 4
},
"end": {
"line": 188,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Processes the entities to destroy and actually destroys them",
"start": 6545,
"end": 6608,
"loc": {
"start": {
"line": 197,
"column": 4
},
"end": {
"line": 197,
"column": 67
}
}
},
{
"type": "CommentBlock",
"value": " eslint-disable max-statements ",
"start": 6614,
"end": 6649,
"loc": {
"start": {
"line": 198,
"column": 4
},
"end": {
"line": 198,
"column": 39
}
}
}
]
},
{
"type": "ClassMethod",
"start": 6655,
"end": 7191,
"loc": {
"start": {
"line": 199,
"column": 4
},
"end": {
"line": 216,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6655,
"end": 6673,
"loc": {
"start": {
"line": 199,
"column": 4
},
"end": {
"line": 199,
"column": 22
},
"identifierName": "processDestroyList"
},
"name": "processDestroyList",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 6676,
"end": 7191,
"loc": {
"start": {
"line": 199,
"column": 25
},
"end": {
"line": 216,
"column": 5
}
},
"body": [
{
"type": "ForStatement",
"start": 6687,
"end": 7150,
"loc": {
"start": {
"line": 200,
"column": 8
},
"end": {
"line": 213,
"column": 9
}
},
"init": {
"type": "VariableDeclaration",
"start": 6692,
"end": 6701,
"loc": {
"start": {
"line": 200,
"column": 13
},
"end": {
"line": 200,
"column": 22
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 6696,
"end": 6701,
"loc": {
"start": {
"line": 200,
"column": 17
},
"end": {
"line": 200,
"column": 22
}
},
"id": {
"type": "Identifier",
"start": 6696,
"end": 6697,
"loc": {
"start": {
"line": 200,
"column": 17
},
"end": {
"line": 200,
"column": 18
},
"identifierName": "i"
},
"name": "i"
},
"init": {
"type": "NumericLiteral",
"start": 6700,
"end": 6701,
"loc": {
"start": {
"line": 200,
"column": 21
},
"end": {
"line": 200,
"column": 22
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 6703,
"end": 6730,
"loc": {
"start": {
"line": 200,
"column": 24
},
"end": {
"line": 200,
"column": 51
}
},
"left": {
"type": "Identifier",
"start": 6703,
"end": 6704,
"loc": {
"start": {
"line": 200,
"column": 24
},
"end": {
"line": 200,
"column": 25
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 6707,
"end": 6730,
"loc": {
"start": {
"line": 200,
"column": 28
},
"end": {
"line": 200,
"column": 51
}
},
"object": {
"type": "MemberExpression",
"start": 6707,
"end": 6723,
"loc": {
"start": {
"line": 200,
"column": 28
},
"end": {
"line": 200,
"column": 44
}
},
"object": {
"type": "ThisExpression",
"start": 6707,
"end": 6711,
"loc": {
"start": {
"line": 200,
"column": 28
},
"end": {
"line": 200,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 6712,
"end": 6723,
"loc": {
"start": {
"line": 200,
"column": 33
},
"end": {
"line": 200,
"column": 44
},
"identifierName": "destroyList"
},
"name": "destroyList"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 6724,
"end": 6730,
"loc": {
"start": {
"line": 200,
"column": 45
},
"end": {
"line": 200,
"column": 51
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
},
"update": {
"type": "UpdateExpression",
"start": 6732,
"end": 6735,
"loc": {
"start": {
"line": 200,
"column": 53
},
"end": {
"line": 200,
"column": 56
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 6734,
"end": 6735,
"loc": {
"start": {
"line": 200,
"column": 55
},
"end": {
"line": 200,
"column": 56
},
"identifierName": "i"
},
"name": "i"
},
"extra": {
"parenthesizedArgument": false
}
},
"body": {
"type": "BlockStatement",
"start": 6737,
"end": 7150,
"loc": {
"start": {
"line": 200,
"column": 58
},
"end": {
"line": 213,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 6752,
"end": 6787,
"loc": {
"start": {
"line": 201,
"column": 12
},
"end": {
"line": 201,
"column": 47
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 6758,
"end": 6786,
"loc": {
"start": {
"line": 201,
"column": 18
},
"end": {
"line": 201,
"column": 46
}
},
"id": {
"type": "Identifier",
"start": 6758,
"end": 6764,
"loc": {
"start": {
"line": 201,
"column": 18
},
"end": {
"line": 201,
"column": 24
},
"identifierName": "entity"
},
"name": "entity"
},
"init": {
"type": "MemberExpression",
"start": 6767,
"end": 6786,
"loc": {
"start": {
"line": 201,
"column": 27
},
"end": {
"line": 201,
"column": 46
}
},
"object": {
"type": "MemberExpression",
"start": 6767,
"end": 6783,
"loc": {
"start": {
"line": 201,
"column": 27
},
"end": {
"line": 201,
"column": 43
}
},
"object": {
"type": "ThisExpression",
"start": 6767,
"end": 6771,
"loc": {
"start": {
"line": 201,
"column": 27
},
"end": {
"line": 201,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"start": 6772,
"end": 6783,
"loc": {
"start": {
"line": 201,
"column": 32
},
"end": {
"line": 201,
"column": 43
},
"identifierName": "destroyList"
},
"name": "destroyList"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 6784,
"end": 6785,
"loc": {
"start": {
"line": 201,
"column": 44
},
"end": {
"line": 201,
"column": 45
},
"identifierName": "i"
},
"name": "i"
},
"computed": true
}
}
],
"kind": "const",
"trailingComments": [
{
"type": "CommentLine",
"value": " Remove from entities list",
"start": 6803,
"end": 6831,
"loc": {
"start": {
"line": 203,
"column": 12
},
"end": {
"line": 203,
"column": 40
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 6845,
"end": 6885,
"loc": {
"start": {
"line": 204,
"column": 12
},
"end": {
"line": 204,
"column": 52
}
},
"expression": {
"type": "CallExpression",
"start": 6845,
"end": 6884,
"loc": {
"start": {
"line": 204,
"column": 12
},
"end": {
"line": 204,
"column": 51
}
},
"callee": {
"type": "Identifier",
"start": 6845,
"end": 6861,
"loc": {
"start": {
"line": 204,
"column": 12
},
"end": {
"line": 204,
"column": 28
},
"identifierName": "arrayDeleteValue"
},
"name": "arrayDeleteValue",
"leadingComments": null
},
"arguments": [
{
"type": "MemberExpression",
"start": 6862,
"end": 6875,
"loc": {
"start": {
"line": 204,
"column": 29
},
"end": {
"line": 204,
"column": 42
}
},
"object": {
"type": "ThisExpression",
"start": 6862,
"end": 6866,
"loc": {
"start": {
"line": 204,
"column": 29
},
"end": {
"line": 204,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"start": 6867,
"end": 6875,
"loc": {
"start": {
"line": 204,
"column": 34
},
"end": {
"line": 204,
"column": 42
},
"identifierName": "entities"
},
"name": "entities"
},
"computed": false
},
{
"type": "Identifier",
"start": 6877,
"end": 6883,
"loc": {
"start": {
"line": 204,
"column": 44
},
"end": {
"line": 204,
"column": 50
},
"identifierName": "entity"
},
"name": "entity"
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Remove from entities list",
"start": 6803,
"end": 6831,
"loc": {
"start": {
"line": 203,
"column": 12
},
"end": {
"line": 203,
"column": 40
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Remove from componentToEntity list",
"start": 6901,
"end": 6938,
"loc": {
"start": {
"line": 206,
"column": 12
},
"end": {
"line": 206,
"column": 49
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 6952,
"end": 6992,
"loc": {
"start": {
"line": 207,
"column": 12
},
"end": {
"line": 207,
"column": 52
}
},
"expression": {
"type": "CallExpression",
"start": 6952,
"end": 6991,
"loc": {
"start": {
"line": 207,
"column": 12
},
"end": {
"line": 207,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
"start": 6952,
"end": 6983,
"loc": {
"start": {
"line": 207,
"column": 12
},
"end": {
"line": 207,
"column": 43
}
},
"object": {
"type": "ThisExpression",
"start": 6952,
"end": 6956,
"loc": {
"start": {
"line": 207,
"column": 12
},
"end": {
"line": 207,
"column": 16
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 6957,
"end": 6983,
"loc": {
"start": {
"line": 207,
"column": 17
},
"end": {
"line": 207,
"column": 43
},
"identifierName": "unregisterEntityComponents"
},
"name": "unregisterEntityComponents"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "Identifier",
"start": 6984,
"end": 6990,
"loc": {
"start": {
"line": 207,
"column": 44
},
"end": {
"line": 207,
"column": 50
},
"identifierName": "entity"
},
"name": "entity"
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Remove from componentToEntity list",
"start": 6901,
"end": 6938,
"loc": {
"start": {
"line": 206,
"column": 12
},
"end": {
"line": 206,
"column": 49
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 7008,
"end": 7034,
"loc": {
"start": {
"line": 209,
"column": 12
},
"end": {
"line": 209,
"column": 38
}
},
"expression": {
"type": "AssignmentExpression",
"start": 7008,
"end": 7033,
"loc": {
"start": {
"line": 209,
"column": 12
},
"end": {
"line": 209,
"column": 37
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 7008,
"end": 7025,
"loc": {
"start": {
"line": 209,
"column": 12
},
"end": {
"line": 209,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 7008,
"end": 7014,
"loc": {
"start": {
"line": 209,
"column": 12
},
"end": {
"line": 209,
"column": 18
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 7015,
"end": 7025,
"loc": {
"start": {
"line": 209,
"column": 19
},
"end": {
"line": 209,
"column": 29
},
"identifierName": "registered"
},
"name": "registered"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 7028,
"end": 7033,
"loc": {
"start": {
"line": 209,
"column": 32
},
"end": {
"line": 209,
"column": 37
}
},
"value": false
}
}
},
{
"type": "ExpressionStatement",
"start": 7048,
"end": 7072,
"loc": {
"start": {
"line": 210,
"column": 12
},
"end": {
"line": 210,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
"start": 7048,
"end": 7071,
"loc": {
"start": {
"line": 210,
"column": 12
},
"end": {
"line": 210,
"column": 35
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 7048,
"end": 7064,
"loc": {
"start": {
"line": 210,
"column": 12
},
"end": {
"line": 210,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 7048,
"end": 7054,
"loc": {
"start": {
"line": 210,
"column": 12
},
"end": {
"line": 210,
"column": 18
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 7055,
"end": 7064,
"loc": {
"start": {
"line": 210,
"column": 19
},
"end": {
"line": 210,
"column": 28
},
"identifierName": "destroyed"
},
"name": "destroyed"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 7067,
"end": 7071,
"loc": {
"start": {
"line": 210,
"column": 31
},
"end": {
"line": 210,
"column": 35
}
},
"value": true
}
}
},
{
"type": "ExpressionStatement",
"start": 7088,
"end": 7139,
"loc": {
"start": {
"line": 212,
"column": 12
},
"end": {
"line": 212,
"column": 63
}
},
"expression": {
"type": "CallExpression",
"start": 7088,
"end": 7138,
"loc": {
"start": {
"line": 212,
"column": 12
},
"end": {
"line": 212,
"column": 62
}
},
"callee": {
"type": "MemberExpression",
"start": 7088,
"end": 7130,
"loc": {
"start": {
"line": 212,
"column": 12
},
"end": {
"line": 212,
"column": 54
}
},
"object": {
"type": "MemberExpression",
"start": 7088,
"end": 7121,
"loc": {
"start": {
"line": 212,
"column": 12
},
"end": {
"line": 212,
"column": 45
}
},
"object": {
"type": "MemberExpression",
"start": 7088,
"end": 7105,
"loc": {
"start": {
"line": 212,
"column": 12
},
"end": {
"line": 212,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 7088,
"end": 7097,
"loc": {
"start": {
"line": 212,
"column": 12
},
"end": {
"line": 212,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 7088,
"end": 7092,
"loc": {
"start": {
"line": 212,
"column": 12
},
"end": {
"line": 212,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 7093,
"end": 7097,
"loc": {
"start": {
"line": 212,
"column": 17
},
"end": {
"line": 212,
"column": 21
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7098,
"end": 7105,
"loc": {
"start": {
"line": 212,
"column": 22
},
"end": {
"line": 212,
"column": 29
},
"identifierName": "signals"
},
"name": "signals"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7106,
"end": 7121,
"loc": {
"start": {
"line": 212,
"column": 30
},
"end": {
"line": 212,
"column": 45
},
"identifierName": "entityDestroyed"
},
"name": "entityDestroyed"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7122,
"end": 7130,
"loc": {
"start": {
"line": 212,
"column": 46
},
"end": {
"line": 212,
"column": 54
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 7131,
"end": 7137,
"loc": {
"start": {
"line": 212,
"column": 55
},
"end": {
"line": 212,
"column": 61
},
"identifierName": "entity"
},
"name": "entity"
}
]
}
}
],
"directives": []
}
},
{
"type": "ExpressionStatement",
"start": 7162,
"end": 7184,
"loc": {
"start": {
"line": 215,
"column": 8
},
"end": {
"line": 215,
"column": 30
}
},
"expression": {
"type": "AssignmentExpression",
"start": 7162,
"end": 7183,
"loc": {
"start": {
"line": 215,
"column": 8
},
"end": {
"line": 215,
"column": 29
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 7162,
"end": 7178,
"loc": {
"start": {
"line": 215,
"column": 8
},
"end": {
"line": 215,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 7162,
"end": 7166,
"loc": {
"start": {
"line": 215,
"column": 8
},
"end": {
"line": 215,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 7167,
"end": 7178,
"loc": {
"start": {
"line": 215,
"column": 13
},
"end": {
"line": 215,
"column": 24
},
"identifierName": "destroyList"
},
"name": "destroyList"
},
"computed": false
},
"right": {
"type": "ArrayExpression",
"start": 7181,
"end": 7183,
"loc": {
"start": {
"line": 215,
"column": 27
},
"end": {
"line": 215,
"column": 29
}
},
"elements": []
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Processes the entities to destroy and actually destroys them",
"start": 6545,
"end": 6608,
"loc": {
"start": {
"line": 197,
"column": 4
},
"end": {
"line": 197,
"column": 67
}
}
},
{
"type": "CommentBlock",
"value": " eslint-disable max-statements ",
"start": 6614,
"end": 6649,
"loc": {
"start": {
"line": 198,
"column": 4
},
"end": {
"line": 198,
"column": 39
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Queues an entity for destruction\r\n * @param {Entity} entity\r\n ",
"start": 7199,
"end": 7283,
"loc": {
"start": {
"line": 218,
"column": 4
},
"end": {
"line": 221,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 7289,
"end": 7954,
"loc": {
"start": {
"line": 222,
"column": 4
},
"end": {
"line": 240,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 7289,
"end": 7302,
"loc": {
"start": {
"line": 222,
"column": 4
},
"end": {
"line": 222,
"column": 17
},
"identifierName": "destroyEntity"
},
"name": "destroyEntity",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 7303,
"end": 7309,
"loc": {
"start": {
"line": 222,
"column": 18
},
"end": {
"line": 222,
"column": 24
},
"identifierName": "entity"
},
"name": "entity"
}
],
"body": {
"type": "BlockStatement",
"start": 7311,
"end": 7954,
"loc": {
"start": {
"line": 222,
"column": 26
},
"end": {
"line": 240,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 7322,
"end": 7462,
"loc": {
"start": {
"line": 223,
"column": 8
},
"end": {
"line": 226,
"column": 9
}
},
"test": {
"type": "MemberExpression",
"start": 7326,
"end": 7342,
"loc": {
"start": {
"line": 223,
"column": 12
},
"end": {
"line": 223,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 7326,
"end": 7332,
"loc": {
"start": {
"line": 223,
"column": 12
},
"end": {
"line": 223,
"column": 18
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 7333,
"end": 7342,
"loc": {
"start": {
"line": 223,
"column": 19
},
"end": {
"line": 223,
"column": 28
},
"identifierName": "destroyed"
},
"name": "destroyed"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 7344,
"end": 7462,
"loc": {
"start": {
"line": 223,
"column": 30
},
"end": {
"line": 226,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 7359,
"end": 7430,
"loc": {
"start": {
"line": 224,
"column": 12
},
"end": {
"line": 224,
"column": 83
}
},
"expression": {
"type": "CallExpression",
"start": 7359,
"end": 7429,
"loc": {
"start": {
"line": 224,
"column": 12
},
"end": {
"line": 224,
"column": 82
}
},
"callee": {
"type": "MemberExpression",
"start": 7359,
"end": 7371,
"loc": {
"start": {
"line": 224,
"column": 12
},
"end": {
"line": 224,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 7359,
"end": 7365,
"loc": {
"start": {
"line": 224,
"column": 12
},
"end": {
"line": 224,
"column": 18
},
"identifierName": "logger"
},
"name": "logger"
},
"property": {
"type": "Identifier",
"start": 7366,
"end": 7371,
"loc": {
"start": {
"line": 224,
"column": 19
},
"end": {
"line": 224,
"column": 24
},
"identifierName": "error"
},
"name": "error"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 7372,
"end": 7416,
"loc": {
"start": {
"line": 224,
"column": 25
},
"end": {
"line": 224,
"column": 69
}
},
"extra": {
"rawValue": "Tried to destroy already destroyed entity:",
"raw": "\"Tried to destroy already destroyed entity:\""
},
"value": "Tried to destroy already destroyed entity:"
},
{
"type": "MemberExpression",
"start": 7418,
"end": 7428,
"loc": {
"start": {
"line": 224,
"column": 71
},
"end": {
"line": 224,
"column": 81
}
},
"object": {
"type": "Identifier",
"start": 7418,
"end": 7424,
"loc": {
"start": {
"line": 224,
"column": 71
},
"end": {
"line": 224,
"column": 77
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 7425,
"end": 7428,
"loc": {
"start": {
"line": 224,
"column": 78
},
"end": {
"line": 224,
"column": 81
},
"identifierName": "uid"
},
"name": "uid"
},
"computed": false
}
]
}
},
{
"type": "ReturnStatement",
"start": 7444,
"end": 7451,
"loc": {
"start": {
"line": 225,
"column": 12
},
"end": {
"line": 225,
"column": 19
}
},
"argument": null
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 7474,
"end": 7640,
"loc": {
"start": {
"line": 228,
"column": 8
},
"end": {
"line": 231,
"column": 9
}
},
"test": {
"type": "MemberExpression",
"start": 7478,
"end": 7501,
"loc": {
"start": {
"line": 228,
"column": 12
},
"end": {
"line": 228,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 7478,
"end": 7484,
"loc": {
"start": {
"line": 228,
"column": 12
},
"end": {
"line": 228,
"column": 18
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 7485,
"end": 7501,
"loc": {
"start": {
"line": 228,
"column": 19
},
"end": {
"line": 228,
"column": 35
},
"identifierName": "queuedForDestroy"
},
"name": "queuedForDestroy"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 7503,
"end": 7640,
"loc": {
"start": {
"line": 228,
"column": 37
},
"end": {
"line": 231,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 7518,
"end": 7608,
"loc": {
"start": {
"line": 229,
"column": 12
},
"end": {
"line": 229,
"column": 102
}
},
"expression": {
"type": "CallExpression",
"start": 7518,
"end": 7607,
"loc": {
"start": {
"line": 229,
"column": 12
},
"end": {
"line": 229,
"column": 101
}
},
"callee": {
"type": "MemberExpression",
"start": 7518,
"end": 7530,
"loc": {
"start": {
"line": 229,
"column": 12
},
"end": {
"line": 229,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 7518,
"end": 7524,
"loc": {
"start": {
"line": 229,
"column": 12
},
"end": {
"line": 229,
"column": 18
},
"identifierName": "logger"
},
"name": "logger"
},
"property": {
"type": "Identifier",
"start": 7525,
"end": 7530,
"loc": {
"start": {
"line": 229,
"column": 19
},
"end": {
"line": 229,
"column": 24
},
"identifierName": "error"
},
"name": "error"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 7531,
"end": 7594,
"loc": {
"start": {
"line": 229,
"column": 25
},
"end": {
"line": 229,
"column": 88
}
},
"extra": {
"rawValue": "Trying to destroy entity which is already queued for destroy!",
"raw": "\"Trying to destroy entity which is already queued for destroy!\""
},
"value": "Trying to destroy entity which is already queued for destroy!"
},
{
"type": "MemberExpression",
"start": 7596,
"end": 7606,
"loc": {
"start": {
"line": 229,
"column": 90
},
"end": {
"line": 229,
"column": 100
}
},
"object": {
"type": "Identifier",
"start": 7596,
"end": 7602,
"loc": {
"start": {
"line": 229,
"column": 90
},
"end": {
"line": 229,
"column": 96
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 7603,
"end": 7606,
"loc": {
"start": {
"line": 229,
"column": 97
},
"end": {
"line": 229,
"column": 100
},
"identifierName": "uid"
},
"name": "uid"
},
"computed": false
}
]
}
},
{
"type": "ReturnStatement",
"start": 7622,
"end": 7629,
"loc": {
"start": {
"line": 230,
"column": 12
},
"end": {
"line": 230,
"column": 19
}
},
"argument": null
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 7652,
"end": 7947,
"loc": {
"start": {
"line": 233,
"column": 8
},
"end": {
"line": 239,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
"start": 7656,
"end": 7692,
"loc": {
"start": {
"line": 233,
"column": 12
},
"end": {
"line": 233,
"column": 48
}
},
"left": {
"type": "CallExpression",
"start": 7656,
"end": 7688,
"loc": {
"start": {
"line": 233,
"column": 12
},
"end": {
"line": 233,
"column": 44
}
},
"callee": {
"type": "MemberExpression",
"start": 7656,
"end": 7680,
"loc": {
"start": {
"line": 233,
"column": 12
},
"end": {
"line": 233,
"column": 36
}
},
"object": {
"type": "MemberExpression",
"start": 7656,
"end": 7672,
"loc": {
"start": {
"line": 233,
"column": 12
},
"end": {
"line": 233,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 7656,
"end": 7660,
"loc": {
"start": {
"line": 233,
"column": 12
},
"end": {
"line": 233,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 7661,
"end": 7672,
"loc": {
"start": {
"line": 233,
"column": 17
},
"end": {
"line": 233,
"column": 28
},
"identifierName": "destroyList"
},
"name": "destroyList"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7673,
"end": 7680,
"loc": {
"start": {
"line": 233,
"column": 29
},
"end": {
"line": 233,
"column": 36
},
"identifierName": "indexOf"
},
"name": "indexOf"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 7681,
"end": 7687,
"loc": {
"start": {
"line": 233,
"column": 37
},
"end": {
"line": 233,
"column": 43
},
"identifierName": "entity"
},
"name": "entity"
}
]
},
"operator": "<",
"right": {
"type": "NumericLiteral",
"start": 7691,
"end": 7692,
"loc": {
"start": {
"line": 233,
"column": 47
},
"end": {
"line": 233,
"column": 48
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
"consequent": {
"type": "BlockStatement",
"start": 7694,
"end": 7867,
"loc": {
"start": {
"line": 233,
"column": 50
},
"end": {
"line": 237,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 7709,
"end": 7739,
"loc": {
"start": {
"line": 234,
"column": 12
},
"end": {
"line": 234,
"column": 42
}
},
"expression": {
"type": "CallExpression",
"start": 7709,
"end": 7738,
"loc": {
"start": {
"line": 234,
"column": 12
},
"end": {
"line": 234,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 7709,
"end": 7730,
"loc": {
"start": {
"line": 234,
"column": 12
},
"end": {
"line": 234,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 7709,
"end": 7725,
"loc": {
"start": {
"line": 234,
"column": 12
},
"end": {
"line": 234,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 7709,
"end": 7713,
"loc": {
"start": {
"line": 234,
"column": 12
},
"end": {
"line": 234,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 7714,
"end": 7725,
"loc": {
"start": {
"line": 234,
"column": 17
},
"end": {
"line": 234,
"column": 28
},
"identifierName": "destroyList"
},
"name": "destroyList"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7726,
"end": 7730,
"loc": {
"start": {
"line": 234,
"column": 29
},
"end": {
"line": 234,
"column": 33
},
"identifierName": "push"
},
"name": "push"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 7731,
"end": 7737,
"loc": {
"start": {
"line": 234,
"column": 34
},
"end": {
"line": 234,
"column": 40
},
"identifierName": "entity"
},
"name": "entity"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 7753,
"end": 7784,
"loc": {
"start": {
"line": 235,
"column": 12
},
"end": {
"line": 235,
"column": 43
}
},
"expression": {
"type": "AssignmentExpression",
"start": 7753,
"end": 7783,
"loc": {
"start": {
"line": 235,
"column": 12
},
"end": {
"line": 235,
"column": 42
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 7753,
"end": 7776,
"loc": {
"start": {
"line": 235,
"column": 12
},
"end": {
"line": 235,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 7753,
"end": 7759,
"loc": {
"start": {
"line": 235,
"column": 12
},
"end": {
"line": 235,
"column": 18
},
"identifierName": "entity"
},
"name": "entity"
},
"property": {
"type": "Identifier",
"start": 7760,
"end": 7776,
"loc": {
"start": {
"line": 235,
"column": 19
},
"end": {
"line": 235,
"column": 35
},
"identifierName": "queuedForDestroy"
},
"name": "queuedForDestroy"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 7779,
"end": 7783,
"loc": {
"start": {
"line": 235,
"column": 38
},
"end": {
"line": 235,
"column": 42
}
},
"value": true
}
}
},
{
"type": "ExpressionStatement",
"start": 7798,
"end": 7856,
"loc": {
"start": {
"line": 236,
"column": 12
},
"end": {
"line": 236,
"column": 70
}
},
"expression": {
"type": "CallExpression",
"start": 7798,
"end": 7855,
"loc": {
"start": {
"line": 236,
"column": 12
},
"end": {
"line": 236,
"column": 69
}
},
"callee": {
"type": "MemberExpression",
"start": 7798,
"end": 7847,
"loc": {
"start": {
"line": 236,
"column": 12
},
"end": {
"line": 236,
"column": 61
}
},
"object": {
"type": "MemberExpression",
"start": 7798,
"end": 7838,
"loc": {
"start": {
"line": 236,
"column": 12
},
"end": {
"line": 236,
"column": 52
}
},
"object": {
"type": "MemberExpression",
"start": 7798,
"end": 7815,
"loc": {
"start": {
"line": 236,
"column": 12
},
"end": {
"line": 236,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 7798,
"end": 7807,
"loc": {
"start": {
"line": 236,
"column": 12
},
"end": {
"line": 236,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 7798,
"end": 7802,
"loc": {
"start": {
"line": 236,
"column": 12
},
"end": {
"line": 236,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 7803,
"end": 7807,
"loc": {
"start": {
"line": 236,
"column": 17
},
"end": {
"line": 236,
"column": 21
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7808,
"end": 7815,
"loc": {
"start": {
"line": 236,
"column": 22
},
"end": {
"line": 236,
"column": 29
},
"identifierName": "signals"
},
"name": "signals"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7816,
"end": 7838,
"loc": {
"start": {
"line": 236,
"column": 30
},
"end": {
"line": 236,
"column": 52
},
"identifierName": "entityQueuedForDestroy"
},
"name": "entityQueuedForDestroy"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7839,
"end": 7847,
"loc": {
"start": {
"line": 236,
"column": 53
},
"end": {
"line": 236,
"column": 61
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 7848,
"end": 7854,
"loc": {
"start": {
"line": 236,
"column": 62
},
"end": {
"line": 236,
"column": 68
},
"identifierName": "entity"
},
"name": "entity"
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 7873,
"end": 7947,
"loc": {
"start": {
"line": 237,
"column": 15
},
"end": {
"line": 239,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 7888,
"end": 7936,
"loc": {
"start": {
"line": 238,
"column": 12
},
"end": {
"line": 238,
"column": 60
}
},
"expression": {
"type": "CallExpression",
"start": 7888,
"end": 7935,
"loc": {
"start": {
"line": 238,
"column": 12
},
"end": {
"line": 238,
"column": 59
}
},
"callee": {
"type": "Identifier",
"start": 7888,
"end": 7894,
"loc": {
"start": {
"line": 238,
"column": 12
},
"end": {
"line": 238,
"column": 18
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "BooleanLiteral",
"start": 7895,
"end": 7900,
"loc": {
"start": {
"line": 238,
"column": 19
},
"end": {
"line": 238,
"column": 24
}
},
"value": false
},
{
"type": "StringLiteral",
"start": 7902,
"end": 7934,
"loc": {
"start": {
"line": 238,
"column": 26
},
"end": {
"line": 238,
"column": 58
}
},
"extra": {
"rawValue": "Trying to destroy entity twice",
"raw": "\"Trying to destroy entity twice\""
},
"value": "Trying to destroy entity twice"
}
]
}
}
],
"directives": []
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Queues an entity for destruction\r\n * @param {Entity} entity\r\n ",
"start": 7199,
"end": 7283,
"loc": {
"start": {
"line": 218,
"column": 4
},
"end": {
"line": 221,
"column": 7
}
}
}
]
}
]
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Manages all entities",
"start": 426,
"end": 449,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 23
}
}
},
{
"type": "CommentLine",
"value": " NOTICE: We use arrayDeleteValue instead of fastArrayDeleteValue since that does not preserve the order",
"start": 453,
"end": 558,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 105
}
}
},
{
"type": "CommentLine",
"value": " This is slower but we need it for the street path generation",
"start": 560,
"end": 623,
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 14,
"column": 63
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Manages all entities",
"start": 426,
"end": 449,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 23
}
}
},
{
"type": "CommentLine",
"value": " NOTICE: We use arrayDeleteValue instead of fastArrayDeleteValue since that does not preserve the order",
"start": 453,
"end": 558,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 105
}
}
},
{
"type": "CommentLine",
"value": " This is slower but we need it for the street path generation",
"start": 560,
"end": 623,
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 14,
"column": 63
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentLine",
"value": " Manages all entities",
"start": 426,
"end": 449,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 23
}
}
},
{
"type": "CommentLine",
"value": " NOTICE: We use arrayDeleteValue instead of fastArrayDeleteValue since that does not preserve the order",
"start": 453,
"end": 558,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 105
}
}
},
{
"type": "CommentLine",
"value": " This is slower but we need it for the street path generation",
"start": 560,
"end": 623,
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 14,
"column": 63
}
}
},
{
"type": "CommentBlock",
"value": "* @type {GameRoot} ",
"start": 742,
"end": 765,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 31
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Array<Entity>} ",
"start": 804,
"end": 832,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 36
}
}
},
{
"type": "CommentLine",
"value": " We store a separate list with entities to destroy, since we don't destroy",
"start": 873,
"end": 949,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 84
}
}
},
{
"type": "CommentLine",
"value": " them instantly",
"start": 959,
"end": 976,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 25
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Array<Entity>} ",
"start": 986,
"end": 1014,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 36
}
}
},
{
"type": "CommentLine",
"value": " Store a map from componentid to entities - This is used by the game system",
"start": 1058,
"end": 1135,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 85
}
}
},
{
"type": "CommentLine",
"value": " for faster processing",
"start": 1145,
"end": 1169,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 32
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Object.<string, Array<Entity>>} ",
"start": 1179,
"end": 1224,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 53
}
}
},
{
"type": "CommentLine",
"value": " Store the next uid to use",
"start": 1285,
"end": 1313,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 36
}
}
},
{
"type": "CommentLine",
"value": " Main update",
"start": 1647,
"end": 1661,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 18
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Registers a new entity\r\n * @param {Entity} entity\r\n * @param {number=} uid Optional predefined uid\r\n ",
"start": 1728,
"end": 1855,
"loc": {
"start": {
"line": 59,
"column": 4
},
"end": {
"line": 63,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " Register into the componentToEntity map",
"start": 2520,
"end": 2562,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 50
}
}
},
{
"type": "CommentLine",
"value": " Give each entity a unique id",
"start": 2952,
"end": 2983,
"loc": {
"start": {
"line": 88,
"column": 8
},
"end": {
"line": 88,
"column": 39
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Generates a new uid\r\n * @returns {number}\r\n ",
"start": 3157,
"end": 3223,
"loc": {
"start": {
"line": 95,
"column": 4
},
"end": {
"line": 98,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Call to attach a new component after the creation of the entity\r\n * @param {Entity} entity\r\n * @param {Component} component\r\n ",
"start": 3291,
"end": 3443,
"loc": {
"start": {
"line": 103,
"column": 4
},
"end": {
"line": 107,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "* @type {typeof Component} ",
"start": 3569,
"end": 3600,
"loc": {
"start": {
"line": 110,
"column": 28
},
"end": {
"line": 110,
"column": 59
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Call to remove a component after the creation of the entity\r\n * @param {Entity} entity\r\n * @param {typeof Component} component\r\n ",
"start": 3920,
"end": 4075,
"loc": {
"start": {
"line": 119,
"column": 4
},
"end": {
"line": 123,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "* @type {typeof Component} ",
"start": 4204,
"end": 4235,
"loc": {
"start": {
"line": 126,
"column": 28
},
"end": {
"line": 126,
"column": 59
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Finds an entity buy its uid, kinda slow since it loops over all entities\r\n * @param {number} uid\r\n * @param {boolean=} errorWhenNotFound\r\n * @returns {Entity}\r\n ",
"start": 4429,
"end": 4620,
"loc": {
"start": {
"line": 132,
"column": 4
},
"end": {
"line": 137,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns a map which gives a mapping from UID to Entity.\r\n * This map is not updated.\r\n *\r\n * @returns {Map<number, Entity>}\r\n ",
"start": 5318,
"end": 5474,
"loc": {
"start": {
"line": 158,
"column": 4
},
"end": {
"line": 163,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns all entities having the given component\r\n * @param {typeof Component} componentHandle\r\n * @returns {Array<Entity>} entities\r\n ",
"start": 5857,
"end": 6017,
"loc": {
"start": {
"line": 176,
"column": 4
},
"end": {
"line": 180,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Unregisters all components of an entity from the component to entity mapping\r\n * @param {Entity} entity\r\n ",
"start": 6147,
"end": 6275,
"loc": {
"start": {
"line": 185,
"column": 4
},
"end": {
"line": 188,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " Processes the entities to destroy and actually destroys them",
"start": 6545,
"end": 6608,
"loc": {
"start": {
"line": 197,
"column": 4
},
"end": {
"line": 197,
"column": 67
}
}
},
{
"type": "CommentBlock",
"value": " eslint-disable max-statements ",
"start": 6614,
"end": 6649,
"loc": {
"start": {
"line": 198,
"column": 4
},
"end": {
"line": 198,
"column": 39
}
}
},
{
"type": "CommentLine",
"value": " Remove from entities list",
"start": 6803,
"end": 6831,
"loc": {
"start": {
"line": 203,
"column": 12
},
"end": {
"line": 203,
"column": 40
}
}
},
{
"type": "CommentLine",
"value": " Remove from componentToEntity list",
"start": 6901,
"end": 6938,
"loc": {
"start": {
"line": 206,
"column": 12
},
"end": {
"line": 206,
"column": 49
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Queues an entity for destruction\r\n * @param {Entity} entity\r\n ",
"start": 7199,
"end": 7283,
"loc": {
"start": {
"line": 218,
"column": 4
},
"end": {
"line": 221,
"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": "arrayDeleteValue",
"start": 9,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 25
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 25,
"end": 26,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newEmptyMap",
"start": 27,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 38
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 38,
"end": 39,
"loc": {
"start": {
"line": 1,
"column": 38
},
"end": {
"line": 1,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fastArrayDeleteValue",
"start": 40,
"end": 60,
"loc": {
"start": {
"line": 1,
"column": 40
},
"end": {
"line": 1,
"column": 60
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 61,
"end": 62,
"loc": {
"start": {
"line": 1,
"column": 61
},
"end": {
"line": 1,
"column": 62
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 63,
"end": 67,
"loc": {
"start": {
"line": 1,
"column": 63
},
"end": {
"line": 1,
"column": 67
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../core/utils",
"start": 68,
"end": 83,
"loc": {
"start": {
"line": 1,
"column": 68
},
"end": {
"line": 1,
"column": 83
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 83,
"end": 84,
"loc": {
"start": {
"line": 1,
"column": 83
},
"end": {
"line": 1,
"column": 84
}
}
},
{
"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": 86,
"end": 92,
"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": 93,
"end": 94,
"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": "Component",
"start": 95,
"end": 104,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 105,
"end": 106,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 107,
"end": 111,
"loc": {
"start": {
"line": 2,
"column": 21
},
"end": {
"line": 2,
"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": 112,
"end": 125,
"loc": {
"start": {
"line": 2,
"column": 26
},
"end": {
"line": 2,
"column": 39
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 125,
"end": 126,
"loc": {
"start": {
"line": 2,
"column": 39
},
"end": {
"line": 2,
"column": 40
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 128,
"end": 134,
"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": 135,
"end": 136,
"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": "GameRoot",
"start": 137,
"end": 145,
"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": 146,
"end": 147,
"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": 148,
"end": 152,
"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": "./root",
"start": 153,
"end": 161,
"loc": {
"start": {
"line": 3,
"column": 25
},
"end": {
"line": 3,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 161,
"end": 162,
"loc": {
"start": {
"line": 3,
"column": 33
},
"end": {
"line": 3,
"column": 34
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 164,
"end": 170,
"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": 171,
"end": 172,
"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": "Entity",
"start": 173,
"end": 179,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 180,
"end": 181,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 182,
"end": 186,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 4,
"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": 187,
"end": 197,
"loc": {
"start": {
"line": 4,
"column": 23
},
"end": {
"line": 4,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 197,
"end": 198,
"loc": {
"start": {
"line": 4,
"column": 33
},
"end": {
"line": 4,
"column": 34
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 200,
"end": 206,
"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": 207,
"end": 208,
"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": "BasicSerializableObject",
"start": 209,
"end": 232,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 32
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 232,
"end": 233,
"loc": {
"start": {
"line": 5,
"column": 32
},
"end": {
"line": 5,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "types",
"start": 234,
"end": 239,
"loc": {
"start": {
"line": 5,
"column": 34
},
"end": {
"line": 5,
"column": 39
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 240,
"end": 241,
"loc": {
"start": {
"line": 5,
"column": 40
},
"end": {
"line": 5,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 242,
"end": 246,
"loc": {
"start": {
"line": 5,
"column": 42
},
"end": {
"line": 5,
"column": 46
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../savegame/serialization",
"start": 247,
"end": 274,
"loc": {
"start": {
"line": 5,
"column": 47
},
"end": {
"line": 5,
"column": 74
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 274,
"end": 275,
"loc": {
"start": {
"line": 5,
"column": 74
},
"end": {
"line": 5,
"column": 75
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 277,
"end": 283,
"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": 284,
"end": 285,
"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": "createLogger",
"start": 286,
"end": 298,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 299,
"end": 300,
"loc": {
"start": {
"line": 6,
"column": 22
},
"end": {
"line": 6,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 301,
"end": 305,
"loc": {
"start": {
"line": 6,
"column": 24
},
"end": {
"line": 6,
"column": 28
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../core/logging",
"start": 306,
"end": 323,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 323,
"end": 324,
"loc": {
"start": {
"line": 6,
"column": 46
},
"end": {
"line": 6,
"column": 47
}
}
},
{
"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": 326,
"end": 332,
"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": 333,
"end": 334,
"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": "globalConfig",
"start": 335,
"end": 347,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 348,
"end": 349,
"loc": {
"start": {
"line": 7,
"column": 22
},
"end": {
"line": 7,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 350,
"end": 354,
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 28
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../core/config",
"start": 355,
"end": 371,
"loc": {
"start": {
"line": 7,
"column": 29
},
"end": {
"line": 7,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 371,
"end": 372,
"loc": {
"start": {
"line": 7,
"column": 45
},
"end": {
"line": 7,
"column": 46
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 376,
"end": 381,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "logger",
"start": 382,
"end": 388,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 389,
"end": 390,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createLogger",
"start": 391,
"end": 403,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 403,
"end": 404,
"loc": {
"start": {
"line": 9,
"column": 27
},
"end": {
"line": 9,
"column": 28
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "entity_manager",
"start": 404,
"end": 420,
"loc": {
"start": {
"line": 9,
"column": 28
},
"end": {
"line": 9,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 420,
"end": 421,
"loc": {
"start": {
"line": 9,
"column": 44
},
"end": {
"line": 9,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 421,
"end": 422,
"loc": {
"start": {
"line": 9,
"column": 45
},
"end": {
"line": 9,
"column": 46
}
}
},
{
"type": "CommentLine",
"value": " Manages all entities",
"start": 426,
"end": 449,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 23
}
}
},
{
"type": "CommentLine",
"value": " NOTICE: We use arrayDeleteValue instead of fastArrayDeleteValue since that does not preserve the order",
"start": 453,
"end": 558,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 105
}
}
},
{
"type": "CommentLine",
"value": " This is slower but we need it for the street path generation",
"start": 560,
"end": 623,
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 14,
"column": 63
}
}
},
{
"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": 627,
"end": 633,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 16,
"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": 634,
"end": 639,
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 16,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "EntityManager",
"start": 640,
"end": 653,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 26
}
}
},
{
"type": {
"label": "extends",
"keyword": "extends",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "extends",
"start": 654,
"end": 661,
"loc": {
"start": {
"line": 16,
"column": 27
},
"end": {
"line": 16,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BasicSerializableObject",
"start": 662,
"end": 685,
"loc": {
"start": {
"line": 16,
"column": 35
},
"end": {
"line": 16,
"column": 58
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 686,
"end": 687,
"loc": {
"start": {
"line": 16,
"column": 59
},
"end": {
"line": 16,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 693,
"end": 704,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 704,
"end": 705,
"loc": {
"start": {
"line": 17,
"column": 15
},
"end": {
"line": 17,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 705,
"end": 709,
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 709,
"end": 710,
"loc": {
"start": {
"line": 17,
"column": 20
},
"end": {
"line": 17,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 711,
"end": 712,
"loc": {
"start": {
"line": 17,
"column": 22
},
"end": {
"line": 17,
"column": 23
}
}
},
{
"type": {
"label": "super",
"keyword": "super",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "super",
"start": 722,
"end": 727,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 13
}
}
},
{
"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": 18,
"column": 13
},
"end": {
"line": 18,
"column": 14
}
}
},
{
"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": 18,
"column": 14
},
"end": {
"line": 18,
"column": 15
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 729,
"end": 730,
"loc": {
"start": {
"line": 18,
"column": 15
},
"end": {
"line": 18,
"column": 16
}
}
},
{
"type": "CommentBlock",
"value": "* @type {GameRoot} ",
"start": 742,
"end": 765,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 31
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 775,
"end": 779,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 779,
"end": 780,
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 780,
"end": 784,
"loc": {
"start": {
"line": 21,
"column": 13
},
"end": {
"line": 21,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 785,
"end": 786,
"loc": {
"start": {
"line": 21,
"column": 18
},
"end": {
"line": 21,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 787,
"end": 791,
"loc": {
"start": {
"line": 21,
"column": 20
},
"end": {
"line": 21,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 791,
"end": 792,
"loc": {
"start": {
"line": 21,
"column": 24
},
"end": {
"line": 21,
"column": 25
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Array<Entity>} ",
"start": 804,
"end": 832,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 36
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 842,
"end": 846,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 846,
"end": 847,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entities",
"start": 847,
"end": 855,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 856,
"end": 857,
"loc": {
"start": {
"line": 24,
"column": 22
},
"end": {
"line": 24,
"column": 23
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 858,
"end": 859,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 25
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 859,
"end": 860,
"loc": {
"start": {
"line": 24,
"column": 25
},
"end": {
"line": 24,
"column": 26
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 860,
"end": 861,
"loc": {
"start": {
"line": 24,
"column": 26
},
"end": {
"line": 24,
"column": 27
}
}
},
{
"type": "CommentLine",
"value": " We store a separate list with entities to destroy, since we don't destroy",
"start": 873,
"end": 949,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 84
}
}
},
{
"type": "CommentLine",
"value": " them instantly",
"start": 959,
"end": 976,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 25
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Array<Entity>} ",
"start": 986,
"end": 1014,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 36
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1024,
"end": 1028,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1028,
"end": 1029,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyList",
"start": 1029,
"end": 1040,
"loc": {
"start": {
"line": 29,
"column": 13
},
"end": {
"line": 29,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1041,
"end": 1042,
"loc": {
"start": {
"line": 29,
"column": 25
},
"end": {
"line": 29,
"column": 26
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1043,
"end": 1044,
"loc": {
"start": {
"line": 29,
"column": 27
},
"end": {
"line": 29,
"column": 28
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1044,
"end": 1045,
"loc": {
"start": {
"line": 29,
"column": 28
},
"end": {
"line": 29,
"column": 29
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1045,
"end": 1046,
"loc": {
"start": {
"line": 29,
"column": 29
},
"end": {
"line": 29,
"column": 30
}
}
},
{
"type": "CommentLine",
"value": " Store a map from componentid to entities - This is used by the game system",
"start": 1058,
"end": 1135,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 85
}
}
},
{
"type": "CommentLine",
"value": " for faster processing",
"start": 1145,
"end": 1169,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 32
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Object.<string, Array<Entity>>} ",
"start": 1179,
"end": 1224,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 53
}
}
},
{
"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": 1234,
"end": 1238,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1238,
"end": 1239,
"loc": {
"start": {
"line": 34,
"column": 12
},
"end": {
"line": 34,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentToEntity",
"start": 1239,
"end": 1256,
"loc": {
"start": {
"line": 34,
"column": 13
},
"end": {
"line": 34,
"column": 30
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1257,
"end": 1258,
"loc": {
"start": {
"line": 34,
"column": 31
},
"end": {
"line": 34,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newEmptyMap",
"start": 1259,
"end": 1270,
"loc": {
"start": {
"line": 34,
"column": 33
},
"end": {
"line": 34,
"column": 44
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1270,
"end": 1271,
"loc": {
"start": {
"line": 34,
"column": 44
},
"end": {
"line": 34,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1271,
"end": 1272,
"loc": {
"start": {
"line": 34,
"column": 45
},
"end": {
"line": 34,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1272,
"end": 1273,
"loc": {
"start": {
"line": 34,
"column": 46
},
"end": {
"line": 34,
"column": 47
}
}
},
{
"type": "CommentLine",
"value": " Store the next uid to use",
"start": 1285,
"end": 1313,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 36
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1323,
"end": 1327,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1327,
"end": 1328,
"loc": {
"start": {
"line": 37,
"column": 12
},
"end": {
"line": 37,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nextUid",
"start": 1328,
"end": 1335,
"loc": {
"start": {
"line": 37,
"column": 13
},
"end": {
"line": 37,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1336,
"end": 1337,
"loc": {
"start": {
"line": 37,
"column": 21
},
"end": {
"line": 37,
"column": 22
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 10000,
"start": 1338,
"end": 1343,
"loc": {
"start": {
"line": 37,
"column": 23
},
"end": {
"line": 37,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1343,
"end": 1344,
"loc": {
"start": {
"line": 37,
"column": 28
},
"end": {
"line": 37,
"column": 29
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1350,
"end": 1351,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 38,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 1359,
"end": 1365,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 40,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getId",
"start": 1366,
"end": 1371,
"loc": {
"start": {
"line": 40,
"column": 11
},
"end": {
"line": 40,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1371,
"end": 1372,
"loc": {
"start": {
"line": 40,
"column": 16
},
"end": {
"line": 40,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1372,
"end": 1373,
"loc": {
"start": {
"line": 40,
"column": 17
},
"end": {
"line": 40,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1374,
"end": 1375,
"loc": {
"start": {
"line": 40,
"column": 19
},
"end": {
"line": 40,
"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": 1385,
"end": 1391,
"loc": {
"start": {
"line": 41,
"column": 8
},
"end": {
"line": 41,
"column": 14
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "EntityManager",
"start": 1392,
"end": 1407,
"loc": {
"start": {
"line": 41,
"column": 15
},
"end": {
"line": 41,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1407,
"end": 1408,
"loc": {
"start": {
"line": 41,
"column": 30
},
"end": {
"line": 41,
"column": 31
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1414,
"end": 1415,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 1423,
"end": 1429,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSchema",
"start": 1430,
"end": 1439,
"loc": {
"start": {
"line": 44,
"column": 11
},
"end": {
"line": 44,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1439,
"end": 1440,
"loc": {
"start": {
"line": 44,
"column": 20
},
"end": {
"line": 44,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1440,
"end": 1441,
"loc": {
"start": {
"line": 44,
"column": 21
},
"end": {
"line": 44,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1442,
"end": 1443,
"loc": {
"start": {
"line": 44,
"column": 23
},
"end": {
"line": 44,
"column": 24
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 1453,
"end": 1459,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1460,
"end": 1461,
"loc": {
"start": {
"line": 45,
"column": 15
},
"end": {
"line": 45,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nextUid",
"start": 1475,
"end": 1482,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 19
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1482,
"end": 1483,
"loc": {
"start": {
"line": 46,
"column": 19
},
"end": {
"line": 46,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "types",
"start": 1484,
"end": 1489,
"loc": {
"start": {
"line": 46,
"column": 21
},
"end": {
"line": 46,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1489,
"end": 1490,
"loc": {
"start": {
"line": 46,
"column": 26
},
"end": {
"line": 46,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uint",
"start": 1490,
"end": 1494,
"loc": {
"start": {
"line": 46,
"column": 27
},
"end": {
"line": 46,
"column": 31
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1494,
"end": 1495,
"loc": {
"start": {
"line": 46,
"column": 31
},
"end": {
"line": 46,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1505,
"end": 1506,
"loc": {
"start": {
"line": 47,
"column": 8
},
"end": {
"line": 47,
"column": 9
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1506,
"end": 1507,
"loc": {
"start": {
"line": 47,
"column": 9
},
"end": {
"line": 47,
"column": 10
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1513,
"end": 1514,
"loc": {
"start": {
"line": 48,
"column": 4
},
"end": {
"line": 48,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getStatsText",
"start": 1522,
"end": 1534,
"loc": {
"start": {
"line": 50,
"column": 4
},
"end": {
"line": 50,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1534,
"end": 1535,
"loc": {
"start": {
"line": 50,
"column": 16
},
"end": {
"line": 50,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1535,
"end": 1536,
"loc": {
"start": {
"line": 50,
"column": 17
},
"end": {
"line": 50,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1537,
"end": 1538,
"loc": {
"start": {
"line": 50,
"column": 19
},
"end": {
"line": 50,
"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": 1548,
"end": 1554,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 14
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1555,
"end": 1559,
"loc": {
"start": {
"line": 51,
"column": 15
},
"end": {
"line": 51,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1559,
"end": 1560,
"loc": {
"start": {
"line": 51,
"column": 19
},
"end": {
"line": 51,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entities",
"start": 1560,
"end": 1568,
"loc": {
"start": {
"line": 51,
"column": 20
},
"end": {
"line": 51,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1568,
"end": 1569,
"loc": {
"start": {
"line": 51,
"column": 28
},
"end": {
"line": 51,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 1569,
"end": 1575,
"loc": {
"start": {
"line": 51,
"column": 29
},
"end": {
"line": 51,
"column": 35
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 1576,
"end": 1577,
"loc": {
"start": {
"line": 51,
"column": 36
},
"end": {
"line": 51,
"column": 37
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": " entities [",
"start": 1578,
"end": 1591,
"loc": {
"start": {
"line": 51,
"column": 38
},
"end": {
"line": 51,
"column": 51
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 1592,
"end": 1593,
"loc": {
"start": {
"line": 51,
"column": 52
},
"end": {
"line": 51,
"column": 53
}
}
},
{
"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": 1594,
"end": 1598,
"loc": {
"start": {
"line": 51,
"column": 54
},
"end": {
"line": 51,
"column": 58
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1598,
"end": 1599,
"loc": {
"start": {
"line": 51,
"column": 58
},
"end": {
"line": 51,
"column": 59
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyList",
"start": 1599,
"end": 1610,
"loc": {
"start": {
"line": 51,
"column": 59
},
"end": {
"line": 51,
"column": 70
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1610,
"end": 1611,
"loc": {
"start": {
"line": 51,
"column": 70
},
"end": {
"line": 51,
"column": 71
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 1611,
"end": 1617,
"loc": {
"start": {
"line": 51,
"column": 71
},
"end": {
"line": 51,
"column": 77
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 1618,
"end": 1619,
"loc": {
"start": {
"line": 51,
"column": 78
},
"end": {
"line": 51,
"column": 79
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": " to kill]",
"start": 1620,
"end": 1631,
"loc": {
"start": {
"line": 51,
"column": 80
},
"end": {
"line": 51,
"column": 91
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1631,
"end": 1632,
"loc": {
"start": {
"line": 51,
"column": 91
},
"end": {
"line": 51,
"column": 92
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1638,
"end": 1639,
"loc": {
"start": {
"line": 52,
"column": 4
},
"end": {
"line": 52,
"column": 5
}
}
},
{
"type": "CommentLine",
"value": " Main update",
"start": 1647,
"end": 1661,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "update",
"start": 1667,
"end": 1673,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
"line": 55,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1673,
"end": 1674,
"loc": {
"start": {
"line": 55,
"column": 10
},
"end": {
"line": 55,
"column": 11
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1674,
"end": 1675,
"loc": {
"start": {
"line": 55,
"column": 11
},
"end": {
"line": 55,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1676,
"end": 1677,
"loc": {
"start": {
"line": 55,
"column": 13
},
"end": {
"line": 55,
"column": 14
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1687,
"end": 1691,
"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": 1691,
"end": 1692,
"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": "processDestroyList",
"start": 1692,
"end": 1710,
"loc": {
"start": {
"line": 56,
"column": 13
},
"end": {
"line": 56,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1710,
"end": 1711,
"loc": {
"start": {
"line": 56,
"column": 31
},
"end": {
"line": 56,
"column": 32
}
}
},
{
"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": 56,
"column": 32
},
"end": {
"line": 56,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1712,
"end": 1713,
"loc": {
"start": {
"line": 56,
"column": 33
},
"end": {
"line": 56,
"column": 34
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1719,
"end": 1720,
"loc": {
"start": {
"line": 57,
"column": 4
},
"end": {
"line": 57,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Registers a new entity\r\n * @param {Entity} entity\r\n * @param {number=} uid Optional predefined uid\r\n ",
"start": 1728,
"end": 1855,
"loc": {
"start": {
"line": 59,
"column": 4
},
"end": {
"line": 63,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "registerEntity",
"start": 1861,
"end": 1875,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 64,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1875,
"end": 1876,
"loc": {
"start": {
"line": 64,
"column": 18
},
"end": {
"line": 64,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 1876,
"end": 1882,
"loc": {
"start": {
"line": 64,
"column": 19
},
"end": {
"line": 64,
"column": 25
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1882,
"end": 1883,
"loc": {
"start": {
"line": 64,
"column": 25
},
"end": {
"line": 64,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 1884,
"end": 1887,
"loc": {
"start": {
"line": 64,
"column": 27
},
"end": {
"line": 64,
"column": 30
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1888,
"end": 1889,
"loc": {
"start": {
"line": 64,
"column": 31
},
"end": {
"line": 64,
"column": 32
}
}
},
{
"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": 1890,
"end": 1894,
"loc": {
"start": {
"line": 64,
"column": 33
},
"end": {
"line": 64,
"column": 37
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1894,
"end": 1895,
"loc": {
"start": {
"line": 64,
"column": 37
},
"end": {
"line": 64,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blueprint",
"start": 1896,
"end": 1905,
"loc": {
"start": {
"line": 64,
"column": 39
},
"end": {
"line": 64,
"column": 48
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1906,
"end": 1907,
"loc": {
"start": {
"line": 64,
"column": 49
},
"end": {
"line": 64,
"column": 50
}
}
},
{
"type": {
"label": "false",
"keyword": "false",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "false",
"start": 1908,
"end": 1913,
"loc": {
"start": {
"line": 64,
"column": 51
},
"end": {
"line": 64,
"column": 56
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1913,
"end": 1914,
"loc": {
"start": {
"line": 64,
"column": 56
},
"end": {
"line": 64,
"column": 57
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1915,
"end": 1916,
"loc": {
"start": {
"line": 64,
"column": 58
},
"end": {
"line": 64,
"column": 59
}
}
},
{
"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": 1926,
"end": 1928,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1929,
"end": 1930,
"loc": {
"start": {
"line": 65,
"column": 11
},
"end": {
"line": 65,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "G_IS_DEV",
"start": 1930,
"end": 1938,
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 20
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 1939,
"end": 1941,
"loc": {
"start": {
"line": 65,
"column": 21
},
"end": {
"line": 65,
"column": 23
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 1942,
"end": 1943,
"loc": {
"start": {
"line": 65,
"column": 24
},
"end": {
"line": 65,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 1943,
"end": 1955,
"loc": {
"start": {
"line": 65,
"column": 25
},
"end": {
"line": 65,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1955,
"end": 1956,
"loc": {
"start": {
"line": 65,
"column": 37
},
"end": {
"line": 65,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "debug",
"start": 1956,
"end": 1961,
"loc": {
"start": {
"line": 65,
"column": 38
},
"end": {
"line": 65,
"column": 43
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1961,
"end": 1962,
"loc": {
"start": {
"line": 65,
"column": 43
},
"end": {
"line": 65,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "disableSlowAsserts",
"start": 1962,
"end": 1980,
"loc": {
"start": {
"line": 65,
"column": 44
},
"end": {
"line": 65,
"column": 62
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1980,
"end": 1981,
"loc": {
"start": {
"line": 65,
"column": 62
},
"end": {
"line": 65,
"column": 63
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1982,
"end": 1983,
"loc": {
"start": {
"line": 65,
"column": 64
},
"end": {
"line": 65,
"column": 65
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 1997,
"end": 2003,
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2003,
"end": 2004,
"loc": {
"start": {
"line": 66,
"column": 18
},
"end": {
"line": 66,
"column": 19
}
}
},
{
"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": 2004,
"end": 2008,
"loc": {
"start": {
"line": 66,
"column": 19
},
"end": {
"line": 66,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2008,
"end": 2009,
"loc": {
"start": {
"line": 66,
"column": 23
},
"end": {
"line": 66,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entities",
"start": 2009,
"end": 2017,
"loc": {
"start": {
"line": 66,
"column": 24
},
"end": {
"line": 66,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2017,
"end": 2018,
"loc": {
"start": {
"line": 66,
"column": 32
},
"end": {
"line": 66,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "indexOf",
"start": 2018,
"end": 2025,
"loc": {
"start": {
"line": 66,
"column": 33
},
"end": {
"line": 66,
"column": 40
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2025,
"end": 2026,
"loc": {
"start": {
"line": 66,
"column": 40
},
"end": {
"line": 66,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 2026,
"end": 2032,
"loc": {
"start": {
"line": 66,
"column": 41
},
"end": {
"line": 66,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2032,
"end": 2033,
"loc": {
"start": {
"line": 66,
"column": 47
},
"end": {
"line": 66,
"column": 48
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 2034,
"end": 2035,
"loc": {
"start": {
"line": 66,
"column": 49
},
"end": {
"line": 66,
"column": 50
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 2036,
"end": 2037,
"loc": {
"start": {
"line": 66,
"column": 51
},
"end": {
"line": 66,
"column": 52
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2037,
"end": 2038,
"loc": {
"start": {
"line": 66,
"column": 52
},
"end": {
"line": 66,
"column": 53
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2039,
"end": 2040,
"loc": {
"start": {
"line": 66,
"column": 54
},
"end": {
"line": 66,
"column": 55
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "RegisterEntity() called twice for entity ",
"start": 2040,
"end": 2081,
"loc": {
"start": {
"line": 66,
"column": 55
},
"end": {
"line": 66,
"column": 96
}
}
},
{
"type": {
"label": "${",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2081,
"end": 2083,
"loc": {
"start": {
"line": 66,
"column": 96
},
"end": {
"line": 66,
"column": 98
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 2083,
"end": 2089,
"loc": {
"start": {
"line": 66,
"column": 98
},
"end": {
"line": 66,
"column": 104
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2089,
"end": 2090,
"loc": {
"start": {
"line": 66,
"column": 104
},
"end": {
"line": 66,
"column": 105
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "",
"start": 2090,
"end": 2090,
"loc": {
"start": {
"line": 66,
"column": 105
},
"end": {
"line": 66,
"column": 105
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2090,
"end": 2091,
"loc": {
"start": {
"line": 66,
"column": 105
},
"end": {
"line": 66,
"column": 106
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2091,
"end": 2092,
"loc": {
"start": {
"line": 66,
"column": 106
},
"end": {
"line": 66,
"column": 107
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2092,
"end": 2093,
"loc": {
"start": {
"line": 66,
"column": 107
},
"end": {
"line": 66,
"column": 108
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2103,
"end": 2104,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 2114,
"end": 2120,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2120,
"end": 2121,
"loc": {
"start": {
"line": 68,
"column": 14
},
"end": {
"line": 68,
"column": 15
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 2121,
"end": 2122,
"loc": {
"start": {
"line": 68,
"column": 15
},
"end": {
"line": 68,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 2122,
"end": 2128,
"loc": {
"start": {
"line": 68,
"column": 16
},
"end": {
"line": 68,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2128,
"end": 2129,
"loc": {
"start": {
"line": 68,
"column": 22
},
"end": {
"line": 68,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyed",
"start": 2129,
"end": 2138,
"loc": {
"start": {
"line": 68,
"column": 23
},
"end": {
"line": 68,
"column": 32
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2138,
"end": 2139,
"loc": {
"start": {
"line": 68,
"column": 32
},
"end": {
"line": 68,
"column": 33
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2140,
"end": 2141,
"loc": {
"start": {
"line": 68,
"column": 34
},
"end": {
"line": 68,
"column": 35
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Attempting to register destroyed entity ",
"start": 2141,
"end": 2181,
"loc": {
"start": {
"line": 68,
"column": 35
},
"end": {
"line": 68,
"column": 75
}
}
},
{
"type": {
"label": "${",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2181,
"end": 2183,
"loc": {
"start": {
"line": 68,
"column": 75
},
"end": {
"line": 68,
"column": 77
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 2183,
"end": 2189,
"loc": {
"start": {
"line": 68,
"column": 77
},
"end": {
"line": 68,
"column": 83
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2189,
"end": 2190,
"loc": {
"start": {
"line": 68,
"column": 83
},
"end": {
"line": 68,
"column": 84
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "",
"start": 2190,
"end": 2190,
"loc": {
"start": {
"line": 68,
"column": 84
},
"end": {
"line": 68,
"column": 84
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2190,
"end": 2191,
"loc": {
"start": {
"line": 68,
"column": 84
},
"end": {
"line": 68,
"column": 85
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2191,
"end": 2192,
"loc": {
"start": {
"line": 68,
"column": 85
},
"end": {
"line": 68,
"column": 86
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2192,
"end": 2193,
"loc": {
"start": {
"line": 68,
"column": 86
},
"end": {
"line": 68,
"column": 87
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2205,
"end": 2207,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 70,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2208,
"end": 2209,
"loc": {
"start": {
"line": 70,
"column": 11
},
"end": {
"line": 70,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "G_IS_DEV",
"start": 2209,
"end": 2217,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 20
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 2218,
"end": 2220,
"loc": {
"start": {
"line": 70,
"column": 21
},
"end": {
"line": 70,
"column": 23
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 2221,
"end": 2222,
"loc": {
"start": {
"line": 70,
"column": 24
},
"end": {
"line": 70,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 2222,
"end": 2234,
"loc": {
"start": {
"line": 70,
"column": 25
},
"end": {
"line": 70,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2234,
"end": 2235,
"loc": {
"start": {
"line": 70,
"column": 37
},
"end": {
"line": 70,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "debug",
"start": 2235,
"end": 2240,
"loc": {
"start": {
"line": 70,
"column": 38
},
"end": {
"line": 70,
"column": 43
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2240,
"end": 2241,
"loc": {
"start": {
"line": 70,
"column": 43
},
"end": {
"line": 70,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "disableSlowAsserts",
"start": 2241,
"end": 2259,
"loc": {
"start": {
"line": 70,
"column": 44
},
"end": {
"line": 70,
"column": 62
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 2260,
"end": 2262,
"loc": {
"start": {
"line": 70,
"column": 63
},
"end": {
"line": 70,
"column": 65
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 2263,
"end": 2266,
"loc": {
"start": {
"line": 70,
"column": 66
},
"end": {
"line": 70,
"column": 69
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 2267,
"end": 2270,
"loc": {
"start": {
"line": 70,
"column": 70
},
"end": {
"line": 70,
"column": 73
}
}
},
{
"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": 2271,
"end": 2275,
"loc": {
"start": {
"line": 70,
"column": 74
},
"end": {
"line": 70,
"column": 78
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2275,
"end": 2276,
"loc": {
"start": {
"line": 70,
"column": 78
},
"end": {
"line": 70,
"column": 79
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2277,
"end": 2278,
"loc": {
"start": {
"line": 70,
"column": 80
},
"end": {
"line": 70,
"column": 81
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 2292,
"end": 2298,
"loc": {
"start": {
"line": 71,
"column": 12
},
"end": {
"line": 71,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2298,
"end": 2299,
"loc": {
"start": {
"line": 71,
"column": 18
},
"end": {
"line": 71,
"column": 19
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 2299,
"end": 2300,
"loc": {
"start": {
"line": 71,
"column": 19
},
"end": {
"line": 71,
"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": 2300,
"end": 2304,
"loc": {
"start": {
"line": 71,
"column": 20
},
"end": {
"line": 71,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2304,
"end": 2305,
"loc": {
"start": {
"line": 71,
"column": 24
},
"end": {
"line": 71,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findByUid",
"start": 2305,
"end": 2314,
"loc": {
"start": {
"line": 71,
"column": 25
},
"end": {
"line": 71,
"column": 34
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2314,
"end": 2315,
"loc": {
"start": {
"line": 71,
"column": 34
},
"end": {
"line": 71,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 2315,
"end": 2318,
"loc": {
"start": {
"line": 71,
"column": 35
},
"end": {
"line": 71,
"column": 38
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2318,
"end": 2319,
"loc": {
"start": {
"line": 71,
"column": 38
},
"end": {
"line": 71,
"column": 39
}
}
},
{
"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": 2320,
"end": 2325,
"loc": {
"start": {
"line": 71,
"column": 40
},
"end": {
"line": 71,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2325,
"end": 2326,
"loc": {
"start": {
"line": 71,
"column": 45
},
"end": {
"line": 71,
"column": 46
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2326,
"end": 2327,
"loc": {
"start": {
"line": 71,
"column": 46
},
"end": {
"line": 71,
"column": 47
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Entity uid already taken: ",
"start": 2328,
"end": 2356,
"loc": {
"start": {
"line": 71,
"column": 48
},
"end": {
"line": 71,
"column": 76
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2357,
"end": 2358,
"loc": {
"start": {
"line": 71,
"column": 77
},
"end": {
"line": 71,
"column": 78
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 2359,
"end": 2362,
"loc": {
"start": {
"line": 71,
"column": 79
},
"end": {
"line": 71,
"column": 82
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2362,
"end": 2363,
"loc": {
"start": {
"line": 71,
"column": 82
},
"end": {
"line": 71,
"column": 83
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2363,
"end": 2364,
"loc": {
"start": {
"line": 71,
"column": 83
},
"end": {
"line": 71,
"column": 84
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 2378,
"end": 2384,
"loc": {
"start": {
"line": 72,
"column": 12
},
"end": {
"line": 72,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2384,
"end": 2385,
"loc": {
"start": {
"line": 72,
"column": 18
},
"end": {
"line": 72,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 2385,
"end": 2388,
"loc": {
"start": {
"line": 72,
"column": 19
},
"end": {
"line": 72,
"column": 22
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": ">=",
"start": 2389,
"end": 2391,
"loc": {
"start": {
"line": 72,
"column": 23
},
"end": {
"line": 72,
"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": 2392,
"end": 2393,
"loc": {
"start": {
"line": 72,
"column": 26
},
"end": {
"line": 72,
"column": 27
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 2394,
"end": 2396,
"loc": {
"start": {
"line": 72,
"column": 28
},
"end": {
"line": 72,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 2397,
"end": 2400,
"loc": {
"start": {
"line": 72,
"column": 31
},
"end": {
"line": 72,
"column": 34
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 2401,
"end": 2402,
"loc": {
"start": {
"line": 72,
"column": 35
},
"end": {
"line": 72,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Number",
"start": 2403,
"end": 2409,
"loc": {
"start": {
"line": 72,
"column": 37
},
"end": {
"line": 72,
"column": 43
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2409,
"end": 2410,
"loc": {
"start": {
"line": 72,
"column": 43
},
"end": {
"line": 72,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "MAX_SAFE_INTEGER",
"start": 2410,
"end": 2426,
"loc": {
"start": {
"line": 72,
"column": 44
},
"end": {
"line": 72,
"column": 60
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2426,
"end": 2427,
"loc": {
"start": {
"line": 72,
"column": 60
},
"end": {
"line": 72,
"column": 61
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Invalid uid passed: ",
"start": 2428,
"end": 2450,
"loc": {
"start": {
"line": 72,
"column": 62
},
"end": {
"line": 72,
"column": 84
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2451,
"end": 2452,
"loc": {
"start": {
"line": 72,
"column": 85
},
"end": {
"line": 72,
"column": 86
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 2453,
"end": 2456,
"loc": {
"start": {
"line": 72,
"column": 87
},
"end": {
"line": 72,
"column": 90
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2456,
"end": 2457,
"loc": {
"start": {
"line": 72,
"column": 90
},
"end": {
"line": 72,
"column": 91
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2457,
"end": 2458,
"loc": {
"start": {
"line": 72,
"column": 91
},
"end": {
"line": 72,
"column": 92
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2468,
"end": 2469,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 73,
"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": 2481,
"end": 2485,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2485,
"end": 2486,
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 75,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entities",
"start": 2486,
"end": 2494,
"loc": {
"start": {
"line": 75,
"column": 13
},
"end": {
"line": 75,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2494,
"end": 2495,
"loc": {
"start": {
"line": 75,
"column": 21
},
"end": {
"line": 75,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "push",
"start": 2495,
"end": 2499,
"loc": {
"start": {
"line": 75,
"column": 22
},
"end": {
"line": 75,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2499,
"end": 2500,
"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": "entity",
"start": 2500,
"end": 2506,
"loc": {
"start": {
"line": 75,
"column": 27
},
"end": {
"line": 75,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2506,
"end": 2507,
"loc": {
"start": {
"line": 75,
"column": 33
},
"end": {
"line": 75,
"column": 34
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2507,
"end": 2508,
"loc": {
"start": {
"line": 75,
"column": 34
},
"end": {
"line": 75,
"column": 35
}
}
},
{
"type": "CommentLine",
"value": " Register into the componentToEntity map",
"start": 2520,
"end": 2562,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 50
}
}
},
{
"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": 2572,
"end": 2575,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2576,
"end": 2577,
"loc": {
"start": {
"line": 78,
"column": 12
},
"end": {
"line": 78,
"column": 13
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 2577,
"end": 2582,
"loc": {
"start": {
"line": 78,
"column": 13
},
"end": {
"line": 78,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 2583,
"end": 2594,
"loc": {
"start": {
"line": 78,
"column": 19
},
"end": {
"line": 78,
"column": 30
}
}
},
{
"type": {
"label": "in",
"keyword": "in",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "in",
"start": 2595,
"end": 2597,
"loc": {
"start": {
"line": 78,
"column": 31
},
"end": {
"line": 78,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 2598,
"end": 2604,
"loc": {
"start": {
"line": 78,
"column": 34
},
"end": {
"line": 78,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2604,
"end": 2605,
"loc": {
"start": {
"line": 78,
"column": 40
},
"end": {
"line": 78,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "components",
"start": 2605,
"end": 2615,
"loc": {
"start": {
"line": 78,
"column": 41
},
"end": {
"line": 78,
"column": 51
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2615,
"end": 2616,
"loc": {
"start": {
"line": 78,
"column": 51
},
"end": {
"line": 78,
"column": 52
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2617,
"end": 2618,
"loc": {
"start": {
"line": 78,
"column": 53
},
"end": {
"line": 78,
"column": 54
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2632,
"end": 2634,
"loc": {
"start": {
"line": 79,
"column": 12
},
"end": {
"line": 79,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2635,
"end": 2636,
"loc": {
"start": {
"line": 79,
"column": 15
},
"end": {
"line": 79,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 2636,
"end": 2642,
"loc": {
"start": {
"line": 79,
"column": 16
},
"end": {
"line": 79,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2642,
"end": 2643,
"loc": {
"start": {
"line": 79,
"column": 22
},
"end": {
"line": 79,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "components",
"start": 2643,
"end": 2653,
"loc": {
"start": {
"line": 79,
"column": 23
},
"end": {
"line": 79,
"column": 33
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2653,
"end": 2654,
"loc": {
"start": {
"line": 79,
"column": 33
},
"end": {
"line": 79,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 2654,
"end": 2665,
"loc": {
"start": {
"line": 79,
"column": 34
},
"end": {
"line": 79,
"column": 45
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2665,
"end": 2666,
"loc": {
"start": {
"line": 79,
"column": 45
},
"end": {
"line": 79,
"column": 46
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2666,
"end": 2667,
"loc": {
"start": {
"line": 79,
"column": 46
},
"end": {
"line": 79,
"column": 47
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2668,
"end": 2669,
"loc": {
"start": {
"line": 79,
"column": 48
},
"end": {
"line": 79,
"column": 49
}
}
},
{
"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": 2687,
"end": 2689,
"loc": {
"start": {
"line": 80,
"column": 16
},
"end": {
"line": 80,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2690,
"end": 2691,
"loc": {
"start": {
"line": 80,
"column": 19
},
"end": {
"line": 80,
"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": 2691,
"end": 2695,
"loc": {
"start": {
"line": 80,
"column": 20
},
"end": {
"line": 80,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2695,
"end": 2696,
"loc": {
"start": {
"line": 80,
"column": 24
},
"end": {
"line": 80,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentToEntity",
"start": 2696,
"end": 2713,
"loc": {
"start": {
"line": 80,
"column": 25
},
"end": {
"line": 80,
"column": 42
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2713,
"end": 2714,
"loc": {
"start": {
"line": 80,
"column": 42
},
"end": {
"line": 80,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 2714,
"end": 2725,
"loc": {
"start": {
"line": 80,
"column": 43
},
"end": {
"line": 80,
"column": 54
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2725,
"end": 2726,
"loc": {
"start": {
"line": 80,
"column": 54
},
"end": {
"line": 80,
"column": 55
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2726,
"end": 2727,
"loc": {
"start": {
"line": 80,
"column": 55
},
"end": {
"line": 80,
"column": 56
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2728,
"end": 2729,
"loc": {
"start": {
"line": 80,
"column": 57
},
"end": {
"line": 80,
"column": 58
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2751,
"end": 2755,
"loc": {
"start": {
"line": 81,
"column": 20
},
"end": {
"line": 81,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2755,
"end": 2756,
"loc": {
"start": {
"line": 81,
"column": 24
},
"end": {
"line": 81,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentToEntity",
"start": 2756,
"end": 2773,
"loc": {
"start": {
"line": 81,
"column": 25
},
"end": {
"line": 81,
"column": 42
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2773,
"end": 2774,
"loc": {
"start": {
"line": 81,
"column": 42
},
"end": {
"line": 81,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 2774,
"end": 2785,
"loc": {
"start": {
"line": 81,
"column": 43
},
"end": {
"line": 81,
"column": 54
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2785,
"end": 2786,
"loc": {
"start": {
"line": 81,
"column": 54
},
"end": {
"line": 81,
"column": 55
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2786,
"end": 2787,
"loc": {
"start": {
"line": 81,
"column": 55
},
"end": {
"line": 81,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "push",
"start": 2787,
"end": 2791,
"loc": {
"start": {
"line": 81,
"column": 56
},
"end": {
"line": 81,
"column": 60
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2791,
"end": 2792,
"loc": {
"start": {
"line": 81,
"column": 60
},
"end": {
"line": 81,
"column": 61
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 2792,
"end": 2798,
"loc": {
"start": {
"line": 81,
"column": 61
},
"end": {
"line": 81,
"column": 67
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2798,
"end": 2799,
"loc": {
"start": {
"line": 81,
"column": 67
},
"end": {
"line": 81,
"column": 68
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2799,
"end": 2800,
"loc": {
"start": {
"line": 81,
"column": 68
},
"end": {
"line": 81,
"column": 69
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2818,
"end": 2819,
"loc": {
"start": {
"line": 82,
"column": 16
},
"end": {
"line": 82,
"column": 17
}
}
},
{
"type": {
"label": "else",
"keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "else",
"start": 2820,
"end": 2824,
"loc": {
"start": {
"line": 82,
"column": 18
},
"end": {
"line": 82,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2825,
"end": 2826,
"loc": {
"start": {
"line": 82,
"column": 23
},
"end": {
"line": 82,
"column": 24
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2848,
"end": 2852,
"loc": {
"start": {
"line": 83,
"column": 20
},
"end": {
"line": 83,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2852,
"end": 2853,
"loc": {
"start": {
"line": 83,
"column": 24
},
"end": {
"line": 83,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentToEntity",
"start": 2853,
"end": 2870,
"loc": {
"start": {
"line": 83,
"column": 25
},
"end": {
"line": 83,
"column": 42
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2870,
"end": 2871,
"loc": {
"start": {
"line": 83,
"column": 42
},
"end": {
"line": 83,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 2871,
"end": 2882,
"loc": {
"start": {
"line": 83,
"column": 43
},
"end": {
"line": 83,
"column": 54
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2882,
"end": 2883,
"loc": {
"start": {
"line": 83,
"column": 54
},
"end": {
"line": 83,
"column": 55
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2884,
"end": 2885,
"loc": {
"start": {
"line": 83,
"column": 56
},
"end": {
"line": 83,
"column": 57
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2886,
"end": 2887,
"loc": {
"start": {
"line": 83,
"column": 58
},
"end": {
"line": 83,
"column": 59
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 2887,
"end": 2893,
"loc": {
"start": {
"line": 83,
"column": 59
},
"end": {
"line": 83,
"column": 65
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2893,
"end": 2894,
"loc": {
"start": {
"line": 83,
"column": 65
},
"end": {
"line": 83,
"column": 66
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2894,
"end": 2895,
"loc": {
"start": {
"line": 83,
"column": 66
},
"end": {
"line": 83,
"column": 67
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2913,
"end": 2914,
"loc": {
"start": {
"line": 84,
"column": 16
},
"end": {
"line": 84,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2928,
"end": 2929,
"loc": {
"start": {
"line": 85,
"column": 12
},
"end": {
"line": 85,
"column": 13
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2939,
"end": 2940,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 86,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " Give each entity a unique id",
"start": 2952,
"end": 2983,
"loc": {
"start": {
"line": 88,
"column": 8
},
"end": {
"line": 88,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 2993,
"end": 2999,
"loc": {
"start": {
"line": 89,
"column": 8
},
"end": {
"line": 89,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2999,
"end": 3000,
"loc": {
"start": {
"line": 89,
"column": 14
},
"end": {
"line": 89,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 3000,
"end": 3003,
"loc": {
"start": {
"line": 89,
"column": 15
},
"end": {
"line": 89,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3004,
"end": 3005,
"loc": {
"start": {
"line": 89,
"column": 19
},
"end": {
"line": 89,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 3006,
"end": 3009,
"loc": {
"start": {
"line": 89,
"column": 21
},
"end": {
"line": 89,
"column": 24
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3010,
"end": 3011,
"loc": {
"start": {
"line": 89,
"column": 25
},
"end": {
"line": 89,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 3012,
"end": 3015,
"loc": {
"start": {
"line": 89,
"column": 27
},
"end": {
"line": 89,
"column": 30
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3016,
"end": 3017,
"loc": {
"start": {
"line": 89,
"column": 31
},
"end": {
"line": 89,
"column": 32
}
}
},
{
"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": 3018,
"end": 3022,
"loc": {
"start": {
"line": 89,
"column": 33
},
"end": {
"line": 89,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3022,
"end": 3023,
"loc": {
"start": {
"line": 89,
"column": 37
},
"end": {
"line": 89,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "generateUid",
"start": 3023,
"end": 3034,
"loc": {
"start": {
"line": 89,
"column": 38
},
"end": {
"line": 89,
"column": 49
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3034,
"end": 3035,
"loc": {
"start": {
"line": 89,
"column": 49
},
"end": {
"line": 89,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3035,
"end": 3036,
"loc": {
"start": {
"line": 89,
"column": 50
},
"end": {
"line": 89,
"column": 51
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3036,
"end": 3037,
"loc": {
"start": {
"line": 89,
"column": 51
},
"end": {
"line": 89,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 3047,
"end": 3053,
"loc": {
"start": {
"line": 90,
"column": 8
},
"end": {
"line": 90,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3053,
"end": 3054,
"loc": {
"start": {
"line": 90,
"column": 14
},
"end": {
"line": 90,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "registered",
"start": 3054,
"end": 3064,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3065,
"end": 3066,
"loc": {
"start": {
"line": 90,
"column": 26
},
"end": {
"line": 90,
"column": 27
}
}
},
{
"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": 3067,
"end": 3071,
"loc": {
"start": {
"line": 90,
"column": 28
},
"end": {
"line": 90,
"column": 32
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3071,
"end": 3072,
"loc": {
"start": {
"line": 90,
"column": 32
},
"end": {
"line": 90,
"column": 33
}
}
},
{
"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": 3084,
"end": 3088,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3088,
"end": 3089,
"loc": {
"start": {
"line": 92,
"column": 12
},
"end": {
"line": 92,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 3089,
"end": 3093,
"loc": {
"start": {
"line": 92,
"column": 13
},
"end": {
"line": 92,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3093,
"end": 3094,
"loc": {
"start": {
"line": 92,
"column": 17
},
"end": {
"line": 92,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "signals",
"start": 3094,
"end": 3101,
"loc": {
"start": {
"line": 92,
"column": 18
},
"end": {
"line": 92,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3101,
"end": 3102,
"loc": {
"start": {
"line": 92,
"column": 25
},
"end": {
"line": 92,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entityAdded",
"start": 3102,
"end": 3113,
"loc": {
"start": {
"line": 92,
"column": 26
},
"end": {
"line": 92,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3113,
"end": 3114,
"loc": {
"start": {
"line": 92,
"column": 37
},
"end": {
"line": 92,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dispatch",
"start": 3114,
"end": 3122,
"loc": {
"start": {
"line": 92,
"column": 38
},
"end": {
"line": 92,
"column": 46
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3122,
"end": 3123,
"loc": {
"start": {
"line": 92,
"column": 46
},
"end": {
"line": 92,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 3123,
"end": 3129,
"loc": {
"start": {
"line": 92,
"column": 47
},
"end": {
"line": 92,
"column": 53
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3129,
"end": 3130,
"loc": {
"start": {
"line": 92,
"column": 53
},
"end": {
"line": 92,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blueprint",
"start": 3131,
"end": 3140,
"loc": {
"start": {
"line": 92,
"column": 55
},
"end": {
"line": 92,
"column": 64
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3140,
"end": 3141,
"loc": {
"start": {
"line": 92,
"column": 64
},
"end": {
"line": 92,
"column": 65
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3141,
"end": 3142,
"loc": {
"start": {
"line": 92,
"column": 65
},
"end": {
"line": 92,
"column": 66
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3148,
"end": 3149,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 93,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Generates a new uid\r\n * @returns {number}\r\n ",
"start": 3157,
"end": 3223,
"loc": {
"start": {
"line": 95,
"column": 4
},
"end": {
"line": 98,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "generateUid",
"start": 3229,
"end": 3240,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 99,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3240,
"end": 3241,
"loc": {
"start": {
"line": 99,
"column": 15
},
"end": {
"line": 99,
"column": 16
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3241,
"end": 3242,
"loc": {
"start": {
"line": 99,
"column": 16
},
"end": {
"line": 99,
"column": 17
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3243,
"end": 3244,
"loc": {
"start": {
"line": 99,
"column": 18
},
"end": {
"line": 99,
"column": 19
}
}
},
{
"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": 3254,
"end": 3260,
"loc": {
"start": {
"line": 100,
"column": 8
},
"end": {
"line": 100,
"column": 14
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3261,
"end": 3265,
"loc": {
"start": {
"line": 100,
"column": 15
},
"end": {
"line": 100,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3265,
"end": 3266,
"loc": {
"start": {
"line": 100,
"column": 19
},
"end": {
"line": 100,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nextUid",
"start": 3266,
"end": 3273,
"loc": {
"start": {
"line": 100,
"column": 20
},
"end": {
"line": 100,
"column": 27
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 3273,
"end": 3275,
"loc": {
"start": {
"line": 100,
"column": 27
},
"end": {
"line": 100,
"column": 29
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3275,
"end": 3276,
"loc": {
"start": {
"line": 100,
"column": 29
},
"end": {
"line": 100,
"column": 30
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3282,
"end": 3283,
"loc": {
"start": {
"line": 101,
"column": 4
},
"end": {
"line": 101,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Call to attach a new component after the creation of the entity\r\n * @param {Entity} entity\r\n * @param {Component} component\r\n ",
"start": 3291,
"end": 3443,
"loc": {
"start": {
"line": 103,
"column": 4
},
"end": {
"line": 107,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "attachDynamicComponent",
"start": 3449,
"end": 3471,
"loc": {
"start": {
"line": 108,
"column": 4
},
"end": {
"line": 108,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3471,
"end": 3472,
"loc": {
"start": {
"line": 108,
"column": 26
},
"end": {
"line": 108,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 3472,
"end": 3478,
"loc": {
"start": {
"line": 108,
"column": 27
},
"end": {
"line": 108,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3478,
"end": 3479,
"loc": {
"start": {
"line": 108,
"column": 33
},
"end": {
"line": 108,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "component",
"start": 3480,
"end": 3489,
"loc": {
"start": {
"line": 108,
"column": 35
},
"end": {
"line": 108,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3489,
"end": 3490,
"loc": {
"start": {
"line": 108,
"column": 44
},
"end": {
"line": 108,
"column": 45
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3491,
"end": 3492,
"loc": {
"start": {
"line": 108,
"column": 46
},
"end": {
"line": 108,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 3502,
"end": 3508,
"loc": {
"start": {
"line": 109,
"column": 8
},
"end": {
"line": 109,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3508,
"end": 3509,
"loc": {
"start": {
"line": 109,
"column": 14
},
"end": {
"line": 109,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "addComponent",
"start": 3509,
"end": 3521,
"loc": {
"start": {
"line": 109,
"column": 15
},
"end": {
"line": 109,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3521,
"end": 3522,
"loc": {
"start": {
"line": 109,
"column": 27
},
"end": {
"line": 109,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "component",
"start": 3522,
"end": 3531,
"loc": {
"start": {
"line": 109,
"column": 28
},
"end": {
"line": 109,
"column": 37
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3531,
"end": 3532,
"loc": {
"start": {
"line": 109,
"column": 37
},
"end": {
"line": 109,
"column": 38
}
}
},
{
"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": 3533,
"end": 3537,
"loc": {
"start": {
"line": 109,
"column": 39
},
"end": {
"line": 109,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3537,
"end": 3538,
"loc": {
"start": {
"line": 109,
"column": 43
},
"end": {
"line": 109,
"column": 44
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3538,
"end": 3539,
"loc": {
"start": {
"line": 109,
"column": 44
},
"end": {
"line": 109,
"column": 45
}
}
},
{
"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": 3549,
"end": 3554,
"loc": {
"start": {
"line": 110,
"column": 8
},
"end": {
"line": 110,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 3555,
"end": 3566,
"loc": {
"start": {
"line": 110,
"column": 14
},
"end": {
"line": 110,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3567,
"end": 3568,
"loc": {
"start": {
"line": 110,
"column": 26
},
"end": {
"line": 110,
"column": 27
}
}
},
{
"type": "CommentBlock",
"value": "* @type {typeof Component} ",
"start": 3569,
"end": 3600,
"loc": {
"start": {
"line": 110,
"column": 28
},
"end": {
"line": 110,
"column": 59
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3601,
"end": 3602,
"loc": {
"start": {
"line": 110,
"column": 60
},
"end": {
"line": 110,
"column": 61
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "component",
"start": 3602,
"end": 3611,
"loc": {
"start": {
"line": 110,
"column": 61
},
"end": {
"line": 110,
"column": 70
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3611,
"end": 3612,
"loc": {
"start": {
"line": 110,
"column": 70
},
"end": {
"line": 110,
"column": 71
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 3612,
"end": 3623,
"loc": {
"start": {
"line": 110,
"column": 71
},
"end": {
"line": 110,
"column": 82
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3623,
"end": 3624,
"loc": {
"start": {
"line": 110,
"column": 82
},
"end": {
"line": 110,
"column": 83
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3624,
"end": 3625,
"loc": {
"start": {
"line": 110,
"column": 83
},
"end": {
"line": 110,
"column": 84
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getId",
"start": 3625,
"end": 3630,
"loc": {
"start": {
"line": 110,
"column": 84
},
"end": {
"line": 110,
"column": 89
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3630,
"end": 3631,
"loc": {
"start": {
"line": 110,
"column": 89
},
"end": {
"line": 110,
"column": 90
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3631,
"end": 3632,
"loc": {
"start": {
"line": 110,
"column": 90
},
"end": {
"line": 110,
"column": 91
}
}
},
{
"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": 110,
"column": 91
},
"end": {
"line": 110,
"column": 92
}
}
},
{
"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": 3643,
"end": 3645,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3646,
"end": 3647,
"loc": {
"start": {
"line": 111,
"column": 11
},
"end": {
"line": 111,
"column": 12
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3647,
"end": 3651,
"loc": {
"start": {
"line": 111,
"column": 12
},
"end": {
"line": 111,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3651,
"end": 3652,
"loc": {
"start": {
"line": 111,
"column": 16
},
"end": {
"line": 111,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentToEntity",
"start": 3652,
"end": 3669,
"loc": {
"start": {
"line": 111,
"column": 17
},
"end": {
"line": 111,
"column": 34
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3669,
"end": 3670,
"loc": {
"start": {
"line": 111,
"column": 34
},
"end": {
"line": 111,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 3670,
"end": 3681,
"loc": {
"start": {
"line": 111,
"column": 35
},
"end": {
"line": 111,
"column": 46
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3681,
"end": 3682,
"loc": {
"start": {
"line": 111,
"column": 46
},
"end": {
"line": 111,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3682,
"end": 3683,
"loc": {
"start": {
"line": 111,
"column": 47
},
"end": {
"line": 111,
"column": 48
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3684,
"end": 3685,
"loc": {
"start": {
"line": 111,
"column": 49
},
"end": {
"line": 111,
"column": 50
}
}
},
{
"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": 3699,
"end": 3703,
"loc": {
"start": {
"line": 112,
"column": 12
},
"end": {
"line": 112,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3703,
"end": 3704,
"loc": {
"start": {
"line": 112,
"column": 16
},
"end": {
"line": 112,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentToEntity",
"start": 3704,
"end": 3721,
"loc": {
"start": {
"line": 112,
"column": 17
},
"end": {
"line": 112,
"column": 34
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3721,
"end": 3722,
"loc": {
"start": {
"line": 112,
"column": 34
},
"end": {
"line": 112,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 3722,
"end": 3733,
"loc": {
"start": {
"line": 112,
"column": 35
},
"end": {
"line": 112,
"column": 46
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3733,
"end": 3734,
"loc": {
"start": {
"line": 112,
"column": 46
},
"end": {
"line": 112,
"column": 47
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3734,
"end": 3735,
"loc": {
"start": {
"line": 112,
"column": 47
},
"end": {
"line": 112,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "push",
"start": 3735,
"end": 3739,
"loc": {
"start": {
"line": 112,
"column": 48
},
"end": {
"line": 112,
"column": 52
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3739,
"end": 3740,
"loc": {
"start": {
"line": 112,
"column": 52
},
"end": {
"line": 112,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 3740,
"end": 3746,
"loc": {
"start": {
"line": 112,
"column": 53
},
"end": {
"line": 112,
"column": 59
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3746,
"end": 3747,
"loc": {
"start": {
"line": 112,
"column": 59
},
"end": {
"line": 112,
"column": 60
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3747,
"end": 3748,
"loc": {
"start": {
"line": 112,
"column": 60
},
"end": {
"line": 112,
"column": 61
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3758,
"end": 3759,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 9
}
}
},
{
"type": {
"label": "else",
"keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "else",
"start": 3760,
"end": 3764,
"loc": {
"start": {
"line": 113,
"column": 10
},
"end": {
"line": 113,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3765,
"end": 3766,
"loc": {
"start": {
"line": 113,
"column": 15
},
"end": {
"line": 113,
"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": 3780,
"end": 3784,
"loc": {
"start": {
"line": 114,
"column": 12
},
"end": {
"line": 114,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3784,
"end": 3785,
"loc": {
"start": {
"line": 114,
"column": 16
},
"end": {
"line": 114,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentToEntity",
"start": 3785,
"end": 3802,
"loc": {
"start": {
"line": 114,
"column": 17
},
"end": {
"line": 114,
"column": 34
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3802,
"end": 3803,
"loc": {
"start": {
"line": 114,
"column": 34
},
"end": {
"line": 114,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 3803,
"end": 3814,
"loc": {
"start": {
"line": 114,
"column": 35
},
"end": {
"line": 114,
"column": 46
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3814,
"end": 3815,
"loc": {
"start": {
"line": 114,
"column": 46
},
"end": {
"line": 114,
"column": 47
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3816,
"end": 3817,
"loc": {
"start": {
"line": 114,
"column": 48
},
"end": {
"line": 114,
"column": 49
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3818,
"end": 3819,
"loc": {
"start": {
"line": 114,
"column": 50
},
"end": {
"line": 114,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 3819,
"end": 3825,
"loc": {
"start": {
"line": 114,
"column": 51
},
"end": {
"line": 114,
"column": 57
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3825,
"end": 3826,
"loc": {
"start": {
"line": 114,
"column": 57
},
"end": {
"line": 114,
"column": 58
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3826,
"end": 3827,
"loc": {
"start": {
"line": 114,
"column": 58
},
"end": {
"line": 114,
"column": 59
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3837,
"end": 3838,
"loc": {
"start": {
"line": 115,
"column": 8
},
"end": {
"line": 115,
"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": 3848,
"end": 3852,
"loc": {
"start": {
"line": 116,
"column": 8
},
"end": {
"line": 116,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3852,
"end": 3853,
"loc": {
"start": {
"line": 116,
"column": 12
},
"end": {
"line": 116,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 3853,
"end": 3857,
"loc": {
"start": {
"line": 116,
"column": 13
},
"end": {
"line": 116,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3857,
"end": 3858,
"loc": {
"start": {
"line": 116,
"column": 17
},
"end": {
"line": 116,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "signals",
"start": 3858,
"end": 3865,
"loc": {
"start": {
"line": 116,
"column": 18
},
"end": {
"line": 116,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3865,
"end": 3866,
"loc": {
"start": {
"line": 116,
"column": 25
},
"end": {
"line": 116,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entityGotNewComponent",
"start": 3866,
"end": 3887,
"loc": {
"start": {
"line": 116,
"column": 26
},
"end": {
"line": 116,
"column": 47
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3887,
"end": 3888,
"loc": {
"start": {
"line": 116,
"column": 47
},
"end": {
"line": 116,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dispatch",
"start": 3888,
"end": 3896,
"loc": {
"start": {
"line": 116,
"column": 48
},
"end": {
"line": 116,
"column": 56
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3896,
"end": 3897,
"loc": {
"start": {
"line": 116,
"column": 56
},
"end": {
"line": 116,
"column": 57
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 3897,
"end": 3903,
"loc": {
"start": {
"line": 116,
"column": 57
},
"end": {
"line": 116,
"column": 63
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3903,
"end": 3904,
"loc": {
"start": {
"line": 116,
"column": 63
},
"end": {
"line": 116,
"column": 64
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3904,
"end": 3905,
"loc": {
"start": {
"line": 116,
"column": 64
},
"end": {
"line": 116,
"column": 65
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3911,
"end": 3912,
"loc": {
"start": {
"line": 117,
"column": 4
},
"end": {
"line": 117,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Call to remove a component after the creation of the entity\r\n * @param {Entity} entity\r\n * @param {typeof Component} component\r\n ",
"start": 3920,
"end": 4075,
"loc": {
"start": {
"line": 119,
"column": 4
},
"end": {
"line": 123,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeDynamicComponent",
"start": 4081,
"end": 4103,
"loc": {
"start": {
"line": 124,
"column": 4
},
"end": {
"line": 124,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4103,
"end": 4104,
"loc": {
"start": {
"line": 124,
"column": 26
},
"end": {
"line": 124,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 4104,
"end": 4110,
"loc": {
"start": {
"line": 124,
"column": 27
},
"end": {
"line": 124,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4110,
"end": 4111,
"loc": {
"start": {
"line": 124,
"column": 33
},
"end": {
"line": 124,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "component",
"start": 4112,
"end": 4121,
"loc": {
"start": {
"line": 124,
"column": 35
},
"end": {
"line": 124,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4121,
"end": 4122,
"loc": {
"start": {
"line": 124,
"column": 44
},
"end": {
"line": 124,
"column": 45
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4123,
"end": 4124,
"loc": {
"start": {
"line": 124,
"column": 46
},
"end": {
"line": 124,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 4134,
"end": 4140,
"loc": {
"start": {
"line": 125,
"column": 8
},
"end": {
"line": 125,
"column": 14
}
}
},
{
"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": 125,
"column": 14
},
"end": {
"line": 125,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeComponent",
"start": 4141,
"end": 4156,
"loc": {
"start": {
"line": 125,
"column": 15
},
"end": {
"line": 125,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4156,
"end": 4157,
"loc": {
"start": {
"line": 125,
"column": 30
},
"end": {
"line": 125,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "component",
"start": 4157,
"end": 4166,
"loc": {
"start": {
"line": 125,
"column": 31
},
"end": {
"line": 125,
"column": 40
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4166,
"end": 4167,
"loc": {
"start": {
"line": 125,
"column": 40
},
"end": {
"line": 125,
"column": 41
}
}
},
{
"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": 4168,
"end": 4172,
"loc": {
"start": {
"line": 125,
"column": 42
},
"end": {
"line": 125,
"column": 46
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4172,
"end": 4173,
"loc": {
"start": {
"line": 125,
"column": 46
},
"end": {
"line": 125,
"column": 47
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4173,
"end": 4174,
"loc": {
"start": {
"line": 125,
"column": 47
},
"end": {
"line": 125,
"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": 4184,
"end": 4189,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 4190,
"end": 4201,
"loc": {
"start": {
"line": 126,
"column": 14
},
"end": {
"line": 126,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4202,
"end": 4203,
"loc": {
"start": {
"line": 126,
"column": 26
},
"end": {
"line": 126,
"column": 27
}
}
},
{
"type": "CommentBlock",
"value": "* @type {typeof Component} ",
"start": 4204,
"end": 4235,
"loc": {
"start": {
"line": 126,
"column": 28
},
"end": {
"line": 126,
"column": 59
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4236,
"end": 4237,
"loc": {
"start": {
"line": 126,
"column": 60
},
"end": {
"line": 126,
"column": 61
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "component",
"start": 4237,
"end": 4246,
"loc": {
"start": {
"line": 126,
"column": 61
},
"end": {
"line": 126,
"column": 70
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4246,
"end": 4247,
"loc": {
"start": {
"line": 126,
"column": 70
},
"end": {
"line": 126,
"column": 71
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 4247,
"end": 4258,
"loc": {
"start": {
"line": 126,
"column": 71
},
"end": {
"line": 126,
"column": 82
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4258,
"end": 4259,
"loc": {
"start": {
"line": 126,
"column": 82
},
"end": {
"line": 126,
"column": 83
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4259,
"end": 4260,
"loc": {
"start": {
"line": 126,
"column": 83
},
"end": {
"line": 126,
"column": 84
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getId",
"start": 4260,
"end": 4265,
"loc": {
"start": {
"line": 126,
"column": 84
},
"end": {
"line": 126,
"column": 89
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4265,
"end": 4266,
"loc": {
"start": {
"line": 126,
"column": 89
},
"end": {
"line": 126,
"column": 90
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4266,
"end": 4267,
"loc": {
"start": {
"line": 126,
"column": 90
},
"end": {
"line": 126,
"column": 91
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4267,
"end": 4268,
"loc": {
"start": {
"line": 126,
"column": 91
},
"end": {
"line": 126,
"column": 92
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fastArrayDeleteValue",
"start": 4280,
"end": 4300,
"loc": {
"start": {
"line": 128,
"column": 8
},
"end": {
"line": 128,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4300,
"end": 4301,
"loc": {
"start": {
"line": 128,
"column": 28
},
"end": {
"line": 128,
"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": 4301,
"end": 4305,
"loc": {
"start": {
"line": 128,
"column": 29
},
"end": {
"line": 128,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4305,
"end": 4306,
"loc": {
"start": {
"line": 128,
"column": 33
},
"end": {
"line": 128,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentToEntity",
"start": 4306,
"end": 4323,
"loc": {
"start": {
"line": 128,
"column": 34
},
"end": {
"line": 128,
"column": 51
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4323,
"end": 4324,
"loc": {
"start": {
"line": 128,
"column": 51
},
"end": {
"line": 128,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 4324,
"end": 4335,
"loc": {
"start": {
"line": 128,
"column": 52
},
"end": {
"line": 128,
"column": 63
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4335,
"end": 4336,
"loc": {
"start": {
"line": 128,
"column": 63
},
"end": {
"line": 128,
"column": 64
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4336,
"end": 4337,
"loc": {
"start": {
"line": 128,
"column": 64
},
"end": {
"line": 128,
"column": 65
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 4338,
"end": 4344,
"loc": {
"start": {
"line": 128,
"column": 66
},
"end": {
"line": 128,
"column": 72
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4344,
"end": 4345,
"loc": {
"start": {
"line": 128,
"column": 72
},
"end": {
"line": 128,
"column": 73
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4345,
"end": 4346,
"loc": {
"start": {
"line": 128,
"column": 73
},
"end": {
"line": 128,
"column": 74
}
}
},
{
"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": 4356,
"end": 4360,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4360,
"end": 4361,
"loc": {
"start": {
"line": 129,
"column": 12
},
"end": {
"line": 129,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 4361,
"end": 4365,
"loc": {
"start": {
"line": 129,
"column": 13
},
"end": {
"line": 129,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4365,
"end": 4366,
"loc": {
"start": {
"line": 129,
"column": 17
},
"end": {
"line": 129,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "signals",
"start": 4366,
"end": 4373,
"loc": {
"start": {
"line": 129,
"column": 18
},
"end": {
"line": 129,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4373,
"end": 4374,
"loc": {
"start": {
"line": 129,
"column": 25
},
"end": {
"line": 129,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entityComponentRemoved",
"start": 4374,
"end": 4396,
"loc": {
"start": {
"line": 129,
"column": 26
},
"end": {
"line": 129,
"column": 48
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4396,
"end": 4397,
"loc": {
"start": {
"line": 129,
"column": 48
},
"end": {
"line": 129,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dispatch",
"start": 4397,
"end": 4405,
"loc": {
"start": {
"line": 129,
"column": 49
},
"end": {
"line": 129,
"column": 57
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4405,
"end": 4406,
"loc": {
"start": {
"line": 129,
"column": 57
},
"end": {
"line": 129,
"column": 58
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 4406,
"end": 4412,
"loc": {
"start": {
"line": 129,
"column": 58
},
"end": {
"line": 129,
"column": 64
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4412,
"end": 4413,
"loc": {
"start": {
"line": 129,
"column": 64
},
"end": {
"line": 129,
"column": 65
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4413,
"end": 4414,
"loc": {
"start": {
"line": 129,
"column": 65
},
"end": {
"line": 129,
"column": 66
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4420,
"end": 4421,
"loc": {
"start": {
"line": 130,
"column": 4
},
"end": {
"line": 130,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Finds an entity buy its uid, kinda slow since it loops over all entities\r\n * @param {number} uid\r\n * @param {boolean=} errorWhenNotFound\r\n * @returns {Entity}\r\n ",
"start": 4429,
"end": 4620,
"loc": {
"start": {
"line": 132,
"column": 4
},
"end": {
"line": 137,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findByUid",
"start": 4626,
"end": 4635,
"loc": {
"start": {
"line": 138,
"column": 4
},
"end": {
"line": 138,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4635,
"end": 4636,
"loc": {
"start": {
"line": 138,
"column": 13
},
"end": {
"line": 138,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 4636,
"end": 4639,
"loc": {
"start": {
"line": 138,
"column": 14
},
"end": {
"line": 138,
"column": 17
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4639,
"end": 4640,
"loc": {
"start": {
"line": 138,
"column": 17
},
"end": {
"line": 138,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "errorWhenNotFound",
"start": 4641,
"end": 4658,
"loc": {
"start": {
"line": 138,
"column": 19
},
"end": {
"line": 138,
"column": 36
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4659,
"end": 4660,
"loc": {
"start": {
"line": 138,
"column": 37
},
"end": {
"line": 138,
"column": 38
}
}
},
{
"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": 4661,
"end": 4665,
"loc": {
"start": {
"line": 138,
"column": 39
},
"end": {
"line": 138,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4665,
"end": 4666,
"loc": {
"start": {
"line": 138,
"column": 43
},
"end": {
"line": 138,
"column": 44
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4667,
"end": 4668,
"loc": {
"start": {
"line": 138,
"column": 45
},
"end": {
"line": 138,
"column": 46
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 4678,
"end": 4683,
"loc": {
"start": {
"line": 139,
"column": 8
},
"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": "arr",
"start": 4684,
"end": 4687,
"loc": {
"start": {
"line": 139,
"column": 14
},
"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": 4688,
"end": 4689,
"loc": {
"start": {
"line": 139,
"column": 18
},
"end": {
"line": 139,
"column": 19
}
}
},
{
"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": 4690,
"end": 4694,
"loc": {
"start": {
"line": 139,
"column": 20
},
"end": {
"line": 139,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4694,
"end": 4695,
"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": "entities",
"start": 4695,
"end": 4703,
"loc": {
"start": {
"line": 139,
"column": 25
},
"end": {
"line": 139,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4703,
"end": 4704,
"loc": {
"start": {
"line": 139,
"column": 33
},
"end": {
"line": 139,
"column": 34
}
}
},
{
"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": 4714,
"end": 4717,
"loc": {
"start": {
"line": 140,
"column": 8
},
"end": {
"line": 140,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4718,
"end": 4719,
"loc": {
"start": {
"line": 140,
"column": 12
},
"end": {
"line": 140,
"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": 4719,
"end": 4722,
"loc": {
"start": {
"line": 140,
"column": 13
},
"end": {
"line": 140,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 4723,
"end": 4724,
"loc": {
"start": {
"line": 140,
"column": 17
},
"end": {
"line": 140,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4725,
"end": 4726,
"loc": {
"start": {
"line": 140,
"column": 19
},
"end": {
"line": 140,
"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": 4727,
"end": 4728,
"loc": {
"start": {
"line": 140,
"column": 21
},
"end": {
"line": 140,
"column": 22
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4728,
"end": 4729,
"loc": {
"start": {
"line": 140,
"column": 22
},
"end": {
"line": 140,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "len",
"start": 4730,
"end": 4733,
"loc": {
"start": {
"line": 140,
"column": 24
},
"end": {
"line": 140,
"column": 27
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4734,
"end": 4735,
"loc": {
"start": {
"line": 140,
"column": 28
},
"end": {
"line": 140,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arr",
"start": 4736,
"end": 4739,
"loc": {
"start": {
"line": 140,
"column": 30
},
"end": {
"line": 140,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4739,
"end": 4740,
"loc": {
"start": {
"line": 140,
"column": 33
},
"end": {
"line": 140,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 4740,
"end": 4746,
"loc": {
"start": {
"line": 140,
"column": 34
},
"end": {
"line": 140,
"column": 40
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4746,
"end": 4747,
"loc": {
"start": {
"line": 140,
"column": 40
},
"end": {
"line": 140,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 4748,
"end": 4749,
"loc": {
"start": {
"line": 140,
"column": 42
},
"end": {
"line": 140,
"column": 43
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 4750,
"end": 4751,
"loc": {
"start": {
"line": 140,
"column": 44
},
"end": {
"line": 140,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "len",
"start": 4752,
"end": 4755,
"loc": {
"start": {
"line": 140,
"column": 46
},
"end": {
"line": 140,
"column": 49
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4755,
"end": 4756,
"loc": {
"start": {
"line": 140,
"column": 49
},
"end": {
"line": 140,
"column": 50
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 4757,
"end": 4759,
"loc": {
"start": {
"line": 140,
"column": 51
},
"end": {
"line": 140,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 4759,
"end": 4760,
"loc": {
"start": {
"line": 140,
"column": 53
},
"end": {
"line": 140,
"column": 54
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4760,
"end": 4761,
"loc": {
"start": {
"line": 140,
"column": 54
},
"end": {
"line": 140,
"column": 55
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4762,
"end": 4763,
"loc": {
"start": {
"line": 140,
"column": 56
},
"end": {
"line": 140,
"column": 57
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 4777,
"end": 4782,
"loc": {
"start": {
"line": 141,
"column": 12
},
"end": {
"line": 141,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 4783,
"end": 4789,
"loc": {
"start": {
"line": 141,
"column": 18
},
"end": {
"line": 141,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4790,
"end": 4791,
"loc": {
"start": {
"line": 141,
"column": 25
},
"end": {
"line": 141,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arr",
"start": 4792,
"end": 4795,
"loc": {
"start": {
"line": 141,
"column": 27
},
"end": {
"line": 141,
"column": 30
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4795,
"end": 4796,
"loc": {
"start": {
"line": 141,
"column": 30
},
"end": {
"line": 141,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 4796,
"end": 4797,
"loc": {
"start": {
"line": 141,
"column": 31
},
"end": {
"line": 141,
"column": 32
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4797,
"end": 4798,
"loc": {
"start": {
"line": 141,
"column": 32
},
"end": {
"line": 141,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4798,
"end": 4799,
"loc": {
"start": {
"line": 141,
"column": 33
},
"end": {
"line": 141,
"column": 34
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 4813,
"end": 4815,
"loc": {
"start": {
"line": 142,
"column": 12
},
"end": {
"line": 142,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4816,
"end": 4817,
"loc": {
"start": {
"line": 142,
"column": 15
},
"end": {
"line": 142,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 4817,
"end": 4823,
"loc": {
"start": {
"line": 142,
"column": 16
},
"end": {
"line": 142,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4823,
"end": 4824,
"loc": {
"start": {
"line": 142,
"column": 22
},
"end": {
"line": 142,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 4824,
"end": 4827,
"loc": {
"start": {
"line": 142,
"column": 23
},
"end": {
"line": 142,
"column": 26
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 4828,
"end": 4831,
"loc": {
"start": {
"line": 142,
"column": 27
},
"end": {
"line": 142,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 4832,
"end": 4835,
"loc": {
"start": {
"line": 142,
"column": 31
},
"end": {
"line": 142,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4835,
"end": 4836,
"loc": {
"start": {
"line": 142,
"column": 34
},
"end": {
"line": 142,
"column": 35
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4837,
"end": 4838,
"loc": {
"start": {
"line": 142,
"column": 36
},
"end": {
"line": 142,
"column": 37
}
}
},
{
"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": 4856,
"end": 4858,
"loc": {
"start": {
"line": 143,
"column": 16
},
"end": {
"line": 143,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4859,
"end": 4860,
"loc": {
"start": {
"line": 143,
"column": 19
},
"end": {
"line": 143,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 4860,
"end": 4866,
"loc": {
"start": {
"line": 143,
"column": 20
},
"end": {
"line": 143,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4866,
"end": 4867,
"loc": {
"start": {
"line": 143,
"column": 26
},
"end": {
"line": 143,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "queuedForDestroy",
"start": 4867,
"end": 4883,
"loc": {
"start": {
"line": 143,
"column": 27
},
"end": {
"line": 143,
"column": 43
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 4884,
"end": 4886,
"loc": {
"start": {
"line": 143,
"column": 44
},
"end": {
"line": 143,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 4887,
"end": 4893,
"loc": {
"start": {
"line": 143,
"column": 47
},
"end": {
"line": 143,
"column": 53
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4893,
"end": 4894,
"loc": {
"start": {
"line": 143,
"column": 53
},
"end": {
"line": 143,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyed",
"start": 4894,
"end": 4903,
"loc": {
"start": {
"line": 143,
"column": 54
},
"end": {
"line": 143,
"column": 63
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4903,
"end": 4904,
"loc": {
"start": {
"line": 143,
"column": 63
},
"end": {
"line": 143,
"column": 64
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4905,
"end": 4906,
"loc": {
"start": {
"line": 143,
"column": 65
},
"end": {
"line": 143,
"column": 66
}
}
},
{
"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": 4928,
"end": 4930,
"loc": {
"start": {
"line": 144,
"column": 20
},
"end": {
"line": 144,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4931,
"end": 4932,
"loc": {
"start": {
"line": 144,
"column": 23
},
"end": {
"line": 144,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "errorWhenNotFound",
"start": 4932,
"end": 4949,
"loc": {
"start": {
"line": 144,
"column": 24
},
"end": {
"line": 144,
"column": 41
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4949,
"end": 4950,
"loc": {
"start": {
"line": 144,
"column": 41
},
"end": {
"line": 144,
"column": 42
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4951,
"end": 4952,
"loc": {
"start": {
"line": 144,
"column": 43
},
"end": {
"line": 144,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "logger",
"start": 4978,
"end": 4984,
"loc": {
"start": {
"line": 145,
"column": 24
},
"end": {
"line": 145,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4984,
"end": 4985,
"loc": {
"start": {
"line": 145,
"column": 30
},
"end": {
"line": 145,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "warn",
"start": 4985,
"end": 4989,
"loc": {
"start": {
"line": 145,
"column": 31
},
"end": {
"line": 145,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4989,
"end": 4990,
"loc": {
"start": {
"line": 145,
"column": 35
},
"end": {
"line": 145,
"column": 36
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Entity with UID",
"start": 4990,
"end": 5007,
"loc": {
"start": {
"line": 145,
"column": 36
},
"end": {
"line": 145,
"column": 53
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5007,
"end": 5008,
"loc": {
"start": {
"line": 145,
"column": 53
},
"end": {
"line": 145,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 5009,
"end": 5012,
"loc": {
"start": {
"line": 145,
"column": 55
},
"end": {
"line": 145,
"column": 58
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5012,
"end": 5013,
"loc": {
"start": {
"line": 145,
"column": 58
},
"end": {
"line": 145,
"column": 59
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "not found (destroyed)",
"start": 5014,
"end": 5037,
"loc": {
"start": {
"line": 145,
"column": 60
},
"end": {
"line": 145,
"column": 83
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5037,
"end": 5038,
"loc": {
"start": {
"line": 145,
"column": 83
},
"end": {
"line": 145,
"column": 84
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5038,
"end": 5039,
"loc": {
"start": {
"line": 145,
"column": 84
},
"end": {
"line": 145,
"column": 85
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5061,
"end": 5062,
"loc": {
"start": {
"line": 146,
"column": 20
},
"end": {
"line": 146,
"column": 21
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 5084,
"end": 5090,
"loc": {
"start": {
"line": 147,
"column": 20
},
"end": {
"line": 147,
"column": 26
}
}
},
{
"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": 5091,
"end": 5095,
"loc": {
"start": {
"line": 147,
"column": 27
},
"end": {
"line": 147,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5095,
"end": 5096,
"loc": {
"start": {
"line": 147,
"column": 31
},
"end": {
"line": 147,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5114,
"end": 5115,
"loc": {
"start": {
"line": 148,
"column": 16
},
"end": {
"line": 148,
"column": 17
}
}
},
{
"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": 5133,
"end": 5139,
"loc": {
"start": {
"line": 149,
"column": 16
},
"end": {
"line": 149,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 5140,
"end": 5146,
"loc": {
"start": {
"line": 149,
"column": 23
},
"end": {
"line": 149,
"column": 29
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5146,
"end": 5147,
"loc": {
"start": {
"line": 149,
"column": 29
},
"end": {
"line": 149,
"column": 30
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5161,
"end": 5162,
"loc": {
"start": {
"line": 150,
"column": 12
},
"end": {
"line": 150,
"column": 13
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5172,
"end": 5173,
"loc": {
"start": {
"line": 151,
"column": 8
},
"end": {
"line": 151,
"column": 9
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 5183,
"end": 5185,
"loc": {
"start": {
"line": 152,
"column": 8
},
"end": {
"line": 152,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5186,
"end": 5187,
"loc": {
"start": {
"line": 152,
"column": 11
},
"end": {
"line": 152,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "errorWhenNotFound",
"start": 5187,
"end": 5204,
"loc": {
"start": {
"line": 152,
"column": 12
},
"end": {
"line": 152,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5204,
"end": 5205,
"loc": {
"start": {
"line": 152,
"column": 29
},
"end": {
"line": 152,
"column": 30
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5206,
"end": 5207,
"loc": {
"start": {
"line": 152,
"column": 31
},
"end": {
"line": 152,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "logger",
"start": 5221,
"end": 5227,
"loc": {
"start": {
"line": 153,
"column": 12
},
"end": {
"line": 153,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5227,
"end": 5228,
"loc": {
"start": {
"line": 153,
"column": 18
},
"end": {
"line": 153,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "warn",
"start": 5228,
"end": 5232,
"loc": {
"start": {
"line": 153,
"column": 19
},
"end": {
"line": 153,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5232,
"end": 5233,
"loc": {
"start": {
"line": 153,
"column": 23
},
"end": {
"line": 153,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Entity with UID",
"start": 5233,
"end": 5250,
"loc": {
"start": {
"line": 153,
"column": 24
},
"end": {
"line": 153,
"column": 41
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5250,
"end": 5251,
"loc": {
"start": {
"line": 153,
"column": 41
},
"end": {
"line": 153,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 5252,
"end": 5255,
"loc": {
"start": {
"line": 153,
"column": 43
},
"end": {
"line": 153,
"column": 46
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5255,
"end": 5256,
"loc": {
"start": {
"line": 153,
"column": 46
},
"end": {
"line": 153,
"column": 47
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "not found",
"start": 5257,
"end": 5268,
"loc": {
"start": {
"line": 153,
"column": 48
},
"end": {
"line": 153,
"column": 59
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5268,
"end": 5269,
"loc": {
"start": {
"line": 153,
"column": 59
},
"end": {
"line": 153,
"column": 60
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5269,
"end": 5270,
"loc": {
"start": {
"line": 153,
"column": 60
},
"end": {
"line": 153,
"column": 61
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5280,
"end": 5281,
"loc": {
"start": {
"line": 154,
"column": 8
},
"end": {
"line": 154,
"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": 5291,
"end": 5297,
"loc": {
"start": {
"line": 155,
"column": 8
},
"end": {
"line": 155,
"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": 5298,
"end": 5302,
"loc": {
"start": {
"line": 155,
"column": 15
},
"end": {
"line": 155,
"column": 19
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5302,
"end": 5303,
"loc": {
"start": {
"line": 155,
"column": 19
},
"end": {
"line": 155,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5309,
"end": 5310,
"loc": {
"start": {
"line": 156,
"column": 4
},
"end": {
"line": 156,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns a map which gives a mapping from UID to Entity.\r\n * This map is not updated.\r\n *\r\n * @returns {Map<number, Entity>}\r\n ",
"start": 5318,
"end": 5474,
"loc": {
"start": {
"line": 158,
"column": 4
},
"end": {
"line": 163,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getFrozenUidSearchMap",
"start": 5480,
"end": 5501,
"loc": {
"start": {
"line": 164,
"column": 4
},
"end": {
"line": 164,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5501,
"end": 5502,
"loc": {
"start": {
"line": 164,
"column": 25
},
"end": {
"line": 164,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5502,
"end": 5503,
"loc": {
"start": {
"line": 164,
"column": 26
},
"end": {
"line": 164,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5504,
"end": 5505,
"loc": {
"start": {
"line": 164,
"column": 28
},
"end": {
"line": 164,
"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": 5515,
"end": 5520,
"loc": {
"start": {
"line": 165,
"column": 8
},
"end": {
"line": 165,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "result",
"start": 5521,
"end": 5527,
"loc": {
"start": {
"line": 165,
"column": 14
},
"end": {
"line": 165,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 5528,
"end": 5529,
"loc": {
"start": {
"line": 165,
"column": 21
},
"end": {
"line": 165,
"column": 22
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 5530,
"end": 5533,
"loc": {
"start": {
"line": 165,
"column": 23
},
"end": {
"line": 165,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Map",
"start": 5534,
"end": 5537,
"loc": {
"start": {
"line": 165,
"column": 27
},
"end": {
"line": 165,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5537,
"end": 5538,
"loc": {
"start": {
"line": 165,
"column": 30
},
"end": {
"line": 165,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5538,
"end": 5539,
"loc": {
"start": {
"line": 165,
"column": 31
},
"end": {
"line": 165,
"column": 32
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5539,
"end": 5540,
"loc": {
"start": {
"line": 165,
"column": 32
},
"end": {
"line": 165,
"column": 33
}
}
},
{
"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": 5550,
"end": 5555,
"loc": {
"start": {
"line": 166,
"column": 8
},
"end": {
"line": 166,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "array",
"start": 5556,
"end": 5561,
"loc": {
"start": {
"line": 166,
"column": 14
},
"end": {
"line": 166,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 5562,
"end": 5563,
"loc": {
"start": {
"line": 166,
"column": 20
},
"end": {
"line": 166,
"column": 21
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 5564,
"end": 5568,
"loc": {
"start": {
"line": 166,
"column": 22
},
"end": {
"line": 166,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5568,
"end": 5569,
"loc": {
"start": {
"line": 166,
"column": 26
},
"end": {
"line": 166,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entities",
"start": 5569,
"end": 5577,
"loc": {
"start": {
"line": 166,
"column": 27
},
"end": {
"line": 166,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5577,
"end": 5578,
"loc": {
"start": {
"line": 166,
"column": 35
},
"end": {
"line": 166,
"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": 5588,
"end": 5591,
"loc": {
"start": {
"line": 167,
"column": 8
},
"end": {
"line": 167,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5592,
"end": 5593,
"loc": {
"start": {
"line": 167,
"column": 12
},
"end": {
"line": 167,
"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": 5593,
"end": 5596,
"loc": {
"start": {
"line": 167,
"column": 13
},
"end": {
"line": 167,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 5597,
"end": 5598,
"loc": {
"start": {
"line": 167,
"column": 17
},
"end": {
"line": 167,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 5599,
"end": 5600,
"loc": {
"start": {
"line": 167,
"column": 19
},
"end": {
"line": 167,
"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": 5601,
"end": 5602,
"loc": {
"start": {
"line": 167,
"column": 21
},
"end": {
"line": 167,
"column": 22
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5602,
"end": 5603,
"loc": {
"start": {
"line": 167,
"column": 22
},
"end": {
"line": 167,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "len",
"start": 5604,
"end": 5607,
"loc": {
"start": {
"line": 167,
"column": 24
},
"end": {
"line": 167,
"column": 27
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 5608,
"end": 5609,
"loc": {
"start": {
"line": 167,
"column": 28
},
"end": {
"line": 167,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "array",
"start": 5610,
"end": 5615,
"loc": {
"start": {
"line": 167,
"column": 30
},
"end": {
"line": 167,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5615,
"end": 5616,
"loc": {
"start": {
"line": 167,
"column": 35
},
"end": {
"line": 167,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 5616,
"end": 5622,
"loc": {
"start": {
"line": 167,
"column": 36
},
"end": {
"line": 167,
"column": 42
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5622,
"end": 5623,
"loc": {
"start": {
"line": 167,
"column": 42
},
"end": {
"line": 167,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 5624,
"end": 5625,
"loc": {
"start": {
"line": 167,
"column": 44
},
"end": {
"line": 167,
"column": 45
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 5626,
"end": 5627,
"loc": {
"start": {
"line": 167,
"column": 46
},
"end": {
"line": 167,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "len",
"start": 5628,
"end": 5631,
"loc": {
"start": {
"line": 167,
"column": 48
},
"end": {
"line": 167,
"column": 51
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5631,
"end": 5632,
"loc": {
"start": {
"line": 167,
"column": 51
},
"end": {
"line": 167,
"column": 52
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 5633,
"end": 5635,
"loc": {
"start": {
"line": 167,
"column": 53
},
"end": {
"line": 167,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 5635,
"end": 5636,
"loc": {
"start": {
"line": 167,
"column": 55
},
"end": {
"line": 167,
"column": 56
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5636,
"end": 5637,
"loc": {
"start": {
"line": 167,
"column": 56
},
"end": {
"line": 167,
"column": 57
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5638,
"end": 5639,
"loc": {
"start": {
"line": 167,
"column": 58
},
"end": {
"line": 167,
"column": 59
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 5653,
"end": 5658,
"loc": {
"start": {
"line": 168,
"column": 12
},
"end": {
"line": 168,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 5659,
"end": 5665,
"loc": {
"start": {
"line": 168,
"column": 18
},
"end": {
"line": 168,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 5666,
"end": 5667,
"loc": {
"start": {
"line": 168,
"column": 25
},
"end": {
"line": 168,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "array",
"start": 5668,
"end": 5673,
"loc": {
"start": {
"line": 168,
"column": 27
},
"end": {
"line": 168,
"column": 32
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5673,
"end": 5674,
"loc": {
"start": {
"line": 168,
"column": 32
},
"end": {
"line": 168,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 5674,
"end": 5675,
"loc": {
"start": {
"line": 168,
"column": 33
},
"end": {
"line": 168,
"column": 34
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5675,
"end": 5676,
"loc": {
"start": {
"line": 168,
"column": 34
},
"end": {
"line": 168,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5676,
"end": 5677,
"loc": {
"start": {
"line": 168,
"column": 35
},
"end": {
"line": 168,
"column": 36
}
}
},
{
"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": 5691,
"end": 5693,
"loc": {
"start": {
"line": 169,
"column": 12
},
"end": {
"line": 169,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5694,
"end": 5695,
"loc": {
"start": {
"line": 169,
"column": 15
},
"end": {
"line": 169,
"column": 16
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 5695,
"end": 5696,
"loc": {
"start": {
"line": 169,
"column": 16
},
"end": {
"line": 169,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 5696,
"end": 5702,
"loc": {
"start": {
"line": 169,
"column": 17
},
"end": {
"line": 169,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5702,
"end": 5703,
"loc": {
"start": {
"line": 169,
"column": 23
},
"end": {
"line": 169,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "queuedForDestroy",
"start": 5703,
"end": 5719,
"loc": {
"start": {
"line": 169,
"column": 24
},
"end": {
"line": 169,
"column": 40
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 5720,
"end": 5722,
"loc": {
"start": {
"line": 169,
"column": 41
},
"end": {
"line": 169,
"column": 43
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 5723,
"end": 5724,
"loc": {
"start": {
"line": 169,
"column": 44
},
"end": {
"line": 169,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 5724,
"end": 5730,
"loc": {
"start": {
"line": 169,
"column": 45
},
"end": {
"line": 169,
"column": 51
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5730,
"end": 5731,
"loc": {
"start": {
"line": 169,
"column": 51
},
"end": {
"line": 169,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyed",
"start": 5731,
"end": 5740,
"loc": {
"start": {
"line": 169,
"column": 52
},
"end": {
"line": 169,
"column": 61
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5740,
"end": 5741,
"loc": {
"start": {
"line": 169,
"column": 61
},
"end": {
"line": 169,
"column": 62
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5742,
"end": 5743,
"loc": {
"start": {
"line": 169,
"column": 63
},
"end": {
"line": 169,
"column": 64
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "result",
"start": 5761,
"end": 5767,
"loc": {
"start": {
"line": 170,
"column": 16
},
"end": {
"line": 170,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5767,
"end": 5768,
"loc": {
"start": {
"line": 170,
"column": 22
},
"end": {
"line": 170,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "set",
"start": 5768,
"end": 5771,
"loc": {
"start": {
"line": 170,
"column": 23
},
"end": {
"line": 170,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5771,
"end": 5772,
"loc": {
"start": {
"line": 170,
"column": 26
},
"end": {
"line": 170,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 5772,
"end": 5778,
"loc": {
"start": {
"line": 170,
"column": 27
},
"end": {
"line": 170,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5778,
"end": 5779,
"loc": {
"start": {
"line": 170,
"column": 33
},
"end": {
"line": 170,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 5779,
"end": 5782,
"loc": {
"start": {
"line": 170,
"column": 34
},
"end": {
"line": 170,
"column": 37
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5782,
"end": 5783,
"loc": {
"start": {
"line": 170,
"column": 37
},
"end": {
"line": 170,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 5784,
"end": 5790,
"loc": {
"start": {
"line": 170,
"column": 39
},
"end": {
"line": 170,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5790,
"end": 5791,
"loc": {
"start": {
"line": 170,
"column": 45
},
"end": {
"line": 170,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5791,
"end": 5792,
"loc": {
"start": {
"line": 170,
"column": 46
},
"end": {
"line": 170,
"column": 47
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5806,
"end": 5807,
"loc": {
"start": {
"line": 171,
"column": 12
},
"end": {
"line": 171,
"column": 13
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5817,
"end": 5818,
"loc": {
"start": {
"line": 172,
"column": 8
},
"end": {
"line": 172,
"column": 9
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 5828,
"end": 5834,
"loc": {
"start": {
"line": 173,
"column": 8
},
"end": {
"line": 173,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "result",
"start": 5835,
"end": 5841,
"loc": {
"start": {
"line": 173,
"column": 15
},
"end": {
"line": 173,
"column": 21
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5841,
"end": 5842,
"loc": {
"start": {
"line": 173,
"column": 21
},
"end": {
"line": 173,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5848,
"end": 5849,
"loc": {
"start": {
"line": 174,
"column": 4
},
"end": {
"line": 174,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns all entities having the given component\r\n * @param {typeof Component} componentHandle\r\n * @returns {Array<Entity>} entities\r\n ",
"start": 5857,
"end": 6017,
"loc": {
"start": {
"line": 176,
"column": 4
},
"end": {
"line": 180,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getAllWithComponent",
"start": 6023,
"end": 6042,
"loc": {
"start": {
"line": 181,
"column": 4
},
"end": {
"line": 181,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6042,
"end": 6043,
"loc": {
"start": {
"line": 181,
"column": 23
},
"end": {
"line": 181,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentHandle",
"start": 6043,
"end": 6058,
"loc": {
"start": {
"line": 181,
"column": 24
},
"end": {
"line": 181,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6058,
"end": 6059,
"loc": {
"start": {
"line": 181,
"column": 39
},
"end": {
"line": 181,
"column": 40
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6060,
"end": 6061,
"loc": {
"start": {
"line": 181,
"column": 41
},
"end": {
"line": 181,
"column": 42
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 6071,
"end": 6077,
"loc": {
"start": {
"line": 182,
"column": 8
},
"end": {
"line": 182,
"column": 14
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6078,
"end": 6082,
"loc": {
"start": {
"line": 182,
"column": 15
},
"end": {
"line": 182,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6082,
"end": 6083,
"loc": {
"start": {
"line": 182,
"column": 19
},
"end": {
"line": 182,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentToEntity",
"start": 6083,
"end": 6100,
"loc": {
"start": {
"line": 182,
"column": 20
},
"end": {
"line": 182,
"column": 37
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6100,
"end": 6101,
"loc": {
"start": {
"line": 182,
"column": 37
},
"end": {
"line": 182,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentHandle",
"start": 6101,
"end": 6116,
"loc": {
"start": {
"line": 182,
"column": 38
},
"end": {
"line": 182,
"column": 53
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6116,
"end": 6117,
"loc": {
"start": {
"line": 182,
"column": 53
},
"end": {
"line": 182,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getId",
"start": 6117,
"end": 6122,
"loc": {
"start": {
"line": 182,
"column": 54
},
"end": {
"line": 182,
"column": 59
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6122,
"end": 6123,
"loc": {
"start": {
"line": 182,
"column": 59
},
"end": {
"line": 182,
"column": 60
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6123,
"end": 6124,
"loc": {
"start": {
"line": 182,
"column": 60
},
"end": {
"line": 182,
"column": 61
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6124,
"end": 6125,
"loc": {
"start": {
"line": 182,
"column": 61
},
"end": {
"line": 182,
"column": 62
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 6126,
"end": 6128,
"loc": {
"start": {
"line": 182,
"column": 63
},
"end": {
"line": 182,
"column": 65
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6129,
"end": 6130,
"loc": {
"start": {
"line": 182,
"column": 66
},
"end": {
"line": 182,
"column": 67
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6130,
"end": 6131,
"loc": {
"start": {
"line": 182,
"column": 67
},
"end": {
"line": 182,
"column": 68
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6131,
"end": 6132,
"loc": {
"start": {
"line": 182,
"column": 68
},
"end": {
"line": 182,
"column": 69
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6138,
"end": 6139,
"loc": {
"start": {
"line": 183,
"column": 4
},
"end": {
"line": 183,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Unregisters all components of an entity from the component to entity mapping\r\n * @param {Entity} entity\r\n ",
"start": 6147,
"end": 6275,
"loc": {
"start": {
"line": 185,
"column": 4
},
"end": {
"line": 188,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "unregisterEntityComponents",
"start": 6281,
"end": 6307,
"loc": {
"start": {
"line": 189,
"column": 4
},
"end": {
"line": 189,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6307,
"end": 6308,
"loc": {
"start": {
"line": 189,
"column": 30
},
"end": {
"line": 189,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 6308,
"end": 6314,
"loc": {
"start": {
"line": 189,
"column": 31
},
"end": {
"line": 189,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6314,
"end": 6315,
"loc": {
"start": {
"line": 189,
"column": 37
},
"end": {
"line": 189,
"column": 38
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6316,
"end": 6317,
"loc": {
"start": {
"line": 189,
"column": 39
},
"end": {
"line": 189,
"column": 40
}
}
},
{
"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": 6327,
"end": 6330,
"loc": {
"start": {
"line": 190,
"column": 8
},
"end": {
"line": 190,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6331,
"end": 6332,
"loc": {
"start": {
"line": 190,
"column": 12
},
"end": {
"line": 190,
"column": 13
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 6332,
"end": 6337,
"loc": {
"start": {
"line": 190,
"column": 13
},
"end": {
"line": 190,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 6338,
"end": 6349,
"loc": {
"start": {
"line": 190,
"column": 19
},
"end": {
"line": 190,
"column": 30
}
}
},
{
"type": {
"label": "in",
"keyword": "in",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "in",
"start": 6350,
"end": 6352,
"loc": {
"start": {
"line": 190,
"column": 31
},
"end": {
"line": 190,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 6353,
"end": 6359,
"loc": {
"start": {
"line": 190,
"column": 34
},
"end": {
"line": 190,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6359,
"end": 6360,
"loc": {
"start": {
"line": 190,
"column": 40
},
"end": {
"line": 190,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "components",
"start": 6360,
"end": 6370,
"loc": {
"start": {
"line": 190,
"column": 41
},
"end": {
"line": 190,
"column": 51
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6370,
"end": 6371,
"loc": {
"start": {
"line": 190,
"column": 51
},
"end": {
"line": 190,
"column": 52
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6372,
"end": 6373,
"loc": {
"start": {
"line": 190,
"column": 53
},
"end": {
"line": 190,
"column": 54
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 6387,
"end": 6389,
"loc": {
"start": {
"line": 191,
"column": 12
},
"end": {
"line": 191,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6390,
"end": 6391,
"loc": {
"start": {
"line": 191,
"column": 15
},
"end": {
"line": 191,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 6391,
"end": 6397,
"loc": {
"start": {
"line": 191,
"column": 16
},
"end": {
"line": 191,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6397,
"end": 6398,
"loc": {
"start": {
"line": 191,
"column": 22
},
"end": {
"line": 191,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "components",
"start": 6398,
"end": 6408,
"loc": {
"start": {
"line": 191,
"column": 23
},
"end": {
"line": 191,
"column": 33
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6408,
"end": 6409,
"loc": {
"start": {
"line": 191,
"column": 33
},
"end": {
"line": 191,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 6409,
"end": 6420,
"loc": {
"start": {
"line": 191,
"column": 34
},
"end": {
"line": 191,
"column": 45
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6420,
"end": 6421,
"loc": {
"start": {
"line": 191,
"column": 45
},
"end": {
"line": 191,
"column": 46
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6421,
"end": 6422,
"loc": {
"start": {
"line": 191,
"column": 46
},
"end": {
"line": 191,
"column": 47
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6423,
"end": 6424,
"loc": {
"start": {
"line": 191,
"column": 48
},
"end": {
"line": 191,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arrayDeleteValue",
"start": 6442,
"end": 6458,
"loc": {
"start": {
"line": 192,
"column": 16
},
"end": {
"line": 192,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6458,
"end": 6459,
"loc": {
"start": {
"line": 192,
"column": 32
},
"end": {
"line": 192,
"column": 33
}
}
},
{
"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": 6459,
"end": 6463,
"loc": {
"start": {
"line": 192,
"column": 33
},
"end": {
"line": 192,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6463,
"end": 6464,
"loc": {
"start": {
"line": 192,
"column": 37
},
"end": {
"line": 192,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentToEntity",
"start": 6464,
"end": 6481,
"loc": {
"start": {
"line": 192,
"column": 38
},
"end": {
"line": 192,
"column": 55
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6481,
"end": 6482,
"loc": {
"start": {
"line": 192,
"column": 55
},
"end": {
"line": 192,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "componentId",
"start": 6482,
"end": 6493,
"loc": {
"start": {
"line": 192,
"column": 56
},
"end": {
"line": 192,
"column": 67
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6493,
"end": 6494,
"loc": {
"start": {
"line": 192,
"column": 67
},
"end": {
"line": 192,
"column": 68
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6494,
"end": 6495,
"loc": {
"start": {
"line": 192,
"column": 68
},
"end": {
"line": 192,
"column": 69
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 6496,
"end": 6502,
"loc": {
"start": {
"line": 192,
"column": 70
},
"end": {
"line": 192,
"column": 76
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6502,
"end": 6503,
"loc": {
"start": {
"line": 192,
"column": 76
},
"end": {
"line": 192,
"column": 77
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6503,
"end": 6504,
"loc": {
"start": {
"line": 192,
"column": 77
},
"end": {
"line": 192,
"column": 78
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6518,
"end": 6519,
"loc": {
"start": {
"line": 193,
"column": 12
},
"end": {
"line": 193,
"column": 13
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6529,
"end": 6530,
"loc": {
"start": {
"line": 194,
"column": 8
},
"end": {
"line": 194,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6536,
"end": 6537,
"loc": {
"start": {
"line": 195,
"column": 4
},
"end": {
"line": 195,
"column": 5
}
}
},
{
"type": "CommentLine",
"value": " Processes the entities to destroy and actually destroys them",
"start": 6545,
"end": 6608,
"loc": {
"start": {
"line": 197,
"column": 4
},
"end": {
"line": 197,
"column": 67
}
}
},
{
"type": "CommentBlock",
"value": " eslint-disable max-statements ",
"start": 6614,
"end": 6649,
"loc": {
"start": {
"line": 198,
"column": 4
},
"end": {
"line": 198,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "processDestroyList",
"start": 6655,
"end": 6673,
"loc": {
"start": {
"line": 199,
"column": 4
},
"end": {
"line": 199,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6673,
"end": 6674,
"loc": {
"start": {
"line": 199,
"column": 22
},
"end": {
"line": 199,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6674,
"end": 6675,
"loc": {
"start": {
"line": 199,
"column": 23
},
"end": {
"line": 199,
"column": 24
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6676,
"end": 6677,
"loc": {
"start": {
"line": 199,
"column": 25
},
"end": {
"line": 199,
"column": 26
}
}
},
{
"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": 6687,
"end": 6690,
"loc": {
"start": {
"line": 200,
"column": 8
},
"end": {
"line": 200,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6691,
"end": 6692,
"loc": {
"start": {
"line": 200,
"column": 12
},
"end": {
"line": 200,
"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": 6692,
"end": 6695,
"loc": {
"start": {
"line": 200,
"column": 13
},
"end": {
"line": 200,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 6696,
"end": 6697,
"loc": {
"start": {
"line": 200,
"column": 17
},
"end": {
"line": 200,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6698,
"end": 6699,
"loc": {
"start": {
"line": 200,
"column": 19
},
"end": {
"line": 200,
"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": 6700,
"end": 6701,
"loc": {
"start": {
"line": 200,
"column": 21
},
"end": {
"line": 200,
"column": 22
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6701,
"end": 6702,
"loc": {
"start": {
"line": 200,
"column": 22
},
"end": {
"line": 200,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 6703,
"end": 6704,
"loc": {
"start": {
"line": 200,
"column": 24
},
"end": {
"line": 200,
"column": 25
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 6705,
"end": 6706,
"loc": {
"start": {
"line": 200,
"column": 26
},
"end": {
"line": 200,
"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": 6707,
"end": 6711,
"loc": {
"start": {
"line": 200,
"column": 28
},
"end": {
"line": 200,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6711,
"end": 6712,
"loc": {
"start": {
"line": 200,
"column": 32
},
"end": {
"line": 200,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyList",
"start": 6712,
"end": 6723,
"loc": {
"start": {
"line": 200,
"column": 33
},
"end": {
"line": 200,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6723,
"end": 6724,
"loc": {
"start": {
"line": 200,
"column": 44
},
"end": {
"line": 200,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 6724,
"end": 6730,
"loc": {
"start": {
"line": 200,
"column": 45
},
"end": {
"line": 200,
"column": 51
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6730,
"end": 6731,
"loc": {
"start": {
"line": 200,
"column": 51
},
"end": {
"line": 200,
"column": 52
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 6732,
"end": 6734,
"loc": {
"start": {
"line": 200,
"column": 53
},
"end": {
"line": 200,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 6734,
"end": 6735,
"loc": {
"start": {
"line": 200,
"column": 55
},
"end": {
"line": 200,
"column": 56
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6735,
"end": 6736,
"loc": {
"start": {
"line": 200,
"column": 56
},
"end": {
"line": 200,
"column": 57
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6737,
"end": 6738,
"loc": {
"start": {
"line": 200,
"column": 58
},
"end": {
"line": 200,
"column": 59
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 6752,
"end": 6757,
"loc": {
"start": {
"line": 201,
"column": 12
},
"end": {
"line": 201,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 6758,
"end": 6764,
"loc": {
"start": {
"line": 201,
"column": 18
},
"end": {
"line": 201,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6765,
"end": 6766,
"loc": {
"start": {
"line": 201,
"column": 25
},
"end": {
"line": 201,
"column": 26
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6767,
"end": 6771,
"loc": {
"start": {
"line": 201,
"column": 27
},
"end": {
"line": 201,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6771,
"end": 6772,
"loc": {
"start": {
"line": 201,
"column": 31
},
"end": {
"line": 201,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyList",
"start": 6772,
"end": 6783,
"loc": {
"start": {
"line": 201,
"column": 32
},
"end": {
"line": 201,
"column": 43
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6783,
"end": 6784,
"loc": {
"start": {
"line": 201,
"column": 43
},
"end": {
"line": 201,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 6784,
"end": 6785,
"loc": {
"start": {
"line": 201,
"column": 44
},
"end": {
"line": 201,
"column": 45
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6785,
"end": 6786,
"loc": {
"start": {
"line": 201,
"column": 45
},
"end": {
"line": 201,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6786,
"end": 6787,
"loc": {
"start": {
"line": 201,
"column": 46
},
"end": {
"line": 201,
"column": 47
}
}
},
{
"type": "CommentLine",
"value": " Remove from entities list",
"start": 6803,
"end": 6831,
"loc": {
"start": {
"line": 203,
"column": 12
},
"end": {
"line": 203,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arrayDeleteValue",
"start": 6845,
"end": 6861,
"loc": {
"start": {
"line": 204,
"column": 12
},
"end": {
"line": 204,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6861,
"end": 6862,
"loc": {
"start": {
"line": 204,
"column": 28
},
"end": {
"line": 204,
"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": 6862,
"end": 6866,
"loc": {
"start": {
"line": 204,
"column": 29
},
"end": {
"line": 204,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6866,
"end": 6867,
"loc": {
"start": {
"line": 204,
"column": 33
},
"end": {
"line": 204,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entities",
"start": 6867,
"end": 6875,
"loc": {
"start": {
"line": 204,
"column": 34
},
"end": {
"line": 204,
"column": 42
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6875,
"end": 6876,
"loc": {
"start": {
"line": 204,
"column": 42
},
"end": {
"line": 204,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 6877,
"end": 6883,
"loc": {
"start": {
"line": 204,
"column": 44
},
"end": {
"line": 204,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6883,
"end": 6884,
"loc": {
"start": {
"line": 204,
"column": 50
},
"end": {
"line": 204,
"column": 51
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6884,
"end": 6885,
"loc": {
"start": {
"line": 204,
"column": 51
},
"end": {
"line": 204,
"column": 52
}
}
},
{
"type": "CommentLine",
"value": " Remove from componentToEntity list",
"start": 6901,
"end": 6938,
"loc": {
"start": {
"line": 206,
"column": 12
},
"end": {
"line": 206,
"column": 49
}
}
},
{
"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": 6952,
"end": 6956,
"loc": {
"start": {
"line": 207,
"column": 12
},
"end": {
"line": 207,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6956,
"end": 6957,
"loc": {
"start": {
"line": 207,
"column": 16
},
"end": {
"line": 207,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "unregisterEntityComponents",
"start": 6957,
"end": 6983,
"loc": {
"start": {
"line": 207,
"column": 17
},
"end": {
"line": 207,
"column": 43
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6983,
"end": 6984,
"loc": {
"start": {
"line": 207,
"column": 43
},
"end": {
"line": 207,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 6984,
"end": 6990,
"loc": {
"start": {
"line": 207,
"column": 44
},
"end": {
"line": 207,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6990,
"end": 6991,
"loc": {
"start": {
"line": 207,
"column": 50
},
"end": {
"line": 207,
"column": 51
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6991,
"end": 6992,
"loc": {
"start": {
"line": 207,
"column": 51
},
"end": {
"line": 207,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 7008,
"end": 7014,
"loc": {
"start": {
"line": 209,
"column": 12
},
"end": {
"line": 209,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7014,
"end": 7015,
"loc": {
"start": {
"line": 209,
"column": 18
},
"end": {
"line": 209,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "registered",
"start": 7015,
"end": 7025,
"loc": {
"start": {
"line": 209,
"column": 19
},
"end": {
"line": 209,
"column": 29
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 7026,
"end": 7027,
"loc": {
"start": {
"line": 209,
"column": 30
},
"end": {
"line": 209,
"column": 31
}
}
},
{
"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": 7028,
"end": 7033,
"loc": {
"start": {
"line": 209,
"column": 32
},
"end": {
"line": 209,
"column": 37
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7033,
"end": 7034,
"loc": {
"start": {
"line": 209,
"column": 37
},
"end": {
"line": 209,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 7048,
"end": 7054,
"loc": {
"start": {
"line": 210,
"column": 12
},
"end": {
"line": 210,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7054,
"end": 7055,
"loc": {
"start": {
"line": 210,
"column": 18
},
"end": {
"line": 210,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyed",
"start": 7055,
"end": 7064,
"loc": {
"start": {
"line": 210,
"column": 19
},
"end": {
"line": 210,
"column": 28
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 7065,
"end": 7066,
"loc": {
"start": {
"line": 210,
"column": 29
},
"end": {
"line": 210,
"column": 30
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 7067,
"end": 7071,
"loc": {
"start": {
"line": 210,
"column": 31
},
"end": {
"line": 210,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7071,
"end": 7072,
"loc": {
"start": {
"line": 210,
"column": 35
},
"end": {
"line": 210,
"column": 36
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 7088,
"end": 7092,
"loc": {
"start": {
"line": 212,
"column": 12
},
"end": {
"line": 212,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7092,
"end": 7093,
"loc": {
"start": {
"line": 212,
"column": 16
},
"end": {
"line": 212,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 7093,
"end": 7097,
"loc": {
"start": {
"line": 212,
"column": 17
},
"end": {
"line": 212,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7097,
"end": 7098,
"loc": {
"start": {
"line": 212,
"column": 21
},
"end": {
"line": 212,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "signals",
"start": 7098,
"end": 7105,
"loc": {
"start": {
"line": 212,
"column": 22
},
"end": {
"line": 212,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7105,
"end": 7106,
"loc": {
"start": {
"line": 212,
"column": 29
},
"end": {
"line": 212,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entityDestroyed",
"start": 7106,
"end": 7121,
"loc": {
"start": {
"line": 212,
"column": 30
},
"end": {
"line": 212,
"column": 45
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7121,
"end": 7122,
"loc": {
"start": {
"line": 212,
"column": 45
},
"end": {
"line": 212,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dispatch",
"start": 7122,
"end": 7130,
"loc": {
"start": {
"line": 212,
"column": 46
},
"end": {
"line": 212,
"column": 54
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7130,
"end": 7131,
"loc": {
"start": {
"line": 212,
"column": 54
},
"end": {
"line": 212,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 7131,
"end": 7137,
"loc": {
"start": {
"line": 212,
"column": 55
},
"end": {
"line": 212,
"column": 61
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7137,
"end": 7138,
"loc": {
"start": {
"line": 212,
"column": 61
},
"end": {
"line": 212,
"column": 62
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7138,
"end": 7139,
"loc": {
"start": {
"line": 212,
"column": 62
},
"end": {
"line": 212,
"column": 63
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7149,
"end": 7150,
"loc": {
"start": {
"line": 213,
"column": 8
},
"end": {
"line": 213,
"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": 7162,
"end": 7166,
"loc": {
"start": {
"line": 215,
"column": 8
},
"end": {
"line": 215,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7166,
"end": 7167,
"loc": {
"start": {
"line": 215,
"column": 12
},
"end": {
"line": 215,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyList",
"start": 7167,
"end": 7178,
"loc": {
"start": {
"line": 215,
"column": 13
},
"end": {
"line": 215,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 7179,
"end": 7180,
"loc": {
"start": {
"line": 215,
"column": 25
},
"end": {
"line": 215,
"column": 26
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7181,
"end": 7182,
"loc": {
"start": {
"line": 215,
"column": 27
},
"end": {
"line": 215,
"column": 28
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7182,
"end": 7183,
"loc": {
"start": {
"line": 215,
"column": 28
},
"end": {
"line": 215,
"column": 29
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7183,
"end": 7184,
"loc": {
"start": {
"line": 215,
"column": 29
},
"end": {
"line": 215,
"column": 30
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7190,
"end": 7191,
"loc": {
"start": {
"line": 216,
"column": 4
},
"end": {
"line": 216,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Queues an entity for destruction\r\n * @param {Entity} entity\r\n ",
"start": 7199,
"end": 7283,
"loc": {
"start": {
"line": 218,
"column": 4
},
"end": {
"line": 221,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyEntity",
"start": 7289,
"end": 7302,
"loc": {
"start": {
"line": 222,
"column": 4
},
"end": {
"line": 222,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7302,
"end": 7303,
"loc": {
"start": {
"line": 222,
"column": 17
},
"end": {
"line": 222,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 7303,
"end": 7309,
"loc": {
"start": {
"line": 222,
"column": 18
},
"end": {
"line": 222,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7309,
"end": 7310,
"loc": {
"start": {
"line": 222,
"column": 24
},
"end": {
"line": 222,
"column": 25
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7311,
"end": 7312,
"loc": {
"start": {
"line": 222,
"column": 26
},
"end": {
"line": 222,
"column": 27
}
}
},
{
"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": 7322,
"end": 7324,
"loc": {
"start": {
"line": 223,
"column": 8
},
"end": {
"line": 223,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7325,
"end": 7326,
"loc": {
"start": {
"line": 223,
"column": 11
},
"end": {
"line": 223,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 7326,
"end": 7332,
"loc": {
"start": {
"line": 223,
"column": 12
},
"end": {
"line": 223,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7332,
"end": 7333,
"loc": {
"start": {
"line": 223,
"column": 18
},
"end": {
"line": 223,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyed",
"start": 7333,
"end": 7342,
"loc": {
"start": {
"line": 223,
"column": 19
},
"end": {
"line": 223,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7342,
"end": 7343,
"loc": {
"start": {
"line": 223,
"column": 28
},
"end": {
"line": 223,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7344,
"end": 7345,
"loc": {
"start": {
"line": 223,
"column": 30
},
"end": {
"line": 223,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "logger",
"start": 7359,
"end": 7365,
"loc": {
"start": {
"line": 224,
"column": 12
},
"end": {
"line": 224,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7365,
"end": 7366,
"loc": {
"start": {
"line": 224,
"column": 18
},
"end": {
"line": 224,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "error",
"start": 7366,
"end": 7371,
"loc": {
"start": {
"line": 224,
"column": 19
},
"end": {
"line": 224,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7371,
"end": 7372,
"loc": {
"start": {
"line": 224,
"column": 24
},
"end": {
"line": 224,
"column": 25
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Tried to destroy already destroyed entity:",
"start": 7372,
"end": 7416,
"loc": {
"start": {
"line": 224,
"column": 25
},
"end": {
"line": 224,
"column": 69
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7416,
"end": 7417,
"loc": {
"start": {
"line": 224,
"column": 69
},
"end": {
"line": 224,
"column": 70
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 7418,
"end": 7424,
"loc": {
"start": {
"line": 224,
"column": 71
},
"end": {
"line": 224,
"column": 77
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7424,
"end": 7425,
"loc": {
"start": {
"line": 224,
"column": 77
},
"end": {
"line": 224,
"column": 78
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 7425,
"end": 7428,
"loc": {
"start": {
"line": 224,
"column": 78
},
"end": {
"line": 224,
"column": 81
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7428,
"end": 7429,
"loc": {
"start": {
"line": 224,
"column": 81
},
"end": {
"line": 224,
"column": 82
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7429,
"end": 7430,
"loc": {
"start": {
"line": 224,
"column": 82
},
"end": {
"line": 224,
"column": 83
}
}
},
{
"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": 7444,
"end": 7450,
"loc": {
"start": {
"line": 225,
"column": 12
},
"end": {
"line": 225,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7450,
"end": 7451,
"loc": {
"start": {
"line": 225,
"column": 18
},
"end": {
"line": 225,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7461,
"end": 7462,
"loc": {
"start": {
"line": 226,
"column": 8
},
"end": {
"line": 226,
"column": 9
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 7474,
"end": 7476,
"loc": {
"start": {
"line": 228,
"column": 8
},
"end": {
"line": 228,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7477,
"end": 7478,
"loc": {
"start": {
"line": 228,
"column": 11
},
"end": {
"line": 228,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 7478,
"end": 7484,
"loc": {
"start": {
"line": 228,
"column": 12
},
"end": {
"line": 228,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7484,
"end": 7485,
"loc": {
"start": {
"line": 228,
"column": 18
},
"end": {
"line": 228,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "queuedForDestroy",
"start": 7485,
"end": 7501,
"loc": {
"start": {
"line": 228,
"column": 19
},
"end": {
"line": 228,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7501,
"end": 7502,
"loc": {
"start": {
"line": 228,
"column": 35
},
"end": {
"line": 228,
"column": 36
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7503,
"end": 7504,
"loc": {
"start": {
"line": 228,
"column": 37
},
"end": {
"line": 228,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "logger",
"start": 7518,
"end": 7524,
"loc": {
"start": {
"line": 229,
"column": 12
},
"end": {
"line": 229,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7524,
"end": 7525,
"loc": {
"start": {
"line": 229,
"column": 18
},
"end": {
"line": 229,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "error",
"start": 7525,
"end": 7530,
"loc": {
"start": {
"line": 229,
"column": 19
},
"end": {
"line": 229,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7530,
"end": 7531,
"loc": {
"start": {
"line": 229,
"column": 24
},
"end": {
"line": 229,
"column": 25
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Trying to destroy entity which is already queued for destroy!",
"start": 7531,
"end": 7594,
"loc": {
"start": {
"line": 229,
"column": 25
},
"end": {
"line": 229,
"column": 88
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7594,
"end": 7595,
"loc": {
"start": {
"line": 229,
"column": 88
},
"end": {
"line": 229,
"column": 89
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 7596,
"end": 7602,
"loc": {
"start": {
"line": 229,
"column": 90
},
"end": {
"line": 229,
"column": 96
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7602,
"end": 7603,
"loc": {
"start": {
"line": 229,
"column": 96
},
"end": {
"line": 229,
"column": 97
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uid",
"start": 7603,
"end": 7606,
"loc": {
"start": {
"line": 229,
"column": 97
},
"end": {
"line": 229,
"column": 100
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7606,
"end": 7607,
"loc": {
"start": {
"line": 229,
"column": 100
},
"end": {
"line": 229,
"column": 101
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7607,
"end": 7608,
"loc": {
"start": {
"line": 229,
"column": 101
},
"end": {
"line": 229,
"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": 7622,
"end": 7628,
"loc": {
"start": {
"line": 230,
"column": 12
},
"end": {
"line": 230,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7628,
"end": 7629,
"loc": {
"start": {
"line": 230,
"column": 18
},
"end": {
"line": 230,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7639,
"end": 7640,
"loc": {
"start": {
"line": 231,
"column": 8
},
"end": {
"line": 231,
"column": 9
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 7652,
"end": 7654,
"loc": {
"start": {
"line": 233,
"column": 8
},
"end": {
"line": 233,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7655,
"end": 7656,
"loc": {
"start": {
"line": 233,
"column": 11
},
"end": {
"line": 233,
"column": 12
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 7656,
"end": 7660,
"loc": {
"start": {
"line": 233,
"column": 12
},
"end": {
"line": 233,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7660,
"end": 7661,
"loc": {
"start": {
"line": 233,
"column": 16
},
"end": {
"line": 233,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyList",
"start": 7661,
"end": 7672,
"loc": {
"start": {
"line": 233,
"column": 17
},
"end": {
"line": 233,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7672,
"end": 7673,
"loc": {
"start": {
"line": 233,
"column": 28
},
"end": {
"line": 233,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "indexOf",
"start": 7673,
"end": 7680,
"loc": {
"start": {
"line": 233,
"column": 29
},
"end": {
"line": 233,
"column": 36
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7680,
"end": 7681,
"loc": {
"start": {
"line": 233,
"column": 36
},
"end": {
"line": 233,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 7681,
"end": 7687,
"loc": {
"start": {
"line": 233,
"column": 37
},
"end": {
"line": 233,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7687,
"end": 7688,
"loc": {
"start": {
"line": 233,
"column": 43
},
"end": {
"line": 233,
"column": 44
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 7689,
"end": 7690,
"loc": {
"start": {
"line": 233,
"column": 45
},
"end": {
"line": 233,
"column": 46
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 7691,
"end": 7692,
"loc": {
"start": {
"line": 233,
"column": 47
},
"end": {
"line": 233,
"column": 48
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7692,
"end": 7693,
"loc": {
"start": {
"line": 233,
"column": 48
},
"end": {
"line": 233,
"column": 49
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7694,
"end": 7695,
"loc": {
"start": {
"line": 233,
"column": 50
},
"end": {
"line": 233,
"column": 51
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 7709,
"end": 7713,
"loc": {
"start": {
"line": 234,
"column": 12
},
"end": {
"line": 234,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7713,
"end": 7714,
"loc": {
"start": {
"line": 234,
"column": 16
},
"end": {
"line": 234,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroyList",
"start": 7714,
"end": 7725,
"loc": {
"start": {
"line": 234,
"column": 17
},
"end": {
"line": 234,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7725,
"end": 7726,
"loc": {
"start": {
"line": 234,
"column": 28
},
"end": {
"line": 234,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "push",
"start": 7726,
"end": 7730,
"loc": {
"start": {
"line": 234,
"column": 29
},
"end": {
"line": 234,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7730,
"end": 7731,
"loc": {
"start": {
"line": 234,
"column": 33
},
"end": {
"line": 234,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 7731,
"end": 7737,
"loc": {
"start": {
"line": 234,
"column": 34
},
"end": {
"line": 234,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7737,
"end": 7738,
"loc": {
"start": {
"line": 234,
"column": 40
},
"end": {
"line": 234,
"column": 41
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7738,
"end": 7739,
"loc": {
"start": {
"line": 234,
"column": 41
},
"end": {
"line": 234,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 7753,
"end": 7759,
"loc": {
"start": {
"line": 235,
"column": 12
},
"end": {
"line": 235,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7759,
"end": 7760,
"loc": {
"start": {
"line": 235,
"column": 18
},
"end": {
"line": 235,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "queuedForDestroy",
"start": 7760,
"end": 7776,
"loc": {
"start": {
"line": 235,
"column": 19
},
"end": {
"line": 235,
"column": 35
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 7777,
"end": 7778,
"loc": {
"start": {
"line": 235,
"column": 36
},
"end": {
"line": 235,
"column": 37
}
}
},
{
"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": 7779,
"end": 7783,
"loc": {
"start": {
"line": 235,
"column": 38
},
"end": {
"line": 235,
"column": 42
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7783,
"end": 7784,
"loc": {
"start": {
"line": 235,
"column": 42
},
"end": {
"line": 235,
"column": 43
}
}
},
{
"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": 7798,
"end": 7802,
"loc": {
"start": {
"line": 236,
"column": 12
},
"end": {
"line": 236,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7802,
"end": 7803,
"loc": {
"start": {
"line": 236,
"column": 16
},
"end": {
"line": 236,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 7803,
"end": 7807,
"loc": {
"start": {
"line": 236,
"column": 17
},
"end": {
"line": 236,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7807,
"end": 7808,
"loc": {
"start": {
"line": 236,
"column": 21
},
"end": {
"line": 236,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "signals",
"start": 7808,
"end": 7815,
"loc": {
"start": {
"line": 236,
"column": 22
},
"end": {
"line": 236,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7815,
"end": 7816,
"loc": {
"start": {
"line": 236,
"column": 29
},
"end": {
"line": 236,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entityQueuedForDestroy",
"start": 7816,
"end": 7838,
"loc": {
"start": {
"line": 236,
"column": 30
},
"end": {
"line": 236,
"column": 52
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7838,
"end": 7839,
"loc": {
"start": {
"line": 236,
"column": 52
},
"end": {
"line": 236,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dispatch",
"start": 7839,
"end": 7847,
"loc": {
"start": {
"line": 236,
"column": 53
},
"end": {
"line": 236,
"column": 61
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7847,
"end": 7848,
"loc": {
"start": {
"line": 236,
"column": 61
},
"end": {
"line": 236,
"column": 62
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 7848,
"end": 7854,
"loc": {
"start": {
"line": 236,
"column": 62
},
"end": {
"line": 236,
"column": 68
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7854,
"end": 7855,
"loc": {
"start": {
"line": 236,
"column": 68
},
"end": {
"line": 236,
"column": 69
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7855,
"end": 7856,
"loc": {
"start": {
"line": 236,
"column": 69
},
"end": {
"line": 236,
"column": 70
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7866,
"end": 7867,
"loc": {
"start": {
"line": 237,
"column": 8
},
"end": {
"line": 237,
"column": 9
}
}
},
{
"type": {
"label": "else",
"keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "else",
"start": 7868,
"end": 7872,
"loc": {
"start": {
"line": 237,
"column": 10
},
"end": {
"line": 237,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7873,
"end": 7874,
"loc": {
"start": {
"line": 237,
"column": 15
},
"end": {
"line": 237,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 7888,
"end": 7894,
"loc": {
"start": {
"line": 238,
"column": 12
},
"end": {
"line": 238,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7894,
"end": 7895,
"loc": {
"start": {
"line": 238,
"column": 18
},
"end": {
"line": 238,
"column": 19
}
}
},
{
"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": 7895,
"end": 7900,
"loc": {
"start": {
"line": 238,
"column": 19
},
"end": {
"line": 238,
"column": 24
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7900,
"end": 7901,
"loc": {
"start": {
"line": 238,
"column": 24
},
"end": {
"line": 238,
"column": 25
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Trying to destroy entity twice",
"start": 7902,
"end": 7934,
"loc": {
"start": {
"line": 238,
"column": 26
},
"end": {
"line": 238,
"column": 58
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7934,
"end": 7935,
"loc": {
"start": {
"line": 238,
"column": 58
},
"end": {
"line": 238,
"column": 59
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7935,
"end": 7936,
"loc": {
"start": {
"line": 238,
"column": 59
},
"end": {
"line": 238,
"column": 60
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7946,
"end": 7947,
"loc": {
"start": {
"line": 239,
"column": 8
},
"end": {
"line": 239,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7953,
"end": 7954,
"loc": {
"start": {
"line": 240,
"column": 4
},
"end": {
"line": 240,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7956,
"end": 7957,
"loc": {
"start": {
"line": 241,
"column": 0
},
"end": {
"line": 241,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7957,
"end": 7957,
"loc": {
"start": {
"line": 241,
"column": 1
},
"end": {
"line": 241,
"column": 1
}
}
}
]
}