mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
24345 lines
617 KiB
JSON
24345 lines
617 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 7828,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 282,
|
|
"column": 1
|
|
}
|
|
},
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 7828,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 282,
|
|
"column": 1
|
|
}
|
|
},
|
|
"sourceType": "module",
|
|
"body": [
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 0,
|
|
"end": 40,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 40
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 9,
|
|
"end": 15,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 15
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 9,
|
|
"end": 15,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 15
|
|
},
|
|
"identifierName": "Loader"
|
|
},
|
|
"name": "Loader"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 9,
|
|
"end": 15,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 15
|
|
},
|
|
"identifierName": "Loader"
|
|
},
|
|
"name": "Loader"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 23,
|
|
"end": 39,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 39
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "../core/loader",
|
|
"raw": "\"../core/loader\""
|
|
},
|
|
"value": "../core/loader"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 42,
|
|
"end": 88,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 46
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 51,
|
|
"end": 62,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 20
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 51,
|
|
"end": 62,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 20
|
|
},
|
|
"identifierName": "AtlasSprite"
|
|
},
|
|
"name": "AtlasSprite"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 51,
|
|
"end": 62,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 20
|
|
},
|
|
"identifierName": "AtlasSprite"
|
|
},
|
|
"name": "AtlasSprite"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 70,
|
|
"end": 87,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 45
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "../core/sprites",
|
|
"raw": "\"../core/sprites\""
|
|
},
|
|
"value": "../core/sprites"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 90,
|
|
"end": 130,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 40
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 99,
|
|
"end": 105,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 15
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 99,
|
|
"end": 105,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 15
|
|
},
|
|
"identifierName": "Vector"
|
|
},
|
|
"name": "Vector"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 99,
|
|
"end": 105,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 15
|
|
},
|
|
"identifierName": "Vector"
|
|
},
|
|
"name": "Vector"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 113,
|
|
"end": 129,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 39
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "../core/vector",
|
|
"raw": "\"../core/vector\""
|
|
},
|
|
"value": "../core/vector"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 132,
|
|
"end": 175,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 43
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 141,
|
|
"end": 147,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 15
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 141,
|
|
"end": 147,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 15
|
|
},
|
|
"identifierName": "SOUNDS"
|
|
},
|
|
"name": "SOUNDS"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 141,
|
|
"end": 147,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 15
|
|
},
|
|
"identifierName": "SOUNDS"
|
|
},
|
|
"name": "SOUNDS"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 155,
|
|
"end": 174,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 42
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "../platform/sound",
|
|
"raw": "\"../platform/sound\""
|
|
},
|
|
"value": "../platform/sound"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 177,
|
|
"end": 251,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 74
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 186,
|
|
"end": 210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 33
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 186,
|
|
"end": 210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 33
|
|
},
|
|
"identifierName": "StaticMapEntityComponent"
|
|
},
|
|
"name": "StaticMapEntityComponent"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 186,
|
|
"end": 210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 33
|
|
},
|
|
"identifierName": "StaticMapEntityComponent"
|
|
},
|
|
"name": "StaticMapEntityComponent"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 218,
|
|
"end": 250,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 73
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "./components/static_map_entity",
|
|
"raw": "\"./components/static_map_entity\""
|
|
},
|
|
"value": "./components/static_map_entity"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 253,
|
|
"end": 287,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 34
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 262,
|
|
"end": 268,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 15
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 262,
|
|
"end": 268,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 15
|
|
},
|
|
"identifierName": "Entity"
|
|
},
|
|
"name": "Entity"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 262,
|
|
"end": 268,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 15
|
|
},
|
|
"identifierName": "Entity"
|
|
},
|
|
"name": "Entity"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 276,
|
|
"end": 286,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 33
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "./entity",
|
|
"raw": "\"./entity\""
|
|
},
|
|
"value": "./entity"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 289,
|
|
"end": 323,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 34
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 298,
|
|
"end": 306,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 17
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 298,
|
|
"end": 306,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 17
|
|
},
|
|
"identifierName": "GameRoot"
|
|
},
|
|
"name": "GameRoot"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 298,
|
|
"end": 306,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 17
|
|
},
|
|
"identifierName": "GameRoot"
|
|
},
|
|
"name": "GameRoot"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 314,
|
|
"end": 322,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 33
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "./root",
|
|
"raw": "\"./root\""
|
|
},
|
|
"value": "./root"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 325,
|
|
"end": 384,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 59
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 334,
|
|
"end": 357,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 32
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 334,
|
|
"end": 357,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 32
|
|
},
|
|
"identifierName": "getCodeFromBuildingData"
|
|
},
|
|
"name": "getCodeFromBuildingData"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 334,
|
|
"end": 357,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 32
|
|
},
|
|
"identifierName": "getCodeFromBuildingData"
|
|
},
|
|
"name": "getCodeFromBuildingData"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 365,
|
|
"end": 383,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 58
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "./building_codes",
|
|
"raw": "\"./building_codes\""
|
|
},
|
|
"value": "./building_codes"
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 388,
|
|
"end": 436,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 48
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 395,
|
|
"end": 436,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 48
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 401,
|
|
"end": 435,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 47
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 401,
|
|
"end": 423,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 35
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
},
|
|
"init": {
|
|
"type": "StringLiteral",
|
|
"start": 426,
|
|
"end": 435,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 47
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "default",
|
|
"raw": "\"default\""
|
|
},
|
|
"value": "default"
|
|
}
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [],
|
|
"trailingComments": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 440,
|
|
"end": 7828,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 282,
|
|
"column": 1
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "ClassDeclaration",
|
|
"start": 447,
|
|
"end": 7828,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 282,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 453,
|
|
"end": 465,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 25
|
|
},
|
|
"identifierName": "MetaBuilding"
|
|
},
|
|
"name": "MetaBuilding"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start": 466,
|
|
"end": 7828,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 282,
|
|
"column": 1
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 538,
|
|
"end": 585,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 538,
|
|
"end": 549,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 15
|
|
},
|
|
"identifierName": "constructor"
|
|
},
|
|
"name": "constructor",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "constructor",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 550,
|
|
"end": 552,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 18
|
|
},
|
|
"identifierName": "id"
|
|
},
|
|
"name": "id"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 554,
|
|
"end": 585,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 565,
|
|
"end": 578,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 21
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 565,
|
|
"end": 577,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 20
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 565,
|
|
"end": 572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 15
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 565,
|
|
"end": 569,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 570,
|
|
"end": 572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 15
|
|
},
|
|
"identifierName": "id"
|
|
},
|
|
"name": "id"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 575,
|
|
"end": 577,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 20
|
|
},
|
|
"identifierName": "id"
|
|
},
|
|
"name": "id"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {string} id Building id\r\n ",
|
|
"start": 473,
|
|
"end": 532,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the id of this building\r\n ",
|
|
"start": 593,
|
|
"end": 645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 651,
|
|
"end": 692,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 651,
|
|
"end": 656,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 9
|
|
},
|
|
"identifierName": "getId"
|
|
},
|
|
"name": "getId",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 659,
|
|
"end": 692,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 670,
|
|
"end": 685,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 23
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "MemberExpression",
|
|
"start": 677,
|
|
"end": 684,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 22
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 677,
|
|
"end": 681,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 682,
|
|
"end": 684,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 22
|
|
},
|
|
"identifierName": "id"
|
|
},
|
|
"name": "id"
|
|
},
|
|
"computed": false
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the id of this building\r\n ",
|
|
"start": 593,
|
|
"end": 645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the edit layer of the building\r\n * @param {GameRoot} root\r\n * @param {string} variant\r\n * @returns {Layer}\r\n ",
|
|
"start": 700,
|
|
"end": 847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 853,
|
|
"end": 937,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 853,
|
|
"end": 861,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 12
|
|
},
|
|
"identifierName": "getLayer"
|
|
},
|
|
"name": "getLayer",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 862,
|
|
"end": 866,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 17
|
|
},
|
|
"identifierName": "root"
|
|
},
|
|
"name": "root"
|
|
},
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 868,
|
|
"end": 900,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 51
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 868,
|
|
"end": 875,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 26
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 878,
|
|
"end": 900,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 51
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 902,
|
|
"end": 937,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 913,
|
|
"end": 930,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 25
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "StringLiteral",
|
|
"start": 920,
|
|
"end": 929,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 24
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "regular",
|
|
"raw": "\"regular\""
|
|
},
|
|
"value": "regular"
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the edit layer of the building\r\n * @param {GameRoot} root\r\n * @param {string} variant\r\n * @returns {Layer}\r\n ",
|
|
"start": 700,
|
|
"end": 847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return the dimensions of the building\r\n * @param {string} variant\r\n ",
|
|
"start": 945,
|
|
"end": 1042,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 1048,
|
|
"end": 1138,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 1048,
|
|
"end": 1061,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 17
|
|
},
|
|
"identifierName": "getDimensions"
|
|
},
|
|
"name": "getDimensions",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 1062,
|
|
"end": 1094,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 50
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 1062,
|
|
"end": 1069,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 25
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 1072,
|
|
"end": 1094,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 50
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 1096,
|
|
"end": 1138,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 1107,
|
|
"end": 1131,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 32
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "NewExpression",
|
|
"start": 1114,
|
|
"end": 1130,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 31
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 1118,
|
|
"end": 1124,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 25
|
|
},
|
|
"identifierName": "Vector"
|
|
},
|
|
"name": "Vector"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "NumericLiteral",
|
|
"start": 1125,
|
|
"end": 1126,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 27
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
},
|
|
{
|
|
"type": "NumericLiteral",
|
|
"start": 1128,
|
|
"end": 1129,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 30
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return the dimensions of the building\r\n * @param {string} variant\r\n ",
|
|
"start": 945,
|
|
"end": 1042,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether the building has the direction lock switch available\r\n ",
|
|
"start": 1146,
|
|
"end": 1235,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 48,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 1241,
|
|
"end": 1303,
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 1241,
|
|
"end": 1269,
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 32
|
|
},
|
|
"identifierName": "getHasDirectionLockAvailable"
|
|
},
|
|
"name": "getHasDirectionLockAvailable",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 1272,
|
|
"end": 1303,
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 1283,
|
|
"end": 1296,
|
|
"loc": {
|
|
"start": {
|
|
"line": 50,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 21
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "BooleanLiteral",
|
|
"start": 1290,
|
|
"end": 1295,
|
|
"loc": {
|
|
"start": {
|
|
"line": 50,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 20
|
|
}
|
|
},
|
|
"value": false
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether the building has the direction lock switch available\r\n ",
|
|
"start": 1146,
|
|
"end": 1235,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 48,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to stay in placement mode after having placed a building\r\n ",
|
|
"start": 1311,
|
|
"end": 1396,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 1402,
|
|
"end": 1458,
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 1402,
|
|
"end": 1424,
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 26
|
|
},
|
|
"identifierName": "getStayInPlacementMode"
|
|
},
|
|
"name": "getStayInPlacementMode",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 1427,
|
|
"end": 1458,
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 1438,
|
|
"end": 1451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 21
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "BooleanLiteral",
|
|
"start": 1445,
|
|
"end": 1450,
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 20
|
|
}
|
|
},
|
|
"value": false
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to stay in placement mode after having placed a building\r\n ",
|
|
"start": 1311,
|
|
"end": 1396,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Can return a special interlaved 9 elements overlay matrix for rendering\r\n * @param {number} rotation\r\n * @param {number} rotationVariant\r\n * @param {string} variant\r\n * @param {Entity} entity\r\n * @returns {Array<number>|null}\r\n ",
|
|
"start": 1466,
|
|
"end": 1732,
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 1738,
|
|
"end": 1842,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 70,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 1738,
|
|
"end": 1767,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 33
|
|
},
|
|
"identifierName": "getSpecialOverlayRenderMatrix"
|
|
},
|
|
"name": "getSpecialOverlayRenderMatrix",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1768,
|
|
"end": 1776,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 42
|
|
},
|
|
"identifierName": "rotation"
|
|
},
|
|
"name": "rotation"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1778,
|
|
"end": 1793,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 59
|
|
},
|
|
"identifierName": "rotationVariant"
|
|
},
|
|
"name": "rotationVariant"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1795,
|
|
"end": 1802,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 68
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1804,
|
|
"end": 1810,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 76
|
|
},
|
|
"identifierName": "entity"
|
|
},
|
|
"name": "entity"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 1812,
|
|
"end": 1842,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 78
|
|
},
|
|
"end": {
|
|
"line": 70,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 1823,
|
|
"end": 1835,
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 20
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "NullLiteral",
|
|
"start": 1830,
|
|
"end": 1834,
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Can return a special interlaved 9 elements overlay matrix for rendering\r\n * @param {number} rotation\r\n * @param {number} rotationVariant\r\n * @param {string} variant\r\n * @param {Entity} entity\r\n * @returns {Array<number>|null}\r\n ",
|
|
"start": 1466,
|
|
"end": 1732,
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return additional statistics about this building\r\n * @param {GameRoot} root\r\n * @param {string} variant\r\n * @returns {Array<[string, string]>}\r\n ",
|
|
"start": 1850,
|
|
"end": 2032,
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 2038,
|
|
"end": 2105,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 2038,
|
|
"end": 2061,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 27
|
|
},
|
|
"identifierName": "getAdditionalStatistics"
|
|
},
|
|
"name": "getAdditionalStatistics",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2062,
|
|
"end": 2066,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 32
|
|
},
|
|
"identifierName": "root"
|
|
},
|
|
"name": "root"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2068,
|
|
"end": 2075,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 41
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2077,
|
|
"end": 2105,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 2088,
|
|
"end": 2098,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 18
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "ArrayExpression",
|
|
"start": 2095,
|
|
"end": 2097,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 17
|
|
}
|
|
},
|
|
"elements": []
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return additional statistics about this building\r\n * @param {GameRoot} root\r\n * @param {string} variant\r\n * @returns {Array<[string, string]>}\r\n ",
|
|
"start": 1850,
|
|
"end": 2032,
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building can get replaced\r\n ",
|
|
"start": 2113,
|
|
"end": 2180,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 2186,
|
|
"end": 2268,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 2186,
|
|
"end": 2202,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 20
|
|
},
|
|
"identifierName": "getIsReplaceable"
|
|
},
|
|
"name": "getIsReplaceable",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 2203,
|
|
"end": 2235,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 53
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 2203,
|
|
"end": 2210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 28
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 2213,
|
|
"end": 2235,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 53
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2237,
|
|
"end": 2268,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 2248,
|
|
"end": 2261,
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 21
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "BooleanLiteral",
|
|
"start": 2255,
|
|
"end": 2260,
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 20
|
|
}
|
|
},
|
|
"value": false
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building can get replaced\r\n ",
|
|
"start": 2113,
|
|
"end": 2180,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to flip the orientation after a building has been placed - useful\r\n * for tunnels.\r\n ",
|
|
"start": 2276,
|
|
"end": 2391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 2397,
|
|
"end": 2463,
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 2397,
|
|
"end": 2429,
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 93,
|
|
"column": 36
|
|
},
|
|
"identifierName": "getFlipOrientationAfterPlacement"
|
|
},
|
|
"name": "getFlipOrientationAfterPlacement",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2432,
|
|
"end": 2463,
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 2443,
|
|
"end": 2456,
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 21
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "BooleanLiteral",
|
|
"start": 2450,
|
|
"end": 2455,
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 20
|
|
}
|
|
},
|
|
"value": false
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to flip the orientation after a building has been placed - useful\r\n * for tunnels.\r\n ",
|
|
"start": 2276,
|
|
"end": 2391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to show a preview of the layer when placing the building\r\n * @param {string} variant\r\n ",
|
|
"start": 2471,
|
|
"end": 2588,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 2594,
|
|
"end": 2653,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 103,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 2594,
|
|
"end": 2613,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 23
|
|
},
|
|
"identifierName": "getShowLayerPreview"
|
|
},
|
|
"name": "getShowLayerPreview",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2614,
|
|
"end": 2621,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 31
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2623,
|
|
"end": 2653,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 103,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 2634,
|
|
"end": 2646,
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 20
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "NullLiteral",
|
|
"start": 2641,
|
|
"end": 2645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to show a preview of the layer when placing the building\r\n * @param {string} variant\r\n ",
|
|
"start": 2471,
|
|
"end": 2588,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to rotate automatically in the dragging direction while placing\r\n * @param {string} variant\r\n ",
|
|
"start": 2661,
|
|
"end": 2785,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 2791,
|
|
"end": 2891,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 2791,
|
|
"end": 2825,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 38
|
|
},
|
|
"identifierName": "getRotateAutomaticallyWhilePlacing"
|
|
},
|
|
"name": "getRotateAutomaticallyWhilePlacing",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 2826,
|
|
"end": 2858,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 71
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 2826,
|
|
"end": 2833,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 46
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 2836,
|
|
"end": 2858,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 71
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2860,
|
|
"end": 2891,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 73
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 2871,
|
|
"end": 2884,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 21
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "BooleanLiteral",
|
|
"start": 2878,
|
|
"end": 2883,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 20
|
|
}
|
|
},
|
|
"value": false
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to rotate automatically in the dragging direction while placing\r\n * @param {string} variant\r\n ",
|
|
"start": 2661,
|
|
"end": 2785,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building is removable\r\n * @param {string} variant\r\n * @returns {boolean}\r\n ",
|
|
"start": 2899,
|
|
"end": 3021,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 3027,
|
|
"end": 3106,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 3027,
|
|
"end": 3041,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 18
|
|
},
|
|
"identifierName": "getIsRemovable"
|
|
},
|
|
"name": "getIsRemovable",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 3042,
|
|
"end": 3074,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 51
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 3042,
|
|
"end": 3049,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 26
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 3052,
|
|
"end": 3074,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 51
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 3076,
|
|
"end": 3106,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 3087,
|
|
"end": 3099,
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 20
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "BooleanLiteral",
|
|
"start": 3094,
|
|
"end": 3098,
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 19
|
|
}
|
|
},
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building is removable\r\n * @param {string} variant\r\n * @returns {boolean}\r\n ",
|
|
"start": 2899,
|
|
"end": 3021,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the placement sound\r\n * @param {string} variant\r\n * @returns {string}\r\n ",
|
|
"start": 3114,
|
|
"end": 3220,
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 3226,
|
|
"end": 3324,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 3226,
|
|
"end": 3243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 21
|
|
},
|
|
"identifierName": "getPlacementSound"
|
|
},
|
|
"name": "getPlacementSound",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 3244,
|
|
"end": 3276,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 54
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 3244,
|
|
"end": 3251,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 29
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 3254,
|
|
"end": 3276,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 54
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 3278,
|
|
"end": 3324,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 3289,
|
|
"end": 3317,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 36
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "MemberExpression",
|
|
"start": 3296,
|
|
"end": 3316,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 35
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3296,
|
|
"end": 3302,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 21
|
|
},
|
|
"identifierName": "SOUNDS"
|
|
},
|
|
"name": "SOUNDS"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3303,
|
|
"end": 3316,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 35
|
|
},
|
|
"identifierName": "placeBuilding"
|
|
},
|
|
"name": "placeBuilding"
|
|
},
|
|
"computed": false
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the placement sound\r\n * @param {string} variant\r\n * @returns {string}\r\n ",
|
|
"start": 3114,
|
|
"end": 3220,
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * @param {GameRoot} root\r\n ",
|
|
"start": 3332,
|
|
"end": 3375,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 3381,
|
|
"end": 3458,
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 136,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 3381,
|
|
"end": 3401,
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 24
|
|
},
|
|
"identifierName": "getAvailableVariants"
|
|
},
|
|
"name": "getAvailableVariants",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3402,
|
|
"end": 3406,
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 29
|
|
},
|
|
"identifierName": "root"
|
|
},
|
|
"name": "root"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 3408,
|
|
"end": 3458,
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 136,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 3419,
|
|
"end": 3451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 40
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "ArrayExpression",
|
|
"start": 3426,
|
|
"end": 3450,
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 39
|
|
}
|
|
},
|
|
"elements": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3427,
|
|
"end": 3449,
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 38
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * @param {GameRoot} root\r\n ",
|
|
"start": 3332,
|
|
"end": 3375,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a preview sprite\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 3466,
|
|
"end": 3542,
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 3548,
|
|
"end": 3826,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 149,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 3548,
|
|
"end": 3564,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 20
|
|
},
|
|
"identifierName": "getPreviewSprite"
|
|
},
|
|
"name": "getPreviewSprite",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 3565,
|
|
"end": 3584,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 40
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 3565,
|
|
"end": 3580,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 36
|
|
},
|
|
"identifierName": "rotationVariant"
|
|
},
|
|
"name": "rotationVariant"
|
|
},
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start": 3583,
|
|
"end": 3584,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 40
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 3586,
|
|
"end": 3618,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 74
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 3586,
|
|
"end": 3593,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 49
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 3596,
|
|
"end": 3618,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 74
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 3620,
|
|
"end": 3826,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 149,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 3631,
|
|
"end": 3819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 10
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 3638,
|
|
"end": 3818,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 9
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 3638,
|
|
"end": 3654,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 31
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3638,
|
|
"end": 3644,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 21
|
|
},
|
|
"identifierName": "Loader"
|
|
},
|
|
"name": "Loader"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3645,
|
|
"end": 3654,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 31
|
|
},
|
|
"identifierName": "getSprite"
|
|
},
|
|
"name": "getSprite"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "BinaryExpression",
|
|
"start": 3669,
|
|
"end": 3807,
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 18
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 3669,
|
|
"end": 3785,
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 69
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 3669,
|
|
"end": 3712,
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 19
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "StringLiteral",
|
|
"start": 3669,
|
|
"end": 3689,
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 144,
|
|
"column": 32
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "sprites/buildings/",
|
|
"raw": "\"sprites/buildings/\""
|
|
},
|
|
"value": "sprites/buildings/"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"start": 3705,
|
|
"end": 3712,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 19
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 3705,
|
|
"end": 3709,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3710,
|
|
"end": 3712,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 19
|
|
},
|
|
"identifierName": "id"
|
|
},
|
|
"name": "id"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "ConditionalExpression",
|
|
"start": 3729,
|
|
"end": 3784,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 68
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"start": 3729,
|
|
"end": 3763,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 47
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 3729,
|
|
"end": 3736,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 20
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"operator": "===",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 3741,
|
|
"end": 3763,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 47
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "StringLiteral",
|
|
"start": 3766,
|
|
"end": 3768,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 52
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "",
|
|
"raw": "\"\""
|
|
},
|
|
"value": ""
|
|
},
|
|
"alternate": {
|
|
"type": "BinaryExpression",
|
|
"start": 3771,
|
|
"end": 3784,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 68
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "StringLiteral",
|
|
"start": 3771,
|
|
"end": 3774,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 58
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "-",
|
|
"raw": "\"-\""
|
|
},
|
|
"value": "-"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 3777,
|
|
"end": 3784,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 68
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
}
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 3728
|
|
}
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 3801,
|
|
"end": 3807,
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 18
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": ".png",
|
|
"raw": "\".png\""
|
|
},
|
|
"value": ".png"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a preview sprite\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 3466,
|
|
"end": 3542,
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a sprite for blueprints\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 3834,
|
|
"end": 3917,
|
|
"loc": {
|
|
"start": {
|
|
"line": 151,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 3923,
|
|
"end": 4204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 162,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 3923,
|
|
"end": 3941,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 22
|
|
},
|
|
"identifierName": "getBlueprintSprite"
|
|
},
|
|
"name": "getBlueprintSprite",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 3942,
|
|
"end": 3961,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 42
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 3942,
|
|
"end": 3957,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 38
|
|
},
|
|
"identifierName": "rotationVariant"
|
|
},
|
|
"name": "rotationVariant"
|
|
},
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start": 3960,
|
|
"end": 3961,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 42
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 3963,
|
|
"end": 3995,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 76
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 3963,
|
|
"end": 3970,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 51
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 3973,
|
|
"end": 3995,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 76
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 3997,
|
|
"end": 4204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 78
|
|
},
|
|
"end": {
|
|
"line": 162,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 4008,
|
|
"end": 4197,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 10
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 4015,
|
|
"end": 4196,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 9
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4015,
|
|
"end": 4031,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 31
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4015,
|
|
"end": 4021,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 21
|
|
},
|
|
"identifierName": "Loader"
|
|
},
|
|
"name": "Loader"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4022,
|
|
"end": 4031,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 31
|
|
},
|
|
"identifierName": "getSprite"
|
|
},
|
|
"name": "getSprite"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "BinaryExpression",
|
|
"start": 4046,
|
|
"end": 4185,
|
|
"loc": {
|
|
"start": {
|
|
"line": 157,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 18
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 4046,
|
|
"end": 4163,
|
|
"loc": {
|
|
"start": {
|
|
"line": 157,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 69
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 4046,
|
|
"end": 4090,
|
|
"loc": {
|
|
"start": {
|
|
"line": 157,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 19
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "StringLiteral",
|
|
"start": 4046,
|
|
"end": 4067,
|
|
"loc": {
|
|
"start": {
|
|
"line": 157,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 157,
|
|
"column": 33
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "sprites/blueprints/",
|
|
"raw": "\"sprites/blueprints/\""
|
|
},
|
|
"value": "sprites/blueprints/"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"start": 4083,
|
|
"end": 4090,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 19
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4083,
|
|
"end": 4087,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4088,
|
|
"end": 4090,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 19
|
|
},
|
|
"identifierName": "id"
|
|
},
|
|
"name": "id"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "ConditionalExpression",
|
|
"start": 4107,
|
|
"end": 4162,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 68
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"start": 4107,
|
|
"end": 4141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 47
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 4107,
|
|
"end": 4114,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 20
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"operator": "===",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 4119,
|
|
"end": 4141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 47
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "StringLiteral",
|
|
"start": 4144,
|
|
"end": 4146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 52
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "",
|
|
"raw": "\"\""
|
|
},
|
|
"value": ""
|
|
},
|
|
"alternate": {
|
|
"type": "BinaryExpression",
|
|
"start": 4149,
|
|
"end": 4162,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 68
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "StringLiteral",
|
|
"start": 4149,
|
|
"end": 4152,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 58
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "-",
|
|
"raw": "\"-\""
|
|
},
|
|
"value": "-"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 4155,
|
|
"end": 4162,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 68
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
}
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 4106
|
|
}
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 4179,
|
|
"end": 4185,
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 18
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": ".png",
|
|
"raw": "\".png\""
|
|
},
|
|
"value": ".png"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a sprite for blueprints\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 3834,
|
|
"end": 3917,
|
|
"loc": {
|
|
"start": {
|
|
"line": 151,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building is rotateable\r\n * @param {string} variant\r\n * @returns {boolean}\r\n ",
|
|
"start": 4212,
|
|
"end": 4335,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 4341,
|
|
"end": 4396,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4341,
|
|
"end": 4356,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 19
|
|
},
|
|
"identifierName": "getIsRotateable"
|
|
},
|
|
"name": "getIsRotateable",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4357,
|
|
"end": 4364,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 27
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 4366,
|
|
"end": 4396,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 4377,
|
|
"end": 4389,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 20
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "BooleanLiteral",
|
|
"start": 4384,
|
|
"end": 4388,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 19
|
|
}
|
|
},
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building is rotateable\r\n * @param {string} variant\r\n * @returns {boolean}\r\n ",
|
|
"start": 4212,
|
|
"end": 4335,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building is unlocked for the given game\r\n * @param {GameRoot} root\r\n ",
|
|
"start": 4404,
|
|
"end": 4516,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 4522,
|
|
"end": 4572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4522,
|
|
"end": 4535,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 17
|
|
},
|
|
"identifierName": "getIsUnlocked"
|
|
},
|
|
"name": "getIsUnlocked",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4536,
|
|
"end": 4540,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 22
|
|
},
|
|
"identifierName": "root"
|
|
},
|
|
"name": "root"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 4542,
|
|
"end": 4572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 4553,
|
|
"end": 4565,
|
|
"loc": {
|
|
"start": {
|
|
"line": 178,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 20
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "BooleanLiteral",
|
|
"start": 4560,
|
|
"end": 4564,
|
|
"loc": {
|
|
"start": {
|
|
"line": 178,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 19
|
|
}
|
|
},
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building is unlocked for the given game\r\n * @param {GameRoot} root\r\n ",
|
|
"start": 4404,
|
|
"end": 4516,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return a silhouette color for the map overview or null if not set\r\n * @param {string} variant\r\n * @param {number} rotationVariant\r\n ",
|
|
"start": 4580,
|
|
"end": 4745,
|
|
"loc": {
|
|
"start": {
|
|
"line": 181,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 185,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 4751,
|
|
"end": 4826,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 188,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4751,
|
|
"end": 4769,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 22
|
|
},
|
|
"identifierName": "getSilhouetteColor"
|
|
},
|
|
"name": "getSilhouetteColor",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4770,
|
|
"end": 4777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 30
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4779,
|
|
"end": 4794,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 47
|
|
},
|
|
"identifierName": "rotationVariant"
|
|
},
|
|
"name": "rotationVariant"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 4796,
|
|
"end": 4826,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 188,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 4807,
|
|
"end": 4819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 20
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "NullLiteral",
|
|
"start": 4814,
|
|
"end": 4818,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return a silhouette color for the map overview or null if not set\r\n * @param {string} variant\r\n * @param {number} rotationVariant\r\n ",
|
|
"start": 4580,
|
|
"end": 4745,
|
|
"loc": {
|
|
"start": {
|
|
"line": 181,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 185,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return false if the pins are already included in the sprite of the building\r\n * @param {string} variant\r\n * @returns {boolean}\r\n ",
|
|
"start": 4834,
|
|
"end": 4996,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 5002,
|
|
"end": 5080,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5002,
|
|
"end": 5015,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 195,
|
|
"column": 17
|
|
},
|
|
"identifierName": "getRenderPins"
|
|
},
|
|
"name": "getRenderPins",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 5016,
|
|
"end": 5048,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 195,
|
|
"column": 50
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 5016,
|
|
"end": 5023,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 195,
|
|
"column": 25
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 5026,
|
|
"end": 5048,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 195,
|
|
"column": 50
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 5050,
|
|
"end": 5080,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 5061,
|
|
"end": 5073,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 20
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "BooleanLiteral",
|
|
"start": 5068,
|
|
"end": 5072,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 19
|
|
}
|
|
},
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return false if the pins are already included in the sprite of the building\r\n * @param {string} variant\r\n * @returns {boolean}\r\n ",
|
|
"start": 4834,
|
|
"end": 4996,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Creates the entity without placing it\r\n * @param {object} param0\r\n * @param {GameRoot} param0.root\r\n * @param {Vector} param0.origin Origin tile\r\n * @param {number=} param0.rotation Rotation\r\n * @param {number} param0.originalRotation Original Rotation\r\n * @param {number} param0.rotationVariant Rotation variant\r\n * @param {string} param0.variant\r\n ",
|
|
"start": 5088,
|
|
"end": 5484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 5490,
|
|
"end": 6182,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 224,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5490,
|
|
"end": 5502,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 16
|
|
},
|
|
"identifierName": "createEntity"
|
|
},
|
|
"name": "createEntity",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "ObjectPattern",
|
|
"start": 5503,
|
|
"end": 5573,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 87
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5505,
|
|
"end": 5509,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 23
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5505,
|
|
"end": 5509,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 23
|
|
},
|
|
"identifierName": "root"
|
|
},
|
|
"name": "root"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5505,
|
|
"end": 5509,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 23
|
|
},
|
|
"identifierName": "root"
|
|
},
|
|
"name": "root"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5511,
|
|
"end": 5517,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 31
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5511,
|
|
"end": 5517,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 31
|
|
},
|
|
"identifierName": "origin"
|
|
},
|
|
"name": "origin"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5511,
|
|
"end": 5517,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 31
|
|
},
|
|
"identifierName": "origin"
|
|
},
|
|
"name": "origin"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5519,
|
|
"end": 5527,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 41
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5519,
|
|
"end": 5527,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 41
|
|
},
|
|
"identifierName": "rotation"
|
|
},
|
|
"name": "rotation"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5519,
|
|
"end": 5527,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 41
|
|
},
|
|
"identifierName": "rotation"
|
|
},
|
|
"name": "rotation"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5529,
|
|
"end": 5545,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 59
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5529,
|
|
"end": 5545,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 59
|
|
},
|
|
"identifierName": "originalRotation"
|
|
},
|
|
"name": "originalRotation"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5529,
|
|
"end": 5545,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 59
|
|
},
|
|
"identifierName": "originalRotation"
|
|
},
|
|
"name": "originalRotation"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5547,
|
|
"end": 5562,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 76
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5547,
|
|
"end": 5562,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 76
|
|
},
|
|
"identifierName": "rotationVariant"
|
|
},
|
|
"name": "rotationVariant"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5547,
|
|
"end": 5562,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 76
|
|
},
|
|
"identifierName": "rotationVariant"
|
|
},
|
|
"name": "rotationVariant"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5564,
|
|
"end": 5571,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 78
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 85
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5564,
|
|
"end": 5571,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 78
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 85
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5564,
|
|
"end": 5571,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 78
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 85
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 5575,
|
|
"end": 6182,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 89
|
|
},
|
|
"end": {
|
|
"line": 224,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 5586,
|
|
"end": 5618,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 40
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 5592,
|
|
"end": 5617,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 39
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 5592,
|
|
"end": 5598,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 20
|
|
},
|
|
"identifierName": "entity"
|
|
},
|
|
"name": "entity"
|
|
},
|
|
"init": {
|
|
"type": "NewExpression",
|
|
"start": 5601,
|
|
"end": 5617,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 39
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 5605,
|
|
"end": 5611,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 33
|
|
},
|
|
"identifierName": "Entity"
|
|
},
|
|
"name": "Entity"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5612,
|
|
"end": 5616,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 38
|
|
},
|
|
"identifierName": "root"
|
|
},
|
|
"name": "root"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 5628,
|
|
"end": 5672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 52
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 5628,
|
|
"end": 5671,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 51
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 5628,
|
|
"end": 5640,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 20
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5628,
|
|
"end": 5634,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 14
|
|
},
|
|
"identifierName": "entity"
|
|
},
|
|
"name": "entity"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5635,
|
|
"end": 5640,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 20
|
|
},
|
|
"identifierName": "layer"
|
|
},
|
|
"name": "layer"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"start": 5643,
|
|
"end": 5671,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 51
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 5643,
|
|
"end": 5656,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 36
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 5643,
|
|
"end": 5647,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5648,
|
|
"end": 5656,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 36
|
|
},
|
|
"identifierName": "getLayer"
|
|
},
|
|
"name": "getLayer"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5657,
|
|
"end": 5661,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 41
|
|
},
|
|
"identifierName": "root"
|
|
},
|
|
"name": "root"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5663,
|
|
"end": 5670,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 50
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 5682,
|
|
"end": 6036,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 220,
|
|
"column": 10
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 5682,
|
|
"end": 6035,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 220,
|
|
"column": 9
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 5682,
|
|
"end": 5701,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 27
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5682,
|
|
"end": 5688,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 14
|
|
},
|
|
"identifierName": "entity"
|
|
},
|
|
"name": "entity"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5689,
|
|
"end": 5701,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 27
|
|
},
|
|
"identifierName": "addComponent"
|
|
},
|
|
"name": "addComponent"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "NewExpression",
|
|
"start": 5716,
|
|
"end": 6024,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 14
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 5720,
|
|
"end": 5744,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 40
|
|
},
|
|
"identifierName": "StaticMapEntityComponent"
|
|
},
|
|
"name": "StaticMapEntityComponent"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ObjectExpression",
|
|
"start": 5745,
|
|
"end": 6023,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 13
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5764,
|
|
"end": 5802,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 54
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5764,
|
|
"end": 5770,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 22
|
|
},
|
|
"identifierName": "origin"
|
|
},
|
|
"name": "origin"
|
|
},
|
|
"value": {
|
|
"type": "NewExpression",
|
|
"start": 5772,
|
|
"end": 5802,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 54
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 5776,
|
|
"end": 5782,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 34
|
|
},
|
|
"identifierName": "Vector"
|
|
},
|
|
"name": "Vector"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"start": 5783,
|
|
"end": 5791,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 43
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5783,
|
|
"end": 5789,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 41
|
|
},
|
|
"identifierName": "origin"
|
|
},
|
|
"name": "origin"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5790,
|
|
"end": 5791,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 43
|
|
},
|
|
"identifierName": "x"
|
|
},
|
|
"name": "x"
|
|
},
|
|
"computed": false
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"start": 5793,
|
|
"end": 5801,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 53
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5793,
|
|
"end": 5799,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 51
|
|
},
|
|
"identifierName": "origin"
|
|
},
|
|
"name": "origin"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5800,
|
|
"end": 5801,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 53
|
|
},
|
|
"identifierName": "y"
|
|
},
|
|
"name": "y"
|
|
},
|
|
"computed": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5821,
|
|
"end": 5829,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 24
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5821,
|
|
"end": 5829,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 24
|
|
},
|
|
"identifierName": "rotation"
|
|
},
|
|
"name": "rotation"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5821,
|
|
"end": 5829,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 24
|
|
},
|
|
"identifierName": "rotation"
|
|
},
|
|
"name": "rotation"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5848,
|
|
"end": 5864,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 32
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5848,
|
|
"end": 5864,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 32
|
|
},
|
|
"identifierName": "originalRotation"
|
|
},
|
|
"name": "originalRotation"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5848,
|
|
"end": 5864,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 32
|
|
},
|
|
"identifierName": "originalRotation"
|
|
},
|
|
"name": "originalRotation"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5883,
|
|
"end": 5927,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 60
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5883,
|
|
"end": 5891,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 24
|
|
},
|
|
"identifierName": "tileSize"
|
|
},
|
|
"name": "tileSize"
|
|
},
|
|
"value": {
|
|
"type": "CallExpression",
|
|
"start": 5893,
|
|
"end": 5927,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 60
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 5893,
|
|
"end": 5925,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 58
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"start": 5893,
|
|
"end": 5920,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 53
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 5893,
|
|
"end": 5911,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 44
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 5893,
|
|
"end": 5897,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5898,
|
|
"end": 5911,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 44
|
|
},
|
|
"identifierName": "getDimensions"
|
|
},
|
|
"name": "getDimensions"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5912,
|
|
"end": 5919,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 52
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
}
|
|
]
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5921,
|
|
"end": 5925,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 58
|
|
},
|
|
"identifierName": "copy"
|
|
},
|
|
"name": "copy"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5946,
|
|
"end": 6007,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 77
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5946,
|
|
"end": 5950,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 20
|
|
},
|
|
"identifierName": "code"
|
|
},
|
|
"name": "code"
|
|
},
|
|
"value": {
|
|
"type": "CallExpression",
|
|
"start": 5952,
|
|
"end": 6007,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 77
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 5952,
|
|
"end": 5975,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 45
|
|
},
|
|
"identifierName": "getCodeFromBuildingData"
|
|
},
|
|
"name": "getCodeFromBuildingData"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ThisExpression",
|
|
"start": 5976,
|
|
"end": 5980,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5982,
|
|
"end": 5989,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 59
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5991,
|
|
"end": 6006,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 76
|
|
},
|
|
"identifierName": "rotationVariant"
|
|
},
|
|
"name": "rotationVariant"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6046,
|
|
"end": 6087,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 49
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 6046,
|
|
"end": 6086,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 48
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 6046,
|
|
"end": 6072,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 34
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 6046,
|
|
"end": 6050,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6051,
|
|
"end": 6072,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 34
|
|
},
|
|
"identifierName": "setupEntityComponents"
|
|
},
|
|
"name": "setupEntityComponents"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6073,
|
|
"end": 6079,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 41
|
|
},
|
|
"identifierName": "entity"
|
|
},
|
|
"name": "entity"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6081,
|
|
"end": 6085,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 47
|
|
},
|
|
"identifierName": "root"
|
|
},
|
|
"name": "root"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6097,
|
|
"end": 6151,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 62
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 6097,
|
|
"end": 6150,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 61
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 6097,
|
|
"end": 6116,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 27
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 6097,
|
|
"end": 6101,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6102,
|
|
"end": 6116,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 27
|
|
},
|
|
"identifierName": "updateVariants"
|
|
},
|
|
"name": "updateVariants"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6117,
|
|
"end": 6123,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 34
|
|
},
|
|
"identifierName": "entity"
|
|
},
|
|
"name": "entity"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6125,
|
|
"end": 6140,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 51
|
|
},
|
|
"identifierName": "rotationVariant"
|
|
},
|
|
"name": "rotationVariant"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6142,
|
|
"end": 6149,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 60
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 6161,
|
|
"end": 6175,
|
|
"loc": {
|
|
"start": {
|
|
"line": 223,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 223,
|
|
"column": 22
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 6168,
|
|
"end": 6174,
|
|
"loc": {
|
|
"start": {
|
|
"line": 223,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 223,
|
|
"column": 21
|
|
},
|
|
"identifierName": "entity"
|
|
},
|
|
"name": "entity"
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Creates the entity without placing it\r\n * @param {object} param0\r\n * @param {GameRoot} param0.root\r\n * @param {Vector} param0.origin Origin tile\r\n * @param {number=} param0.rotation Rotation\r\n * @param {number} param0.originalRotation Original Rotation\r\n * @param {number} param0.rotationVariant Rotation variant\r\n * @param {string} param0.variant\r\n ",
|
|
"start": 5088,
|
|
"end": 5484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the sprite for a given variant\r\n * @param {number} rotationVariant\r\n * @param {string} variant\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 6190,
|
|
"end": 6352,
|
|
"loc": {
|
|
"start": {
|
|
"line": 226,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 231,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 6358,
|
|
"end": 6600,
|
|
"loc": {
|
|
"start": {
|
|
"line": 232,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 239,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6358,
|
|
"end": 6367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 232,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 232,
|
|
"column": 13
|
|
},
|
|
"identifierName": "getSprite"
|
|
},
|
|
"name": "getSprite",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6368,
|
|
"end": 6383,
|
|
"loc": {
|
|
"start": {
|
|
"line": 232,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 232,
|
|
"column": 29
|
|
},
|
|
"identifierName": "rotationVariant"
|
|
},
|
|
"name": "rotationVariant"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6385,
|
|
"end": 6392,
|
|
"loc": {
|
|
"start": {
|
|
"line": 232,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 232,
|
|
"column": 38
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 6394,
|
|
"end": 6600,
|
|
"loc": {
|
|
"start": {
|
|
"line": 232,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 239,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 6405,
|
|
"end": 6593,
|
|
"loc": {
|
|
"start": {
|
|
"line": 233,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 238,
|
|
"column": 10
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 6412,
|
|
"end": 6592,
|
|
"loc": {
|
|
"start": {
|
|
"line": 233,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 238,
|
|
"column": 9
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 6412,
|
|
"end": 6428,
|
|
"loc": {
|
|
"start": {
|
|
"line": 233,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 233,
|
|
"column": 31
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6412,
|
|
"end": 6418,
|
|
"loc": {
|
|
"start": {
|
|
"line": 233,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 233,
|
|
"column": 21
|
|
},
|
|
"identifierName": "Loader"
|
|
},
|
|
"name": "Loader"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6419,
|
|
"end": 6428,
|
|
"loc": {
|
|
"start": {
|
|
"line": 233,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 233,
|
|
"column": 31
|
|
},
|
|
"identifierName": "getSprite"
|
|
},
|
|
"name": "getSprite"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "BinaryExpression",
|
|
"start": 6443,
|
|
"end": 6581,
|
|
"loc": {
|
|
"start": {
|
|
"line": 234,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 237,
|
|
"column": 18
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 6443,
|
|
"end": 6559,
|
|
"loc": {
|
|
"start": {
|
|
"line": 234,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 69
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 6443,
|
|
"end": 6486,
|
|
"loc": {
|
|
"start": {
|
|
"line": 234,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 235,
|
|
"column": 19
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "StringLiteral",
|
|
"start": 6443,
|
|
"end": 6463,
|
|
"loc": {
|
|
"start": {
|
|
"line": 234,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 234,
|
|
"column": 32
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "sprites/buildings/",
|
|
"raw": "\"sprites/buildings/\""
|
|
},
|
|
"value": "sprites/buildings/"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"start": 6479,
|
|
"end": 6486,
|
|
"loc": {
|
|
"start": {
|
|
"line": 235,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 235,
|
|
"column": 19
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 6479,
|
|
"end": 6483,
|
|
"loc": {
|
|
"start": {
|
|
"line": 235,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 235,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6484,
|
|
"end": 6486,
|
|
"loc": {
|
|
"start": {
|
|
"line": 235,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 235,
|
|
"column": 19
|
|
},
|
|
"identifierName": "id"
|
|
},
|
|
"name": "id"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "ConditionalExpression",
|
|
"start": 6503,
|
|
"end": 6558,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 68
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"start": 6503,
|
|
"end": 6537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 47
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 6503,
|
|
"end": 6510,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 20
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"operator": "===",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 6515,
|
|
"end": 6537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 47
|
|
},
|
|
"identifierName": "defaultBuildingVariant"
|
|
},
|
|
"name": "defaultBuildingVariant"
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "StringLiteral",
|
|
"start": 6540,
|
|
"end": 6542,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 52
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "",
|
|
"raw": "\"\""
|
|
},
|
|
"value": ""
|
|
},
|
|
"alternate": {
|
|
"type": "BinaryExpression",
|
|
"start": 6545,
|
|
"end": 6558,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 68
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "StringLiteral",
|
|
"start": 6545,
|
|
"end": 6548,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 58
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "-",
|
|
"raw": "\"-\""
|
|
},
|
|
"value": "-"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 6551,
|
|
"end": 6558,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 68
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
}
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 6502
|
|
}
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6575,
|
|
"end": 6581,
|
|
"loc": {
|
|
"start": {
|
|
"line": 237,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 237,
|
|
"column": 18
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": ".png",
|
|
"raw": "\".png\""
|
|
},
|
|
"value": ".png"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the sprite for a given variant\r\n * @param {number} rotationVariant\r\n * @param {string} variant\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 6190,
|
|
"end": 6352,
|
|
"loc": {
|
|
"start": {
|
|
"line": 226,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 231,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should compute the optimal rotation variant on the given tile\r\n * @param {object} param0\r\n * @param {GameRoot} param0.root\r\n * @param {Vector} param0.tile\r\n * @param {number} param0.rotation\r\n * @param {string} param0.variant\r\n * @param {Layer} param0.layer\r\n * @return {{ rotation: number, rotationVariant: number, connectedEntities?: Array<Entity> }}\r\n ",
|
|
"start": 6608,
|
|
"end": 7009,
|
|
"loc": {
|
|
"start": {
|
|
"line": 241,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 250,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 7015,
|
|
"end": 7362,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 262,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7015,
|
|
"end": 7062,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 51
|
|
},
|
|
"identifierName": "computeOptimalDirectionAndRotationVariantAtTile"
|
|
},
|
|
"name": "computeOptimalDirectionAndRotationVariantAtTile",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "ObjectPattern",
|
|
"start": 7063,
|
|
"end": 7103,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 92
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7065,
|
|
"end": 7069,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 58
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7065,
|
|
"end": 7069,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 58
|
|
},
|
|
"identifierName": "root"
|
|
},
|
|
"name": "root"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 7065,
|
|
"end": 7069,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 58
|
|
},
|
|
"identifierName": "root"
|
|
},
|
|
"name": "root"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7071,
|
|
"end": 7075,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 64
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7071,
|
|
"end": 7075,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 64
|
|
},
|
|
"identifierName": "tile"
|
|
},
|
|
"name": "tile"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 7071,
|
|
"end": 7075,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 64
|
|
},
|
|
"identifierName": "tile"
|
|
},
|
|
"name": "tile"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7077,
|
|
"end": 7085,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 74
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7077,
|
|
"end": 7085,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 74
|
|
},
|
|
"identifierName": "rotation"
|
|
},
|
|
"name": "rotation"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 7077,
|
|
"end": 7085,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 74
|
|
},
|
|
"identifierName": "rotation"
|
|
},
|
|
"name": "rotation"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7087,
|
|
"end": 7094,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 83
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7087,
|
|
"end": 7094,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 83
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 7087,
|
|
"end": 7094,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 83
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7096,
|
|
"end": 7101,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 85
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 90
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7096,
|
|
"end": 7101,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 85
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 90
|
|
},
|
|
"identifierName": "layer"
|
|
},
|
|
"name": "layer"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 7096,
|
|
"end": 7101,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 85
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 90
|
|
},
|
|
"identifierName": "layer"
|
|
},
|
|
"name": "layer"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 7105,
|
|
"end": 7362,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 94
|
|
},
|
|
"end": {
|
|
"line": 262,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 7116,
|
|
"end": 7269,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 257,
|
|
"column": 9
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"start": 7120,
|
|
"end": 7150,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 42
|
|
}
|
|
},
|
|
"operator": "!",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 7121,
|
|
"end": 7150,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 42
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 7121,
|
|
"end": 7141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 33
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 7121,
|
|
"end": 7125,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 7126,
|
|
"end": 7141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 33
|
|
},
|
|
"identifierName": "getIsRotateable"
|
|
},
|
|
"name": "getIsRotateable"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 7142,
|
|
"end": 7149,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 41
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
}
|
|
]
|
|
},
|
|
"extra": {
|
|
"parenthesizedArgument": false
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 7152,
|
|
"end": 7269,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 257,
|
|
"column": 9
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 7167,
|
|
"end": 7258,
|
|
"loc": {
|
|
"start": {
|
|
"line": 253,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 256,
|
|
"column": 14
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "ObjectExpression",
|
|
"start": 7174,
|
|
"end": 7257,
|
|
"loc": {
|
|
"start": {
|
|
"line": 253,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 256,
|
|
"column": 13
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7193,
|
|
"end": 7204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 254,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 254,
|
|
"column": 27
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7193,
|
|
"end": 7201,
|
|
"loc": {
|
|
"start": {
|
|
"line": 254,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 254,
|
|
"column": 24
|
|
},
|
|
"identifierName": "rotation"
|
|
},
|
|
"name": "rotation"
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start": 7203,
|
|
"end": 7204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 254,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 254,
|
|
"column": 27
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7223,
|
|
"end": 7241,
|
|
"loc": {
|
|
"start": {
|
|
"line": 255,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 255,
|
|
"column": 34
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7223,
|
|
"end": 7238,
|
|
"loc": {
|
|
"start": {
|
|
"line": 255,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 255,
|
|
"column": 31
|
|
},
|
|
"identifierName": "rotationVariant"
|
|
},
|
|
"name": "rotationVariant"
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start": 7240,
|
|
"end": 7241,
|
|
"loc": {
|
|
"start": {
|
|
"line": 255,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 255,
|
|
"column": 34
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": null
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 7279,
|
|
"end": 7355,
|
|
"loc": {
|
|
"start": {
|
|
"line": 258,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 261,
|
|
"column": 10
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "ObjectExpression",
|
|
"start": 7286,
|
|
"end": 7354,
|
|
"loc": {
|
|
"start": {
|
|
"line": 258,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 261,
|
|
"column": 9
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7301,
|
|
"end": 7309,
|
|
"loc": {
|
|
"start": {
|
|
"line": 259,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 259,
|
|
"column": 20
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7301,
|
|
"end": 7309,
|
|
"loc": {
|
|
"start": {
|
|
"line": 259,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 259,
|
|
"column": 20
|
|
},
|
|
"identifierName": "rotation"
|
|
},
|
|
"name": "rotation"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 7301,
|
|
"end": 7309,
|
|
"loc": {
|
|
"start": {
|
|
"line": 259,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 259,
|
|
"column": 20
|
|
},
|
|
"identifierName": "rotation"
|
|
},
|
|
"name": "rotation"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7324,
|
|
"end": 7342,
|
|
"loc": {
|
|
"start": {
|
|
"line": 260,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 260,
|
|
"column": 30
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7324,
|
|
"end": 7339,
|
|
"loc": {
|
|
"start": {
|
|
"line": 260,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 260,
|
|
"column": 27
|
|
},
|
|
"identifierName": "rotationVariant"
|
|
},
|
|
"name": "rotationVariant"
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start": 7341,
|
|
"end": 7342,
|
|
"loc": {
|
|
"start": {
|
|
"line": 260,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 260,
|
|
"column": 30
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should compute the optimal rotation variant on the given tile\r\n * @param {object} param0\r\n * @param {GameRoot} param0.root\r\n * @param {Vector} param0.tile\r\n * @param {number} param0.rotation\r\n * @param {string} param0.variant\r\n * @param {Layer} param0.layer\r\n * @return {{ rotation: number, rotationVariant: number, connectedEntities?: Array<Entity> }}\r\n ",
|
|
"start": 6608,
|
|
"end": 7009,
|
|
"loc": {
|
|
"start": {
|
|
"line": 241,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 250,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should update the entity to match the given variants\r\n * @param {Entity} entity\r\n * @param {number} rotationVariant\r\n * @param {string} variant\r\n ",
|
|
"start": 7370,
|
|
"end": 7546,
|
|
"loc": {
|
|
"start": {
|
|
"line": 264,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 269,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 7552,
|
|
"end": 7603,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 55
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7552,
|
|
"end": 7566,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 18
|
|
},
|
|
"identifierName": "updateVariants"
|
|
},
|
|
"name": "updateVariants",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 7567,
|
|
"end": 7573,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 25
|
|
},
|
|
"identifierName": "entity"
|
|
},
|
|
"name": "entity"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 7575,
|
|
"end": 7590,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 42
|
|
},
|
|
"identifierName": "rotationVariant"
|
|
},
|
|
"name": "rotationVariant"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 7592,
|
|
"end": 7599,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 51
|
|
},
|
|
"identifierName": "variant"
|
|
},
|
|
"name": "variant"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 7601,
|
|
"end": 7603,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 55
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": [],
|
|
"leadingComments": null,
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should update the entity to match the given variants\r\n * @param {Entity} entity\r\n * @param {number} rotationVariant\r\n * @param {string} variant\r\n ",
|
|
"start": 7370,
|
|
"end": 7546,
|
|
"loc": {
|
|
"start": {
|
|
"line": 264,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 269,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " PRIVATE INTERFACE",
|
|
"start": 7611,
|
|
"end": 7631,
|
|
"loc": {
|
|
"start": {
|
|
"line": 272,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 272,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should setup the entity components\r\n * @param {Entity} entity\r\n * @param {GameRoot} root\r\n ",
|
|
"start": 7639,
|
|
"end": 7756,
|
|
"loc": {
|
|
"start": {
|
|
"line": 274,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 278,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 7762,
|
|
"end": 7825,
|
|
"loc": {
|
|
"start": {
|
|
"line": 279,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 281,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7762,
|
|
"end": 7783,
|
|
"loc": {
|
|
"start": {
|
|
"line": 279,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 279,
|
|
"column": 25
|
|
},
|
|
"identifierName": "setupEntityComponents"
|
|
},
|
|
"name": "setupEntityComponents",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 7784,
|
|
"end": 7790,
|
|
"loc": {
|
|
"start": {
|
|
"line": 279,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 279,
|
|
"column": 32
|
|
},
|
|
"identifierName": "entity"
|
|
},
|
|
"name": "entity"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 7792,
|
|
"end": 7796,
|
|
"loc": {
|
|
"start": {
|
|
"line": 279,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 279,
|
|
"column": 38
|
|
},
|
|
"identifierName": "root"
|
|
},
|
|
"name": "root"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 7798,
|
|
"end": 7825,
|
|
"loc": {
|
|
"start": {
|
|
"line": 279,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 281,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 7809,
|
|
"end": 7818,
|
|
"loc": {
|
|
"start": {
|
|
"line": 280,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 280,
|
|
"column": 17
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"start": 7809,
|
|
"end": 7817,
|
|
"loc": {
|
|
"start": {
|
|
"line": 280,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 280,
|
|
"column": 16
|
|
},
|
|
"identifierName": "abstract"
|
|
},
|
|
"name": "abstract"
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " PRIVATE INTERFACE",
|
|
"start": 7611,
|
|
"end": 7631,
|
|
"loc": {
|
|
"start": {
|
|
"line": 272,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 272,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should setup the entity components\r\n * @param {Entity} entity\r\n * @param {GameRoot} root\r\n ",
|
|
"start": 7639,
|
|
"end": 7756,
|
|
"loc": {
|
|
"start": {
|
|
"line": 274,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 278,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"leadingComments": [],
|
|
"trailingComments": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {string} id Building id\r\n ",
|
|
"start": 473,
|
|
"end": 532,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the id of this building\r\n ",
|
|
"start": 593,
|
|
"end": 645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the edit layer of the building\r\n * @param {GameRoot} root\r\n * @param {string} variant\r\n * @returns {Layer}\r\n ",
|
|
"start": 700,
|
|
"end": 847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return the dimensions of the building\r\n * @param {string} variant\r\n ",
|
|
"start": 945,
|
|
"end": 1042,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether the building has the direction lock switch available\r\n ",
|
|
"start": 1146,
|
|
"end": 1235,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 48,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to stay in placement mode after having placed a building\r\n ",
|
|
"start": 1311,
|
|
"end": 1396,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Can return a special interlaved 9 elements overlay matrix for rendering\r\n * @param {number} rotation\r\n * @param {number} rotationVariant\r\n * @param {string} variant\r\n * @param {Entity} entity\r\n * @returns {Array<number>|null}\r\n ",
|
|
"start": 1466,
|
|
"end": 1732,
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return additional statistics about this building\r\n * @param {GameRoot} root\r\n * @param {string} variant\r\n * @returns {Array<[string, string]>}\r\n ",
|
|
"start": 1850,
|
|
"end": 2032,
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building can get replaced\r\n ",
|
|
"start": 2113,
|
|
"end": 2180,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to flip the orientation after a building has been placed - useful\r\n * for tunnels.\r\n ",
|
|
"start": 2276,
|
|
"end": 2391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to show a preview of the layer when placing the building\r\n * @param {string} variant\r\n ",
|
|
"start": 2471,
|
|
"end": 2588,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to rotate automatically in the dragging direction while placing\r\n * @param {string} variant\r\n ",
|
|
"start": 2661,
|
|
"end": 2785,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building is removable\r\n * @param {string} variant\r\n * @returns {boolean}\r\n ",
|
|
"start": 2899,
|
|
"end": 3021,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the placement sound\r\n * @param {string} variant\r\n * @returns {string}\r\n ",
|
|
"start": 3114,
|
|
"end": 3220,
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * @param {GameRoot} root\r\n ",
|
|
"start": 3332,
|
|
"end": 3375,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a preview sprite\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 3466,
|
|
"end": 3542,
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a sprite for blueprints\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 3834,
|
|
"end": 3917,
|
|
"loc": {
|
|
"start": {
|
|
"line": 151,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building is rotateable\r\n * @param {string} variant\r\n * @returns {boolean}\r\n ",
|
|
"start": 4212,
|
|
"end": 4335,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building is unlocked for the given game\r\n * @param {GameRoot} root\r\n ",
|
|
"start": 4404,
|
|
"end": 4516,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return a silhouette color for the map overview or null if not set\r\n * @param {string} variant\r\n * @param {number} rotationVariant\r\n ",
|
|
"start": 4580,
|
|
"end": 4745,
|
|
"loc": {
|
|
"start": {
|
|
"line": 181,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 185,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return false if the pins are already included in the sprite of the building\r\n * @param {string} variant\r\n * @returns {boolean}\r\n ",
|
|
"start": 4834,
|
|
"end": 4996,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Creates the entity without placing it\r\n * @param {object} param0\r\n * @param {GameRoot} param0.root\r\n * @param {Vector} param0.origin Origin tile\r\n * @param {number=} param0.rotation Rotation\r\n * @param {number} param0.originalRotation Original Rotation\r\n * @param {number} param0.rotationVariant Rotation variant\r\n * @param {string} param0.variant\r\n ",
|
|
"start": 5088,
|
|
"end": 5484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the sprite for a given variant\r\n * @param {number} rotationVariant\r\n * @param {string} variant\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 6190,
|
|
"end": 6352,
|
|
"loc": {
|
|
"start": {
|
|
"line": 226,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 231,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should compute the optimal rotation variant on the given tile\r\n * @param {object} param0\r\n * @param {GameRoot} param0.root\r\n * @param {Vector} param0.tile\r\n * @param {number} param0.rotation\r\n * @param {string} param0.variant\r\n * @param {Layer} param0.layer\r\n * @return {{ rotation: number, rotationVariant: number, connectedEntities?: Array<Entity> }}\r\n ",
|
|
"start": 6608,
|
|
"end": 7009,
|
|
"loc": {
|
|
"start": {
|
|
"line": 241,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 250,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should update the entity to match the given variants\r\n * @param {Entity} entity\r\n * @param {number} rotationVariant\r\n * @param {string} variant\r\n ",
|
|
"start": 7370,
|
|
"end": 7546,
|
|
"loc": {
|
|
"start": {
|
|
"line": 264,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 269,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " PRIVATE INTERFACE",
|
|
"start": 7611,
|
|
"end": 7631,
|
|
"loc": {
|
|
"start": {
|
|
"line": 272,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 272,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should setup the entity components\r\n * @param {Entity} entity\r\n * @param {GameRoot} root\r\n ",
|
|
"start": 7639,
|
|
"end": 7756,
|
|
"loc": {
|
|
"start": {
|
|
"line": 274,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 278,
|
|
"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": "Loader",
|
|
"start": 9,
|
|
"end": 15,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 16,
|
|
"end": 17,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 18,
|
|
"end": 22,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "../core/loader",
|
|
"start": 23,
|
|
"end": 39,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 39,
|
|
"end": 40,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"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": 42,
|
|
"end": 48,
|
|
"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": 49,
|
|
"end": 50,
|
|
"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": "AtlasSprite",
|
|
"start": 51,
|
|
"end": 62,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 63,
|
|
"end": 64,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 65,
|
|
"end": 69,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "../core/sprites",
|
|
"start": 70,
|
|
"end": 87,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 87,
|
|
"end": 88,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "import",
|
|
"keyword": "import",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "import",
|
|
"start": 90,
|
|
"end": 96,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 97,
|
|
"end": 98,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Vector",
|
|
"start": 99,
|
|
"end": 105,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 106,
|
|
"end": 107,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 108,
|
|
"end": 112,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "../core/vector",
|
|
"start": 113,
|
|
"end": 129,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 129,
|
|
"end": 130,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "import",
|
|
"keyword": "import",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "import",
|
|
"start": 132,
|
|
"end": 138,
|
|
"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": 139,
|
|
"end": 140,
|
|
"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": "SOUNDS",
|
|
"start": 141,
|
|
"end": 147,
|
|
"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": 148,
|
|
"end": 149,
|
|
"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": 150,
|
|
"end": 154,
|
|
"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": "../platform/sound",
|
|
"start": 155,
|
|
"end": 174,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 174,
|
|
"end": 175,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "import",
|
|
"keyword": "import",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "import",
|
|
"start": 177,
|
|
"end": 183,
|
|
"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": 184,
|
|
"end": 185,
|
|
"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": "StaticMapEntityComponent",
|
|
"start": 186,
|
|
"end": 210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 211,
|
|
"end": 212,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 213,
|
|
"end": 217,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "./components/static_map_entity",
|
|
"start": 218,
|
|
"end": 250,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 73
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 250,
|
|
"end": 251,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 73
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 74
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 253,
|
|
"end": 259,
|
|
"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": 260,
|
|
"end": 261,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Entity",
|
|
"start": 262,
|
|
"end": 268,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 269,
|
|
"end": 270,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 271,
|
|
"end": 275,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "./entity",
|
|
"start": 276,
|
|
"end": 286,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 286,
|
|
"end": 287,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"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": 289,
|
|
"end": 295,
|
|
"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": 296,
|
|
"end": 297,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "GameRoot",
|
|
"start": 298,
|
|
"end": 306,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 307,
|
|
"end": 308,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 309,
|
|
"end": 313,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "./root",
|
|
"start": 314,
|
|
"end": 322,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 322,
|
|
"end": 323,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"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": 325,
|
|
"end": 331,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 332,
|
|
"end": 333,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getCodeFromBuildingData",
|
|
"start": 334,
|
|
"end": 357,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 358,
|
|
"end": 359,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 360,
|
|
"end": 364,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "./building_codes",
|
|
"start": 365,
|
|
"end": 383,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 383,
|
|
"end": 384,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 388,
|
|
"end": 394,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 395,
|
|
"end": 400,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 401,
|
|
"end": 423,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 424,
|
|
"end": 425,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "default",
|
|
"start": 426,
|
|
"end": 435,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 435,
|
|
"end": 436,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 440,
|
|
"end": 446,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"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": 447,
|
|
"end": 452,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "MetaBuilding",
|
|
"start": 453,
|
|
"end": 465,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 466,
|
|
"end": 467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {string} id Building id\r\n ",
|
|
"start": 473,
|
|
"end": 532,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "constructor",
|
|
"start": 538,
|
|
"end": 549,
|
|
"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": 549,
|
|
"end": 550,
|
|
"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": "id",
|
|
"start": 550,
|
|
"end": 552,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 552,
|
|
"end": 553,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 554,
|
|
"end": 555,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"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": 565,
|
|
"end": 569,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 569,
|
|
"end": 570,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "id",
|
|
"start": 570,
|
|
"end": 572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 573,
|
|
"end": 574,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "id",
|
|
"start": 575,
|
|
"end": 577,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 577,
|
|
"end": 578,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 584,
|
|
"end": 585,
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the id of this building\r\n ",
|
|
"start": 593,
|
|
"end": 645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getId",
|
|
"start": 651,
|
|
"end": 656,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 656,
|
|
"end": 657,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 657,
|
|
"end": 658,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 659,
|
|
"end": 660,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 670,
|
|
"end": 676,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"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": 677,
|
|
"end": 681,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 681,
|
|
"end": 682,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "id",
|
|
"start": 682,
|
|
"end": 684,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 684,
|
|
"end": 685,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 691,
|
|
"end": 692,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the edit layer of the building\r\n * @param {GameRoot} root\r\n * @param {string} variant\r\n * @returns {Layer}\r\n ",
|
|
"start": 700,
|
|
"end": 847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getLayer",
|
|
"start": 853,
|
|
"end": 861,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 861,
|
|
"end": 862,
|
|
"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": "root",
|
|
"start": 862,
|
|
"end": 866,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 866,
|
|
"end": 867,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 868,
|
|
"end": 875,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 876,
|
|
"end": 877,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 878,
|
|
"end": 900,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 900,
|
|
"end": 901,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 902,
|
|
"end": 903,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 913,
|
|
"end": 919,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "regular",
|
|
"start": 920,
|
|
"end": 929,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 929,
|
|
"end": 930,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 936,
|
|
"end": 937,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return the dimensions of the building\r\n * @param {string} variant\r\n ",
|
|
"start": 945,
|
|
"end": 1042,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getDimensions",
|
|
"start": 1048,
|
|
"end": 1061,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1061,
|
|
"end": 1062,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 1062,
|
|
"end": 1069,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 1070,
|
|
"end": 1071,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 1072,
|
|
"end": 1094,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1094,
|
|
"end": 1095,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1096,
|
|
"end": 1097,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 1107,
|
|
"end": 1113,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 1114,
|
|
"end": 1117,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Vector",
|
|
"start": 1118,
|
|
"end": 1124,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1124,
|
|
"end": 1125,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 1,
|
|
"start": 1125,
|
|
"end": 1126,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1126,
|
|
"end": 1127,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 1,
|
|
"start": 1128,
|
|
"end": 1129,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1129,
|
|
"end": 1130,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1130,
|
|
"end": 1131,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1137,
|
|
"end": 1138,
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether the building has the direction lock switch available\r\n ",
|
|
"start": 1146,
|
|
"end": 1235,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 48,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getHasDirectionLockAvailable",
|
|
"start": 1241,
|
|
"end": 1269,
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1269,
|
|
"end": 1270,
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1270,
|
|
"end": 1271,
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1272,
|
|
"end": 1273,
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 1283,
|
|
"end": 1289,
|
|
"loc": {
|
|
"start": {
|
|
"line": 50,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "false",
|
|
"keyword": "false",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "false",
|
|
"start": 1290,
|
|
"end": 1295,
|
|
"loc": {
|
|
"start": {
|
|
"line": 50,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1295,
|
|
"end": 1296,
|
|
"loc": {
|
|
"start": {
|
|
"line": 50,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1302,
|
|
"end": 1303,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to stay in placement mode after having placed a building\r\n ",
|
|
"start": 1311,
|
|
"end": 1396,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getStayInPlacementMode",
|
|
"start": 1402,
|
|
"end": 1424,
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1424,
|
|
"end": 1425,
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1425,
|
|
"end": 1426,
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1427,
|
|
"end": 1428,
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 1438,
|
|
"end": 1444,
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "false",
|
|
"keyword": "false",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "false",
|
|
"start": 1445,
|
|
"end": 1450,
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1450,
|
|
"end": 1451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1457,
|
|
"end": 1458,
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Can return a special interlaved 9 elements overlay matrix for rendering\r\n * @param {number} rotation\r\n * @param {number} rotationVariant\r\n * @param {string} variant\r\n * @param {Entity} entity\r\n * @returns {Array<number>|null}\r\n ",
|
|
"start": 1466,
|
|
"end": 1732,
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getSpecialOverlayRenderMatrix",
|
|
"start": 1738,
|
|
"end": 1767,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1767,
|
|
"end": 1768,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotation",
|
|
"start": 1768,
|
|
"end": 1776,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1776,
|
|
"end": 1777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotationVariant",
|
|
"start": 1778,
|
|
"end": 1793,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1793,
|
|
"end": 1794,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 1795,
|
|
"end": 1802,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1802,
|
|
"end": 1803,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "entity",
|
|
"start": 1804,
|
|
"end": 1810,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 76
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1810,
|
|
"end": 1811,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 77
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1812,
|
|
"end": 1813,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 78
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 79
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 1823,
|
|
"end": 1829,
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"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": 1830,
|
|
"end": 1834,
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1834,
|
|
"end": 1835,
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1841,
|
|
"end": 1842,
|
|
"loc": {
|
|
"start": {
|
|
"line": 70,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 70,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return additional statistics about this building\r\n * @param {GameRoot} root\r\n * @param {string} variant\r\n * @returns {Array<[string, string]>}\r\n ",
|
|
"start": 1850,
|
|
"end": 2032,
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getAdditionalStatistics",
|
|
"start": 2038,
|
|
"end": 2061,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2061,
|
|
"end": 2062,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "root",
|
|
"start": 2062,
|
|
"end": 2066,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2066,
|
|
"end": 2067,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 32
|
|
},
|
|
"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": "variant",
|
|
"start": 2068,
|
|
"end": 2075,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2075,
|
|
"end": 2076,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2077,
|
|
"end": 2078,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2088,
|
|
"end": 2094,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "[",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2095,
|
|
"end": 2096,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "]",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2096,
|
|
"end": 2097,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2097,
|
|
"end": 2098,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2104,
|
|
"end": 2105,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building can get replaced\r\n ",
|
|
"start": 2113,
|
|
"end": 2180,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getIsReplaceable",
|
|
"start": 2186,
|
|
"end": 2202,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2202,
|
|
"end": 2203,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 2203,
|
|
"end": 2210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2211,
|
|
"end": 2212,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 2213,
|
|
"end": 2235,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2235,
|
|
"end": 2236,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2237,
|
|
"end": 2238,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2248,
|
|
"end": 2254,
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "false",
|
|
"keyword": "false",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "false",
|
|
"start": 2255,
|
|
"end": 2260,
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2260,
|
|
"end": 2261,
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2267,
|
|
"end": 2268,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to flip the orientation after a building has been placed - useful\r\n * for tunnels.\r\n ",
|
|
"start": 2276,
|
|
"end": 2391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getFlipOrientationAfterPlacement",
|
|
"start": 2397,
|
|
"end": 2429,
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 93,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2429,
|
|
"end": 2430,
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 93,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2430,
|
|
"end": 2431,
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 93,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2432,
|
|
"end": 2433,
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 93,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2443,
|
|
"end": 2449,
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "false",
|
|
"keyword": "false",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "false",
|
|
"start": 2450,
|
|
"end": 2455,
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2455,
|
|
"end": 2456,
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2462,
|
|
"end": 2463,
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to show a preview of the layer when placing the building\r\n * @param {string} variant\r\n ",
|
|
"start": 2471,
|
|
"end": 2588,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getShowLayerPreview",
|
|
"start": 2594,
|
|
"end": 2613,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2613,
|
|
"end": 2614,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 2614,
|
|
"end": 2621,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2621,
|
|
"end": 2622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2623,
|
|
"end": 2624,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 2634,
|
|
"end": 2640,
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"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": 2641,
|
|
"end": 2645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2645,
|
|
"end": 2646,
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2652,
|
|
"end": 2653,
|
|
"loc": {
|
|
"start": {
|
|
"line": 103,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 103,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Whether to rotate automatically in the dragging direction while placing\r\n * @param {string} variant\r\n ",
|
|
"start": 2661,
|
|
"end": 2785,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getRotateAutomaticallyWhilePlacing",
|
|
"start": 2791,
|
|
"end": 2825,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 109,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 2826,
|
|
"end": 2833,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2834,
|
|
"end": 2835,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 2836,
|
|
"end": 2858,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2858,
|
|
"end": 2859,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 71
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 72
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2860,
|
|
"end": 2861,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 73
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 74
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 2871,
|
|
"end": 2877,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "false",
|
|
"keyword": "false",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "false",
|
|
"start": 2878,
|
|
"end": 2883,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2883,
|
|
"end": 2884,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2890,
|
|
"end": 2891,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building is removable\r\n * @param {string} variant\r\n * @returns {boolean}\r\n ",
|
|
"start": 2899,
|
|
"end": 3021,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getIsRemovable",
|
|
"start": 3027,
|
|
"end": 3041,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3041,
|
|
"end": 3042,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 3042,
|
|
"end": 3049,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 3050,
|
|
"end": 3051,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 3052,
|
|
"end": 3074,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3074,
|
|
"end": 3075,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3076,
|
|
"end": 3077,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 3087,
|
|
"end": 3093,
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "true",
|
|
"keyword": "true",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "true",
|
|
"start": 3094,
|
|
"end": 3098,
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3098,
|
|
"end": 3099,
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3105,
|
|
"end": 3106,
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the placement sound\r\n * @param {string} variant\r\n * @returns {string}\r\n ",
|
|
"start": 3114,
|
|
"end": 3220,
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getPlacementSound",
|
|
"start": 3226,
|
|
"end": 3243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 127,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 3244,
|
|
"end": 3251,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 3252,
|
|
"end": 3253,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 3254,
|
|
"end": 3276,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3276,
|
|
"end": 3277,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3278,
|
|
"end": 3279,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 3289,
|
|
"end": 3295,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "SOUNDS",
|
|
"start": 3296,
|
|
"end": 3302,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3302,
|
|
"end": 3303,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "placeBuilding",
|
|
"start": 3303,
|
|
"end": 3316,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3316,
|
|
"end": 3317,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3323,
|
|
"end": 3324,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * @param {GameRoot} root\r\n ",
|
|
"start": 3332,
|
|
"end": 3375,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getAvailableVariants",
|
|
"start": 3381,
|
|
"end": 3401,
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3401,
|
|
"end": 3402,
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "root",
|
|
"start": 3402,
|
|
"end": 3406,
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3406,
|
|
"end": 3407,
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3408,
|
|
"end": 3409,
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 3419,
|
|
"end": 3425,
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "[",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3426,
|
|
"end": 3427,
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 3427,
|
|
"end": 3449,
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "]",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3449,
|
|
"end": 3450,
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3450,
|
|
"end": 3451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3457,
|
|
"end": 3458,
|
|
"loc": {
|
|
"start": {
|
|
"line": 136,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 136,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a preview sprite\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 3466,
|
|
"end": 3542,
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getPreviewSprite",
|
|
"start": 3548,
|
|
"end": 3564,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3564,
|
|
"end": 3565,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotationVariant",
|
|
"start": 3565,
|
|
"end": 3580,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 3581,
|
|
"end": 3582,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 0,
|
|
"start": 3583,
|
|
"end": 3584,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3584,
|
|
"end": 3585,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 3586,
|
|
"end": 3593,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 3594,
|
|
"end": 3595,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 3596,
|
|
"end": 3618,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 74
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3618,
|
|
"end": 3619,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 74
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 75
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3620,
|
|
"end": 3621,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 77
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 3631,
|
|
"end": 3637,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Loader",
|
|
"start": 3638,
|
|
"end": 3644,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3644,
|
|
"end": 3645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getSprite",
|
|
"start": 3645,
|
|
"end": 3654,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3654,
|
|
"end": 3655,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "sprites/buildings/",
|
|
"start": 3669,
|
|
"end": 3689,
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 144,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 3690,
|
|
"end": 3691,
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 144,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 3705,
|
|
"end": 3709,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3709,
|
|
"end": 3710,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "id",
|
|
"start": 3710,
|
|
"end": 3712,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 3713,
|
|
"end": 3714,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3728,
|
|
"end": 3729,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 3729,
|
|
"end": 3736,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "==/!=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 6,
|
|
"updateContext": null
|
|
},
|
|
"value": "===",
|
|
"start": 3737,
|
|
"end": 3740,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 3741,
|
|
"end": 3763,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "?",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3764,
|
|
"end": 3765,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "",
|
|
"start": 3766,
|
|
"end": 3768,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3769,
|
|
"end": 3770,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "-",
|
|
"start": 3771,
|
|
"end": 3774,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 3775,
|
|
"end": 3776,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 3777,
|
|
"end": 3784,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3784,
|
|
"end": 3785,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 3786,
|
|
"end": 3787,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": ".png",
|
|
"start": 3801,
|
|
"end": 3807,
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3817,
|
|
"end": 3818,
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3818,
|
|
"end": 3819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3825,
|
|
"end": 3826,
|
|
"loc": {
|
|
"start": {
|
|
"line": 149,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 149,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a sprite for blueprints\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 3834,
|
|
"end": 3917,
|
|
"loc": {
|
|
"start": {
|
|
"line": 151,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getBlueprintSprite",
|
|
"start": 3923,
|
|
"end": 3941,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3941,
|
|
"end": 3942,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotationVariant",
|
|
"start": 3942,
|
|
"end": 3957,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 3958,
|
|
"end": 3959,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 0,
|
|
"start": 3960,
|
|
"end": 3961,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3961,
|
|
"end": 3962,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 3963,
|
|
"end": 3970,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 3971,
|
|
"end": 3972,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 3973,
|
|
"end": 3995,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 76
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3995,
|
|
"end": 3996,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 77
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3997,
|
|
"end": 3998,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 78
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 79
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 4008,
|
|
"end": 4014,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Loader",
|
|
"start": 4015,
|
|
"end": 4021,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4021,
|
|
"end": 4022,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getSprite",
|
|
"start": 4022,
|
|
"end": 4031,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4031,
|
|
"end": 4032,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "sprites/blueprints/",
|
|
"start": 4046,
|
|
"end": 4067,
|
|
"loc": {
|
|
"start": {
|
|
"line": 157,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 157,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 4068,
|
|
"end": 4069,
|
|
"loc": {
|
|
"start": {
|
|
"line": 157,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 157,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 4083,
|
|
"end": 4087,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4087,
|
|
"end": 4088,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "id",
|
|
"start": 4088,
|
|
"end": 4090,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 4091,
|
|
"end": 4092,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4106,
|
|
"end": 4107,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 4107,
|
|
"end": 4114,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "==/!=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 6,
|
|
"updateContext": null
|
|
},
|
|
"value": "===",
|
|
"start": 4115,
|
|
"end": 4118,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 4119,
|
|
"end": 4141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "?",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4142,
|
|
"end": 4143,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "",
|
|
"start": 4144,
|
|
"end": 4146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4147,
|
|
"end": 4148,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "-",
|
|
"start": 4149,
|
|
"end": 4152,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 4153,
|
|
"end": 4154,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 4155,
|
|
"end": 4162,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4162,
|
|
"end": 4163,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 4164,
|
|
"end": 4165,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": ".png",
|
|
"start": 4179,
|
|
"end": 4185,
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4195,
|
|
"end": 4196,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4196,
|
|
"end": 4197,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4203,
|
|
"end": 4204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 162,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 162,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building is rotateable\r\n * @param {string} variant\r\n * @returns {boolean}\r\n ",
|
|
"start": 4212,
|
|
"end": 4335,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getIsRotateable",
|
|
"start": 4341,
|
|
"end": 4356,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4356,
|
|
"end": 4357,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 4357,
|
|
"end": 4364,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4364,
|
|
"end": 4365,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4366,
|
|
"end": 4367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 4377,
|
|
"end": 4383,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "true",
|
|
"keyword": "true",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "true",
|
|
"start": 4384,
|
|
"end": 4388,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4388,
|
|
"end": 4389,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4395,
|
|
"end": 4396,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns whether this building is unlocked for the given game\r\n * @param {GameRoot} root\r\n ",
|
|
"start": 4404,
|
|
"end": 4516,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getIsUnlocked",
|
|
"start": 4522,
|
|
"end": 4535,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4535,
|
|
"end": 4536,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "root",
|
|
"start": 4536,
|
|
"end": 4540,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4540,
|
|
"end": 4541,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4542,
|
|
"end": 4543,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 4553,
|
|
"end": 4559,
|
|
"loc": {
|
|
"start": {
|
|
"line": 178,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "true",
|
|
"keyword": "true",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "true",
|
|
"start": 4560,
|
|
"end": 4564,
|
|
"loc": {
|
|
"start": {
|
|
"line": 178,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4564,
|
|
"end": 4565,
|
|
"loc": {
|
|
"start": {
|
|
"line": 178,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4571,
|
|
"end": 4572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return a silhouette color for the map overview or null if not set\r\n * @param {string} variant\r\n * @param {number} rotationVariant\r\n ",
|
|
"start": 4580,
|
|
"end": 4745,
|
|
"loc": {
|
|
"start": {
|
|
"line": 181,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 185,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getSilhouetteColor",
|
|
"start": 4751,
|
|
"end": 4769,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4769,
|
|
"end": 4770,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 4770,
|
|
"end": 4777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4777,
|
|
"end": 4778,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotationVariant",
|
|
"start": 4779,
|
|
"end": 4794,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4794,
|
|
"end": 4795,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4796,
|
|
"end": 4797,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 4807,
|
|
"end": 4813,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"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": 4814,
|
|
"end": 4818,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4818,
|
|
"end": 4819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4825,
|
|
"end": 4826,
|
|
"loc": {
|
|
"start": {
|
|
"line": 188,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 188,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return false if the pins are already included in the sprite of the building\r\n * @param {string} variant\r\n * @returns {boolean}\r\n ",
|
|
"start": 4834,
|
|
"end": 4996,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getRenderPins",
|
|
"start": 5002,
|
|
"end": 5015,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 195,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5015,
|
|
"end": 5016,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 195,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 5016,
|
|
"end": 5023,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 195,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 5024,
|
|
"end": 5025,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 195,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 5026,
|
|
"end": 5048,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 195,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5048,
|
|
"end": 5049,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 195,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5050,
|
|
"end": 5051,
|
|
"loc": {
|
|
"start": {
|
|
"line": 195,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 195,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 5061,
|
|
"end": 5067,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "true",
|
|
"keyword": "true",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "true",
|
|
"start": 5068,
|
|
"end": 5072,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5072,
|
|
"end": 5073,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5079,
|
|
"end": 5080,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Creates the entity without placing it\r\n * @param {object} param0\r\n * @param {GameRoot} param0.root\r\n * @param {Vector} param0.origin Origin tile\r\n * @param {number=} param0.rotation Rotation\r\n * @param {number} param0.originalRotation Original Rotation\r\n * @param {number} param0.rotationVariant Rotation variant\r\n * @param {string} param0.variant\r\n ",
|
|
"start": 5088,
|
|
"end": 5484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "createEntity",
|
|
"start": 5490,
|
|
"end": 5502,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5502,
|
|
"end": 5503,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5503,
|
|
"end": 5504,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "root",
|
|
"start": 5505,
|
|
"end": 5509,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5509,
|
|
"end": 5510,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "origin",
|
|
"start": 5511,
|
|
"end": 5517,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5517,
|
|
"end": 5518,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotation",
|
|
"start": 5519,
|
|
"end": 5527,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5527,
|
|
"end": 5528,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "originalRotation",
|
|
"start": 5529,
|
|
"end": 5545,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5545,
|
|
"end": 5546,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotationVariant",
|
|
"start": 5547,
|
|
"end": 5562,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 76
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5562,
|
|
"end": 5563,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 77
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 5564,
|
|
"end": 5571,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 78
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 85
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5572,
|
|
"end": 5573,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 86
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 87
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5573,
|
|
"end": 5574,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 87
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 88
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5575,
|
|
"end": 5576,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 89
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 90
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 5586,
|
|
"end": 5591,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "entity",
|
|
"start": 5592,
|
|
"end": 5598,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 210,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"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": 5601,
|
|
"end": 5604,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Entity",
|
|
"start": 5605,
|
|
"end": 5611,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5611,
|
|
"end": 5612,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "root",
|
|
"start": 5612,
|
|
"end": 5616,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5616,
|
|
"end": 5617,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5617,
|
|
"end": 5618,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "entity",
|
|
"start": 5628,
|
|
"end": 5634,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5634,
|
|
"end": 5635,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "layer",
|
|
"start": 5635,
|
|
"end": 5640,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 5641,
|
|
"end": 5642,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 5643,
|
|
"end": 5647,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5647,
|
|
"end": 5648,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getLayer",
|
|
"start": 5648,
|
|
"end": 5656,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5656,
|
|
"end": 5657,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "root",
|
|
"start": 5657,
|
|
"end": 5661,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5661,
|
|
"end": 5662,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 5663,
|
|
"end": 5670,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5670,
|
|
"end": 5671,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5671,
|
|
"end": 5672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "entity",
|
|
"start": 5682,
|
|
"end": 5688,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5688,
|
|
"end": 5689,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "addComponent",
|
|
"start": 5689,
|
|
"end": 5701,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5701,
|
|
"end": 5702,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "new",
|
|
"keyword": "new",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "new",
|
|
"start": 5716,
|
|
"end": 5719,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "StaticMapEntityComponent",
|
|
"start": 5720,
|
|
"end": 5744,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5744,
|
|
"end": 5745,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5745,
|
|
"end": 5746,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "origin",
|
|
"start": 5764,
|
|
"end": 5770,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5770,
|
|
"end": 5771,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 5772,
|
|
"end": 5775,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Vector",
|
|
"start": 5776,
|
|
"end": 5782,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5782,
|
|
"end": 5783,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "origin",
|
|
"start": 5783,
|
|
"end": 5789,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5789,
|
|
"end": 5790,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "x",
|
|
"start": 5790,
|
|
"end": 5791,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 214,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "origin",
|
|
"start": 5793,
|
|
"end": 5799,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5799,
|
|
"end": 5800,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "y",
|
|
"start": 5800,
|
|
"end": 5801,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5801,
|
|
"end": 5802,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5802,
|
|
"end": 5803,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotation",
|
|
"start": 5821,
|
|
"end": 5829,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5829,
|
|
"end": 5830,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "originalRotation",
|
|
"start": 5848,
|
|
"end": 5864,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5864,
|
|
"end": 5865,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "tileSize",
|
|
"start": 5883,
|
|
"end": 5891,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5891,
|
|
"end": 5892,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 5893,
|
|
"end": 5897,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5897,
|
|
"end": 5898,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getDimensions",
|
|
"start": 5898,
|
|
"end": 5911,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5911,
|
|
"end": 5912,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 5912,
|
|
"end": 5919,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5919,
|
|
"end": 5920,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5920,
|
|
"end": 5921,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "copy",
|
|
"start": 5921,
|
|
"end": 5925,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5925,
|
|
"end": 5926,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5926,
|
|
"end": 5927,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5927,
|
|
"end": 5928,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "code",
|
|
"start": 5946,
|
|
"end": 5950,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5950,
|
|
"end": 5951,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getCodeFromBuildingData",
|
|
"start": 5952,
|
|
"end": 5975,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5975,
|
|
"end": 5976,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 5976,
|
|
"end": 5980,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5980,
|
|
"end": 5981,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 5982,
|
|
"end": 5989,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5989,
|
|
"end": 5990,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotationVariant",
|
|
"start": 5991,
|
|
"end": 6006,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 76
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6006,
|
|
"end": 6007,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 77
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6007,
|
|
"end": 6008,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 77
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 78
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6022,
|
|
"end": 6023,
|
|
"loc": {
|
|
"start": {
|
|
"line": 219,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6023,
|
|
"end": 6024,
|
|
"loc": {
|
|
"start": {
|
|
"line": 219,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6034,
|
|
"end": 6035,
|
|
"loc": {
|
|
"start": {
|
|
"line": 220,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 220,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6035,
|
|
"end": 6036,
|
|
"loc": {
|
|
"start": {
|
|
"line": 220,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 220,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 6046,
|
|
"end": 6050,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6050,
|
|
"end": 6051,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "setupEntityComponents",
|
|
"start": 6051,
|
|
"end": 6072,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6072,
|
|
"end": 6073,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "entity",
|
|
"start": 6073,
|
|
"end": 6079,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6079,
|
|
"end": 6080,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "root",
|
|
"start": 6081,
|
|
"end": 6085,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6085,
|
|
"end": 6086,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6086,
|
|
"end": 6087,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"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": 6097,
|
|
"end": 6101,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6101,
|
|
"end": 6102,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "updateVariants",
|
|
"start": 6102,
|
|
"end": 6116,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6116,
|
|
"end": 6117,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "entity",
|
|
"start": 6117,
|
|
"end": 6123,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6123,
|
|
"end": 6124,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotationVariant",
|
|
"start": 6125,
|
|
"end": 6140,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6140,
|
|
"end": 6141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 6142,
|
|
"end": 6149,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6149,
|
|
"end": 6150,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6150,
|
|
"end": 6151,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 62
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 6161,
|
|
"end": 6167,
|
|
"loc": {
|
|
"start": {
|
|
"line": 223,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 223,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "entity",
|
|
"start": 6168,
|
|
"end": 6174,
|
|
"loc": {
|
|
"start": {
|
|
"line": 223,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 223,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6174,
|
|
"end": 6175,
|
|
"loc": {
|
|
"start": {
|
|
"line": 223,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 223,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6181,
|
|
"end": 6182,
|
|
"loc": {
|
|
"start": {
|
|
"line": 224,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 224,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the sprite for a given variant\r\n * @param {number} rotationVariant\r\n * @param {string} variant\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 6190,
|
|
"end": 6352,
|
|
"loc": {
|
|
"start": {
|
|
"line": 226,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 231,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getSprite",
|
|
"start": 6358,
|
|
"end": 6367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 232,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 232,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6367,
|
|
"end": 6368,
|
|
"loc": {
|
|
"start": {
|
|
"line": 232,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 232,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotationVariant",
|
|
"start": 6368,
|
|
"end": 6383,
|
|
"loc": {
|
|
"start": {
|
|
"line": 232,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 232,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6383,
|
|
"end": 6384,
|
|
"loc": {
|
|
"start": {
|
|
"line": 232,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 232,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 6385,
|
|
"end": 6392,
|
|
"loc": {
|
|
"start": {
|
|
"line": 232,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 232,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6392,
|
|
"end": 6393,
|
|
"loc": {
|
|
"start": {
|
|
"line": 232,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 232,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6394,
|
|
"end": 6395,
|
|
"loc": {
|
|
"start": {
|
|
"line": 232,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 232,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 6405,
|
|
"end": 6411,
|
|
"loc": {
|
|
"start": {
|
|
"line": 233,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 233,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Loader",
|
|
"start": 6412,
|
|
"end": 6418,
|
|
"loc": {
|
|
"start": {
|
|
"line": 233,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 233,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6418,
|
|
"end": 6419,
|
|
"loc": {
|
|
"start": {
|
|
"line": 233,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 233,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getSprite",
|
|
"start": 6419,
|
|
"end": 6428,
|
|
"loc": {
|
|
"start": {
|
|
"line": 233,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 233,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6428,
|
|
"end": 6429,
|
|
"loc": {
|
|
"start": {
|
|
"line": 233,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 233,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "sprites/buildings/",
|
|
"start": 6443,
|
|
"end": 6463,
|
|
"loc": {
|
|
"start": {
|
|
"line": 234,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 234,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 6464,
|
|
"end": 6465,
|
|
"loc": {
|
|
"start": {
|
|
"line": 234,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 234,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 6479,
|
|
"end": 6483,
|
|
"loc": {
|
|
"start": {
|
|
"line": 235,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 235,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6483,
|
|
"end": 6484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 235,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 235,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "id",
|
|
"start": 6484,
|
|
"end": 6486,
|
|
"loc": {
|
|
"start": {
|
|
"line": 235,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 235,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 6487,
|
|
"end": 6488,
|
|
"loc": {
|
|
"start": {
|
|
"line": 235,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 235,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6502,
|
|
"end": 6503,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 6503,
|
|
"end": 6510,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "==/!=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 6,
|
|
"updateContext": null
|
|
},
|
|
"value": "===",
|
|
"start": 6511,
|
|
"end": 6514,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultBuildingVariant",
|
|
"start": 6515,
|
|
"end": 6537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "?",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6538,
|
|
"end": 6539,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "",
|
|
"start": 6540,
|
|
"end": 6542,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6543,
|
|
"end": 6544,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "-",
|
|
"start": 6545,
|
|
"end": 6548,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 6549,
|
|
"end": 6550,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 6551,
|
|
"end": 6558,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6558,
|
|
"end": 6559,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 6560,
|
|
"end": 6561,
|
|
"loc": {
|
|
"start": {
|
|
"line": 236,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 236,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": ".png",
|
|
"start": 6575,
|
|
"end": 6581,
|
|
"loc": {
|
|
"start": {
|
|
"line": 237,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 237,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6591,
|
|
"end": 6592,
|
|
"loc": {
|
|
"start": {
|
|
"line": 238,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 238,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6592,
|
|
"end": 6593,
|
|
"loc": {
|
|
"start": {
|
|
"line": 238,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 238,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6599,
|
|
"end": 6600,
|
|
"loc": {
|
|
"start": {
|
|
"line": 239,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 239,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should compute the optimal rotation variant on the given tile\r\n * @param {object} param0\r\n * @param {GameRoot} param0.root\r\n * @param {Vector} param0.tile\r\n * @param {number} param0.rotation\r\n * @param {string} param0.variant\r\n * @param {Layer} param0.layer\r\n * @return {{ rotation: number, rotationVariant: number, connectedEntities?: Array<Entity> }}\r\n ",
|
|
"start": 6608,
|
|
"end": 7009,
|
|
"loc": {
|
|
"start": {
|
|
"line": 241,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 250,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "computeOptimalDirectionAndRotationVariantAtTile",
|
|
"start": 7015,
|
|
"end": 7062,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7062,
|
|
"end": 7063,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7063,
|
|
"end": 7064,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "root",
|
|
"start": 7065,
|
|
"end": 7069,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7069,
|
|
"end": 7070,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "tile",
|
|
"start": 7071,
|
|
"end": 7075,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 64
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7075,
|
|
"end": 7076,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotation",
|
|
"start": 7077,
|
|
"end": 7085,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 74
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7085,
|
|
"end": 7086,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 74
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 75
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 7087,
|
|
"end": 7094,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 83
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7094,
|
|
"end": 7095,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 83
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 84
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "layer",
|
|
"start": 7096,
|
|
"end": 7101,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 85
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 90
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7102,
|
|
"end": 7103,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 91
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 92
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7103,
|
|
"end": 7104,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 92
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 93
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7105,
|
|
"end": 7106,
|
|
"loc": {
|
|
"start": {
|
|
"line": 251,
|
|
"column": 94
|
|
},
|
|
"end": {
|
|
"line": 251,
|
|
"column": 95
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "if",
|
|
"keyword": "if",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "if",
|
|
"start": 7116,
|
|
"end": 7118,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7119,
|
|
"end": 7120,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "prefix",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "!",
|
|
"start": 7120,
|
|
"end": 7121,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 7121,
|
|
"end": 7125,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7125,
|
|
"end": 7126,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getIsRotateable",
|
|
"start": 7126,
|
|
"end": 7141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7141,
|
|
"end": 7142,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 7142,
|
|
"end": 7149,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 252,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7150,
|
|
"end": 7151,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7152,
|
|
"end": 7153,
|
|
"loc": {
|
|
"start": {
|
|
"line": 252,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 252,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 7167,
|
|
"end": 7173,
|
|
"loc": {
|
|
"start": {
|
|
"line": 253,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 253,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7174,
|
|
"end": 7175,
|
|
"loc": {
|
|
"start": {
|
|
"line": 253,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 253,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotation",
|
|
"start": 7193,
|
|
"end": 7201,
|
|
"loc": {
|
|
"start": {
|
|
"line": 254,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 254,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7201,
|
|
"end": 7202,
|
|
"loc": {
|
|
"start": {
|
|
"line": 254,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 254,
|
|
"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": 7203,
|
|
"end": 7204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 254,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 254,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7204,
|
|
"end": 7205,
|
|
"loc": {
|
|
"start": {
|
|
"line": 254,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 254,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotationVariant",
|
|
"start": 7223,
|
|
"end": 7238,
|
|
"loc": {
|
|
"start": {
|
|
"line": 255,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 255,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7238,
|
|
"end": 7239,
|
|
"loc": {
|
|
"start": {
|
|
"line": 255,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 255,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 0,
|
|
"start": 7240,
|
|
"end": 7241,
|
|
"loc": {
|
|
"start": {
|
|
"line": 255,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 255,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7241,
|
|
"end": 7242,
|
|
"loc": {
|
|
"start": {
|
|
"line": 255,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 255,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7256,
|
|
"end": 7257,
|
|
"loc": {
|
|
"start": {
|
|
"line": 256,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 256,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7257,
|
|
"end": 7258,
|
|
"loc": {
|
|
"start": {
|
|
"line": 256,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 256,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7268,
|
|
"end": 7269,
|
|
"loc": {
|
|
"start": {
|
|
"line": 257,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 257,
|
|
"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": 7279,
|
|
"end": 7285,
|
|
"loc": {
|
|
"start": {
|
|
"line": 258,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 258,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7286,
|
|
"end": 7287,
|
|
"loc": {
|
|
"start": {
|
|
"line": 258,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 258,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotation",
|
|
"start": 7301,
|
|
"end": 7309,
|
|
"loc": {
|
|
"start": {
|
|
"line": 259,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 259,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7309,
|
|
"end": 7310,
|
|
"loc": {
|
|
"start": {
|
|
"line": 259,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 259,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotationVariant",
|
|
"start": 7324,
|
|
"end": 7339,
|
|
"loc": {
|
|
"start": {
|
|
"line": 260,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 260,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7339,
|
|
"end": 7340,
|
|
"loc": {
|
|
"start": {
|
|
"line": 260,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 260,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 0,
|
|
"start": 7341,
|
|
"end": 7342,
|
|
"loc": {
|
|
"start": {
|
|
"line": 260,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 260,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7342,
|
|
"end": 7343,
|
|
"loc": {
|
|
"start": {
|
|
"line": 260,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 260,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7353,
|
|
"end": 7354,
|
|
"loc": {
|
|
"start": {
|
|
"line": 261,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 261,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7354,
|
|
"end": 7355,
|
|
"loc": {
|
|
"start": {
|
|
"line": 261,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 261,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7361,
|
|
"end": 7362,
|
|
"loc": {
|
|
"start": {
|
|
"line": 262,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 262,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should update the entity to match the given variants\r\n * @param {Entity} entity\r\n * @param {number} rotationVariant\r\n * @param {string} variant\r\n ",
|
|
"start": 7370,
|
|
"end": 7546,
|
|
"loc": {
|
|
"start": {
|
|
"line": 264,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 269,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "updateVariants",
|
|
"start": 7552,
|
|
"end": 7566,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7566,
|
|
"end": 7567,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "entity",
|
|
"start": 7567,
|
|
"end": 7573,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7573,
|
|
"end": 7574,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rotationVariant",
|
|
"start": 7575,
|
|
"end": 7590,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7590,
|
|
"end": 7591,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "variant",
|
|
"start": 7592,
|
|
"end": 7599,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7599,
|
|
"end": 7600,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7601,
|
|
"end": 7602,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7602,
|
|
"end": 7603,
|
|
"loc": {
|
|
"start": {
|
|
"line": 270,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 270,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " PRIVATE INTERFACE",
|
|
"start": 7611,
|
|
"end": 7631,
|
|
"loc": {
|
|
"start": {
|
|
"line": 272,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 272,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should setup the entity components\r\n * @param {Entity} entity\r\n * @param {GameRoot} root\r\n ",
|
|
"start": 7639,
|
|
"end": 7756,
|
|
"loc": {
|
|
"start": {
|
|
"line": 274,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 278,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "setupEntityComponents",
|
|
"start": 7762,
|
|
"end": 7783,
|
|
"loc": {
|
|
"start": {
|
|
"line": 279,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 279,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7783,
|
|
"end": 7784,
|
|
"loc": {
|
|
"start": {
|
|
"line": 279,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 279,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "entity",
|
|
"start": 7784,
|
|
"end": 7790,
|
|
"loc": {
|
|
"start": {
|
|
"line": 279,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 279,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7790,
|
|
"end": 7791,
|
|
"loc": {
|
|
"start": {
|
|
"line": 279,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 279,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "root",
|
|
"start": 7792,
|
|
"end": 7796,
|
|
"loc": {
|
|
"start": {
|
|
"line": 279,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 279,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7796,
|
|
"end": 7797,
|
|
"loc": {
|
|
"start": {
|
|
"line": 279,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 279,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7798,
|
|
"end": 7799,
|
|
"loc": {
|
|
"start": {
|
|
"line": 279,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 279,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "abstract",
|
|
"start": 7809,
|
|
"end": 7817,
|
|
"loc": {
|
|
"start": {
|
|
"line": 280,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 280,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7817,
|
|
"end": 7818,
|
|
"loc": {
|
|
"start": {
|
|
"line": 280,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 280,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7824,
|
|
"end": 7825,
|
|
"loc": {
|
|
"start": {
|
|
"line": 281,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 281,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7827,
|
|
"end": 7828,
|
|
"loc": {
|
|
"start": {
|
|
"line": 282,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 282,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "eof",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7828,
|
|
"end": 7828,
|
|
"loc": {
|
|
"start": {
|
|
"line": 282,
|
|
"column": 1
|
|
},
|
|
"end": {
|
|
"line": 282,
|
|
"column": 1
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |