diff --git a/docs/ast/source/client/js/global.js.json b/docs/ast/source/client/js/global.js.json index ca8af5a..b3583a3 100644 --- a/docs/ast/source/client/js/global.js.json +++ b/docs/ast/source/client/js/global.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 5848, + "end": 5956, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 213, + "line": 215, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 5848, + "end": 5956, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 213, + "line": 215, "column": 0 } }, @@ -137,14 +137,14 @@ { "type": "ExportNamedDeclaration", "start": 121, - "end": 4487, + "end": 4615, "loc": { "start": { "line": 4, "column": 0 }, "end": { - "line": 166, + "line": 168, "column": 1 } }, @@ -153,14 +153,14 @@ "declaration": { "type": "VariableDeclaration", "start": 128, - "end": 4487, + "end": 4615, "loc": { "start": { "line": 4, "column": 7 }, "end": { - "line": 166, + "line": 168, "column": 1 } }, @@ -168,14 +168,14 @@ { "type": "VariableDeclarator", "start": 134, - "end": 4487, + "end": 4615, "loc": { "start": { "line": 4, "column": 13 }, "end": { - "line": 166, + "line": 168, "column": 1 } }, @@ -200,14 +200,14 @@ "init": { "type": "ObjectExpression", "start": 143, - "end": 4487, + "end": 4615, "loc": { "start": { "line": 4, "column": 22 }, "end": { - "line": 166, + "line": 168, "column": 1 } }, @@ -3367,8 +3367,8 @@ }, { "type": "ObjectProperty", - "start": 2440, - "end": 2454, + "start": 2450, + "end": 2464, "loc": { "start": { "line": 78, @@ -3384,8 +3384,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2440, - "end": 2448, + "start": 2450, + "end": 2458, "loc": { "start": { "line": 78, @@ -3402,8 +3402,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2450, - "end": 2454, + "start": 2460, + "end": 2464, "loc": { "start": { "line": 78, @@ -3439,9 +3439,9 @@ }, { "type": "CommentLine", - "value": " Map", + "value": " Map and Tiles", "start": 2432, - "end": 2438, + "end": 2448, "loc": { "start": { "line": 77, @@ -3449,7 +3449,7 @@ }, "end": { "line": 77, - "column": 7 + "column": 17 } } } @@ -3457,8 +3457,8 @@ }, { "type": "ObjectProperty", - "start": 2457, - "end": 2546, + "start": 2467, + "end": 2556, "loc": { "start": { "line": 79, @@ -3474,8 +3474,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2457, - "end": 2469, + "start": 2467, + "end": 2479, "loc": { "start": { "line": 79, @@ -3491,8 +3491,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2471, - "end": 2546, + "start": 2481, + "end": 2556, "loc": { "start": { "line": 79, @@ -3506,8 +3506,8 @@ "elements": [ { "type": "ObjectExpression", - "start": 2475, - "end": 2489, + "start": 2485, + "end": 2499, "loc": { "start": { "line": 80, @@ -3521,8 +3521,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2477, - "end": 2481, + "start": 2487, + "end": 2491, "loc": { "start": { "line": 80, @@ -3538,8 +3538,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2477, - "end": 2478, + "start": 2487, + "end": 2488, "loc": { "start": { "line": 80, @@ -3555,8 +3555,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2480, - "end": 2481, + "start": 2490, + "end": 2491, "loc": { "start": { "line": 80, @@ -3576,8 +3576,8 @@ }, { "type": "ObjectProperty", - "start": 2483, - "end": 2487, + "start": 2493, + "end": 2497, "loc": { "start": { "line": 80, @@ -3593,8 +3593,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2483, - "end": 2484, + "start": 2493, + "end": 2494, "loc": { "start": { "line": 80, @@ -3610,8 +3610,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2486, - "end": 2487, + "start": 2496, + "end": 2497, "loc": { "start": { "line": 80, @@ -3633,8 +3633,8 @@ }, { "type": "ObjectExpression", - "start": 2493, - "end": 2507, + "start": 2503, + "end": 2517, "loc": { "start": { "line": 81, @@ -3648,8 +3648,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2495, - "end": 2499, + "start": 2505, + "end": 2509, "loc": { "start": { "line": 81, @@ -3665,8 +3665,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2495, - "end": 2496, + "start": 2505, + "end": 2506, "loc": { "start": { "line": 81, @@ -3682,8 +3682,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2498, - "end": 2499, + "start": 2508, + "end": 2509, "loc": { "start": { "line": 81, @@ -3703,8 +3703,8 @@ }, { "type": "ObjectProperty", - "start": 2501, - "end": 2505, + "start": 2511, + "end": 2515, "loc": { "start": { "line": 81, @@ -3720,8 +3720,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2501, - "end": 2502, + "start": 2511, + "end": 2512, "loc": { "start": { "line": 81, @@ -3737,8 +3737,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2504, - "end": 2505, + "start": 2514, + "end": 2515, "loc": { "start": { "line": 81, @@ -3760,8 +3760,8 @@ }, { "type": "ObjectExpression", - "start": 2511, - "end": 2525, + "start": 2521, + "end": 2535, "loc": { "start": { "line": 82, @@ -3775,8 +3775,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2513, - "end": 2517, + "start": 2523, + "end": 2527, "loc": { "start": { "line": 82, @@ -3792,8 +3792,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2513, - "end": 2514, + "start": 2523, + "end": 2524, "loc": { "start": { "line": 82, @@ -3809,8 +3809,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2516, - "end": 2517, + "start": 2526, + "end": 2527, "loc": { "start": { "line": 82, @@ -3830,8 +3830,8 @@ }, { "type": "ObjectProperty", - "start": 2519, - "end": 2523, + "start": 2529, + "end": 2533, "loc": { "start": { "line": 82, @@ -3847,8 +3847,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2519, - "end": 2520, + "start": 2529, + "end": 2530, "loc": { "start": { "line": 82, @@ -3864,8 +3864,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2522, - "end": 2523, + "start": 2532, + "end": 2533, "loc": { "start": { "line": 82, @@ -3887,8 +3887,8 @@ }, { "type": "ObjectExpression", - "start": 2529, - "end": 2543, + "start": 2539, + "end": 2553, "loc": { "start": { "line": 83, @@ -3902,8 +3902,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2531, - "end": 2535, + "start": 2541, + "end": 2545, "loc": { "start": { "line": 83, @@ -3919,8 +3919,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2531, - "end": 2532, + "start": 2541, + "end": 2542, "loc": { "start": { "line": 83, @@ -3936,8 +3936,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2534, - "end": 2535, + "start": 2544, + "end": 2545, "loc": { "start": { "line": 83, @@ -3957,8 +3957,8 @@ }, { "type": "ObjectProperty", - "start": 2537, - "end": 2541, + "start": 2547, + "end": 2551, "loc": { "start": { "line": 83, @@ -3974,8 +3974,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2537, - "end": 2538, + "start": 2547, + "end": 2548, "loc": { "start": { "line": 83, @@ -3991,8 +3991,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2540, - "end": 2541, + "start": 2550, + "end": 2551, "loc": { "start": { "line": 83, @@ -4017,8 +4017,8 @@ }, { "type": "ObjectProperty", - "start": 2585, - "end": 2608, + "start": 2595, + "end": 2618, "loc": { "start": { "line": 85, @@ -4034,8 +4034,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2585, - "end": 2603, + "start": 2595, + "end": 2613, "loc": { "start": { "line": 85, @@ -4052,8 +4052,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2605, - "end": 2608, + "start": 2615, + "end": 2618, "loc": { "start": { "line": 85, @@ -4074,8 +4074,8 @@ { "type": "CommentLine", "value": " Spawn points for different teams", - "start": 2548, - "end": 2583, + "start": 2558, + "end": 2593, "loc": { "start": { "line": 84, @@ -4091,8 +4091,8 @@ }, { "type": "ObjectProperty", - "start": 2611, - "end": 2637, + "start": 2621, + "end": 2647, "loc": { "start": { "line": 86, @@ -4108,8 +4108,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2611, - "end": 2632, + "start": 2621, + "end": 2642, "loc": { "start": { "line": 86, @@ -4125,8 +4125,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2634, - "end": 2637, + "start": 2644, + "end": 2647, "loc": { "start": { "line": 86, @@ -4146,15 +4146,70 @@ }, { "type": "ObjectProperty", - "start": 2653, - "end": 2670, + "start": 2650, + "end": 2672, + "loc": { + "start": { + "line": 87, + "column": 1 + }, + "end": { + "line": 87, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2650, + "end": 2667, + "loc": { + "start": { + "line": 87, + "column": 1 + }, + "end": { + "line": 87, + "column": 18 + }, + "identifierName": "STRONGHOLD_RADIUS" + }, + "name": "STRONGHOLD_RADIUS" + }, + "value": { + "type": "NumericLiteral", + "start": 2669, + "end": 2672, + "loc": { + "start": { + "line": 87, + "column": 20 + }, + "end": { + "line": 87, + "column": 23 + } + }, + "extra": { + "rawValue": 100, + "raw": "100" + }, + "value": 100 + } + }, + { + "type": "ObjectProperty", + "start": 2688, + "end": 2705, "loc": { "start": { - "line": 89, + "line": 90, "column": 1 }, "end": { - "line": 89, + "line": 90, "column": 18 } }, @@ -4163,15 +4218,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 2653, - "end": 2664, + "start": 2688, + "end": 2699, "loc": { "start": { - "line": 89, + "line": 90, "column": 1 }, "end": { - "line": 89, + "line": 90, "column": 12 }, "identifierName": "DRAW_RADIUS" @@ -4181,15 +4236,15 @@ }, "value": { "type": "NumericLiteral", - "start": 2666, - "end": 2670, + "start": 2701, + "end": 2705, "loc": { "start": { - "line": 89, + "line": 90, "column": 14 }, "end": { - "line": 89, + "line": 90, "column": 18 } }, @@ -4203,15 +4258,15 @@ { "type": "CommentLine", "value": " Drawing", - "start": 2641, - "end": 2651, + "start": 2676, + "end": 2686, "loc": { "start": { - "line": 88, + "line": 89, "column": 1 }, "end": { - "line": 88, + "line": 89, "column": 11 } } @@ -4220,15 +4275,15 @@ }, { "type": "ObjectProperty", - "start": 2728, - "end": 2745, + "start": 2763, + "end": 2780, "loc": { "start": { - "line": 90, + "line": 91, "column": 1 }, "end": { - "line": 90, + "line": 91, "column": 18 } }, @@ -4237,15 +4292,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 2728, - "end": 2740, + "start": 2763, + "end": 2775, "loc": { "start": { - "line": 90, + "line": 91, "column": 1 }, "end": { - "line": 90, + "line": 91, "column": 13 }, "identifierName": "GRID_SPACING" @@ -4255,15 +4310,15 @@ }, "value": { "type": "NumericLiteral", - "start": 2742, - "end": 2745, + "start": 2777, + "end": 2780, "loc": { "start": { - "line": 90, + "line": 91, "column": 15 }, "end": { - "line": 90, + "line": 91, "column": 18 } }, @@ -4277,15 +4332,15 @@ { "type": "CommentLine", "value": " Radius around player in which to draw other objects", - "start": 2672, - "end": 2726, + "start": 2707, + "end": 2761, "loc": { "start": { - "line": 89, + "line": 90, "column": 20 }, "end": { - "line": 89, + "line": 90, "column": 74 } } @@ -4294,15 +4349,15 @@ }, { "type": "ObjectProperty", - "start": 2787, - "end": 2806, + "start": 2822, + "end": 2841, "loc": { "start": { - "line": 91, + "line": 92, "column": 1 }, "end": { - "line": 91, + "line": 92, "column": 20 } }, @@ -4311,15 +4366,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 2787, - "end": 2803, + "start": 2822, + "end": 2838, "loc": { "start": { - "line": 91, + "line": 92, "column": 1 }, "end": { - "line": 91, + "line": 92, "column": 17 }, "identifierName": "GRID_LINE_STROKE" @@ -4329,15 +4384,15 @@ }, "value": { "type": "NumericLiteral", - "start": 2805, - "end": 2806, + "start": 2840, + "end": 2841, "loc": { "start": { - "line": 91, + "line": 92, "column": 19 }, "end": { - "line": 91, + "line": 92, "column": 20 } }, @@ -4351,15 +4406,15 @@ { "type": "CommentLine", "value": " space between each line on the grid", - "start": 2747, - "end": 2785, + "start": 2782, + "end": 2820, "loc": { "start": { - "line": 90, + "line": 91, "column": 20 }, "end": { - "line": 90, + "line": 91, "column": 58 } } @@ -4368,15 +4423,15 @@ }, { "type": "ObjectProperty", - "start": 2809, - "end": 2823, + "start": 2844, + "end": 2858, "loc": { "start": { - "line": 92, + "line": 93, "column": 1 }, "end": { - "line": 92, + "line": 93, "column": 15 } }, @@ -4385,15 +4440,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 2809, - "end": 2819, + "start": 2844, + "end": 2854, "loc": { "start": { - "line": 92, + "line": 93, "column": 1 }, "end": { - "line": 92, + "line": 93, "column": 11 }, "identifierName": "FRAME_RATE" @@ -4402,15 +4457,15 @@ }, "value": { "type": "NumericLiteral", - "start": 2821, - "end": 2823, + "start": 2856, + "end": 2858, "loc": { "start": { - "line": 92, + "line": 93, "column": 13 }, "end": { - "line": 92, + "line": 93, "column": 15 } }, @@ -4423,15 +4478,15 @@ }, { "type": "ObjectProperty", - "start": 2838, - "end": 2945, + "start": 2873, + "end": 2980, "loc": { "start": { - "line": 95, + "line": 96, "column": 1 }, "end": { - "line": 100, + "line": 101, "column": 2 } }, @@ -4440,15 +4495,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 2838, - "end": 2849, + "start": 2873, + "end": 2884, "loc": { "start": { - "line": 95, + "line": 96, "column": 1 }, "end": { - "line": 95, + "line": 96, "column": 12 }, "identifierName": "TEAM_COLORS" @@ -4458,30 +4513,30 @@ }, "value": { "type": "ArrayExpression", - "start": 2851, - "end": 2945, + "start": 2886, + "end": 2980, "loc": { "start": { - "line": 95, + "line": 96, "column": 14 }, "end": { - "line": 100, + "line": 101, "column": 2 } }, "elements": [ { "type": "StringLiteral", - "start": 2898, - "end": 2906, + "start": 2933, + "end": 2941, "loc": { "start": { - "line": 96, + "line": 97, "column": 2 }, "end": { - "line": 96, + "line": 97, "column": 10 } }, @@ -4494,15 +4549,15 @@ { "type": "CommentLine", "value": " Purple, Green, Orange, Red. No prefixes", - "start": 2853, - "end": 2895, + "start": 2888, + "end": 2930, "loc": { "start": { - "line": 95, + "line": 96, "column": 16 }, "end": { - "line": 95, + "line": 96, "column": 58 } } @@ -4511,15 +4566,15 @@ }, { "type": "StringLiteral", - "start": 2910, - "end": 2918, + "start": 2945, + "end": 2953, "loc": { "start": { - "line": 97, + "line": 98, "column": 2 }, "end": { - "line": 97, + "line": 98, "column": 10 } }, @@ -4531,15 +4586,15 @@ }, { "type": "StringLiteral", - "start": 2922, - "end": 2930, + "start": 2957, + "end": 2965, "loc": { "start": { - "line": 98, + "line": 99, "column": 2 }, "end": { - "line": 98, + "line": 99, "column": 10 } }, @@ -4551,15 +4606,15 @@ }, { "type": "StringLiteral", - "start": 2934, - "end": 2942, + "start": 2969, + "end": 2977, "loc": { "start": { - "line": 99, + "line": 100, "column": 2 }, "end": { - "line": 99, + "line": 100, "column": 10 } }, @@ -4575,15 +4630,15 @@ { "type": "CommentLine", "value": " Colors", - "start": 2827, - "end": 2836, + "start": 2862, + "end": 2871, "loc": { "start": { - "line": 94, + "line": 95, "column": 1 }, "end": { - "line": 94, + "line": 95, "column": 10 } } @@ -4592,15 +4647,15 @@ }, { "type": "ObjectProperty", - "start": 2974, - "end": 3013, + "start": 3009, + "end": 3048, "loc": { "start": { - "line": 103, + "line": 104, "column": 1 }, "end": { - "line": 105, + "line": 106, "column": 2 } }, @@ -4609,15 +4664,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 2974, - "end": 2988, + "start": 3009, + "end": 3023, "loc": { "start": { - "line": 103, + "line": 104, "column": 1 }, "end": { - "line": 103, + "line": 104, "column": 15 }, "identifierName": "PLAYER_SPRITES" @@ -4627,30 +4682,30 @@ }, "value": { "type": "ArrayExpression", - "start": 2990, - "end": 3013, + "start": 3025, + "end": 3048, "loc": { "start": { - "line": 103, + "line": 104, "column": 17 }, "end": { - "line": 105, + "line": 106, "column": 2 } }, "elements": [ { "type": "StringLiteral", - "start": 2994, - "end": 3010, + "start": 3029, + "end": 3045, "loc": { "start": { - "line": 104, + "line": 105, "column": 2 }, "end": { - "line": 104, + "line": 105, "column": 18 } }, @@ -4666,15 +4721,15 @@ { "type": "CommentLine", "value": " Sprites and textures", - "start": 2949, - "end": 2972, + "start": 2984, + "end": 3007, "loc": { "start": { - "line": 102, + "line": 103, "column": 1 }, "end": { - "line": 102, + "line": 103, "column": 24 } } @@ -4683,15 +4738,15 @@ }, { "type": "ObjectProperty", - "start": 3016, - "end": 3056, + "start": 3051, + "end": 3091, "loc": { "start": { - "line": 106, + "line": 107, "column": 1 }, "end": { - "line": 106, + "line": 107, "column": 41 } }, @@ -4700,15 +4755,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3016, - "end": 3029, + "start": 3051, + "end": 3064, "loc": { "start": { - "line": 106, + "line": 107, "column": 1 }, "end": { - "line": 106, + "line": 107, "column": 14 }, "identifierName": "IGNITE_SPRITE" @@ -4717,15 +4772,15 @@ }, "value": { "type": "StringLiteral", - "start": 3031, - "end": 3056, + "start": 3066, + "end": 3091, "loc": { "start": { - "line": 106, + "line": 107, "column": 16 }, "end": { - "line": 106, + "line": 107, "column": 41 } }, @@ -4738,15 +4793,15 @@ }, { "type": "ObjectProperty", - "start": 3155, - "end": 3212, + "start": 3190, + "end": 3247, "loc": { "start": { - "line": 109, + "line": 110, "column": 1 }, "end": { - "line": 116, + "line": 117, "column": 2 } }, @@ -4755,15 +4810,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3155, - "end": 3163, + "start": 3190, + "end": 3198, "loc": { "start": { - "line": 109, + "line": 110, "column": 1 }, "end": { - "line": 109, + "line": 110, "column": 9 }, "identifierName": "ATOM_IDS" @@ -4773,30 +4828,30 @@ }, "value": { "type": "ArrayExpression", - "start": 3165, - "end": 3212, + "start": 3200, + "end": 3247, "loc": { "start": { - "line": 109, + "line": 110, "column": 11 }, "end": { - "line": 116, + "line": 117, "column": 2 } }, "elements": [ { "type": "StringLiteral", - "start": 3169, - "end": 3172, + "start": 3204, + "end": 3207, "loc": { "start": { - "line": 110, + "line": 111, "column": 2 }, "end": { - "line": 110, + "line": 111, "column": 5 } }, @@ -4808,15 +4863,15 @@ }, { "type": "StringLiteral", - "start": 3176, - "end": 3180, + "start": 3211, + "end": 3215, "loc": { "start": { - "line": 111, + "line": 112, "column": 2 }, "end": { - "line": 111, + "line": 112, "column": 6 } }, @@ -4828,15 +4883,15 @@ }, { "type": "StringLiteral", - "start": 3184, - "end": 3187, + "start": 3219, + "end": 3222, "loc": { "start": { - "line": 112, + "line": 113, "column": 2 }, "end": { - "line": 112, + "line": 113, "column": 5 } }, @@ -4848,15 +4903,15 @@ }, { "type": "StringLiteral", - "start": 3191, - "end": 3195, + "start": 3226, + "end": 3230, "loc": { "start": { - "line": 113, + "line": 114, "column": 2 }, "end": { - "line": 113, + "line": 114, "column": 6 } }, @@ -4868,15 +4923,15 @@ }, { "type": "StringLiteral", - "start": 3199, - "end": 3202, + "start": 3234, + "end": 3237, "loc": { "start": { - "line": 114, + "line": 115, "column": 2 }, "end": { - "line": 114, + "line": 115, "column": 5 } }, @@ -4888,15 +4943,15 @@ }, { "type": "StringLiteral", - "start": 3206, - "end": 3209, + "start": 3241, + "end": 3244, "loc": { "start": { - "line": 115, + "line": 116, "column": 2 }, "end": { - "line": 115, + "line": 116, "column": 5 } }, @@ -4912,15 +4967,15 @@ { "type": "CommentLine", "value": " Atoms: ID's and Sprites. ATOM_SPRITES[id] returns the texture location of atom of that id.", - "start": 3060, - "end": 3153, + "start": 3095, + "end": 3188, "loc": { "start": { - "line": 108, + "line": 109, "column": 1 }, "end": { - "line": 108, + "line": 109, "column": 94 } } @@ -4929,15 +4984,15 @@ }, { "type": "ObjectProperty", - "start": 3215, - "end": 3362, + "start": 3250, + "end": 3397, "loc": { "start": { - "line": 117, + "line": 118, "column": 1 }, "end": { - "line": 124, + "line": 125, "column": 2 } }, @@ -4946,15 +5001,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3215, - "end": 3227, + "start": 3250, + "end": 3262, "loc": { "start": { - "line": 117, + "line": 118, "column": 1 }, "end": { - "line": 117, + "line": 118, "column": 13 }, "identifierName": "ATOM_SPRITES" @@ -4963,30 +5018,30 @@ }, "value": { "type": "ArrayExpression", - "start": 3229, - "end": 3362, + "start": 3264, + "end": 3397, "loc": { "start": { - "line": 117, + "line": 118, "column": 15 }, "end": { - "line": 124, + "line": 125, "column": 2 } }, "elements": [ { "type": "StringLiteral", - "start": 3233, - "end": 3252, + "start": 3268, + "end": 3287, "loc": { "start": { - "line": 118, + "line": 119, "column": 2 }, "end": { - "line": 118, + "line": 119, "column": 21 } }, @@ -4998,15 +5053,15 @@ }, { "type": "StringLiteral", - "start": 3256, - "end": 3273, + "start": 3291, + "end": 3308, "loc": { "start": { - "line": 119, + "line": 120, "column": 2 }, "end": { - "line": 119, + "line": 120, "column": 19 } }, @@ -5018,15 +5073,15 @@ }, { "type": "StringLiteral", - "start": 3277, - "end": 3294, + "start": 3312, + "end": 3329, "loc": { "start": { - "line": 120, + "line": 121, "column": 2 }, "end": { - "line": 120, + "line": 121, "column": 19 } }, @@ -5038,15 +5093,15 @@ }, { "type": "StringLiteral", - "start": 3298, - "end": 3315, + "start": 3333, + "end": 3350, "loc": { "start": { - "line": 121, + "line": 122, "column": 2 }, "end": { - "line": 121, + "line": 122, "column": 19 } }, @@ -5058,15 +5113,15 @@ }, { "type": "StringLiteral", - "start": 3319, - "end": 3338, + "start": 3354, + "end": 3373, "loc": { "start": { - "line": 122, + "line": 123, "column": 2 }, "end": { - "line": 122, + "line": 123, "column": 21 } }, @@ -5078,15 +5133,15 @@ }, { "type": "StringLiteral", - "start": 3342, - "end": 3359, + "start": 3377, + "end": 3394, "loc": { "start": { - "line": 123, + "line": 124, "column": 2 }, "end": { - "line": 123, + "line": 124, "column": 19 } }, @@ -5101,15 +5156,15 @@ }, { "type": "ObjectProperty", - "start": 3415, - "end": 3460, + "start": 3450, + "end": 3495, "loc": { "start": { - "line": 127, + "line": 128, "column": 1 }, "end": { - "line": 127, + "line": 128, "column": 46 } }, @@ -5118,15 +5173,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3415, - "end": 3430, + "start": 3450, + "end": 3465, "loc": { "start": { - "line": 127, + "line": 128, "column": 1 }, "end": { - "line": 127, + "line": 128, "column": 16 }, "identifierName": "SPRITESHEET_DIR" @@ -5136,15 +5191,15 @@ }, "value": { "type": "StringLiteral", - "start": 3432, - "end": 3460, + "start": 3467, + "end": 3495, "loc": { "start": { - "line": 127, + "line": 128, "column": 18 }, "end": { - "line": 127, + "line": 128, "column": 46 } }, @@ -5158,15 +5213,15 @@ { "type": "CommentLine", "value": " Location of spritesheet relative to pixigame", - "start": 3366, - "end": 3413, + "start": 3401, + "end": 3448, "loc": { "start": { - "line": 126, + "line": 127, "column": 1 }, "end": { - "line": 126, + "line": 127, "column": 48 } } @@ -5175,15 +5230,15 @@ }, { "type": "ObjectProperty", - "start": 3496, - "end": 3544, + "start": 3531, + "end": 3579, "loc": { "start": { - "line": 130, + "line": 131, "column": 1 }, "end": { - "line": 130, + "line": 131, "column": 49 } }, @@ -5192,15 +5247,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3496, - "end": 3508, + "start": 3531, + "end": 3543, "loc": { "start": { - "line": 130, + "line": 131, "column": 1 }, "end": { - "line": 130, + "line": 131, "column": 13 }, "identifierName": "COMPOUND_DIR" @@ -5210,15 +5265,15 @@ }, "value": { "type": "StringLiteral", - "start": 3510, - "end": 3544, + "start": 3545, + "end": 3579, "loc": { "start": { - "line": 130, + "line": 131, "column": 15 }, "end": { - "line": 130, + "line": 131, "column": 49 } }, @@ -5232,15 +5287,15 @@ { "type": "CommentLine", "value": " Used for main menu textures", - "start": 3464, - "end": 3494, + "start": 3499, + "end": 3529, "loc": { "start": { - "line": 129, + "line": 130, "column": 1 }, "end": { - "line": 129, + "line": 130, "column": 31 } } @@ -5249,15 +5304,15 @@ }, { "type": "ObjectProperty", - "start": 3596, - "end": 3644, + "start": 3631, + "end": 3679, "loc": { "start": { - "line": 133, + "line": 134, "column": 1 }, "end": { - "line": 136, + "line": 137, "column": 2 } }, @@ -5266,15 +5321,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3596, - "end": 3613, + "start": 3631, + "end": 3648, "loc": { "start": { - "line": 133, + "line": 134, "column": 1 }, "end": { - "line": 133, + "line": 134, "column": 18 }, "identifierName": "EXPERIENCE_VALUES" @@ -5284,30 +5339,30 @@ }, "value": { "type": "ObjectExpression", - "start": 3615, - "end": 3644, + "start": 3650, + "end": 3679, "loc": { "start": { - "line": 133, + "line": 134, "column": 20 }, "end": { - "line": 136, + "line": 137, "column": 2 } }, "properties": [ { "type": "ObjectProperty", - "start": 3619, - "end": 3628, + "start": 3654, + "end": 3663, "loc": { "start": { - "line": 134, + "line": 135, "column": 2 }, "end": { - "line": 134, + "line": 135, "column": 11 } }, @@ -5316,15 +5371,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3619, - "end": 3624, + "start": 3654, + "end": 3659, "loc": { "start": { - "line": 134, + "line": 135, "column": 2 }, "end": { - "line": 134, + "line": 135, "column": 7 }, "identifierName": "CRAFT" @@ -5333,15 +5388,15 @@ }, "value": { "type": "NumericLiteral", - "start": 3626, - "end": 3628, + "start": 3661, + "end": 3663, "loc": { "start": { - "line": 134, + "line": 135, "column": 9 }, "end": { - "line": 134, + "line": 135, "column": 11 } }, @@ -5354,15 +5409,15 @@ }, { "type": "ObjectProperty", - "start": 3632, - "end": 3641, + "start": 3667, + "end": 3676, "loc": { "start": { - "line": 135, + "line": 136, "column": 2 }, "end": { - "line": 135, + "line": 136, "column": 11 } }, @@ -5371,15 +5426,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3632, - "end": 3636, + "start": 3667, + "end": 3671, "loc": { "start": { - "line": 135, + "line": 136, "column": 2 }, "end": { - "line": 135, + "line": 136, "column": 6 }, "identifierName": "KILL" @@ -5388,15 +5443,15 @@ }, "value": { "type": "NumericLiteral", - "start": 3638, - "end": 3641, + "start": 3673, + "end": 3676, "loc": { "start": { - "line": 135, + "line": 136, "column": 8 }, "end": { - "line": 135, + "line": 136, "column": 11 } }, @@ -5413,15 +5468,15 @@ { "type": "CommentLine", "value": " Each Value corresponds with the above event", - "start": 3548, - "end": 3594, + "start": 3583, + "end": 3629, "loc": { "start": { - "line": 132, + "line": 133, "column": 1 }, "end": { - "line": 132, + "line": 133, "column": 47 } } @@ -5430,15 +5485,15 @@ }, { "type": "ObjectProperty", - "start": 3716, - "end": 3782, + "start": 3751, + "end": 3817, "loc": { "start": { - "line": 139, + "line": 140, "column": 1 }, "end": { - "line": 147, + "line": 148, "column": 2 } }, @@ -5447,15 +5502,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3716, - "end": 3733, + "start": 3751, + "end": 3768, "loc": { "start": { - "line": 139, + "line": 140, "column": 1 }, "end": { - "line": 139, + "line": 140, "column": 18 }, "identifierName": "EXPERIENCE_LEVELS" @@ -5465,30 +5520,30 @@ }, "value": { "type": "ArrayExpression", - "start": 3735, - "end": 3782, + "start": 3770, + "end": 3817, "loc": { "start": { - "line": 139, + "line": 140, "column": 20 }, "end": { - "line": 147, + "line": 148, "column": 2 } }, "elements": [ { "type": "NumericLiteral", - "start": 3739, - "end": 3740, + "start": 3774, + "end": 3775, "loc": { "start": { - "line": 140, + "line": 141, "column": 2 }, "end": { - "line": 140, + "line": 141, "column": 3 } }, @@ -5500,15 +5555,15 @@ }, { "type": "NumericLiteral", - "start": 3744, - "end": 3746, + "start": 3779, + "end": 3781, "loc": { "start": { - "line": 141, + "line": 142, "column": 2 }, "end": { - "line": 141, + "line": 142, "column": 4 } }, @@ -5520,15 +5575,15 @@ }, { "type": "NumericLiteral", - "start": 3750, - "end": 3752, + "start": 3785, + "end": 3787, "loc": { "start": { - "line": 142, + "line": 143, "column": 2 }, "end": { - "line": 142, + "line": 143, "column": 4 } }, @@ -5540,15 +5595,15 @@ }, { "type": "NumericLiteral", - "start": 3756, - "end": 3758, + "start": 3791, + "end": 3793, "loc": { "start": { - "line": 143, + "line": 144, "column": 2 }, "end": { - "line": 143, + "line": 144, "column": 4 } }, @@ -5560,15 +5615,15 @@ }, { "type": "NumericLiteral", - "start": 3762, - "end": 3765, + "start": 3797, + "end": 3800, "loc": { "start": { - "line": 144, + "line": 145, "column": 2 }, "end": { - "line": 144, + "line": 145, "column": 5 } }, @@ -5580,15 +5635,15 @@ }, { "type": "NumericLiteral", - "start": 3769, - "end": 3772, + "start": 3804, + "end": 3807, "loc": { "start": { - "line": 145, + "line": 146, "column": 2 }, "end": { - "line": 145, + "line": 146, "column": 5 } }, @@ -5600,15 +5655,15 @@ }, { "type": "NumericLiteral", - "start": 3776, - "end": 3779, + "start": 3811, + "end": 3814, "loc": { "start": { - "line": 146, + "line": 147, "column": 2 }, "end": { - "line": 146, + "line": 147, "column": 5 } }, @@ -5624,15 +5679,15 @@ { "type": "CommentLine", "value": " The cutoffs for each level. Index 0 = level 1, 1 = level 2, etc", - "start": 3648, - "end": 3714, + "start": 3683, + "end": 3749, "loc": { "start": { - "line": 138, + "line": 139, "column": 1 }, "end": { - "line": 138, + "line": 139, "column": 67 } } @@ -5641,15 +5696,15 @@ }, { "type": "ObjectProperty", - "start": 3785, - "end": 3976, + "start": 3820, + "end": 4011, "loc": { "start": { - "line": 148, + "line": 149, "column": 1 }, "end": { - "line": 153, + "line": 154, "column": 2 } }, @@ -5658,15 +5713,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3785, - "end": 3803, + "start": 3820, + "end": 3838, "loc": { "start": { - "line": 148, + "line": 149, "column": 1 }, "end": { - "line": 148, + "line": 149, "column": 19 }, "identifierName": "MAINMENU_MUSICLIST" @@ -5675,30 +5730,30 @@ }, "value": { "type": "ArrayExpression", - "start": 3805, - "end": 3976, + "start": 3840, + "end": 4011, "loc": { "start": { - "line": 148, + "line": 149, "column": 21 }, "end": { - "line": 153, + "line": 154, "column": 2 } }, "elements": [ { "type": "StringLiteral", - "start": 3809, - "end": 3847, + "start": 3844, + "end": 3882, "loc": { "start": { - "line": 149, + "line": 150, "column": 2 }, "end": { - "line": 149, + "line": 150, "column": 40 } }, @@ -5710,15 +5765,15 @@ }, { "type": "StringLiteral", - "start": 3851, - "end": 3889, + "start": 3886, + "end": 3924, "loc": { "start": { - "line": 150, + "line": 151, "column": 2 }, "end": { - "line": 150, + "line": 151, "column": 40 } }, @@ -5730,15 +5785,15 @@ }, { "type": "StringLiteral", - "start": 3893, - "end": 3931, + "start": 3928, + "end": 3966, "loc": { "start": { - "line": 151, + "line": 152, "column": 2 }, "end": { - "line": 151, + "line": 152, "column": 40 } }, @@ -5750,15 +5805,15 @@ }, { "type": "StringLiteral", - "start": 3935, - "end": 3973, + "start": 3970, + "end": 4008, "loc": { "start": { - "line": 152, + "line": 153, "column": 2 }, "end": { - "line": 152, + "line": 153, "column": 40 } }, @@ -5773,15 +5828,15 @@ }, { "type": "ObjectProperty", - "start": 3979, - "end": 4001, + "start": 4014, + "end": 4036, "loc": { "start": { - "line": 154, + "line": 155, "column": 1 }, "end": { - "line": 156, + "line": 157, "column": 2 } }, @@ -5790,15 +5845,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3979, - "end": 3994, + "start": 4014, + "end": 4029, "loc": { "start": { - "line": 154, + "line": 155, "column": 1 }, "end": { - "line": 154, + "line": 155, "column": 16 }, "identifierName": "LOBBY_MUSICLIST" @@ -5807,15 +5862,15 @@ }, "value": { "type": "ArrayExpression", - "start": 3996, - "end": 4001, + "start": 4031, + "end": 4036, "loc": { "start": { - "line": 154, + "line": 155, "column": 18 }, "end": { - "line": 156, + "line": 157, "column": 2 } }, @@ -5824,15 +5879,15 @@ }, { "type": "ObjectProperty", - "start": 4004, - "end": 4027, + "start": 4039, + "end": 4062, "loc": { "start": { - "line": 157, + "line": 158, "column": 1 }, "end": { - "line": 159, + "line": 160, "column": 2 } }, @@ -5841,15 +5896,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 4004, - "end": 4020, + "start": 4039, + "end": 4055, "loc": { "start": { - "line": 157, + "line": 158, "column": 1 }, "end": { - "line": 157, + "line": 158, "column": 17 }, "identifierName": "INGAME_MUSICLIST" @@ -5858,15 +5913,15 @@ }, "value": { "type": "ArrayExpression", - "start": 4022, - "end": 4027, + "start": 4057, + "end": 4062, "loc": { "start": { - "line": 157, + "line": 158, "column": 19 }, "end": { - "line": 159, + "line": 160, "column": 2 } }, @@ -5875,15 +5930,15 @@ }, { "type": "ObjectProperty", - "start": 4042, - "end": 4055, + "start": 4077, + "end": 4090, "loc": { "start": { - "line": 162, + "line": 163, "column": 1 }, "end": { - "line": 162, + "line": 163, "column": 14 } }, @@ -5892,15 +5947,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 4042, - "end": 4052, + "start": 4077, + "end": 4087, "loc": { "start": { - "line": 162, + "line": 163, "column": 1 }, "end": { - "line": 162, + "line": 163, "column": 11 }, "identifierName": "KILL_SCORE" @@ -5910,15 +5965,15 @@ }, "value": { "type": "NumericLiteral", - "start": 4054, - "end": 4055, + "start": 4089, + "end": 4090, "loc": { "start": { - "line": 162, + "line": 163, "column": 13 }, "end": { - "line": 162, + "line": 163, "column": 14 } }, @@ -5932,15 +5987,15 @@ { "type": "CommentLine", "value": " Deaths", - "start": 4031, - "end": 4040, + "start": 4066, + "end": 4075, "loc": { "start": { - "line": 161, + "line": 162, "column": 1 }, "end": { - "line": 161, + "line": 162, "column": 10 } } @@ -5949,15 +6004,15 @@ }, { "type": "ObjectProperty", - "start": 4148, - "end": 4163, + "start": 4183, + "end": 4198, "loc": { "start": { - "line": 163, + "line": 164, "column": 1 }, "end": { - "line": 163, + "line": 164, "column": 16 } }, @@ -5966,15 +6021,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 4148, - "end": 4160, + "start": 4183, + "end": 4195, "loc": { "start": { - "line": 163, + "line": 164, "column": 1 }, "end": { - "line": 163, + "line": 164, "column": 13 }, "identifierName": "ASSIST_SCORE" @@ -5984,15 +6039,15 @@ }, "value": { "type": "NumericLiteral", - "start": 4162, - "end": 4163, + "start": 4197, + "end": 4198, "loc": { "start": { - "line": 163, + "line": 164, "column": 15 }, "end": { - "line": 163, + "line": 164, "column": 16 } }, @@ -6006,15 +6061,15 @@ { "type": "CommentLine", "value": " How many points are awarded to the player/team who dealt the most damage to the player", - "start": 4057, - "end": 4146, + "start": 4092, + "end": 4181, "loc": { "start": { - "line": 162, + "line": 163, "column": 16 }, "end": { - "line": 162, + "line": 163, "column": 105 } } @@ -6023,15 +6078,15 @@ }, { "type": "ObjectProperty", - "start": 4245, - "end": 4262, + "start": 4280, + "end": 4297, "loc": { "start": { - "line": 164, + "line": 165, "column": 1 }, "end": { - "line": 164, + "line": 165, "column": 18 } }, @@ -6040,15 +6095,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 4245, - "end": 4258, + "start": 4280, + "end": 4293, "loc": { "start": { - "line": 164, + "line": 165, "column": 1 }, "end": { - "line": 164, + "line": 165, "column": 14 }, "identifierName": "WINNING_SCORE" @@ -6058,15 +6113,15 @@ }, "value": { "type": "NumericLiteral", - "start": 4260, - "end": 4262, + "start": 4295, + "end": 4297, "loc": { "start": { - "line": 164, + "line": 165, "column": 16 }, "end": { - "line": 164, + "line": 165, "column": 18 } }, @@ -6080,15 +6135,15 @@ { "type": "CommentLine", "value": " How many points are awarded to all players who assist in killing the player", - "start": 4165, - "end": 4243, + "start": 4200, + "end": 4278, "loc": { "start": { - "line": 163, + "line": 164, "column": 18 }, "end": { - "line": 163, + "line": 164, "column": 96 } } @@ -6097,15 +6152,89 @@ }, { "type": "ObjectProperty", - "start": 4337, - "end": 4357, + "start": 4372, + "end": 4388, "loc": { "start": { - "line": 165, + "line": 166, "column": 1 }, "end": { - "line": 165, + "line": 166, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4372, + "end": 4385, + "loc": { + "start": { + "line": 166, + "column": 1 + }, + "end": { + "line": 166, + "column": 14 + }, + "identifierName": "CAPTURE_SCORE" + }, + "name": "CAPTURE_SCORE", + "leadingComments": null + }, + "value": { + "type": "NumericLiteral", + "start": 4387, + "end": 4388, + "loc": { + "start": { + "line": 166, + "column": 16 + }, + "end": { + "line": 166, + "column": 17 + } + }, + "extra": { + "rawValue": 5, + "raw": "5" + }, + "value": 5 + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " How many points are required to win the game per team. TODO increase", + "start": 4299, + "end": 4370, + "loc": { + "start": { + "line": 165, + "column": 20 + }, + "end": { + "line": 165, + "column": 91 + } + } + } + ] + }, + { + "type": "ObjectProperty", + "start": 4465, + "end": 4485, + "loc": { + "start": { + "line": 167, + "column": 1 + }, + "end": { + "line": 167, "column": 21 } }, @@ -6114,15 +6243,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 4337, - "end": 4352, + "start": 4465, + "end": 4480, "loc": { "start": { - "line": 165, + "line": 167, "column": 1 }, "end": { - "line": 165, + "line": 167, "column": 16 }, "identifierName": "MAX_DEATH_ATOMS" @@ -6132,15 +6261,15 @@ }, "value": { "type": "NumericLiteral", - "start": 4354, - "end": 4357, + "start": 4482, + "end": 4485, "loc": { "start": { - "line": 165, + "line": 167, "column": 18 }, "end": { - "line": 165, + "line": 167, "column": 21 } }, @@ -6155,17 +6284,17 @@ "leadingComments": [ { "type": "CommentLine", - "value": " How many points are required to win the game per team. TODO increase", - "start": 4264, - "end": 4335, + "value": " How many points are awarded to the team who captured a stronghold/vent", + "start": 4390, + "end": 4463, "loc": { "start": { - "line": 164, - "column": 20 + "line": 166, + "column": 19 }, "end": { - "line": 164, - "column": 91 + "line": 166, + "column": 92 } } } @@ -6174,15 +6303,15 @@ { "type": "CommentLine", "value": " How many atoms of each type can be ejected on death at maximum. Prevents testers from ejecting thousands of atoms at a time.", - "start": 4358, - "end": 4485, + "start": 4486, + "end": 4613, "loc": { "start": { - "line": 165, + "line": 167, "column": 22 }, "end": { - "line": 165, + "line": 167, "column": 149 } } @@ -6190,15 +6319,15 @@ { "type": "CommentBlock", "value": "*\n * Returns the distance between two objects.\n * Both objects must be GameObjects\n * @param {GameObject} obj1 First object\n * @param {GameObject} obj2 Second object\n ", - "start": 4489, - "end": 4660, + "start": 4617, + "end": 4788, "loc": { "start": { - "line": 168, + "line": 170, "column": 0 }, "end": { - "line": 173, + "line": 175, "column": 3 } } @@ -6235,15 +6364,15 @@ { "type": "CommentBlock", "value": "*\n * Returns the distance between two objects.\n * Both objects must be GameObjects\n * @param {GameObject} obj1 First object\n * @param {GameObject} obj2 Second object\n ", - "start": 4489, - "end": 4660, + "start": 4617, + "end": 4788, "loc": { "start": { - "line": 168, + "line": 170, "column": 0 }, "end": { - "line": 173, + "line": 175, "column": 3 } } @@ -6272,15 +6401,15 @@ { "type": "CommentBlock", "value": "*\n * Returns the distance between two objects.\n * Both objects must be GameObjects\n * @param {GameObject} obj1 First object\n * @param {GameObject} obj2 Second object\n ", - "start": 4489, - "end": 4660, + "start": 4617, + "end": 4788, "loc": { "start": { - "line": 168, + "line": 170, "column": 0 }, "end": { - "line": 173, + "line": 175, "column": 3 } } @@ -6289,15 +6418,15 @@ }, { "type": "ExportNamedDeclaration", - "start": 4661, - "end": 4800, + "start": 4789, + "end": 4928, "loc": { "start": { - "line": 174, + "line": 176, "column": 0 }, "end": { - "line": 176, + "line": 178, "column": 1 } }, @@ -6305,29 +6434,29 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 4668, - "end": 4800, + "start": 4796, + "end": 4928, "loc": { "start": { - "line": 174, + "line": 176, "column": 7 }, "end": { - "line": 176, + "line": 178, "column": 1 } }, "id": { "type": "Identifier", - "start": 4677, - "end": 4692, + "start": 4805, + "end": 4820, "loc": { "start": { - "line": 174, + "line": 176, "column": 16 }, "end": { - "line": 174, + "line": 176, "column": 31 }, "identifierName": "distanceBetween" @@ -6340,15 +6469,15 @@ "params": [ { "type": "Identifier", - "start": 4694, - "end": 4698, + "start": 4822, + "end": 4826, "loc": { "start": { - "line": 174, + "line": 176, "column": 33 }, "end": { - "line": 174, + "line": 176, "column": 37 }, "identifierName": "obj1" @@ -6357,15 +6486,15 @@ }, { "type": "Identifier", - "start": 4700, - "end": 4704, + "start": 4828, + "end": 4832, "loc": { "start": { - "line": 174, + "line": 176, "column": 39 }, "end": { - "line": 174, + "line": 176, "column": 43 }, "identifierName": "obj2" @@ -6375,72 +6504,72 @@ ], "body": { "type": "BlockStatement", - "start": 4706, - "end": 4800, + "start": 4834, + "end": 4928, "loc": { "start": { - "line": 174, + "line": 176, "column": 45 }, "end": { - "line": 176, + "line": 178, "column": 1 } }, "body": [ { "type": "ReturnStatement", - "start": 4709, - "end": 4798, + "start": 4837, + "end": 4926, "loc": { "start": { - "line": 175, + "line": 177, "column": 1 }, "end": { - "line": 175, + "line": 177, "column": 90 } }, "argument": { "type": "CallExpression", - "start": 4716, - "end": 4798, + "start": 4844, + "end": 4926, "loc": { "start": { - "line": 175, + "line": 177, "column": 8 }, "end": { - "line": 175, + "line": 177, "column": 90 } }, "callee": { "type": "MemberExpression", - "start": 4716, - "end": 4725, + "start": 4844, + "end": 4853, "loc": { "start": { - "line": 175, + "line": 177, "column": 8 }, "end": { - "line": 175, + "line": 177, "column": 17 } }, "object": { "type": "Identifier", - "start": 4716, - "end": 4720, + "start": 4844, + "end": 4848, "loc": { "start": { - "line": 175, + "line": 177, "column": 8 }, "end": { - "line": 175, + "line": 177, "column": 12 }, "identifierName": "Math" @@ -6449,15 +6578,15 @@ }, "property": { "type": "Identifier", - "start": 4721, - "end": 4725, + "start": 4849, + "end": 4853, "loc": { "start": { - "line": 175, + "line": 177, "column": 13 }, "end": { - "line": 175, + "line": 177, "column": 17 }, "identifierName": "sqrt" @@ -6469,57 +6598,57 @@ "arguments": [ { "type": "BinaryExpression", - "start": 4726, - "end": 4797, + "start": 4854, + "end": 4925, "loc": { "start": { - "line": 175, + "line": 177, "column": 18 }, "end": { - "line": 175, + "line": 177, "column": 89 } }, "left": { "type": "CallExpression", - "start": 4726, - "end": 4760, + "start": 4854, + "end": 4888, "loc": { "start": { - "line": 175, + "line": 177, "column": 18 }, "end": { - "line": 175, + "line": 177, "column": 52 } }, "callee": { "type": "MemberExpression", - "start": 4726, - "end": 4734, + "start": 4854, + "end": 4862, "loc": { "start": { - "line": 175, + "line": 177, "column": 18 }, "end": { - "line": 175, + "line": 177, "column": 26 } }, "object": { "type": "Identifier", - "start": 4726, - "end": 4730, + "start": 4854, + "end": 4858, "loc": { "start": { - "line": 175, + "line": 177, "column": 18 }, "end": { - "line": 175, + "line": 177, "column": 22 }, "identifierName": "Math" @@ -6528,15 +6657,15 @@ }, "property": { "type": "Identifier", - "start": 4731, - "end": 4734, + "start": 4859, + "end": 4862, "loc": { "start": { - "line": 175, + "line": 177, "column": 23 }, "end": { - "line": 175, + "line": 177, "column": 26 }, "identifierName": "pow" @@ -6548,43 +6677,43 @@ "arguments": [ { "type": "BinaryExpression", - "start": 4735, - "end": 4756, + "start": 4863, + "end": 4884, "loc": { "start": { - "line": 175, + "line": 177, "column": 27 }, "end": { - "line": 175, + "line": 177, "column": 48 } }, "left": { "type": "MemberExpression", - "start": 4735, - "end": 4744, + "start": 4863, + "end": 4872, "loc": { "start": { - "line": 175, + "line": 177, "column": 27 }, "end": { - "line": 175, + "line": 177, "column": 36 } }, "object": { "type": "Identifier", - "start": 4735, - "end": 4739, + "start": 4863, + "end": 4867, "loc": { "start": { - "line": 175, + "line": 177, "column": 27 }, "end": { - "line": 175, + "line": 177, "column": 31 }, "identifierName": "obj1" @@ -6593,15 +6722,15 @@ }, "property": { "type": "Identifier", - "start": 4740, - "end": 4744, + "start": 4868, + "end": 4872, "loc": { "start": { - "line": 175, + "line": 177, "column": 32 }, "end": { - "line": 175, + "line": 177, "column": 36 }, "identifierName": "posX" @@ -6613,29 +6742,29 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 4747, - "end": 4756, + "start": 4875, + "end": 4884, "loc": { "start": { - "line": 175, + "line": 177, "column": 39 }, "end": { - "line": 175, + "line": 177, "column": 48 } }, "object": { "type": "Identifier", - "start": 4747, - "end": 4751, + "start": 4875, + "end": 4879, "loc": { "start": { - "line": 175, + "line": 177, "column": 39 }, "end": { - "line": 175, + "line": 177, "column": 43 }, "identifierName": "obj2" @@ -6644,15 +6773,15 @@ }, "property": { "type": "Identifier", - "start": 4752, - "end": 4756, + "start": 4880, + "end": 4884, "loc": { "start": { - "line": 175, + "line": 177, "column": 44 }, "end": { - "line": 175, + "line": 177, "column": 48 }, "identifierName": "posX" @@ -6664,15 +6793,15 @@ }, { "type": "NumericLiteral", - "start": 4758, - "end": 4759, + "start": 4886, + "end": 4887, "loc": { "start": { - "line": 175, + "line": 177, "column": 50 }, "end": { - "line": 175, + "line": 177, "column": 51 } }, @@ -6687,43 +6816,43 @@ "operator": "+", "right": { "type": "CallExpression", - "start": 4763, - "end": 4797, + "start": 4891, + "end": 4925, "loc": { "start": { - "line": 175, + "line": 177, "column": 55 }, "end": { - "line": 175, + "line": 177, "column": 89 } }, "callee": { "type": "MemberExpression", - "start": 4763, - "end": 4771, + "start": 4891, + "end": 4899, "loc": { "start": { - "line": 175, + "line": 177, "column": 55 }, "end": { - "line": 175, + "line": 177, "column": 63 } }, "object": { "type": "Identifier", - "start": 4763, - "end": 4767, + "start": 4891, + "end": 4895, "loc": { "start": { - "line": 175, + "line": 177, "column": 55 }, "end": { - "line": 175, + "line": 177, "column": 59 }, "identifierName": "Math" @@ -6732,15 +6861,15 @@ }, "property": { "type": "Identifier", - "start": 4768, - "end": 4771, + "start": 4896, + "end": 4899, "loc": { "start": { - "line": 175, + "line": 177, "column": 60 }, "end": { - "line": 175, + "line": 177, "column": 63 }, "identifierName": "pow" @@ -6752,43 +6881,43 @@ "arguments": [ { "type": "BinaryExpression", - "start": 4772, - "end": 4793, + "start": 4900, + "end": 4921, "loc": { "start": { - "line": 175, + "line": 177, "column": 64 }, "end": { - "line": 175, + "line": 177, "column": 85 } }, "left": { "type": "MemberExpression", - "start": 4772, - "end": 4781, + "start": 4900, + "end": 4909, "loc": { "start": { - "line": 175, + "line": 177, "column": 64 }, "end": { - "line": 175, + "line": 177, "column": 73 } }, "object": { "type": "Identifier", - "start": 4772, - "end": 4776, + "start": 4900, + "end": 4904, "loc": { "start": { - "line": 175, + "line": 177, "column": 64 }, "end": { - "line": 175, + "line": 177, "column": 68 }, "identifierName": "obj1" @@ -6797,15 +6926,15 @@ }, "property": { "type": "Identifier", - "start": 4777, - "end": 4781, + "start": 4905, + "end": 4909, "loc": { "start": { - "line": 175, + "line": 177, "column": 69 }, "end": { - "line": 175, + "line": 177, "column": 73 }, "identifierName": "posY" @@ -6817,29 +6946,29 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 4784, - "end": 4793, + "start": 4912, + "end": 4921, "loc": { "start": { - "line": 175, + "line": 177, "column": 76 }, "end": { - "line": 175, + "line": 177, "column": 85 } }, "object": { "type": "Identifier", - "start": 4784, - "end": 4788, + "start": 4912, + "end": 4916, "loc": { "start": { - "line": 175, + "line": 177, "column": 76 }, "end": { - "line": 175, + "line": 177, "column": 80 }, "identifierName": "obj2" @@ -6848,15 +6977,15 @@ }, "property": { "type": "Identifier", - "start": 4789, - "end": 4793, + "start": 4917, + "end": 4921, "loc": { "start": { - "line": 175, + "line": 177, "column": 81 }, "end": { - "line": 175, + "line": 177, "column": 85 }, "identifierName": "posY" @@ -6868,15 +6997,15 @@ }, { "type": "NumericLiteral", - "start": 4795, - "end": 4796, + "start": 4923, + "end": 4924, "loc": { "start": { - "line": 175, + "line": 177, "column": 87 }, "end": { - "line": 175, + "line": 177, "column": 88 } }, @@ -6900,15 +7029,15 @@ { "type": "CommentBlock", "value": "*\n * Returns true if the object parameter is within the map boundaries.\n * @param {GameObject} obj The object to test\n * @return true if the object parameter is within the map boundaries\n ", - "start": 4802, - "end": 4994, + "start": 4930, + "end": 5122, "loc": { "start": { - "line": 178, + "line": 180, "column": 0 }, "end": { - "line": 182, + "line": 184, "column": 3 } } @@ -6920,15 +7049,15 @@ { "type": "CommentBlock", "value": "*\n * Returns true if the object parameter is within the map boundaries.\n * @param {GameObject} obj The object to test\n * @return true if the object parameter is within the map boundaries\n ", - "start": 4802, - "end": 4994, + "start": 4930, + "end": 5122, "loc": { "start": { - "line": 178, + "line": 180, "column": 0 }, "end": { - "line": 182, + "line": 184, "column": 3 } } @@ -6937,15 +7066,15 @@ }, { "type": "ExportNamedDeclaration", - "start": 4995, - "end": 5216, + "start": 5123, + "end": 5344, "loc": { "start": { - "line": 183, + "line": 185, "column": 0 }, "end": { - "line": 185, + "line": 187, "column": 1 } }, @@ -6953,29 +7082,29 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 5002, - "end": 5216, + "start": 5130, + "end": 5344, "loc": { "start": { - "line": 183, + "line": 185, "column": 7 }, "end": { - "line": 185, + "line": 187, "column": 1 } }, "id": { "type": "Identifier", - "start": 5011, - "end": 5021, + "start": 5139, + "end": 5149, "loc": { "start": { - "line": 183, + "line": 185, "column": 16 }, "end": { - "line": 183, + "line": 185, "column": 26 }, "identifierName": "isInBounds" @@ -6989,15 +7118,15 @@ "params": [ { "type": "Identifier", - "start": 5023, - "end": 5026, + "start": 5151, + "end": 5154, "loc": { "start": { - "line": 183, + "line": 185, "column": 28 }, "end": { - "line": 183, + "line": 185, "column": 31 }, "identifierName": "obj" @@ -7007,114 +7136,114 @@ ], "body": { "type": "BlockStatement", - "start": 5028, - "end": 5216, + "start": 5156, + "end": 5344, "loc": { "start": { - "line": 183, + "line": 185, "column": 33 }, "end": { - "line": 185, + "line": 187, "column": 1 } }, "body": [ { "type": "ReturnStatement", - "start": 5031, - "end": 5214, + "start": 5159, + "end": 5342, "loc": { "start": { - "line": 184, + "line": 186, "column": 1 }, "end": { - "line": 184, + "line": 186, "column": 184 } }, "argument": { "type": "LogicalExpression", - "start": 5038, - "end": 5214, + "start": 5166, + "end": 5342, "loc": { "start": { - "line": 184, + "line": 186, "column": 8 }, "end": { - "line": 184, + "line": 186, "column": 184 } }, "left": { "type": "LogicalExpression", - "start": 5038, - "end": 5150, + "start": 5166, + "end": 5278, "loc": { "start": { - "line": 184, + "line": 186, "column": 8 }, "end": { - "line": 184, + "line": 186, "column": 120 } }, "left": { "type": "LogicalExpression", - "start": 5038, - "end": 5089, + "start": 5166, + "end": 5217, "loc": { "start": { - "line": 184, + "line": 186, "column": 8 }, "end": { - "line": 184, + "line": 186, "column": 59 } }, "left": { "type": "BinaryExpression", - "start": 5038, - "end": 5050, + "start": 5166, + "end": 5178, "loc": { "start": { - "line": 184, + "line": 186, "column": 8 }, "end": { - "line": 184, + "line": 186, "column": 20 } }, "left": { "type": "MemberExpression", - "start": 5038, - "end": 5046, + "start": 5166, + "end": 5174, "loc": { "start": { - "line": 184, + "line": 186, "column": 8 }, "end": { - "line": 184, + "line": 186, "column": 16 } }, "object": { "type": "Identifier", - "start": 5038, - "end": 5041, + "start": 5166, + "end": 5169, "loc": { "start": { - "line": 184, + "line": 186, "column": 8 }, "end": { - "line": 184, + "line": 186, "column": 11 }, "identifierName": "obj" @@ -7123,15 +7252,15 @@ }, "property": { "type": "Identifier", - "start": 5042, - "end": 5046, + "start": 5170, + "end": 5174, "loc": { "start": { - "line": 184, + "line": 186, "column": 12 }, "end": { - "line": 184, + "line": 186, "column": 16 }, "identifierName": "posX" @@ -7143,15 +7272,15 @@ "operator": ">", "right": { "type": "NumericLiteral", - "start": 5049, - "end": 5050, + "start": 5177, + "end": 5178, "loc": { "start": { - "line": 184, + "line": 186, "column": 19 }, "end": { - "line": 184, + "line": 186, "column": 20 } }, @@ -7165,43 +7294,43 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 5054, - "end": 5089, + "start": 5182, + "end": 5217, "loc": { "start": { - "line": 184, + "line": 186, "column": 24 }, "end": { - "line": 184, + "line": 186, "column": 59 } }, "left": { "type": "MemberExpression", - "start": 5054, - "end": 5062, + "start": 5182, + "end": 5190, "loc": { "start": { - "line": 184, + "line": 186, "column": 24 }, "end": { - "line": 184, + "line": 186, "column": 32 } }, "object": { "type": "Identifier", - "start": 5054, - "end": 5057, + "start": 5182, + "end": 5185, "loc": { "start": { - "line": 184, + "line": 186, "column": 24 }, "end": { - "line": 184, + "line": 186, "column": 27 }, "identifierName": "obj" @@ -7210,15 +7339,15 @@ }, "property": { "type": "Identifier", - "start": 5058, - "end": 5062, + "start": 5186, + "end": 5190, "loc": { "start": { - "line": 184, + "line": 186, "column": 28 }, "end": { - "line": 184, + "line": 186, "column": 32 }, "identifierName": "posY" @@ -7230,29 +7359,29 @@ "operator": ">", "right": { "type": "BinaryExpression", - "start": 5065, - "end": 5089, + "start": 5193, + "end": 5217, "loc": { "start": { - "line": 184, + "line": 186, "column": 35 }, "end": { - "line": 184, + "line": 186, "column": 59 } }, "left": { "type": "UnaryExpression", - "start": 5065, - "end": 5085, + "start": 5193, + "end": 5213, "loc": { "start": { - "line": 184, + "line": 186, "column": 35 }, "end": { - "line": 184, + "line": 186, "column": 55 } }, @@ -7260,29 +7389,29 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 5066, - "end": 5085, + "start": 5194, + "end": 5213, "loc": { "start": { - "line": 184, + "line": 186, "column": 36 }, "end": { - "line": 184, + "line": 186, "column": 55 } }, "object": { "type": "Identifier", - "start": 5066, - "end": 5072, + "start": 5194, + "end": 5200, "loc": { "start": { - "line": 184, + "line": 186, "column": 36 }, "end": { - "line": 184, + "line": 186, "column": 42 }, "identifierName": "GLOBAL" @@ -7291,15 +7420,15 @@ }, "property": { "type": "Identifier", - "start": 5073, - "end": 5085, + "start": 5201, + "end": 5213, "loc": { "start": { - "line": 184, + "line": 186, "column": 43 }, "end": { - "line": 184, + "line": 186, "column": 55 }, "identifierName": "GRID_SPACING" @@ -7315,15 +7444,15 @@ "operator": "*", "right": { "type": "NumericLiteral", - "start": 5088, - "end": 5089, + "start": 5216, + "end": 5217, "loc": { "start": { - "line": 184, + "line": 186, "column": 58 }, "end": { - "line": 184, + "line": 186, "column": 59 } }, @@ -7339,43 +7468,43 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 5093, - "end": 5150, + "start": 5221, + "end": 5278, "loc": { "start": { - "line": 184, + "line": 186, "column": 63 }, "end": { - "line": 184, + "line": 186, "column": 120 } }, "left": { "type": "MemberExpression", - "start": 5093, - "end": 5101, + "start": 5221, + "end": 5229, "loc": { "start": { - "line": 184, + "line": 186, "column": 63 }, "end": { - "line": 184, + "line": 186, "column": 71 } }, "object": { "type": "Identifier", - "start": 5093, - "end": 5096, + "start": 5221, + "end": 5224, "loc": { "start": { - "line": 184, + "line": 186, "column": 63 }, "end": { - "line": 184, + "line": 186, "column": 66 }, "identifierName": "obj" @@ -7384,15 +7513,15 @@ }, "property": { "type": "Identifier", - "start": 5097, - "end": 5101, + "start": 5225, + "end": 5229, "loc": { "start": { - "line": 184, + "line": 186, "column": 67 }, "end": { - "line": 184, + "line": 186, "column": 71 }, "identifierName": "posX" @@ -7404,71 +7533,71 @@ "operator": "<", "right": { "type": "BinaryExpression", - "start": 5104, - "end": 5150, + "start": 5232, + "end": 5278, "loc": { "start": { - "line": 184, + "line": 186, "column": 74 }, "end": { - "line": 184, + "line": 186, "column": 120 } }, "left": { "type": "BinaryExpression", - "start": 5104, - "end": 5146, + "start": 5232, + "end": 5274, "loc": { "start": { - "line": 184, + "line": 186, "column": 74 }, "end": { - "line": 184, + "line": 186, "column": 116 } }, "left": { "type": "MemberExpression", - "start": 5104, - "end": 5124, + "start": 5232, + "end": 5252, "loc": { "start": { - "line": 184, + "line": 186, "column": 74 }, "end": { - "line": 184, + "line": 186, "column": 94 } }, "object": { "type": "MemberExpression", - "start": 5104, - "end": 5117, + "start": 5232, + "end": 5245, "loc": { "start": { - "line": 184, + "line": 186, "column": 74 }, "end": { - "line": 184, + "line": 186, "column": 87 } }, "object": { "type": "Identifier", - "start": 5104, - "end": 5114, + "start": 5232, + "end": 5242, "loc": { "start": { - "line": 184, + "line": 186, "column": 74 }, "end": { - "line": 184, + "line": 186, "column": 84 }, "identifierName": "MAP_LAYOUT" @@ -7477,15 +7606,15 @@ }, "property": { "type": "NumericLiteral", - "start": 5115, - "end": 5116, + "start": 5243, + "end": 5244, "loc": { "start": { - "line": 184, + "line": 186, "column": 85 }, "end": { - "line": 184, + "line": 186, "column": 86 } }, @@ -7499,15 +7628,15 @@ }, "property": { "type": "Identifier", - "start": 5118, - "end": 5124, + "start": 5246, + "end": 5252, "loc": { "start": { - "line": 184, + "line": 186, "column": 88 }, "end": { - "line": 184, + "line": 186, "column": 94 }, "identifierName": "length" @@ -7519,29 +7648,29 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 5127, - "end": 5146, + "start": 5255, + "end": 5274, "loc": { "start": { - "line": 184, + "line": 186, "column": 97 }, "end": { - "line": 184, + "line": 186, "column": 116 } }, "object": { "type": "Identifier", - "start": 5127, - "end": 5133, + "start": 5255, + "end": 5261, "loc": { "start": { - "line": 184, + "line": 186, "column": 97 }, "end": { - "line": 184, + "line": 186, "column": 103 }, "identifierName": "GLOBAL" @@ -7550,15 +7679,15 @@ }, "property": { "type": "Identifier", - "start": 5134, - "end": 5146, + "start": 5262, + "end": 5274, "loc": { "start": { - "line": 184, + "line": 186, "column": 104 }, "end": { - "line": 184, + "line": 186, "column": 116 }, "identifierName": "GRID_SPACING" @@ -7571,15 +7700,15 @@ "operator": "*", "right": { "type": "NumericLiteral", - "start": 5149, - "end": 5150, + "start": 5277, + "end": 5278, "loc": { "start": { - "line": 184, + "line": 186, "column": 119 }, "end": { - "line": 184, + "line": 186, "column": 120 } }, @@ -7595,43 +7724,43 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 5154, - "end": 5214, + "start": 5282, + "end": 5342, "loc": { "start": { - "line": 184, + "line": 186, "column": 124 }, "end": { - "line": 184, + "line": 186, "column": 184 } }, "left": { "type": "MemberExpression", - "start": 5154, - "end": 5162, + "start": 5282, + "end": 5290, "loc": { "start": { - "line": 184, + "line": 186, "column": 124 }, "end": { - "line": 184, + "line": 186, "column": 132 } }, "object": { "type": "Identifier", - "start": 5154, - "end": 5157, + "start": 5282, + "end": 5285, "loc": { "start": { - "line": 184, + "line": 186, "column": 124 }, "end": { - "line": 184, + "line": 186, "column": 127 }, "identifierName": "obj" @@ -7640,15 +7769,15 @@ }, "property": { "type": "Identifier", - "start": 5158, - "end": 5162, + "start": 5286, + "end": 5290, "loc": { "start": { - "line": 184, + "line": 186, "column": 128 }, "end": { - "line": 184, + "line": 186, "column": 132 }, "identifierName": "posY" @@ -7660,71 +7789,71 @@ "operator": "<", "right": { "type": "BinaryExpression", - "start": 5165, - "end": 5214, + "start": 5293, + "end": 5342, "loc": { "start": { - "line": 184, + "line": 186, "column": 135 }, "end": { - "line": 184, + "line": 186, "column": 184 } }, "left": { "type": "BinaryExpression", - "start": 5165, - "end": 5210, + "start": 5293, + "end": 5338, "loc": { "start": { - "line": 184, + "line": 186, "column": 135 }, "end": { - "line": 184, + "line": 186, "column": 180 } }, "left": { "type": "BinaryExpression", - "start": 5166, - "end": 5187, + "start": 5294, + "end": 5315, "loc": { "start": { - "line": 184, + "line": 186, "column": 136 }, "end": { - "line": 184, + "line": 186, "column": 157 } }, "left": { "type": "MemberExpression", - "start": 5166, - "end": 5183, + "start": 5294, + "end": 5311, "loc": { "start": { - "line": 184, + "line": 186, "column": 136 }, "end": { - "line": 184, + "line": 186, "column": 153 } }, "object": { "type": "Identifier", - "start": 5166, - "end": 5176, + "start": 5294, + "end": 5304, "loc": { "start": { - "line": 184, + "line": 186, "column": 136 }, "end": { - "line": 184, + "line": 186, "column": 146 }, "identifierName": "MAP_LAYOUT" @@ -7733,15 +7862,15 @@ }, "property": { "type": "Identifier", - "start": 5177, - "end": 5183, + "start": 5305, + "end": 5311, "loc": { "start": { - "line": 184, + "line": 186, "column": 147 }, "end": { - "line": 184, + "line": 186, "column": 153 }, "identifierName": "length" @@ -7753,15 +7882,15 @@ "operator": "-", "right": { "type": "NumericLiteral", - "start": 5186, - "end": 5187, + "start": 5314, + "end": 5315, "loc": { "start": { - "line": 184, + "line": 186, "column": 156 }, "end": { - "line": 184, + "line": 186, "column": 157 } }, @@ -7773,35 +7902,35 @@ }, "extra": { "parenthesized": true, - "parenStart": 5165 + "parenStart": 5293 } }, "operator": "*", "right": { "type": "MemberExpression", - "start": 5191, - "end": 5210, + "start": 5319, + "end": 5338, "loc": { "start": { - "line": 184, + "line": 186, "column": 161 }, "end": { - "line": 184, + "line": 186, "column": 180 } }, "object": { "type": "Identifier", - "start": 5191, - "end": 5197, + "start": 5319, + "end": 5325, "loc": { "start": { - "line": 184, + "line": 186, "column": 161 }, "end": { - "line": 184, + "line": 186, "column": 167 }, "identifierName": "GLOBAL" @@ -7810,15 +7939,15 @@ }, "property": { "type": "Identifier", - "start": 5198, - "end": 5210, + "start": 5326, + "end": 5338, "loc": { "start": { - "line": 184, + "line": 186, "column": 168 }, "end": { - "line": 184, + "line": 186, "column": 180 }, "identifierName": "GRID_SPACING" @@ -7831,15 +7960,15 @@ "operator": "*", "right": { "type": "NumericLiteral", - "start": 5213, - "end": 5214, + "start": 5341, + "end": 5342, "loc": { "start": { - "line": 184, + "line": 186, "column": 183 }, "end": { - "line": 184, + "line": 186, "column": 184 } }, @@ -7861,15 +7990,15 @@ { "type": "CommentBlock", "value": "*\n * Returns true if the object parameter is within the map boundaries.\n * @param {GameObject} obj The object to test\n * @return true if the object parameter is within the map boundaries\n ", - "start": 4802, - "end": 4994, + "start": 4930, + "end": 5122, "loc": { "start": { - "line": 178, + "line": 180, "column": 0 }, "end": { - "line": 182, + "line": 184, "column": 3 } } @@ -7879,15 +8008,15 @@ { "type": "CommentBlock", "value": "*\n * Gets the tile directly underneath any object.\n * @param {*} obj Any valid GameObject.\n * @returns {string} one-letter ID of current tile.\n ", - "start": 5218, - "end": 5366, + "start": 5346, + "end": 5494, "loc": { "start": { - "line": 187, + "line": 189, "column": 0 }, "end": { - "line": 191, + "line": 193, "column": 3 } } @@ -7898,15 +8027,15 @@ { "type": "CommentBlock", "value": "*\n * Returns true if the object parameter is within the map boundaries.\n * @param {GameObject} obj The object to test\n * @return true if the object parameter is within the map boundaries\n ", - "start": 4802, - "end": 4994, + "start": 4930, + "end": 5122, "loc": { "start": { - "line": 178, + "line": 180, "column": 0 }, "end": { - "line": 182, + "line": 184, "column": 3 } } @@ -7916,15 +8045,15 @@ { "type": "CommentBlock", "value": "*\n * Gets the tile directly underneath any object.\n * @param {*} obj Any valid GameObject.\n * @returns {string} one-letter ID of current tile.\n ", - "start": 5218, - "end": 5366, + "start": 5346, + "end": 5494, "loc": { "start": { - "line": 187, + "line": 189, "column": 0 }, "end": { - "line": 191, + "line": 193, "column": 3 } } @@ -7933,15 +8062,15 @@ }, { "type": "ExportNamedDeclaration", - "start": 5367, - "end": 5552, + "start": 5495, + "end": 5656, "loc": { "start": { - "line": 192, + "line": 194, "column": 0 }, "end": { - "line": 201, + "line": 203, "column": 1 } }, @@ -7949,29 +8078,29 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 5374, - "end": 5552, + "start": 5502, + "end": 5656, "loc": { "start": { - "line": 192, + "line": 194, "column": 7 }, "end": { - "line": 201, + "line": 203, "column": 1 } }, "id": { "type": "Identifier", - "start": 5383, - "end": 5394, + "start": 5511, + "end": 5522, "loc": { "start": { - "line": 192, + "line": 194, "column": 16 }, "end": { - "line": 192, + "line": 194, "column": 27 }, "identifierName": "getCurrTile" @@ -7985,15 +8114,15 @@ "params": [ { "type": "Identifier", - "start": 5396, - "end": 5399, + "start": 5524, + "end": 5527, "loc": { "start": { - "line": 192, + "line": 194, "column": 29 }, "end": { - "line": 192, + "line": 194, "column": 32 }, "identifierName": "obj" @@ -8003,59 +8132,59 @@ ], "body": { "type": "BlockStatement", - "start": 5401, - "end": 5552, + "start": 5529, + "end": 5656, "loc": { "start": { - "line": 192, + "line": 194, "column": 34 }, "end": { - "line": 201, + "line": 203, "column": 1 } }, "body": [ { "type": "VariableDeclaration", - "start": 5404, - "end": 5436, + "start": 5532, + "end": 5564, "loc": { "start": { - "line": 193, + "line": 195, "column": 1 }, "end": { - "line": 193, + "line": 195, "column": 33 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 5408, - "end": 5436, + "start": 5536, + "end": 5564, "loc": { "start": { - "line": 193, + "line": 195, "column": 5 }, "end": { - "line": 193, + "line": 195, "column": 33 } }, "id": { "type": "Identifier", - "start": 5408, - "end": 5411, + "start": 5536, + "end": 5539, "loc": { "start": { - "line": 193, + "line": 195, "column": 5 }, "end": { - "line": 193, + "line": 195, "column": 8 }, "identifierName": "pos" @@ -8064,29 +8193,29 @@ }, "init": { "type": "CallExpression", - "start": 5414, - "end": 5436, + "start": 5542, + "end": 5564, "loc": { "start": { - "line": 193, + "line": 195, "column": 11 }, "end": { - "line": 193, + "line": 195, "column": 33 } }, "callee": { "type": "Identifier", - "start": 5414, - "end": 5431, + "start": 5542, + "end": 5559, "loc": { "start": { - "line": 193, + "line": 195, "column": 11 }, "end": { - "line": 193, + "line": 195, "column": 28 }, "identifierName": "getGlobalLocation" @@ -8096,15 +8225,15 @@ "arguments": [ { "type": "Identifier", - "start": 5432, - "end": 5435, + "start": 5560, + "end": 5563, "loc": { "start": { - "line": 193, + "line": 195, "column": 29 }, "end": { - "line": 193, + "line": 195, "column": 32 }, "identifierName": "obj" @@ -8119,86 +8248,86 @@ }, { "type": "TryStatement", - "start": 5439, - "end": 5550, + "start": 5567, + "end": 5654, "loc": { "start": { - "line": 195, + "line": 197, "column": 1 }, "end": { - "line": 200, + "line": 202, "column": 2 } }, "block": { "type": "BlockStatement", - "start": 5443, - "end": 5517, + "start": 5571, + "end": 5621, "loc": { "start": { - "line": 195, + "line": 197, "column": 5 }, "end": { - "line": 197, + "line": 199, "column": 2 } }, "body": [ { "type": "ReturnStatement", - "start": 5447, - "end": 5514, + "start": 5575, + "end": 5618, "loc": { "start": { - "line": 196, + "line": 198, "column": 2 }, "end": { - "line": 196, - "column": 69 + "line": 198, + "column": 45 } }, "argument": { "type": "MemberExpression", - "start": 5454, - "end": 5514, + "start": 5582, + "end": 5618, "loc": { "start": { - "line": 196, + "line": 198, "column": 9 }, "end": { - "line": 196, - "column": 69 + "line": 198, + "column": 45 } }, "object": { "type": "MemberExpression", - "start": 5454, - "end": 5501, + "start": 5582, + "end": 5605, "loc": { "start": { - "line": 196, + "line": 198, "column": 9 }, "end": { - "line": 196, - "column": 56 + "line": 198, + "column": 32 } }, "object": { "type": "Identifier", - "start": 5454, - "end": 5464, + "start": 5582, + "end": 5592, "loc": { "start": { - "line": 196, + "line": 198, "column": 9 }, "end": { - "line": 196, + "line": 198, "column": 19 }, "identifierName": "MAP_LAYOUT" @@ -8206,185 +8335,83 @@ "name": "MAP_LAYOUT" }, "property": { - "type": "BinaryExpression", - "start": 5465, - "end": 5500, + "type": "MemberExpression", + "start": 5593, + "end": 5604, "loc": { "start": { - "line": 196, + "line": 198, "column": 20 }, "end": { - "line": 196, - "column": 55 + "line": 198, + "column": 31 } }, - "left": { - "type": "BinaryExpression", - "start": 5465, - "end": 5496, + "object": { + "type": "Identifier", + "start": 5593, + "end": 5596, "loc": { "start": { - "line": 196, + "line": 198, "column": 20 }, "end": { - "line": 196, - "column": 51 - } - }, - "left": { - "type": "MemberExpression", - "start": 5465, - "end": 5482, - "loc": { - "start": { - "line": 196, - "column": 20 - }, - "end": { - "line": 196, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 5465, - "end": 5475, - "loc": { - "start": { - "line": 196, - "column": 20 - }, - "end": { - "line": 196, - "column": 30 - }, - "identifierName": "MAP_LAYOUT" - }, - "name": "MAP_LAYOUT" - }, - "property": { - "type": "Identifier", - "start": 5476, - "end": 5482, - "loc": { - "start": { - "line": 196, - "column": 31 - }, - "end": { - "line": 196, - "column": 37 - }, - "identifierName": "length" - }, - "name": "length" + "line": 198, + "column": 23 }, - "computed": false + "identifierName": "pos" }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 5485, - "end": 5496, - "loc": { - "start": { - "line": 196, - "column": 40 - }, - "end": { - "line": 196, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 5485, - "end": 5488, - "loc": { - "start": { - "line": 196, - "column": 40 - }, - "end": { - "line": 196, - "column": 43 - }, - "identifierName": "pos" - }, - "name": "pos" - }, - "property": { - "type": "Identifier", - "start": 5489, - "end": 5496, - "loc": { - "start": { - "line": 196, - "column": 44 - }, - "end": { - "line": 196, - "column": 51 - }, - "identifierName": "globalY" - }, - "name": "globalY" - }, - "computed": false - } + "name": "pos" }, - "operator": "-", - "right": { - "type": "NumericLiteral", - "start": 5499, - "end": 5500, + "property": { + "type": "Identifier", + "start": 5597, + "end": 5604, "loc": { "start": { - "line": 196, - "column": 54 + "line": 198, + "column": 24 }, "end": { - "line": 196, - "column": 55 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" + "line": 198, + "column": 31 + }, + "identifierName": "globalY" }, - "value": 2 - } + "name": "globalY" + }, + "computed": false }, "computed": true }, "property": { "type": "MemberExpression", - "start": 5502, - "end": 5513, + "start": 5606, + "end": 5617, "loc": { "start": { - "line": 196, - "column": 57 + "line": 198, + "column": 33 }, "end": { - "line": 196, - "column": 68 + "line": 198, + "column": 44 } }, "object": { "type": "Identifier", - "start": 5502, - "end": 5505, + "start": 5606, + "end": 5609, "loc": { "start": { - "line": 196, - "column": 57 + "line": 198, + "column": 33 }, "end": { - "line": 196, - "column": 60 + "line": 198, + "column": 36 }, "identifierName": "pos" }, @@ -8392,16 +8419,16 @@ }, "property": { "type": "Identifier", - "start": 5506, - "end": 5513, + "start": 5610, + "end": 5617, "loc": { "start": { - "line": 196, - "column": 61 + "line": 198, + "column": 37 }, "end": { - "line": 196, - "column": 68 + "line": 198, + "column": 44 }, "identifierName": "globalX" }, @@ -8417,29 +8444,29 @@ }, "handler": { "type": "CatchClause", - "start": 5519, - "end": 5550, + "start": 5623, + "end": 5654, "loc": { "start": { - "line": 198, + "line": 200, "column": 1 }, "end": { - "line": 200, + "line": 202, "column": 2 } }, "param": { "type": "Identifier", - "start": 5526, - "end": 5531, + "start": 5630, + "end": 5635, "loc": { "start": { - "line": 198, + "line": 200, "column": 8 }, "end": { - "line": 198, + "line": 200, "column": 13 }, "identifierName": "error" @@ -8448,44 +8475,44 @@ }, "body": { "type": "BlockStatement", - "start": 5533, - "end": 5550, + "start": 5637, + "end": 5654, "loc": { "start": { - "line": 198, + "line": 200, "column": 15 }, "end": { - "line": 200, + "line": 202, "column": 2 } }, "body": [ { "type": "ReturnStatement", - "start": 5537, - "end": 5547, + "start": 5641, + "end": 5651, "loc": { "start": { - "line": 199, + "line": 201, "column": 2 }, "end": { - "line": 199, + "line": 201, "column": 12 } }, "argument": { "type": "StringLiteral", - "start": 5544, - "end": 5547, + "start": 5648, + "end": 5651, "loc": { "start": { - "line": 199, + "line": 201, "column": 9 }, "end": { - "line": 199, + "line": 201, "column": 12 } }, @@ -8511,15 +8538,15 @@ { "type": "CommentBlock", "value": "*\n * Gets the tile directly underneath any object.\n * @param {*} obj Any valid GameObject.\n * @returns {string} one-letter ID of current tile.\n ", - "start": 5218, - "end": 5366, + "start": 5346, + "end": 5494, "loc": { "start": { - "line": 187, + "line": 189, "column": 0 }, "end": { - "line": 191, + "line": 193, "column": 3 } } @@ -8529,15 +8556,15 @@ { "type": "CommentBlock", "value": "*\n * Gets the coordinates of the tile directly underneath the object.\n * @param {*} obj Any valid GameObject.\n ", - "start": 5554, - "end": 5669, + "start": 5658, + "end": 5773, "loc": { "start": { - "line": 203, + "line": 205, "column": 0 }, "end": { - "line": 206, + "line": 208, "column": 3 } } @@ -8548,15 +8575,15 @@ { "type": "CommentBlock", "value": "*\n * Gets the tile directly underneath any object.\n * @param {*} obj Any valid GameObject.\n * @returns {string} one-letter ID of current tile.\n ", - "start": 5218, - "end": 5366, + "start": 5346, + "end": 5494, "loc": { "start": { - "line": 187, + "line": 189, "column": 0 }, "end": { - "line": 191, + "line": 193, "column": 3 } } @@ -8566,15 +8593,15 @@ { "type": "CommentBlock", "value": "*\n * Gets the coordinates of the tile directly underneath the object.\n * @param {*} obj Any valid GameObject.\n ", - "start": 5554, - "end": 5669, + "start": 5658, + "end": 5773, "loc": { "start": { - "line": 203, + "line": 205, "column": 0 }, "end": { - "line": 206, + "line": 208, "column": 3 } } @@ -8583,15 +8610,15 @@ }, { "type": "ExportNamedDeclaration", - "start": 5670, - "end": 5847, + "start": 5774, + "end": 5955, "loc": { "start": { - "line": 207, + "line": 209, "column": 0 }, "end": { - "line": 212, + "line": 214, "column": 1 } }, @@ -8599,29 +8626,29 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 5677, - "end": 5847, + "start": 5781, + "end": 5955, "loc": { "start": { - "line": 207, + "line": 209, "column": 7 }, "end": { - "line": 212, + "line": 214, "column": 1 } }, "id": { "type": "Identifier", - "start": 5686, - "end": 5703, + "start": 5790, + "end": 5807, "loc": { "start": { - "line": 207, + "line": 209, "column": 16 }, "end": { - "line": 207, + "line": 209, "column": 33 }, "identifierName": "getGlobalLocation" @@ -8635,15 +8662,15 @@ "params": [ { "type": "Identifier", - "start": 5705, - "end": 5708, + "start": 5809, + "end": 5812, "loc": { "start": { - "line": 207, + "line": 209, "column": 35 }, "end": { - "line": 207, + "line": 209, "column": 38 }, "identifierName": "obj" @@ -8653,60 +8680,60 @@ ], "body": { "type": "BlockStatement", - "start": 5710, - "end": 5847, + "start": 5814, + "end": 5955, "loc": { "start": { - "line": 207, + "line": 209, "column": 40 }, "end": { - "line": 212, + "line": 214, "column": 1 } }, "body": [ { "type": "ReturnStatement", - "start": 5713, - "end": 5845, + "start": 5817, + "end": 5953, "loc": { "start": { - "line": 208, + "line": 210, "column": 1 }, "end": { - "line": 211, + "line": 213, "column": 2 } }, "argument": { "type": "ObjectExpression", - "start": 5720, - "end": 5845, + "start": 5824, + "end": 5953, "loc": { "start": { - "line": 208, + "line": 210, "column": 8 }, "end": { - "line": 211, + "line": 213, "column": 2 } }, "properties": [ { "type": "ObjectProperty", - "start": 5724, - "end": 5781, + "start": 5828, + "end": 5889, "loc": { "start": { - "line": 209, + "line": 211, "column": 2 }, "end": { - "line": 209, - "column": 59 + "line": 211, + "column": 63 } }, "method": false, @@ -8714,256 +8741,292 @@ "computed": false, "key": { "type": "Identifier", - "start": 5724, - "end": 5731, + "start": 5828, + "end": 5835, "loc": { "start": { - "line": 209, + "line": 211, "column": 2 }, "end": { - "line": 209, + "line": 211, "column": 9 }, - "identifierName": "globalX" + "identifierName": "globalY" }, - "name": "globalX" + "name": "globalY" }, "value": { - "type": "CallExpression", - "start": 5733, - "end": 5781, + "type": "BinaryExpression", + "start": 5837, + "end": 5889, "loc": { "start": { - "line": 209, + "line": 211, "column": 11 }, "end": { - "line": 209, - "column": 59 + "line": 211, + "column": 63 } }, - "callee": { - "type": "MemberExpression", - "start": 5733, - "end": 5743, + "left": { + "type": "CallExpression", + "start": 5837, + "end": 5885, "loc": { "start": { - "line": 209, + "line": 211, "column": 11 }, "end": { - "line": 209, - "column": 21 + "line": 211, + "column": 59 } }, - "object": { - "type": "Identifier", - "start": 5733, - "end": 5737, + "callee": { + "type": "MemberExpression", + "start": 5837, + "end": 5847, "loc": { "start": { - "line": 209, + "line": 211, "column": 11 }, "end": { - "line": 209, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 5738, - "end": 5743, - "loc": { - "start": { - "line": 209, - "column": 16 - }, - "end": { - "line": 209, + "line": 211, "column": 21 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 5744, - "end": 5780, - "loc": { - "start": { - "line": 209, - "column": 22 - }, - "end": { - "line": 209, - "column": 58 } }, - "left": { - "type": "MemberExpression", - "start": 5744, - "end": 5752, + "object": { + "type": "Identifier", + "start": 5837, + "end": 5841, "loc": { "start": { - "line": 209, - "column": 22 + "line": 211, + "column": 11 }, "end": { - "line": 209, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 5744, - "end": 5747, - "loc": { - "start": { - "line": 209, - "column": 22 - }, - "end": { - "line": 209, - "column": 25 - }, - "identifierName": "obj" + "line": 211, + "column": 15 }, - "name": "obj" + "identifierName": "Math" }, - "property": { - "type": "Identifier", - "start": 5748, - "end": 5752, - "loc": { - "start": { - "line": 209, - "column": 26 - }, - "end": { - "line": 209, - "column": 30 - }, - "identifierName": "posX" + "name": "Math" + }, + "property": { + "type": "Identifier", + "start": 5842, + "end": 5847, + "loc": { + "start": { + "line": 211, + "column": 16 }, - "name": "posX" + "end": { + "line": 211, + "column": 21 + }, + "identifierName": "floor" }, - "computed": false + "name": "floor" }, - "operator": "/", - "right": { + "computed": false + }, + "arguments": [ + { "type": "BinaryExpression", - "start": 5756, - "end": 5779, + "start": 5848, + "end": 5884, "loc": { "start": { - "line": 209, - "column": 34 + "line": 211, + "column": 22 }, "end": { - "line": 209, - "column": 57 + "line": 211, + "column": 58 } }, "left": { "type": "MemberExpression", - "start": 5756, - "end": 5775, + "start": 5848, + "end": 5856, "loc": { "start": { - "line": 209, - "column": 34 + "line": 211, + "column": 22 }, "end": { - "line": 209, - "column": 53 + "line": 211, + "column": 30 } }, "object": { "type": "Identifier", - "start": 5756, - "end": 5762, + "start": 5848, + "end": 5851, "loc": { "start": { - "line": 209, - "column": 34 + "line": 211, + "column": 22 }, "end": { - "line": 209, - "column": 40 + "line": 211, + "column": 25 }, - "identifierName": "GLOBAL" + "identifierName": "obj" }, - "name": "GLOBAL" + "name": "obj" }, "property": { "type": "Identifier", - "start": 5763, - "end": 5775, + "start": 5852, + "end": 5856, "loc": { "start": { - "line": 209, - "column": 41 + "line": 211, + "column": 26 }, "end": { - "line": 209, - "column": 53 + "line": 211, + "column": 30 }, - "identifierName": "GRID_SPACING" + "identifierName": "posY" }, - "name": "GRID_SPACING" + "name": "posY" }, "computed": false }, - "operator": "*", + "operator": "/", "right": { - "type": "NumericLiteral", - "start": 5778, - "end": 5779, + "type": "BinaryExpression", + "start": 5860, + "end": 5883, "loc": { "start": { - "line": 209, - "column": 56 + "line": 211, + "column": 34 }, "end": { - "line": 209, + "line": 211, "column": 57 } }, - "extra": { - "rawValue": 2, - "raw": "2" + "left": { + "type": "MemberExpression", + "start": 5860, + "end": 5879, + "loc": { + "start": { + "line": 211, + "column": 34 + }, + "end": { + "line": 211, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 5860, + "end": 5866, + "loc": { + "start": { + "line": 211, + "column": 34 + }, + "end": { + "line": 211, + "column": 40 + }, + "identifierName": "GLOBAL" + }, + "name": "GLOBAL" + }, + "property": { + "type": "Identifier", + "start": 5867, + "end": 5879, + "loc": { + "start": { + "line": 211, + "column": 41 + }, + "end": { + "line": 211, + "column": 53 + }, + "identifierName": "GRID_SPACING" + }, + "name": "GRID_SPACING" + }, + "computed": false }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 5755 + "operator": "*", + "right": { + "type": "NumericLiteral", + "start": 5882, + "end": 5883, + "loc": { + "start": { + "line": 211, + "column": 56 + }, + "end": { + "line": 211, + "column": 57 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + "extra": { + "parenthesized": true, + "parenStart": 5859 + } } } - } - ] + ] + }, + "operator": "+", + "right": { + "type": "NumericLiteral", + "start": 5888, + "end": 5889, + "loc": { + "start": { + "line": 211, + "column": 62 + }, + "end": { + "line": 211, + "column": 63 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } } }, { "type": "ObjectProperty", - "start": 5785, - "end": 5842, + "start": 5893, + "end": 5950, "loc": { "start": { - "line": 210, + "line": 212, "column": 2 }, "end": { - "line": 210, + "line": 212, "column": 59 } }, @@ -8972,60 +9035,60 @@ "computed": false, "key": { "type": "Identifier", - "start": 5785, - "end": 5792, + "start": 5893, + "end": 5900, "loc": { "start": { - "line": 210, + "line": 212, "column": 2 }, "end": { - "line": 210, + "line": 212, "column": 9 }, - "identifierName": "globalY" + "identifierName": "globalX" }, - "name": "globalY" + "name": "globalX" }, "value": { "type": "CallExpression", - "start": 5794, - "end": 5842, + "start": 5902, + "end": 5950, "loc": { "start": { - "line": 210, + "line": 212, "column": 11 }, "end": { - "line": 210, + "line": 212, "column": 59 } }, "callee": { "type": "MemberExpression", - "start": 5794, - "end": 5804, + "start": 5902, + "end": 5912, "loc": { "start": { - "line": 210, + "line": 212, "column": 11 }, "end": { - "line": 210, + "line": 212, "column": 21 } }, "object": { "type": "Identifier", - "start": 5794, - "end": 5798, + "start": 5902, + "end": 5906, "loc": { "start": { - "line": 210, + "line": 212, "column": 11 }, "end": { - "line": 210, + "line": 212, "column": 15 }, "identifierName": "Math" @@ -9034,15 +9097,15 @@ }, "property": { "type": "Identifier", - "start": 5799, - "end": 5804, + "start": 5907, + "end": 5912, "loc": { "start": { - "line": 210, + "line": 212, "column": 16 }, "end": { - "line": 210, + "line": 212, "column": 21 }, "identifierName": "floor" @@ -9054,43 +9117,43 @@ "arguments": [ { "type": "BinaryExpression", - "start": 5805, - "end": 5841, + "start": 5913, + "end": 5949, "loc": { "start": { - "line": 210, + "line": 212, "column": 22 }, "end": { - "line": 210, + "line": 212, "column": 58 } }, "left": { "type": "MemberExpression", - "start": 5805, - "end": 5813, + "start": 5913, + "end": 5921, "loc": { "start": { - "line": 210, + "line": 212, "column": 22 }, "end": { - "line": 210, + "line": 212, "column": 30 } }, "object": { "type": "Identifier", - "start": 5805, - "end": 5808, + "start": 5913, + "end": 5916, "loc": { "start": { - "line": 210, + "line": 212, "column": 22 }, "end": { - "line": 210, + "line": 212, "column": 25 }, "identifierName": "obj" @@ -9099,63 +9162,63 @@ }, "property": { "type": "Identifier", - "start": 5809, - "end": 5813, + "start": 5917, + "end": 5921, "loc": { "start": { - "line": 210, + "line": 212, "column": 26 }, "end": { - "line": 210, + "line": 212, "column": 30 }, - "identifierName": "posY" + "identifierName": "posX" }, - "name": "posY" + "name": "posX" }, "computed": false }, "operator": "/", "right": { "type": "BinaryExpression", - "start": 5817, - "end": 5840, + "start": 5925, + "end": 5948, "loc": { "start": { - "line": 210, + "line": 212, "column": 34 }, "end": { - "line": 210, + "line": 212, "column": 57 } }, "left": { "type": "MemberExpression", - "start": 5817, - "end": 5836, + "start": 5925, + "end": 5944, "loc": { "start": { - "line": 210, + "line": 212, "column": 34 }, "end": { - "line": 210, + "line": 212, "column": 53 } }, "object": { "type": "Identifier", - "start": 5817, - "end": 5823, + "start": 5925, + "end": 5931, "loc": { "start": { - "line": 210, + "line": 212, "column": 34 }, "end": { - "line": 210, + "line": 212, "column": 40 }, "identifierName": "GLOBAL" @@ -9164,15 +9227,15 @@ }, "property": { "type": "Identifier", - "start": 5824, - "end": 5836, + "start": 5932, + "end": 5944, "loc": { "start": { - "line": 210, + "line": 212, "column": 41 }, "end": { - "line": 210, + "line": 212, "column": 53 }, "identifierName": "GRID_SPACING" @@ -9184,15 +9247,15 @@ "operator": "*", "right": { "type": "NumericLiteral", - "start": 5839, - "end": 5840, + "start": 5947, + "end": 5948, "loc": { "start": { - "line": 210, + "line": 212, "column": 56 }, "end": { - "line": 210, + "line": 212, "column": 57 } }, @@ -9204,7 +9267,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 5816 + "parenStart": 5924 } } } @@ -9221,15 +9284,15 @@ { "type": "CommentBlock", "value": "*\n * Gets the coordinates of the tile directly underneath the object.\n * @param {*} obj Any valid GameObject.\n ", - "start": 5554, - "end": 5669, + "start": 5658, + "end": 5773, "loc": { "start": { - "line": 203, + "line": 205, "column": 0 }, "end": { - "line": 206, + "line": 208, "column": 3 } } @@ -9241,15 +9304,15 @@ { "type": "CommentBlock", "value": "*\n * Gets the coordinates of the tile directly underneath the object.\n * @param {*} obj Any valid GameObject.\n ", - "start": 5554, - "end": 5669, + "start": 5658, + "end": 5773, "loc": { "start": { - "line": 203, + "line": 205, "column": 0 }, "end": { - "line": 206, + "line": 208, "column": 3 } } @@ -9902,9 +9965,9 @@ }, { "type": "CommentLine", - "value": " Map", + "value": " Map and Tiles", "start": 2432, - "end": 2438, + "end": 2448, "loc": { "start": { "line": 77, @@ -9912,15 +9975,15 @@ }, "end": { "line": 77, - "column": 7 + "column": 17 } } }, { "type": "CommentLine", "value": " Spawn points for different teams", - "start": 2548, - "end": 2583, + "start": 2558, + "end": 2593, "loc": { "start": { "line": 84, @@ -9935,15 +9998,15 @@ { "type": "CommentLine", "value": " Drawing", - "start": 2641, - "end": 2651, + "start": 2676, + "end": 2686, "loc": { "start": { - "line": 88, + "line": 89, "column": 1 }, "end": { - "line": 88, + "line": 89, "column": 11 } } @@ -9951,15 +10014,15 @@ { "type": "CommentLine", "value": " Radius around player in which to draw other objects", - "start": 2672, - "end": 2726, + "start": 2707, + "end": 2761, "loc": { "start": { - "line": 89, + "line": 90, "column": 20 }, "end": { - "line": 89, + "line": 90, "column": 74 } } @@ -9967,15 +10030,15 @@ { "type": "CommentLine", "value": " space between each line on the grid", - "start": 2747, - "end": 2785, + "start": 2782, + "end": 2820, "loc": { "start": { - "line": 90, + "line": 91, "column": 20 }, "end": { - "line": 90, + "line": 91, "column": 58 } } @@ -9983,15 +10046,15 @@ { "type": "CommentLine", "value": " Colors", - "start": 2827, - "end": 2836, + "start": 2862, + "end": 2871, "loc": { "start": { - "line": 94, + "line": 95, "column": 1 }, "end": { - "line": 94, + "line": 95, "column": 10 } } @@ -9999,15 +10062,15 @@ { "type": "CommentLine", "value": " Purple, Green, Orange, Red. No prefixes", - "start": 2853, - "end": 2895, + "start": 2888, + "end": 2930, "loc": { "start": { - "line": 95, + "line": 96, "column": 16 }, "end": { - "line": 95, + "line": 96, "column": 58 } } @@ -10015,15 +10078,15 @@ { "type": "CommentLine", "value": " Sprites and textures", - "start": 2949, - "end": 2972, + "start": 2984, + "end": 3007, "loc": { "start": { - "line": 102, + "line": 103, "column": 1 }, "end": { - "line": 102, + "line": 103, "column": 24 } } @@ -10031,15 +10094,15 @@ { "type": "CommentLine", "value": " Atoms: ID's and Sprites. ATOM_SPRITES[id] returns the texture location of atom of that id.", - "start": 3060, - "end": 3153, + "start": 3095, + "end": 3188, "loc": { "start": { - "line": 108, + "line": 109, "column": 1 }, "end": { - "line": 108, + "line": 109, "column": 94 } } @@ -10047,15 +10110,15 @@ { "type": "CommentLine", "value": " Location of spritesheet relative to pixigame", - "start": 3366, - "end": 3413, + "start": 3401, + "end": 3448, "loc": { "start": { - "line": 126, + "line": 127, "column": 1 }, "end": { - "line": 126, + "line": 127, "column": 48 } } @@ -10063,15 +10126,15 @@ { "type": "CommentLine", "value": " Used for main menu textures", - "start": 3464, - "end": 3494, + "start": 3499, + "end": 3529, "loc": { "start": { - "line": 129, + "line": 130, "column": 1 }, "end": { - "line": 129, + "line": 130, "column": 31 } } @@ -10079,15 +10142,15 @@ { "type": "CommentLine", "value": " Each Value corresponds with the above event", - "start": 3548, - "end": 3594, + "start": 3583, + "end": 3629, "loc": { "start": { - "line": 132, + "line": 133, "column": 1 }, "end": { - "line": 132, + "line": 133, "column": 47 } } @@ -10095,15 +10158,15 @@ { "type": "CommentLine", "value": " The cutoffs for each level. Index 0 = level 1, 1 = level 2, etc", - "start": 3648, - "end": 3714, + "start": 3683, + "end": 3749, "loc": { "start": { - "line": 138, + "line": 139, "column": 1 }, "end": { - "line": 138, + "line": 139, "column": 67 } } @@ -10111,15 +10174,15 @@ { "type": "CommentLine", "value": " Deaths", - "start": 4031, - "end": 4040, + "start": 4066, + "end": 4075, "loc": { "start": { - "line": 161, + "line": 162, "column": 1 }, "end": { - "line": 161, + "line": 162, "column": 10 } } @@ -10127,15 +10190,15 @@ { "type": "CommentLine", "value": " How many points are awarded to the player/team who dealt the most damage to the player", - "start": 4057, - "end": 4146, + "start": 4092, + "end": 4181, "loc": { "start": { - "line": 162, + "line": 163, "column": 16 }, "end": { - "line": 162, + "line": 163, "column": 105 } } @@ -10143,15 +10206,15 @@ { "type": "CommentLine", "value": " How many points are awarded to all players who assist in killing the player", - "start": 4165, - "end": 4243, + "start": 4200, + "end": 4278, "loc": { "start": { - "line": 163, + "line": 164, "column": 18 }, "end": { - "line": 163, + "line": 164, "column": 96 } } @@ -10159,31 +10222,47 @@ { "type": "CommentLine", "value": " How many points are required to win the game per team. TODO increase", - "start": 4264, - "end": 4335, + "start": 4299, + "end": 4370, "loc": { "start": { - "line": 164, + "line": 165, "column": 20 }, "end": { - "line": 164, + "line": 165, "column": 91 } } }, + { + "type": "CommentLine", + "value": " How many points are awarded to the team who captured a stronghold/vent", + "start": 4390, + "end": 4463, + "loc": { + "start": { + "line": 166, + "column": 19 + }, + "end": { + "line": 166, + "column": 92 + } + } + }, { "type": "CommentLine", "value": " How many atoms of each type can be ejected on death at maximum. Prevents testers from ejecting thousands of atoms at a time.", - "start": 4358, - "end": 4485, + "start": 4486, + "end": 4613, "loc": { "start": { - "line": 165, + "line": 167, "column": 22 }, "end": { - "line": 165, + "line": 167, "column": 149 } } @@ -10191,15 +10270,15 @@ { "type": "CommentBlock", "value": "*\n * Returns the distance between two objects.\n * Both objects must be GameObjects\n * @param {GameObject} obj1 First object\n * @param {GameObject} obj2 Second object\n ", - "start": 4489, - "end": 4660, + "start": 4617, + "end": 4788, "loc": { "start": { - "line": 168, + "line": 170, "column": 0 }, "end": { - "line": 173, + "line": 175, "column": 3 } } @@ -10207,15 +10286,15 @@ { "type": "CommentBlock", "value": "*\n * Returns true if the object parameter is within the map boundaries.\n * @param {GameObject} obj The object to test\n * @return true if the object parameter is within the map boundaries\n ", - "start": 4802, - "end": 4994, + "start": 4930, + "end": 5122, "loc": { "start": { - "line": 178, + "line": 180, "column": 0 }, "end": { - "line": 182, + "line": 184, "column": 3 } } @@ -10223,15 +10302,15 @@ { "type": "CommentBlock", "value": "*\n * Gets the tile directly underneath any object.\n * @param {*} obj Any valid GameObject.\n * @returns {string} one-letter ID of current tile.\n ", - "start": 5218, - "end": 5366, + "start": 5346, + "end": 5494, "loc": { "start": { - "line": 187, + "line": 189, "column": 0 }, "end": { - "line": 191, + "line": 193, "column": 3 } } @@ -10239,15 +10318,15 @@ { "type": "CommentBlock", "value": "*\n * Gets the coordinates of the tile directly underneath the object.\n * @param {*} obj Any valid GameObject.\n ", - "start": 5554, - "end": 5669, + "start": 5658, + "end": 5773, "loc": { "start": { - "line": 203, + "line": 205, "column": 0 }, "end": { - "line": 206, + "line": 208, "column": 3 } } @@ -16075,9 +16154,9 @@ }, { "type": "CommentLine", - "value": " Map", + "value": " Map and Tiles", "start": 2432, - "end": 2438, + "end": 2448, "loc": { "start": { "line": 77, @@ -16085,7 +16164,7 @@ }, "end": { "line": 77, - "column": 7 + "column": 17 } } }, @@ -16102,8 +16181,8 @@ "binop": null }, "value": "MAP_SIZE", - "start": 2440, - "end": 2448, + "start": 2450, + "end": 2458, "loc": { "start": { "line": 78, @@ -16128,8 +16207,8 @@ "binop": null, "updateContext": null }, - "start": 2448, - "end": 2449, + "start": 2458, + "end": 2459, "loc": { "start": { "line": 78, @@ -16155,8 +16234,8 @@ "updateContext": null }, "value": 2000, - "start": 2450, - "end": 2454, + "start": 2460, + "end": 2464, "loc": { "start": { "line": 78, @@ -16181,8 +16260,8 @@ "binop": null, "updateContext": null }, - "start": 2454, - "end": 2455, + "start": 2464, + "end": 2465, "loc": { "start": { "line": 78, @@ -16207,8 +16286,8 @@ "binop": null }, "value": "SPAWN_POINTS", - "start": 2457, - "end": 2469, + "start": 2467, + "end": 2479, "loc": { "start": { "line": 79, @@ -16233,8 +16312,8 @@ "binop": null, "updateContext": null }, - "start": 2469, - "end": 2470, + "start": 2479, + "end": 2480, "loc": { "start": { "line": 79, @@ -16259,8 +16338,8 @@ "binop": null, "updateContext": null }, - "start": 2471, - "end": 2472, + "start": 2481, + "end": 2482, "loc": { "start": { "line": 79, @@ -16284,8 +16363,8 @@ "postfix": false, "binop": null }, - "start": 2475, - "end": 2476, + "start": 2485, + "end": 2486, "loc": { "start": { "line": 80, @@ -16310,8 +16389,8 @@ "binop": null }, "value": "x", - "start": 2477, - "end": 2478, + "start": 2487, + "end": 2488, "loc": { "start": { "line": 80, @@ -16336,8 +16415,8 @@ "binop": null, "updateContext": null }, - "start": 2478, - "end": 2479, + "start": 2488, + "end": 2489, "loc": { "start": { "line": 80, @@ -16363,8 +16442,8 @@ "updateContext": null }, "value": 0, - "start": 2480, - "end": 2481, + "start": 2490, + "end": 2491, "loc": { "start": { "line": 80, @@ -16389,8 +16468,8 @@ "binop": null, "updateContext": null }, - "start": 2481, - "end": 2482, + "start": 2491, + "end": 2492, "loc": { "start": { "line": 80, @@ -16415,8 +16494,8 @@ "binop": null }, "value": "y", - "start": 2483, - "end": 2484, + "start": 2493, + "end": 2494, "loc": { "start": { "line": 80, @@ -16441,8 +16520,8 @@ "binop": null, "updateContext": null }, - "start": 2484, - "end": 2485, + "start": 2494, + "end": 2495, "loc": { "start": { "line": 80, @@ -16468,8 +16547,8 @@ "updateContext": null }, "value": 0, - "start": 2486, - "end": 2487, + "start": 2496, + "end": 2497, "loc": { "start": { "line": 80, @@ -16493,8 +16572,8 @@ "postfix": false, "binop": null }, - "start": 2488, - "end": 2489, + "start": 2498, + "end": 2499, "loc": { "start": { "line": 80, @@ -16519,8 +16598,8 @@ "binop": null, "updateContext": null }, - "start": 2489, - "end": 2490, + "start": 2499, + "end": 2500, "loc": { "start": { "line": 80, @@ -16544,8 +16623,8 @@ "postfix": false, "binop": null }, - "start": 2493, - "end": 2494, + "start": 2503, + "end": 2504, "loc": { "start": { "line": 81, @@ -16570,8 +16649,8 @@ "binop": null }, "value": "x", - "start": 2495, - "end": 2496, + "start": 2505, + "end": 2506, "loc": { "start": { "line": 81, @@ -16596,8 +16675,8 @@ "binop": null, "updateContext": null }, - "start": 2496, - "end": 2497, + "start": 2506, + "end": 2507, "loc": { "start": { "line": 81, @@ -16623,8 +16702,8 @@ "updateContext": null }, "value": 6, - "start": 2498, - "end": 2499, + "start": 2508, + "end": 2509, "loc": { "start": { "line": 81, @@ -16649,8 +16728,8 @@ "binop": null, "updateContext": null }, - "start": 2499, - "end": 2500, + "start": 2509, + "end": 2510, "loc": { "start": { "line": 81, @@ -16675,8 +16754,8 @@ "binop": null }, "value": "y", - "start": 2501, - "end": 2502, + "start": 2511, + "end": 2512, "loc": { "start": { "line": 81, @@ -16701,8 +16780,8 @@ "binop": null, "updateContext": null }, - "start": 2502, - "end": 2503, + "start": 2512, + "end": 2513, "loc": { "start": { "line": 81, @@ -16728,8 +16807,8 @@ "updateContext": null }, "value": 6, - "start": 2504, - "end": 2505, + "start": 2514, + "end": 2515, "loc": { "start": { "line": 81, @@ -16753,8 +16832,8 @@ "postfix": false, "binop": null }, - "start": 2506, - "end": 2507, + "start": 2516, + "end": 2517, "loc": { "start": { "line": 81, @@ -16779,8 +16858,8 @@ "binop": null, "updateContext": null }, - "start": 2507, - "end": 2508, + "start": 2517, + "end": 2518, "loc": { "start": { "line": 81, @@ -16804,8 +16883,8 @@ "postfix": false, "binop": null }, - "start": 2511, - "end": 2512, + "start": 2521, + "end": 2522, "loc": { "start": { "line": 82, @@ -16830,8 +16909,8 @@ "binop": null }, "value": "x", - "start": 2513, - "end": 2514, + "start": 2523, + "end": 2524, "loc": { "start": { "line": 82, @@ -16856,8 +16935,8 @@ "binop": null, "updateContext": null }, - "start": 2514, - "end": 2515, + "start": 2524, + "end": 2525, "loc": { "start": { "line": 82, @@ -16883,8 +16962,8 @@ "updateContext": null }, "value": 0, - "start": 2516, - "end": 2517, + "start": 2526, + "end": 2527, "loc": { "start": { "line": 82, @@ -16909,8 +16988,8 @@ "binop": null, "updateContext": null }, - "start": 2517, - "end": 2518, + "start": 2527, + "end": 2528, "loc": { "start": { "line": 82, @@ -16935,8 +17014,8 @@ "binop": null }, "value": "y", - "start": 2519, - "end": 2520, + "start": 2529, + "end": 2530, "loc": { "start": { "line": 82, @@ -16961,8 +17040,8 @@ "binop": null, "updateContext": null }, - "start": 2520, - "end": 2521, + "start": 2530, + "end": 2531, "loc": { "start": { "line": 82, @@ -16988,8 +17067,8 @@ "updateContext": null }, "value": 6, - "start": 2522, - "end": 2523, + "start": 2532, + "end": 2533, "loc": { "start": { "line": 82, @@ -17013,8 +17092,8 @@ "postfix": false, "binop": null }, - "start": 2524, - "end": 2525, + "start": 2534, + "end": 2535, "loc": { "start": { "line": 82, @@ -17039,8 +17118,8 @@ "binop": null, "updateContext": null }, - "start": 2525, - "end": 2526, + "start": 2535, + "end": 2536, "loc": { "start": { "line": 82, @@ -17064,8 +17143,8 @@ "postfix": false, "binop": null }, - "start": 2529, - "end": 2530, + "start": 2539, + "end": 2540, "loc": { "start": { "line": 83, @@ -17090,8 +17169,8 @@ "binop": null }, "value": "x", - "start": 2531, - "end": 2532, + "start": 2541, + "end": 2542, "loc": { "start": { "line": 83, @@ -17116,8 +17195,8 @@ "binop": null, "updateContext": null }, - "start": 2532, - "end": 2533, + "start": 2542, + "end": 2543, "loc": { "start": { "line": 83, @@ -17143,8 +17222,8 @@ "updateContext": null }, "value": 6, - "start": 2534, - "end": 2535, + "start": 2544, + "end": 2545, "loc": { "start": { "line": 83, @@ -17169,8 +17248,8 @@ "binop": null, "updateContext": null }, - "start": 2535, - "end": 2536, + "start": 2545, + "end": 2546, "loc": { "start": { "line": 83, @@ -17195,8 +17274,8 @@ "binop": null }, "value": "y", - "start": 2537, - "end": 2538, + "start": 2547, + "end": 2548, "loc": { "start": { "line": 83, @@ -17221,8 +17300,8 @@ "binop": null, "updateContext": null }, - "start": 2538, - "end": 2539, + "start": 2548, + "end": 2549, "loc": { "start": { "line": 83, @@ -17248,8 +17327,8 @@ "updateContext": null }, "value": 0, - "start": 2540, - "end": 2541, + "start": 2550, + "end": 2551, "loc": { "start": { "line": 83, @@ -17273,8 +17352,8 @@ "postfix": false, "binop": null }, - "start": 2542, - "end": 2543, + "start": 2552, + "end": 2553, "loc": { "start": { "line": 83, @@ -17299,8 +17378,8 @@ "binop": null, "updateContext": null }, - "start": 2545, - "end": 2546, + "start": 2555, + "end": 2556, "loc": { "start": { "line": 84, @@ -17325,8 +17404,8 @@ "binop": null, "updateContext": null }, - "start": 2546, - "end": 2547, + "start": 2556, + "end": 2557, "loc": { "start": { "line": 84, @@ -17341,8 +17420,8 @@ { "type": "CommentLine", "value": " Spawn points for different teams", - "start": 2548, - "end": 2583, + "start": 2558, + "end": 2593, "loc": { "start": { "line": 84, @@ -17367,8 +17446,8 @@ "binop": null }, "value": "MAX_SPAWNER_HEALTH", - "start": 2585, - "end": 2603, + "start": 2595, + "end": 2613, "loc": { "start": { "line": 85, @@ -17393,8 +17472,8 @@ "binop": null, "updateContext": null }, - "start": 2603, - "end": 2604, + "start": 2613, + "end": 2614, "loc": { "start": { "line": 85, @@ -17420,8 +17499,8 @@ "updateContext": null }, "value": 100, - "start": 2605, - "end": 2608, + "start": 2615, + "end": 2618, "loc": { "start": { "line": 85, @@ -17446,8 +17525,8 @@ "binop": null, "updateContext": null }, - "start": 2608, - "end": 2609, + "start": 2618, + "end": 2619, "loc": { "start": { "line": 85, @@ -17472,8 +17551,8 @@ "binop": null }, "value": "MAX_STRONGHOLD_HEALTH", - "start": 2611, - "end": 2632, + "start": 2621, + "end": 2642, "loc": { "start": { "line": 86, @@ -17498,8 +17577,8 @@ "binop": null, "updateContext": null }, - "start": 2632, - "end": 2633, + "start": 2642, + "end": 2643, "loc": { "start": { "line": 86, @@ -17525,8 +17604,8 @@ "updateContext": null }, "value": 200, - "start": 2634, - "end": 2637, + "start": 2644, + "end": 2647, "loc": { "start": { "line": 86, @@ -17551,8 +17630,8 @@ "binop": null, "updateContext": null }, - "start": 2637, - "end": 2638, + "start": 2647, + "end": 2648, "loc": { "start": { "line": 86, @@ -17564,18 +17643,123 @@ } } }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STRONGHOLD_RADIUS", + "start": 2650, + "end": 2667, + "loc": { + "start": { + "line": 87, + "column": 1 + }, + "end": { + "line": 87, + "column": 18 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2667, + "end": 2668, + "loc": { + "start": { + "line": 87, + "column": 18 + }, + "end": { + "line": 87, + "column": 19 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 100, + "start": 2669, + "end": 2672, + "loc": { + "start": { + "line": 87, + "column": 20 + }, + "end": { + "line": 87, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2672, + "end": 2673, + "loc": { + "start": { + "line": 87, + "column": 23 + }, + "end": { + "line": 87, + "column": 24 + } + } + }, { "type": "CommentLine", "value": " Drawing", - "start": 2641, - "end": 2651, + "start": 2676, + "end": 2686, "loc": { "start": { - "line": 88, + "line": 89, "column": 1 }, "end": { - "line": 88, + "line": 89, "column": 11 } } @@ -17593,15 +17777,15 @@ "binop": null }, "value": "DRAW_RADIUS", - "start": 2653, - "end": 2664, + "start": 2688, + "end": 2699, "loc": { "start": { - "line": 89, + "line": 90, "column": 1 }, "end": { - "line": 89, + "line": 90, "column": 12 } } @@ -17619,15 +17803,15 @@ "binop": null, "updateContext": null }, - "start": 2664, - "end": 2665, + "start": 2699, + "end": 2700, "loc": { "start": { - "line": 89, + "line": 90, "column": 12 }, "end": { - "line": 89, + "line": 90, "column": 13 } } @@ -17646,15 +17830,15 @@ "updateContext": null }, "value": 1000, - "start": 2666, - "end": 2670, + "start": 2701, + "end": 2705, "loc": { "start": { - "line": 89, + "line": 90, "column": 14 }, "end": { - "line": 89, + "line": 90, "column": 18 } } @@ -17672,15 +17856,15 @@ "binop": null, "updateContext": null }, - "start": 2670, - "end": 2671, + "start": 2705, + "end": 2706, "loc": { "start": { - "line": 89, + "line": 90, "column": 18 }, "end": { - "line": 89, + "line": 90, "column": 19 } } @@ -17688,15 +17872,15 @@ { "type": "CommentLine", "value": " Radius around player in which to draw other objects", - "start": 2672, - "end": 2726, + "start": 2707, + "end": 2761, "loc": { "start": { - "line": 89, + "line": 90, "column": 20 }, "end": { - "line": 89, + "line": 90, "column": 74 } } @@ -17714,15 +17898,15 @@ "binop": null }, "value": "GRID_SPACING", - "start": 2728, - "end": 2740, + "start": 2763, + "end": 2775, "loc": { "start": { - "line": 90, + "line": 91, "column": 1 }, "end": { - "line": 90, + "line": 91, "column": 13 } } @@ -17740,15 +17924,15 @@ "binop": null, "updateContext": null }, - "start": 2740, - "end": 2741, + "start": 2775, + "end": 2776, "loc": { "start": { - "line": 90, + "line": 91, "column": 13 }, "end": { - "line": 90, + "line": 91, "column": 14 } } @@ -17767,15 +17951,15 @@ "updateContext": null }, "value": 200, - "start": 2742, - "end": 2745, + "start": 2777, + "end": 2780, "loc": { "start": { - "line": 90, + "line": 91, "column": 15 }, "end": { - "line": 90, + "line": 91, "column": 18 } } @@ -17793,15 +17977,15 @@ "binop": null, "updateContext": null }, - "start": 2745, - "end": 2746, + "start": 2780, + "end": 2781, "loc": { "start": { - "line": 90, + "line": 91, "column": 18 }, "end": { - "line": 90, + "line": 91, "column": 19 } } @@ -17809,15 +17993,15 @@ { "type": "CommentLine", "value": " space between each line on the grid", - "start": 2747, - "end": 2785, + "start": 2782, + "end": 2820, "loc": { "start": { - "line": 90, + "line": 91, "column": 20 }, "end": { - "line": 90, + "line": 91, "column": 58 } } @@ -17835,15 +18019,15 @@ "binop": null }, "value": "GRID_LINE_STROKE", - "start": 2787, - "end": 2803, + "start": 2822, + "end": 2838, "loc": { "start": { - "line": 91, + "line": 92, "column": 1 }, "end": { - "line": 91, + "line": 92, "column": 17 } } @@ -17861,15 +18045,15 @@ "binop": null, "updateContext": null }, - "start": 2803, - "end": 2804, + "start": 2838, + "end": 2839, "loc": { "start": { - "line": 91, + "line": 92, "column": 17 }, "end": { - "line": 91, + "line": 92, "column": 18 } } @@ -17888,15 +18072,15 @@ "updateContext": null }, "value": 1, - "start": 2805, - "end": 2806, + "start": 2840, + "end": 2841, "loc": { "start": { - "line": 91, + "line": 92, "column": 19 }, "end": { - "line": 91, + "line": 92, "column": 20 } } @@ -17914,15 +18098,15 @@ "binop": null, "updateContext": null }, - "start": 2806, - "end": 2807, + "start": 2841, + "end": 2842, "loc": { "start": { - "line": 91, + "line": 92, "column": 20 }, "end": { - "line": 91, + "line": 92, "column": 21 } } @@ -17940,15 +18124,15 @@ "binop": null }, "value": "FRAME_RATE", - "start": 2809, - "end": 2819, + "start": 2844, + "end": 2854, "loc": { "start": { - "line": 92, + "line": 93, "column": 1 }, "end": { - "line": 92, + "line": 93, "column": 11 } } @@ -17966,15 +18150,15 @@ "binop": null, "updateContext": null }, - "start": 2819, - "end": 2820, + "start": 2854, + "end": 2855, "loc": { "start": { - "line": 92, + "line": 93, "column": 11 }, "end": { - "line": 92, + "line": 93, "column": 12 } } @@ -17993,15 +18177,15 @@ "updateContext": null }, "value": 60, - "start": 2821, - "end": 2823, + "start": 2856, + "end": 2858, "loc": { "start": { - "line": 92, + "line": 93, "column": 13 }, "end": { - "line": 92, + "line": 93, "column": 15 } } @@ -18019,15 +18203,15 @@ "binop": null, "updateContext": null }, - "start": 2823, - "end": 2824, + "start": 2858, + "end": 2859, "loc": { "start": { - "line": 92, + "line": 93, "column": 15 }, "end": { - "line": 92, + "line": 93, "column": 16 } } @@ -18035,15 +18219,15 @@ { "type": "CommentLine", "value": " Colors", - "start": 2827, - "end": 2836, + "start": 2862, + "end": 2871, "loc": { "start": { - "line": 94, + "line": 95, "column": 1 }, "end": { - "line": 94, + "line": 95, "column": 10 } } @@ -18061,15 +18245,15 @@ "binop": null }, "value": "TEAM_COLORS", - "start": 2838, - "end": 2849, + "start": 2873, + "end": 2884, "loc": { "start": { - "line": 95, + "line": 96, "column": 1 }, "end": { - "line": 95, + "line": 96, "column": 12 } } @@ -18087,15 +18271,15 @@ "binop": null, "updateContext": null }, - "start": 2849, - "end": 2850, + "start": 2884, + "end": 2885, "loc": { "start": { - "line": 95, + "line": 96, "column": 12 }, "end": { - "line": 95, + "line": 96, "column": 13 } } @@ -18113,15 +18297,15 @@ "binop": null, "updateContext": null }, - "start": 2851, - "end": 2852, + "start": 2886, + "end": 2887, "loc": { "start": { - "line": 95, + "line": 96, "column": 14 }, "end": { - "line": 95, + "line": 96, "column": 15 } } @@ -18129,15 +18313,15 @@ { "type": "CommentLine", "value": " Purple, Green, Orange, Red. No prefixes", - "start": 2853, - "end": 2895, + "start": 2888, + "end": 2930, "loc": { "start": { - "line": 95, + "line": 96, "column": 16 }, "end": { - "line": 95, + "line": 96, "column": 58 } } @@ -18156,15 +18340,15 @@ "updateContext": null }, "value": "673ab7", - "start": 2898, - "end": 2906, + "start": 2933, + "end": 2941, "loc": { "start": { - "line": 96, + "line": 97, "column": 2 }, "end": { - "line": 96, + "line": 97, "column": 10 } } @@ -18182,15 +18366,15 @@ "binop": null, "updateContext": null }, - "start": 2906, - "end": 2907, + "start": 2941, + "end": 2942, "loc": { "start": { - "line": 96, + "line": 97, "column": 10 }, "end": { - "line": 96, + "line": 97, "column": 11 } } @@ -18209,15 +18393,15 @@ "updateContext": null }, "value": "2e7d32", - "start": 2910, - "end": 2918, + "start": 2945, + "end": 2953, "loc": { "start": { - "line": 97, + "line": 98, "column": 2 }, "end": { - "line": 97, + "line": 98, "column": 10 } } @@ -18235,15 +18419,15 @@ "binop": null, "updateContext": null }, - "start": 2918, - "end": 2919, + "start": 2953, + "end": 2954, "loc": { "start": { - "line": 97, + "line": 98, "column": 10 }, "end": { - "line": 97, + "line": 98, "column": 11 } } @@ -18262,15 +18446,15 @@ "updateContext": null }, "value": "ff8f00", - "start": 2922, - "end": 2930, + "start": 2957, + "end": 2965, "loc": { "start": { - "line": 98, + "line": 99, "column": 2 }, "end": { - "line": 98, + "line": 99, "column": 10 } } @@ -18288,15 +18472,15 @@ "binop": null, "updateContext": null }, - "start": 2930, - "end": 2931, + "start": 2965, + "end": 2966, "loc": { "start": { - "line": 98, + "line": 99, "column": 10 }, "end": { - "line": 98, + "line": 99, "column": 11 } } @@ -18315,15 +18499,15 @@ "updateContext": null }, "value": "f44336", - "start": 2934, - "end": 2942, + "start": 2969, + "end": 2977, "loc": { "start": { - "line": 99, + "line": 100, "column": 2 }, "end": { - "line": 99, + "line": 100, "column": 10 } } @@ -18341,15 +18525,15 @@ "binop": null, "updateContext": null }, - "start": 2944, - "end": 2945, + "start": 2979, + "end": 2980, "loc": { "start": { - "line": 100, + "line": 101, "column": 1 }, "end": { - "line": 100, + "line": 101, "column": 2 } } @@ -18367,15 +18551,15 @@ "binop": null, "updateContext": null }, - "start": 2945, - "end": 2946, + "start": 2980, + "end": 2981, "loc": { "start": { - "line": 100, + "line": 101, "column": 2 }, "end": { - "line": 100, + "line": 101, "column": 3 } } @@ -18383,15 +18567,15 @@ { "type": "CommentLine", "value": " Sprites and textures", - "start": 2949, - "end": 2972, + "start": 2984, + "end": 3007, "loc": { "start": { - "line": 102, + "line": 103, "column": 1 }, "end": { - "line": 102, + "line": 103, "column": 24 } } @@ -18409,15 +18593,15 @@ "binop": null }, "value": "PLAYER_SPRITES", - "start": 2974, - "end": 2988, + "start": 3009, + "end": 3023, "loc": { "start": { - "line": 103, + "line": 104, "column": 1 }, "end": { - "line": 103, + "line": 104, "column": 15 } } @@ -18435,15 +18619,15 @@ "binop": null, "updateContext": null }, - "start": 2988, - "end": 2989, + "start": 3023, + "end": 3024, "loc": { "start": { - "line": 103, + "line": 104, "column": 15 }, "end": { - "line": 103, + "line": 104, "column": 16 } } @@ -18461,15 +18645,15 @@ "binop": null, "updateContext": null }, - "start": 2990, - "end": 2991, + "start": 3025, + "end": 3026, "loc": { "start": { - "line": 103, + "line": 104, "column": 17 }, "end": { - "line": 103, + "line": 104, "column": 18 } } @@ -18488,15 +18672,15 @@ "updateContext": null }, "value": "testplayer.png", - "start": 2994, - "end": 3010, + "start": 3029, + "end": 3045, "loc": { "start": { - "line": 104, + "line": 105, "column": 2 }, "end": { - "line": 104, + "line": 105, "column": 18 } } @@ -18514,15 +18698,15 @@ "binop": null, "updateContext": null }, - "start": 3012, - "end": 3013, + "start": 3047, + "end": 3048, "loc": { "start": { - "line": 105, + "line": 106, "column": 1 }, "end": { - "line": 105, + "line": 106, "column": 2 } } @@ -18540,15 +18724,15 @@ "binop": null, "updateContext": null }, - "start": 3013, - "end": 3014, + "start": 3048, + "end": 3049, "loc": { "start": { - "line": 105, + "line": 106, "column": 2 }, "end": { - "line": 105, + "line": 106, "column": 3 } } @@ -18566,15 +18750,15 @@ "binop": null }, "value": "IGNITE_SPRITE", - "start": 3016, - "end": 3029, + "start": 3051, + "end": 3064, "loc": { "start": { - "line": 106, + "line": 107, "column": 1 }, "end": { - "line": 106, + "line": 107, "column": 14 } } @@ -18592,15 +18776,15 @@ "binop": null, "updateContext": null }, - "start": 3029, - "end": 3030, + "start": 3064, + "end": 3065, "loc": { "start": { - "line": 106, + "line": 107, "column": 14 }, "end": { - "line": 106, + "line": 107, "column": 15 } } @@ -18619,15 +18803,15 @@ "updateContext": null }, "value": "placeholder_ignited.png", - "start": 3031, - "end": 3056, + "start": 3066, + "end": 3091, "loc": { "start": { - "line": 106, + "line": 107, "column": 16 }, "end": { - "line": 106, + "line": 107, "column": 41 } } @@ -18645,15 +18829,15 @@ "binop": null, "updateContext": null }, - "start": 3056, - "end": 3057, + "start": 3091, + "end": 3092, "loc": { "start": { - "line": 106, + "line": 107, "column": 41 }, "end": { - "line": 106, + "line": 107, "column": 42 } } @@ -18661,15 +18845,15 @@ { "type": "CommentLine", "value": " Atoms: ID's and Sprites. ATOM_SPRITES[id] returns the texture location of atom of that id.", - "start": 3060, - "end": 3153, + "start": 3095, + "end": 3188, "loc": { "start": { - "line": 108, + "line": 109, "column": 1 }, "end": { - "line": 108, + "line": 109, "column": 94 } } @@ -18687,15 +18871,15 @@ "binop": null }, "value": "ATOM_IDS", - "start": 3155, - "end": 3163, + "start": 3190, + "end": 3198, "loc": { "start": { - "line": 109, + "line": 110, "column": 1 }, "end": { - "line": 109, + "line": 110, "column": 9 } } @@ -18713,15 +18897,15 @@ "binop": null, "updateContext": null }, - "start": 3163, - "end": 3164, + "start": 3198, + "end": 3199, "loc": { "start": { - "line": 109, + "line": 110, "column": 9 }, "end": { - "line": 109, + "line": 110, "column": 10 } } @@ -18739,15 +18923,15 @@ "binop": null, "updateContext": null }, - "start": 3165, - "end": 3166, + "start": 3200, + "end": 3201, "loc": { "start": { - "line": 109, + "line": 110, "column": 11 }, "end": { - "line": 109, + "line": 110, "column": 12 } } @@ -18766,15 +18950,15 @@ "updateContext": null }, "value": "h", - "start": 3169, - "end": 3172, + "start": 3204, + "end": 3207, "loc": { "start": { - "line": 110, + "line": 111, "column": 2 }, "end": { - "line": 110, + "line": 111, "column": 5 } } @@ -18792,15 +18976,15 @@ "binop": null, "updateContext": null }, - "start": 3172, - "end": 3173, + "start": 3207, + "end": 3208, "loc": { "start": { - "line": 110, + "line": 111, "column": 5 }, "end": { - "line": 110, + "line": 111, "column": 6 } } @@ -18819,15 +19003,15 @@ "updateContext": null }, "value": "he", - "start": 3176, - "end": 3180, + "start": 3211, + "end": 3215, "loc": { "start": { - "line": 111, + "line": 112, "column": 2 }, "end": { - "line": 111, + "line": 112, "column": 6 } } @@ -18845,15 +19029,15 @@ "binop": null, "updateContext": null }, - "start": 3180, - "end": 3181, + "start": 3215, + "end": 3216, "loc": { "start": { - "line": 111, + "line": 112, "column": 6 }, "end": { - "line": 111, + "line": 112, "column": 7 } } @@ -18872,15 +19056,15 @@ "updateContext": null }, "value": "c", - "start": 3184, - "end": 3187, + "start": 3219, + "end": 3222, "loc": { "start": { - "line": 112, + "line": 113, "column": 2 }, "end": { - "line": 112, + "line": 113, "column": 5 } } @@ -18898,15 +19082,15 @@ "binop": null, "updateContext": null }, - "start": 3187, - "end": 3188, + "start": 3222, + "end": 3223, "loc": { "start": { - "line": 112, + "line": 113, "column": 5 }, "end": { - "line": 112, + "line": 113, "column": 6 } } @@ -18925,15 +19109,15 @@ "updateContext": null }, "value": "cl", - "start": 3191, - "end": 3195, + "start": 3226, + "end": 3230, "loc": { "start": { - "line": 113, + "line": 114, "column": 2 }, "end": { - "line": 113, + "line": 114, "column": 6 } } @@ -18951,15 +19135,15 @@ "binop": null, "updateContext": null }, - "start": 3195, - "end": 3196, + "start": 3230, + "end": 3231, "loc": { "start": { - "line": 113, + "line": 114, "column": 6 }, "end": { - "line": 113, + "line": 114, "column": 7 } } @@ -18978,15 +19162,15 @@ "updateContext": null }, "value": "n", - "start": 3199, - "end": 3202, + "start": 3234, + "end": 3237, "loc": { "start": { - "line": 114, + "line": 115, "column": 2 }, "end": { - "line": 114, + "line": 115, "column": 5 } } @@ -19004,15 +19188,15 @@ "binop": null, "updateContext": null }, - "start": 3202, - "end": 3203, + "start": 3237, + "end": 3238, "loc": { "start": { - "line": 114, + "line": 115, "column": 5 }, "end": { - "line": 114, + "line": 115, "column": 6 } } @@ -19031,15 +19215,15 @@ "updateContext": null }, "value": "o", - "start": 3206, - "end": 3209, + "start": 3241, + "end": 3244, "loc": { "start": { - "line": 115, + "line": 116, "column": 2 }, "end": { - "line": 115, + "line": 116, "column": 5 } } @@ -19057,15 +19241,15 @@ "binop": null, "updateContext": null }, - "start": 3211, - "end": 3212, + "start": 3246, + "end": 3247, "loc": { "start": { - "line": 116, + "line": 117, "column": 1 }, "end": { - "line": 116, + "line": 117, "column": 2 } } @@ -19083,15 +19267,15 @@ "binop": null, "updateContext": null }, - "start": 3212, - "end": 3213, + "start": 3247, + "end": 3248, "loc": { "start": { - "line": 116, + "line": 117, "column": 2 }, "end": { - "line": 116, + "line": 117, "column": 3 } } @@ -19109,15 +19293,15 @@ "binop": null }, "value": "ATOM_SPRITES", - "start": 3215, - "end": 3227, + "start": 3250, + "end": 3262, "loc": { "start": { - "line": 117, + "line": 118, "column": 1 }, "end": { - "line": 117, + "line": 118, "column": 13 } } @@ -19135,15 +19319,15 @@ "binop": null, "updateContext": null }, - "start": 3227, - "end": 3228, + "start": 3262, + "end": 3263, "loc": { "start": { - "line": 117, + "line": 118, "column": 13 }, "end": { - "line": 117, + "line": 118, "column": 14 } } @@ -19161,15 +19345,15 @@ "binop": null, "updateContext": null }, - "start": 3229, - "end": 3230, + "start": 3264, + "end": 3265, "loc": { "start": { - "line": 117, + "line": 118, "column": 15 }, "end": { - "line": 117, + "line": 118, "column": 16 } } @@ -19188,15 +19372,15 @@ "updateContext": null }, "value": "atom_hydrogen.png", - "start": 3233, - "end": 3252, + "start": 3268, + "end": 3287, "loc": { "start": { - "line": 118, + "line": 119, "column": 2 }, "end": { - "line": 118, + "line": 119, "column": 21 } } @@ -19214,15 +19398,15 @@ "binop": null, "updateContext": null }, - "start": 3252, - "end": 3253, + "start": 3287, + "end": 3288, "loc": { "start": { - "line": 118, + "line": 119, "column": 21 }, "end": { - "line": 118, + "line": 119, "column": 22 } } @@ -19241,15 +19425,15 @@ "updateContext": null }, "value": "atom_helium.png", - "start": 3256, - "end": 3273, + "start": 3291, + "end": 3308, "loc": { "start": { - "line": 119, + "line": 120, "column": 2 }, "end": { - "line": 119, + "line": 120, "column": 19 } } @@ -19267,15 +19451,15 @@ "binop": null, "updateContext": null }, - "start": 3273, - "end": 3274, + "start": 3308, + "end": 3309, "loc": { "start": { - "line": 119, + "line": 120, "column": 19 }, "end": { - "line": 119, + "line": 120, "column": 20 } } @@ -19294,15 +19478,15 @@ "updateContext": null }, "value": "atom_carbon.png", - "start": 3277, - "end": 3294, + "start": 3312, + "end": 3329, "loc": { "start": { - "line": 120, + "line": 121, "column": 2 }, "end": { - "line": 120, + "line": 121, "column": 19 } } @@ -19320,15 +19504,15 @@ "binop": null, "updateContext": null }, - "start": 3294, - "end": 3295, + "start": 3329, + "end": 3330, "loc": { "start": { - "line": 120, + "line": 121, "column": 19 }, "end": { - "line": 120, + "line": 121, "column": 20 } } @@ -19347,15 +19531,15 @@ "updateContext": null }, "value": "testplayer2.png", - "start": 3298, - "end": 3315, + "start": 3333, + "end": 3350, "loc": { "start": { - "line": 121, + "line": 122, "column": 2 }, "end": { - "line": 121, + "line": 122, "column": 19 } } @@ -19373,15 +19557,15 @@ "binop": null, "updateContext": null }, - "start": 3315, - "end": 3316, + "start": 3350, + "end": 3351, "loc": { "start": { - "line": 121, + "line": 122, "column": 19 }, "end": { - "line": 121, + "line": 122, "column": 20 } } @@ -19400,15 +19584,15 @@ "updateContext": null }, "value": "atom_nitrogen.png", - "start": 3319, - "end": 3338, + "start": 3354, + "end": 3373, "loc": { "start": { - "line": 122, + "line": 123, "column": 2 }, "end": { - "line": 122, + "line": 123, "column": 21 } } @@ -19426,15 +19610,15 @@ "binop": null, "updateContext": null }, - "start": 3338, - "end": 3339, + "start": 3373, + "end": 3374, "loc": { "start": { - "line": 122, + "line": 123, "column": 21 }, "end": { - "line": 122, + "line": 123, "column": 22 } } @@ -19453,15 +19637,15 @@ "updateContext": null }, "value": "atom_oxygen.png", - "start": 3342, - "end": 3359, + "start": 3377, + "end": 3394, "loc": { "start": { - "line": 123, + "line": 124, "column": 2 }, "end": { - "line": 123, + "line": 124, "column": 19 } } @@ -19479,15 +19663,15 @@ "binop": null, "updateContext": null }, - "start": 3361, - "end": 3362, + "start": 3396, + "end": 3397, "loc": { "start": { - "line": 124, + "line": 125, "column": 1 }, "end": { - "line": 124, + "line": 125, "column": 2 } } @@ -19505,15 +19689,15 @@ "binop": null, "updateContext": null }, - "start": 3362, - "end": 3363, + "start": 3397, + "end": 3398, "loc": { "start": { - "line": 124, + "line": 125, "column": 2 }, "end": { - "line": 124, + "line": 125, "column": 3 } } @@ -19521,15 +19705,15 @@ { "type": "CommentLine", "value": " Location of spritesheet relative to pixigame", - "start": 3366, - "end": 3413, + "start": 3401, + "end": 3448, "loc": { "start": { - "line": 126, + "line": 127, "column": 1 }, "end": { - "line": 126, + "line": 127, "column": 48 } } @@ -19547,15 +19731,15 @@ "binop": null }, "value": "SPRITESHEET_DIR", - "start": 3415, - "end": 3430, + "start": 3450, + "end": 3465, "loc": { "start": { - "line": 127, + "line": 128, "column": 1 }, "end": { - "line": 127, + "line": 128, "column": 16 } } @@ -19573,15 +19757,15 @@ "binop": null, "updateContext": null }, - "start": 3430, - "end": 3431, + "start": 3465, + "end": 3466, "loc": { "start": { - "line": 127, + "line": 128, "column": 16 }, "end": { - "line": 127, + "line": 128, "column": 17 } } @@ -19600,15 +19784,15 @@ "updateContext": null }, "value": "../assets/spritesheet.json", - "start": 3432, - "end": 3460, + "start": 3467, + "end": 3495, "loc": { "start": { - "line": 127, + "line": 128, "column": 18 }, "end": { - "line": 127, + "line": 128, "column": 46 } } @@ -19626,15 +19810,15 @@ "binop": null, "updateContext": null }, - "start": 3460, - "end": 3461, + "start": 3495, + "end": 3496, "loc": { "start": { - "line": 127, + "line": 128, "column": 46 }, "end": { - "line": 127, + "line": 128, "column": 47 } } @@ -19642,15 +19826,15 @@ { "type": "CommentLine", "value": " Used for main menu textures", - "start": 3464, - "end": 3494, + "start": 3499, + "end": 3529, "loc": { "start": { - "line": 129, + "line": 130, "column": 1 }, "end": { - "line": 129, + "line": 130, "column": 31 } } @@ -19668,15 +19852,15 @@ "binop": null }, "value": "COMPOUND_DIR", - "start": 3496, - "end": 3508, + "start": 3531, + "end": 3543, "loc": { "start": { - "line": 130, + "line": 131, "column": 1 }, "end": { - "line": 130, + "line": 131, "column": 13 } } @@ -19694,15 +19878,15 @@ "binop": null, "updateContext": null }, - "start": 3508, - "end": 3509, + "start": 3543, + "end": 3544, "loc": { "start": { - "line": 130, + "line": 131, "column": 13 }, "end": { - "line": 130, + "line": 131, "column": 14 } } @@ -19721,15 +19905,15 @@ "updateContext": null }, "value": "../assets/spritesheet/compounds/", - "start": 3510, - "end": 3544, + "start": 3545, + "end": 3579, "loc": { "start": { - "line": 130, + "line": 131, "column": 15 }, "end": { - "line": 130, + "line": 131, "column": 49 } } @@ -19747,15 +19931,15 @@ "binop": null, "updateContext": null }, - "start": 3544, - "end": 3545, + "start": 3579, + "end": 3580, "loc": { "start": { - "line": 130, + "line": 131, "column": 49 }, "end": { - "line": 130, + "line": 131, "column": 50 } } @@ -19763,15 +19947,15 @@ { "type": "CommentLine", "value": " Each Value corresponds with the above event", - "start": 3548, - "end": 3594, + "start": 3583, + "end": 3629, "loc": { "start": { - "line": 132, + "line": 133, "column": 1 }, "end": { - "line": 132, + "line": 133, "column": 47 } } @@ -19789,15 +19973,15 @@ "binop": null }, "value": "EXPERIENCE_VALUES", - "start": 3596, - "end": 3613, + "start": 3631, + "end": 3648, "loc": { "start": { - "line": 133, + "line": 134, "column": 1 }, "end": { - "line": 133, + "line": 134, "column": 18 } } @@ -19815,15 +19999,15 @@ "binop": null, "updateContext": null }, - "start": 3613, - "end": 3614, + "start": 3648, + "end": 3649, "loc": { "start": { - "line": 133, + "line": 134, "column": 18 }, "end": { - "line": 133, + "line": 134, "column": 19 } } @@ -19840,15 +20024,15 @@ "postfix": false, "binop": null }, - "start": 3615, - "end": 3616, + "start": 3650, + "end": 3651, "loc": { "start": { - "line": 133, + "line": 134, "column": 20 }, "end": { - "line": 133, + "line": 134, "column": 21 } } @@ -19866,15 +20050,15 @@ "binop": null }, "value": "CRAFT", - "start": 3619, - "end": 3624, + "start": 3654, + "end": 3659, "loc": { "start": { - "line": 134, + "line": 135, "column": 2 }, "end": { - "line": 134, + "line": 135, "column": 7 } } @@ -19892,15 +20076,15 @@ "binop": null, "updateContext": null }, - "start": 3624, - "end": 3625, + "start": 3659, + "end": 3660, "loc": { "start": { - "line": 134, + "line": 135, "column": 7 }, "end": { - "line": 134, + "line": 135, "column": 8 } } @@ -19919,15 +20103,15 @@ "updateContext": null }, "value": 10, - "start": 3626, - "end": 3628, + "start": 3661, + "end": 3663, "loc": { "start": { - "line": 134, + "line": 135, "column": 9 }, "end": { - "line": 134, + "line": 135, "column": 11 } } @@ -19945,15 +20129,15 @@ "binop": null, "updateContext": null }, - "start": 3628, - "end": 3629, + "start": 3663, + "end": 3664, "loc": { "start": { - "line": 134, + "line": 135, "column": 11 }, "end": { - "line": 134, + "line": 135, "column": 12 } } @@ -19971,15 +20155,15 @@ "binop": null }, "value": "KILL", - "start": 3632, - "end": 3636, + "start": 3667, + "end": 3671, "loc": { "start": { - "line": 135, + "line": 136, "column": 2 }, "end": { - "line": 135, + "line": 136, "column": 6 } } @@ -19997,15 +20181,15 @@ "binop": null, "updateContext": null }, - "start": 3636, - "end": 3637, + "start": 3671, + "end": 3672, "loc": { "start": { - "line": 135, + "line": 136, "column": 6 }, "end": { - "line": 135, + "line": 136, "column": 7 } } @@ -20024,15 +20208,15 @@ "updateContext": null }, "value": 124, - "start": 3638, - "end": 3641, + "start": 3673, + "end": 3676, "loc": { "start": { - "line": 135, + "line": 136, "column": 8 }, "end": { - "line": 135, + "line": 136, "column": 11 } } @@ -20049,15 +20233,15 @@ "postfix": false, "binop": null }, - "start": 3643, - "end": 3644, + "start": 3678, + "end": 3679, "loc": { "start": { - "line": 136, + "line": 137, "column": 1 }, "end": { - "line": 136, + "line": 137, "column": 2 } } @@ -20075,15 +20259,15 @@ "binop": null, "updateContext": null }, - "start": 3644, - "end": 3645, + "start": 3679, + "end": 3680, "loc": { "start": { - "line": 136, + "line": 137, "column": 2 }, "end": { - "line": 136, + "line": 137, "column": 3 } } @@ -20091,15 +20275,15 @@ { "type": "CommentLine", "value": " The cutoffs for each level. Index 0 = level 1, 1 = level 2, etc", - "start": 3648, - "end": 3714, + "start": 3683, + "end": 3749, "loc": { "start": { - "line": 138, + "line": 139, "column": 1 }, "end": { - "line": 138, + "line": 139, "column": 67 } } @@ -20117,15 +20301,15 @@ "binop": null }, "value": "EXPERIENCE_LEVELS", - "start": 3716, - "end": 3733, + "start": 3751, + "end": 3768, "loc": { "start": { - "line": 139, + "line": 140, "column": 1 }, "end": { - "line": 139, + "line": 140, "column": 18 } } @@ -20143,15 +20327,15 @@ "binop": null, "updateContext": null }, - "start": 3733, - "end": 3734, + "start": 3768, + "end": 3769, "loc": { "start": { - "line": 139, + "line": 140, "column": 18 }, "end": { - "line": 139, + "line": 140, "column": 19 } } @@ -20169,15 +20353,15 @@ "binop": null, "updateContext": null }, - "start": 3735, - "end": 3736, + "start": 3770, + "end": 3771, "loc": { "start": { - "line": 139, + "line": 140, "column": 20 }, "end": { - "line": 139, + "line": 140, "column": 21 } } @@ -20196,15 +20380,15 @@ "updateContext": null }, "value": 0, - "start": 3739, - "end": 3740, + "start": 3774, + "end": 3775, "loc": { "start": { - "line": 140, + "line": 141, "column": 2 }, "end": { - "line": 140, + "line": 141, "column": 3 } } @@ -20222,15 +20406,15 @@ "binop": null, "updateContext": null }, - "start": 3740, - "end": 3741, + "start": 3775, + "end": 3776, "loc": { "start": { - "line": 140, + "line": 141, "column": 3 }, "end": { - "line": 140, + "line": 141, "column": 4 } } @@ -20249,15 +20433,15 @@ "updateContext": null }, "value": 10, - "start": 3744, - "end": 3746, + "start": 3779, + "end": 3781, "loc": { "start": { - "line": 141, + "line": 142, "column": 2 }, "end": { - "line": 141, + "line": 142, "column": 4 } } @@ -20275,15 +20459,15 @@ "binop": null, "updateContext": null }, - "start": 3746, - "end": 3747, + "start": 3781, + "end": 3782, "loc": { "start": { - "line": 141, + "line": 142, "column": 4 }, "end": { - "line": 141, + "line": 142, "column": 5 } } @@ -20302,15 +20486,15 @@ "updateContext": null }, "value": 20, - "start": 3750, - "end": 3752, + "start": 3785, + "end": 3787, "loc": { "start": { - "line": 142, + "line": 143, "column": 2 }, "end": { - "line": 142, + "line": 143, "column": 4 } } @@ -20328,15 +20512,15 @@ "binop": null, "updateContext": null }, - "start": 3752, - "end": 3753, + "start": 3787, + "end": 3788, "loc": { "start": { - "line": 142, + "line": 143, "column": 4 }, "end": { - "line": 142, + "line": 143, "column": 5 } } @@ -20355,15 +20539,15 @@ "updateContext": null }, "value": 40, - "start": 3756, - "end": 3758, + "start": 3791, + "end": 3793, "loc": { "start": { - "line": 143, + "line": 144, "column": 2 }, "end": { - "line": 143, + "line": 144, "column": 4 } } @@ -20381,15 +20565,15 @@ "binop": null, "updateContext": null }, - "start": 3758, - "end": 3759, + "start": 3793, + "end": 3794, "loc": { "start": { - "line": 143, + "line": 144, "column": 4 }, "end": { - "line": 143, + "line": 144, "column": 5 } } @@ -20408,15 +20592,15 @@ "updateContext": null }, "value": 100, - "start": 3762, - "end": 3765, + "start": 3797, + "end": 3800, "loc": { "start": { - "line": 144, + "line": 145, "column": 2 }, "end": { - "line": 144, + "line": 145, "column": 5 } } @@ -20434,15 +20618,15 @@ "binop": null, "updateContext": null }, - "start": 3765, - "end": 3766, + "start": 3800, + "end": 3801, "loc": { "start": { - "line": 144, + "line": 145, "column": 5 }, "end": { - "line": 144, + "line": 145, "column": 6 } } @@ -20461,15 +20645,15 @@ "updateContext": null }, "value": 140, - "start": 3769, - "end": 3772, + "start": 3804, + "end": 3807, "loc": { "start": { - "line": 145, + "line": 146, "column": 2 }, "end": { - "line": 145, + "line": 146, "column": 5 } } @@ -20487,15 +20671,15 @@ "binop": null, "updateContext": null }, - "start": 3772, - "end": 3773, + "start": 3807, + "end": 3808, "loc": { "start": { - "line": 145, + "line": 146, "column": 5 }, "end": { - "line": 145, + "line": 146, "column": 6 } } @@ -20514,15 +20698,15 @@ "updateContext": null }, "value": 160, - "start": 3776, - "end": 3779, + "start": 3811, + "end": 3814, "loc": { "start": { - "line": 146, + "line": 147, "column": 2 }, "end": { - "line": 146, + "line": 147, "column": 5 } } @@ -20540,15 +20724,15 @@ "binop": null, "updateContext": null }, - "start": 3781, - "end": 3782, + "start": 3816, + "end": 3817, "loc": { "start": { - "line": 147, + "line": 148, "column": 1 }, "end": { - "line": 147, + "line": 148, "column": 2 } } @@ -20566,15 +20750,15 @@ "binop": null, "updateContext": null }, - "start": 3782, - "end": 3783, + "start": 3817, + "end": 3818, "loc": { "start": { - "line": 147, + "line": 148, "column": 2 }, "end": { - "line": 147, + "line": 148, "column": 3 } } @@ -20592,15 +20776,15 @@ "binop": null }, "value": "MAINMENU_MUSICLIST", - "start": 3785, - "end": 3803, + "start": 3820, + "end": 3838, "loc": { "start": { - "line": 148, + "line": 149, "column": 1 }, "end": { - "line": 148, + "line": 149, "column": 19 } } @@ -20618,15 +20802,15 @@ "binop": null, "updateContext": null }, - "start": 3803, - "end": 3804, + "start": 3838, + "end": 3839, "loc": { "start": { - "line": 148, + "line": 149, "column": 19 }, "end": { - "line": 148, + "line": 149, "column": 20 } } @@ -20644,15 +20828,15 @@ "binop": null, "updateContext": null }, - "start": 3805, - "end": 3806, + "start": 3840, + "end": 3841, "loc": { "start": { - "line": 148, + "line": 149, "column": 21 }, "end": { - "line": 148, + "line": 149, "column": 22 } } @@ -20671,15 +20855,15 @@ "updateContext": null }, "value": "assets/sfx/mainmenu/placeholder1.mp3", - "start": 3809, - "end": 3847, + "start": 3844, + "end": 3882, "loc": { "start": { - "line": 149, + "line": 150, "column": 2 }, "end": { - "line": 149, + "line": 150, "column": 40 } } @@ -20697,15 +20881,15 @@ "binop": null, "updateContext": null }, - "start": 3847, - "end": 3848, + "start": 3882, + "end": 3883, "loc": { "start": { - "line": 149, + "line": 150, "column": 40 }, "end": { - "line": 149, + "line": 150, "column": 41 } } @@ -20724,15 +20908,15 @@ "updateContext": null }, "value": "assets/sfx/mainmenu/placeholder2.mp3", - "start": 3851, - "end": 3889, + "start": 3886, + "end": 3924, "loc": { "start": { - "line": 150, + "line": 151, "column": 2 }, "end": { - "line": 150, + "line": 151, "column": 40 } } @@ -20750,15 +20934,15 @@ "binop": null, "updateContext": null }, - "start": 3889, - "end": 3890, + "start": 3924, + "end": 3925, "loc": { "start": { - "line": 150, + "line": 151, "column": 40 }, "end": { - "line": 150, + "line": 151, "column": 41 } } @@ -20777,15 +20961,15 @@ "updateContext": null }, "value": "assets/sfx/mainmenu/placeholder3.mp3", - "start": 3893, - "end": 3931, + "start": 3928, + "end": 3966, "loc": { "start": { - "line": 151, + "line": 152, "column": 2 }, "end": { - "line": 151, + "line": 152, "column": 40 } } @@ -20803,15 +20987,15 @@ "binop": null, "updateContext": null }, - "start": 3931, - "end": 3932, + "start": 3966, + "end": 3967, "loc": { "start": { - "line": 151, + "line": 152, "column": 40 }, "end": { - "line": 151, + "line": 152, "column": 41 } } @@ -20830,15 +21014,15 @@ "updateContext": null }, "value": "assets/sfx/mainmenu/placeholder4.mp3", - "start": 3935, - "end": 3973, + "start": 3970, + "end": 4008, "loc": { "start": { - "line": 152, + "line": 153, "column": 2 }, "end": { - "line": 152, + "line": 153, "column": 40 } } @@ -20856,15 +21040,15 @@ "binop": null, "updateContext": null }, - "start": 3975, - "end": 3976, + "start": 4010, + "end": 4011, "loc": { "start": { - "line": 153, + "line": 154, "column": 1 }, "end": { - "line": 153, + "line": 154, "column": 2 } } @@ -20882,15 +21066,15 @@ "binop": null, "updateContext": null }, - "start": 3976, - "end": 3977, + "start": 4011, + "end": 4012, "loc": { "start": { - "line": 153, + "line": 154, "column": 2 }, "end": { - "line": 153, + "line": 154, "column": 3 } } @@ -20908,15 +21092,15 @@ "binop": null }, "value": "LOBBY_MUSICLIST", - "start": 3979, - "end": 3994, + "start": 4014, + "end": 4029, "loc": { "start": { - "line": 154, + "line": 155, "column": 1 }, "end": { - "line": 154, + "line": 155, "column": 16 } } @@ -20934,15 +21118,15 @@ "binop": null, "updateContext": null }, - "start": 3994, - "end": 3995, + "start": 4029, + "end": 4030, "loc": { "start": { - "line": 154, + "line": 155, "column": 16 }, "end": { - "line": 154, + "line": 155, "column": 17 } } @@ -20960,15 +21144,15 @@ "binop": null, "updateContext": null }, - "start": 3996, - "end": 3997, + "start": 4031, + "end": 4032, "loc": { "start": { - "line": 154, + "line": 155, "column": 18 }, "end": { - "line": 154, + "line": 155, "column": 19 } } @@ -20986,15 +21170,15 @@ "binop": null, "updateContext": null }, - "start": 4000, - "end": 4001, + "start": 4035, + "end": 4036, "loc": { "start": { - "line": 156, + "line": 157, "column": 1 }, "end": { - "line": 156, + "line": 157, "column": 2 } } @@ -21012,15 +21196,15 @@ "binop": null, "updateContext": null }, - "start": 4001, - "end": 4002, + "start": 4036, + "end": 4037, "loc": { "start": { - "line": 156, + "line": 157, "column": 2 }, "end": { - "line": 156, + "line": 157, "column": 3 } } @@ -21038,15 +21222,15 @@ "binop": null }, "value": "INGAME_MUSICLIST", - "start": 4004, - "end": 4020, + "start": 4039, + "end": 4055, "loc": { "start": { - "line": 157, + "line": 158, "column": 1 }, "end": { - "line": 157, + "line": 158, "column": 17 } } @@ -21064,15 +21248,15 @@ "binop": null, "updateContext": null }, - "start": 4020, - "end": 4021, + "start": 4055, + "end": 4056, "loc": { "start": { - "line": 157, + "line": 158, "column": 17 }, "end": { - "line": 157, + "line": 158, "column": 18 } } @@ -21090,15 +21274,15 @@ "binop": null, "updateContext": null }, - "start": 4022, - "end": 4023, + "start": 4057, + "end": 4058, "loc": { "start": { - "line": 157, + "line": 158, "column": 19 }, "end": { - "line": 157, + "line": 158, "column": 20 } } @@ -21116,15 +21300,15 @@ "binop": null, "updateContext": null }, - "start": 4026, - "end": 4027, + "start": 4061, + "end": 4062, "loc": { "start": { - "line": 159, + "line": 160, "column": 1 }, "end": { - "line": 159, + "line": 160, "column": 2 } } @@ -21142,15 +21326,15 @@ "binop": null, "updateContext": null }, - "start": 4027, - "end": 4028, + "start": 4062, + "end": 4063, "loc": { "start": { - "line": 159, + "line": 160, "column": 2 }, "end": { - "line": 159, + "line": 160, "column": 3 } } @@ -21158,15 +21342,15 @@ { "type": "CommentLine", "value": " Deaths", - "start": 4031, - "end": 4040, + "start": 4066, + "end": 4075, "loc": { "start": { - "line": 161, + "line": 162, "column": 1 }, "end": { - "line": 161, + "line": 162, "column": 10 } } @@ -21184,15 +21368,15 @@ "binop": null }, "value": "KILL_SCORE", - "start": 4042, - "end": 4052, + "start": 4077, + "end": 4087, "loc": { "start": { - "line": 162, + "line": 163, "column": 1 }, "end": { - "line": 162, + "line": 163, "column": 11 } } @@ -21210,15 +21394,15 @@ "binop": null, "updateContext": null }, - "start": 4052, - "end": 4053, + "start": 4087, + "end": 4088, "loc": { "start": { - "line": 162, + "line": 163, "column": 11 }, "end": { - "line": 162, + "line": 163, "column": 12 } } @@ -21237,15 +21421,15 @@ "updateContext": null }, "value": 6, - "start": 4054, - "end": 4055, + "start": 4089, + "end": 4090, "loc": { "start": { - "line": 162, + "line": 163, "column": 13 }, "end": { - "line": 162, + "line": 163, "column": 14 } } @@ -21263,15 +21447,15 @@ "binop": null, "updateContext": null }, - "start": 4055, - "end": 4056, + "start": 4090, + "end": 4091, "loc": { "start": { - "line": 162, + "line": 163, "column": 14 }, "end": { - "line": 162, + "line": 163, "column": 15 } } @@ -21279,15 +21463,15 @@ { "type": "CommentLine", "value": " How many points are awarded to the player/team who dealt the most damage to the player", - "start": 4057, - "end": 4146, + "start": 4092, + "end": 4181, "loc": { "start": { - "line": 162, + "line": 163, "column": 16 }, "end": { - "line": 162, + "line": 163, "column": 105 } } @@ -21305,15 +21489,15 @@ "binop": null }, "value": "ASSIST_SCORE", - "start": 4148, - "end": 4160, + "start": 4183, + "end": 4195, "loc": { "start": { - "line": 163, + "line": 164, "column": 1 }, "end": { - "line": 163, + "line": 164, "column": 13 } } @@ -21331,15 +21515,15 @@ "binop": null, "updateContext": null }, - "start": 4160, - "end": 4161, + "start": 4195, + "end": 4196, "loc": { "start": { - "line": 163, + "line": 164, "column": 13 }, "end": { - "line": 163, + "line": 164, "column": 14 } } @@ -21358,15 +21542,15 @@ "updateContext": null }, "value": 2, - "start": 4162, - "end": 4163, + "start": 4197, + "end": 4198, "loc": { "start": { - "line": 163, + "line": 164, "column": 15 }, "end": { - "line": 163, + "line": 164, "column": 16 } } @@ -21384,15 +21568,15 @@ "binop": null, "updateContext": null }, - "start": 4163, - "end": 4164, + "start": 4198, + "end": 4199, "loc": { "start": { - "line": 163, + "line": 164, "column": 16 }, "end": { - "line": 163, + "line": 164, "column": 17 } } @@ -21400,15 +21584,15 @@ { "type": "CommentLine", "value": " How many points are awarded to all players who assist in killing the player", - "start": 4165, - "end": 4243, + "start": 4200, + "end": 4278, "loc": { "start": { - "line": 163, + "line": 164, "column": 18 }, "end": { - "line": 163, + "line": 164, "column": 96 } } @@ -21426,15 +21610,15 @@ "binop": null }, "value": "WINNING_SCORE", - "start": 4245, - "end": 4258, + "start": 4280, + "end": 4293, "loc": { "start": { - "line": 164, + "line": 165, "column": 1 }, "end": { - "line": 164, + "line": 165, "column": 14 } } @@ -21452,15 +21636,15 @@ "binop": null, "updateContext": null }, - "start": 4258, - "end": 4259, + "start": 4293, + "end": 4294, "loc": { "start": { - "line": 164, + "line": 165, "column": 14 }, "end": { - "line": 164, + "line": 165, "column": 15 } } @@ -21479,15 +21663,15 @@ "updateContext": null }, "value": 20, - "start": 4260, - "end": 4262, + "start": 4295, + "end": 4297, "loc": { "start": { - "line": 164, + "line": 165, "column": 16 }, "end": { - "line": 164, + "line": 165, "column": 18 } } @@ -21505,15 +21689,15 @@ "binop": null, "updateContext": null }, - "start": 4262, - "end": 4263, + "start": 4297, + "end": 4298, "loc": { "start": { - "line": 164, + "line": 165, "column": 18 }, "end": { - "line": 164, + "line": 165, "column": 19 } } @@ -21521,15 +21705,15 @@ { "type": "CommentLine", "value": " How many points are required to win the game per team. TODO increase", - "start": 4264, - "end": 4335, + "start": 4299, + "end": 4370, "loc": { "start": { - "line": 164, + "line": 165, "column": 20 }, "end": { - "line": 164, + "line": 165, "column": 91 } } @@ -21546,17 +21730,17 @@ "postfix": false, "binop": null }, - "value": "MAX_DEATH_ATOMS", - "start": 4337, - "end": 4352, + "value": "CAPTURE_SCORE", + "start": 4372, + "end": 4385, "loc": { "start": { - "line": 165, + "line": 166, "column": 1 }, "end": { - "line": 165, - "column": 16 + "line": 166, + "column": 14 } } }, @@ -21573,16 +21757,16 @@ "binop": null, "updateContext": null }, - "start": 4352, - "end": 4353, + "start": 4385, + "end": 4386, "loc": { "start": { - "line": 165, - "column": 16 + "line": 166, + "column": 14 }, "end": { - "line": 165, - "column": 17 + "line": 166, + "column": 15 } } }, @@ -21599,109 +21783,230 @@ "binop": null, "updateContext": null }, - "value": 100, - "start": 4354, - "end": 4357, - "loc": { - "start": { - "line": 165, - "column": 18 - }, - "end": { - "line": 165, - "column": 21 - } - } - }, - { - "type": "CommentLine", - "value": " How many atoms of each type can be ejected on death at maximum. Prevents testers from ejecting thousands of atoms at a time.", - "start": 4358, - "end": 4485, + "value": 5, + "start": 4387, + "end": 4388, "loc": { "start": { - "line": 165, - "column": 22 + "line": 166, + "column": 16 }, "end": { - "line": 165, - "column": 149 + "line": 166, + "column": 17 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4486, - "end": 4487, + "start": 4388, + "end": 4389, "loc": { "start": { "line": 166, - "column": 0 + "column": 17 }, "end": { "line": 166, - "column": 1 + "column": 18 } } }, { - "type": "CommentBlock", - "value": "*\n * Returns the distance between two objects.\n * Both objects must be GameObjects\n * @param {GameObject} obj1 First object\n * @param {GameObject} obj2 Second object\n ", - "start": 4489, - "end": 4660, + "type": "CommentLine", + "value": " How many points are awarded to the team who captured a stronghold/vent", + "start": 4390, + "end": 4463, "loc": { "start": { - "line": 168, - "column": 0 + "line": 166, + "column": 19 }, "end": { - "line": 173, - "column": 3 + "line": 166, + "column": 92 } } }, { "type": { - "label": "export", - "keyword": "export", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "export", - "start": 4661, - "end": 4667, + "value": "MAX_DEATH_ATOMS", + "start": 4465, + "end": 4480, "loc": { "start": { - "line": 174, - "column": 0 + "line": 167, + "column": 1 }, "end": { - "line": 174, - "column": 6 + "line": 167, + "column": 16 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4480, + "end": 4481, + "loc": { + "start": { + "line": 167, + "column": 16 + }, + "end": { + "line": 167, + "column": 17 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 100, + "start": 4482, + "end": 4485, + "loc": { + "start": { + "line": 167, + "column": 18 + }, + "end": { + "line": 167, + "column": 21 + } + } + }, + { + "type": "CommentLine", + "value": " How many atoms of each type can be ejected on death at maximum. Prevents testers from ejecting thousands of atoms at a time.", + "start": 4486, + "end": 4613, + "loc": { + "start": { + "line": 167, + "column": 22 + }, + "end": { + "line": 167, + "column": 149 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4614, + "end": 4615, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 168, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Returns the distance between two objects.\n * Both objects must be GameObjects\n * @param {GameObject} obj1 First object\n * @param {GameObject} obj2 Second object\n ", + "start": 4617, + "end": 4788, + "loc": { + "start": { + "line": 170, + "column": 0 + }, + "end": { + "line": 175, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 4789, + "end": 4795, + "loc": { + "start": { + "line": 176, + "column": 0 + }, + "end": { + "line": 176, + "column": 6 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -21712,15 +22017,15 @@ "binop": null }, "value": "function", - "start": 4668, - "end": 4676, + "start": 4796, + "end": 4804, "loc": { "start": { - "line": 174, + "line": 176, "column": 7 }, "end": { - "line": 174, + "line": 176, "column": 15 } } @@ -21738,15 +22043,15 @@ "binop": null }, "value": "distanceBetween", - "start": 4677, - "end": 4692, + "start": 4805, + "end": 4820, "loc": { "start": { - "line": 174, + "line": 176, "column": 16 }, "end": { - "line": 174, + "line": 176, "column": 31 } } @@ -21763,15 +22068,15 @@ "postfix": false, "binop": null }, - "start": 4693, - "end": 4694, + "start": 4821, + "end": 4822, "loc": { "start": { - "line": 174, + "line": 176, "column": 32 }, "end": { - "line": 174, + "line": 176, "column": 33 } } @@ -21789,15 +22094,15 @@ "binop": null }, "value": "obj1", - "start": 4694, - "end": 4698, + "start": 4822, + "end": 4826, "loc": { "start": { - "line": 174, + "line": 176, "column": 33 }, "end": { - "line": 174, + "line": 176, "column": 37 } } @@ -21815,15 +22120,15 @@ "binop": null, "updateContext": null }, - "start": 4698, - "end": 4699, + "start": 4826, + "end": 4827, "loc": { "start": { - "line": 174, + "line": 176, "column": 37 }, "end": { - "line": 174, + "line": 176, "column": 38 } } @@ -21841,15 +22146,15 @@ "binop": null }, "value": "obj2", - "start": 4700, - "end": 4704, + "start": 4828, + "end": 4832, "loc": { "start": { - "line": 174, + "line": 176, "column": 39 }, "end": { - "line": 174, + "line": 176, "column": 43 } } @@ -21866,15 +22171,15 @@ "postfix": false, "binop": null }, - "start": 4704, - "end": 4705, + "start": 4832, + "end": 4833, "loc": { "start": { - "line": 174, + "line": 176, "column": 43 }, "end": { - "line": 174, + "line": 176, "column": 44 } } @@ -21891,15 +22196,15 @@ "postfix": false, "binop": null }, - "start": 4706, - "end": 4707, + "start": 4834, + "end": 4835, "loc": { "start": { - "line": 174, + "line": 176, "column": 45 }, "end": { - "line": 174, + "line": 176, "column": 46 } } @@ -21919,15 +22224,15 @@ "updateContext": null }, "value": "return", - "start": 4709, - "end": 4715, + "start": 4837, + "end": 4843, "loc": { "start": { - "line": 175, + "line": 177, "column": 1 }, "end": { - "line": 175, + "line": 177, "column": 7 } } @@ -21945,15 +22250,15 @@ "binop": null }, "value": "Math", - "start": 4716, - "end": 4720, + "start": 4844, + "end": 4848, "loc": { "start": { - "line": 175, + "line": 177, "column": 8 }, "end": { - "line": 175, + "line": 177, "column": 12 } } @@ -21971,15 +22276,15 @@ "binop": null, "updateContext": null }, - "start": 4720, - "end": 4721, + "start": 4848, + "end": 4849, "loc": { "start": { - "line": 175, + "line": 177, "column": 12 }, "end": { - "line": 175, + "line": 177, "column": 13 } } @@ -21997,15 +22302,15 @@ "binop": null }, "value": "sqrt", - "start": 4721, - "end": 4725, + "start": 4849, + "end": 4853, "loc": { "start": { - "line": 175, + "line": 177, "column": 13 }, "end": { - "line": 175, + "line": 177, "column": 17 } } @@ -22022,15 +22327,15 @@ "postfix": false, "binop": null }, - "start": 4725, - "end": 4726, + "start": 4853, + "end": 4854, "loc": { "start": { - "line": 175, + "line": 177, "column": 17 }, "end": { - "line": 175, + "line": 177, "column": 18 } } @@ -22048,15 +22353,15 @@ "binop": null }, "value": "Math", - "start": 4726, - "end": 4730, + "start": 4854, + "end": 4858, "loc": { "start": { - "line": 175, + "line": 177, "column": 18 }, "end": { - "line": 175, + "line": 177, "column": 22 } } @@ -22074,15 +22379,15 @@ "binop": null, "updateContext": null }, - "start": 4730, - "end": 4731, + "start": 4858, + "end": 4859, "loc": { "start": { - "line": 175, + "line": 177, "column": 22 }, "end": { - "line": 175, + "line": 177, "column": 23 } } @@ -22100,15 +22405,15 @@ "binop": null }, "value": "pow", - "start": 4731, - "end": 4734, + "start": 4859, + "end": 4862, "loc": { "start": { - "line": 175, + "line": 177, "column": 23 }, "end": { - "line": 175, + "line": 177, "column": 26 } } @@ -22125,15 +22430,15 @@ "postfix": false, "binop": null }, - "start": 4734, - "end": 4735, + "start": 4862, + "end": 4863, "loc": { "start": { - "line": 175, + "line": 177, "column": 26 }, "end": { - "line": 175, + "line": 177, "column": 27 } } @@ -22151,15 +22456,15 @@ "binop": null }, "value": "obj1", - "start": 4735, - "end": 4739, + "start": 4863, + "end": 4867, "loc": { "start": { - "line": 175, + "line": 177, "column": 27 }, "end": { - "line": 175, + "line": 177, "column": 31 } } @@ -22177,15 +22482,15 @@ "binop": null, "updateContext": null }, - "start": 4739, - "end": 4740, + "start": 4867, + "end": 4868, "loc": { "start": { - "line": 175, + "line": 177, "column": 31 }, "end": { - "line": 175, + "line": 177, "column": 32 } } @@ -22203,15 +22508,15 @@ "binop": null }, "value": "posX", - "start": 4740, - "end": 4744, + "start": 4868, + "end": 4872, "loc": { "start": { - "line": 175, + "line": 177, "column": 32 }, "end": { - "line": 175, + "line": 177, "column": 36 } } @@ -22230,15 +22535,15 @@ "updateContext": null }, "value": "-", - "start": 4745, - "end": 4746, + "start": 4873, + "end": 4874, "loc": { "start": { - "line": 175, + "line": 177, "column": 37 }, "end": { - "line": 175, + "line": 177, "column": 38 } } @@ -22256,15 +22561,15 @@ "binop": null }, "value": "obj2", - "start": 4747, - "end": 4751, + "start": 4875, + "end": 4879, "loc": { "start": { - "line": 175, + "line": 177, "column": 39 }, "end": { - "line": 175, + "line": 177, "column": 43 } } @@ -22282,15 +22587,15 @@ "binop": null, "updateContext": null }, - "start": 4751, - "end": 4752, + "start": 4879, + "end": 4880, "loc": { "start": { - "line": 175, + "line": 177, "column": 43 }, "end": { - "line": 175, + "line": 177, "column": 44 } } @@ -22308,15 +22613,15 @@ "binop": null }, "value": "posX", - "start": 4752, - "end": 4756, + "start": 4880, + "end": 4884, "loc": { "start": { - "line": 175, + "line": 177, "column": 44 }, "end": { - "line": 175, + "line": 177, "column": 48 } } @@ -22334,15 +22639,15 @@ "binop": null, "updateContext": null }, - "start": 4756, - "end": 4757, + "start": 4884, + "end": 4885, "loc": { "start": { - "line": 175, + "line": 177, "column": 48 }, "end": { - "line": 175, + "line": 177, "column": 49 } } @@ -22361,15 +22666,15 @@ "updateContext": null }, "value": 2, - "start": 4758, - "end": 4759, + "start": 4886, + "end": 4887, "loc": { "start": { - "line": 175, + "line": 177, "column": 50 }, "end": { - "line": 175, + "line": 177, "column": 51 } } @@ -22386,15 +22691,15 @@ "postfix": false, "binop": null }, - "start": 4759, - "end": 4760, + "start": 4887, + "end": 4888, "loc": { "start": { - "line": 175, + "line": 177, "column": 51 }, "end": { - "line": 175, + "line": 177, "column": 52 } } @@ -22413,15 +22718,15 @@ "updateContext": null }, "value": "+", - "start": 4761, - "end": 4762, + "start": 4889, + "end": 4890, "loc": { "start": { - "line": 175, + "line": 177, "column": 53 }, "end": { - "line": 175, + "line": 177, "column": 54 } } @@ -22439,15 +22744,15 @@ "binop": null }, "value": "Math", - "start": 4763, - "end": 4767, + "start": 4891, + "end": 4895, "loc": { "start": { - "line": 175, + "line": 177, "column": 55 }, "end": { - "line": 175, + "line": 177, "column": 59 } } @@ -22465,15 +22770,15 @@ "binop": null, "updateContext": null }, - "start": 4767, - "end": 4768, + "start": 4895, + "end": 4896, "loc": { "start": { - "line": 175, + "line": 177, "column": 59 }, "end": { - "line": 175, + "line": 177, "column": 60 } } @@ -22491,15 +22796,15 @@ "binop": null }, "value": "pow", - "start": 4768, - "end": 4771, + "start": 4896, + "end": 4899, "loc": { "start": { - "line": 175, + "line": 177, "column": 60 }, "end": { - "line": 175, + "line": 177, "column": 63 } } @@ -22516,15 +22821,15 @@ "postfix": false, "binop": null }, - "start": 4771, - "end": 4772, + "start": 4899, + "end": 4900, "loc": { "start": { - "line": 175, + "line": 177, "column": 63 }, "end": { - "line": 175, + "line": 177, "column": 64 } } @@ -22542,15 +22847,15 @@ "binop": null }, "value": "obj1", - "start": 4772, - "end": 4776, + "start": 4900, + "end": 4904, "loc": { "start": { - "line": 175, + "line": 177, "column": 64 }, "end": { - "line": 175, + "line": 177, "column": 68 } } @@ -22568,15 +22873,15 @@ "binop": null, "updateContext": null }, - "start": 4776, - "end": 4777, + "start": 4904, + "end": 4905, "loc": { "start": { - "line": 175, + "line": 177, "column": 68 }, "end": { - "line": 175, + "line": 177, "column": 69 } } @@ -22594,15 +22899,15 @@ "binop": null }, "value": "posY", - "start": 4777, - "end": 4781, + "start": 4905, + "end": 4909, "loc": { "start": { - "line": 175, + "line": 177, "column": 69 }, "end": { - "line": 175, + "line": 177, "column": 73 } } @@ -22621,15 +22926,15 @@ "updateContext": null }, "value": "-", - "start": 4782, - "end": 4783, + "start": 4910, + "end": 4911, "loc": { "start": { - "line": 175, + "line": 177, "column": 74 }, "end": { - "line": 175, + "line": 177, "column": 75 } } @@ -22647,15 +22952,15 @@ "binop": null }, "value": "obj2", - "start": 4784, - "end": 4788, + "start": 4912, + "end": 4916, "loc": { "start": { - "line": 175, + "line": 177, "column": 76 }, "end": { - "line": 175, + "line": 177, "column": 80 } } @@ -22673,15 +22978,15 @@ "binop": null, "updateContext": null }, - "start": 4788, - "end": 4789, + "start": 4916, + "end": 4917, "loc": { "start": { - "line": 175, + "line": 177, "column": 80 }, "end": { - "line": 175, + "line": 177, "column": 81 } } @@ -22699,15 +23004,15 @@ "binop": null }, "value": "posY", - "start": 4789, - "end": 4793, + "start": 4917, + "end": 4921, "loc": { "start": { - "line": 175, + "line": 177, "column": 81 }, "end": { - "line": 175, + "line": 177, "column": 85 } } @@ -22725,15 +23030,15 @@ "binop": null, "updateContext": null }, - "start": 4793, - "end": 4794, + "start": 4921, + "end": 4922, "loc": { "start": { - "line": 175, + "line": 177, "column": 85 }, "end": { - "line": 175, + "line": 177, "column": 86 } } @@ -22752,15 +23057,15 @@ "updateContext": null }, "value": 2, - "start": 4795, - "end": 4796, + "start": 4923, + "end": 4924, "loc": { "start": { - "line": 175, + "line": 177, "column": 87 }, "end": { - "line": 175, + "line": 177, "column": 88 } } @@ -22777,15 +23082,15 @@ "postfix": false, "binop": null }, - "start": 4796, - "end": 4797, + "start": 4924, + "end": 4925, "loc": { "start": { - "line": 175, + "line": 177, "column": 88 }, "end": { - "line": 175, + "line": 177, "column": 89 } } @@ -22802,15 +23107,15 @@ "postfix": false, "binop": null }, - "start": 4797, - "end": 4798, + "start": 4925, + "end": 4926, "loc": { "start": { - "line": 175, + "line": 177, "column": 89 }, "end": { - "line": 175, + "line": 177, "column": 90 } } @@ -22827,15 +23132,15 @@ "postfix": false, "binop": null }, - "start": 4799, - "end": 4800, + "start": 4927, + "end": 4928, "loc": { "start": { - "line": 176, + "line": 178, "column": 0 }, "end": { - "line": 176, + "line": 178, "column": 1 } } @@ -22843,15 +23148,15 @@ { "type": "CommentBlock", "value": "*\n * Returns true if the object parameter is within the map boundaries.\n * @param {GameObject} obj The object to test\n * @return true if the object parameter is within the map boundaries\n ", - "start": 4802, - "end": 4994, + "start": 4930, + "end": 5122, "loc": { "start": { - "line": 178, + "line": 180, "column": 0 }, "end": { - "line": 182, + "line": 184, "column": 3 } } @@ -22871,15 +23176,15 @@ "updateContext": null }, "value": "export", - "start": 4995, - "end": 5001, + "start": 5123, + "end": 5129, "loc": { "start": { - "line": 183, + "line": 185, "column": 0 }, "end": { - "line": 183, + "line": 185, "column": 6 } } @@ -22898,15 +23203,15 @@ "binop": null }, "value": "function", - "start": 5002, - "end": 5010, + "start": 5130, + "end": 5138, "loc": { "start": { - "line": 183, + "line": 185, "column": 7 }, "end": { - "line": 183, + "line": 185, "column": 15 } } @@ -22924,15 +23229,15 @@ "binop": null }, "value": "isInBounds", - "start": 5011, - "end": 5021, + "start": 5139, + "end": 5149, "loc": { "start": { - "line": 183, + "line": 185, "column": 16 }, "end": { - "line": 183, + "line": 185, "column": 26 } } @@ -22949,15 +23254,15 @@ "postfix": false, "binop": null }, - "start": 5022, - "end": 5023, + "start": 5150, + "end": 5151, "loc": { "start": { - "line": 183, + "line": 185, "column": 27 }, "end": { - "line": 183, + "line": 185, "column": 28 } } @@ -22975,15 +23280,15 @@ "binop": null }, "value": "obj", - "start": 5023, - "end": 5026, + "start": 5151, + "end": 5154, "loc": { "start": { - "line": 183, + "line": 185, "column": 28 }, "end": { - "line": 183, + "line": 185, "column": 31 } } @@ -23000,15 +23305,15 @@ "postfix": false, "binop": null }, - "start": 5026, - "end": 5027, + "start": 5154, + "end": 5155, "loc": { "start": { - "line": 183, + "line": 185, "column": 31 }, "end": { - "line": 183, + "line": 185, "column": 32 } } @@ -23025,15 +23330,15 @@ "postfix": false, "binop": null }, - "start": 5028, - "end": 5029, + "start": 5156, + "end": 5157, "loc": { "start": { - "line": 183, + "line": 185, "column": 33 }, "end": { - "line": 183, + "line": 185, "column": 34 } } @@ -23053,15 +23358,15 @@ "updateContext": null }, "value": "return", - "start": 5031, - "end": 5037, + "start": 5159, + "end": 5165, "loc": { "start": { - "line": 184, + "line": 186, "column": 1 }, "end": { - "line": 184, + "line": 186, "column": 7 } } @@ -23079,15 +23384,15 @@ "binop": null }, "value": "obj", - "start": 5038, - "end": 5041, + "start": 5166, + "end": 5169, "loc": { "start": { - "line": 184, + "line": 186, "column": 8 }, "end": { - "line": 184, + "line": 186, "column": 11 } } @@ -23105,15 +23410,15 @@ "binop": null, "updateContext": null }, - "start": 5041, - "end": 5042, + "start": 5169, + "end": 5170, "loc": { "start": { - "line": 184, + "line": 186, "column": 11 }, "end": { - "line": 184, + "line": 186, "column": 12 } } @@ -23131,15 +23436,15 @@ "binop": null }, "value": "posX", - "start": 5042, - "end": 5046, + "start": 5170, + "end": 5174, "loc": { "start": { - "line": 184, + "line": 186, "column": 12 }, "end": { - "line": 184, + "line": 186, "column": 16 } } @@ -23158,15 +23463,15 @@ "updateContext": null }, "value": ">", - "start": 5047, - "end": 5048, + "start": 5175, + "end": 5176, "loc": { "start": { - "line": 184, + "line": 186, "column": 17 }, "end": { - "line": 184, + "line": 186, "column": 18 } } @@ -23185,15 +23490,15 @@ "updateContext": null }, "value": 0, - "start": 5049, - "end": 5050, + "start": 5177, + "end": 5178, "loc": { "start": { - "line": 184, + "line": 186, "column": 19 }, "end": { - "line": 184, + "line": 186, "column": 20 } } @@ -23212,15 +23517,15 @@ "updateContext": null }, "value": "&&", - "start": 5051, - "end": 5053, + "start": 5179, + "end": 5181, "loc": { "start": { - "line": 184, + "line": 186, "column": 21 }, "end": { - "line": 184, + "line": 186, "column": 23 } } @@ -23238,15 +23543,15 @@ "binop": null }, "value": "obj", - "start": 5054, - "end": 5057, + "start": 5182, + "end": 5185, "loc": { "start": { - "line": 184, + "line": 186, "column": 24 }, "end": { - "line": 184, + "line": 186, "column": 27 } } @@ -23264,15 +23569,15 @@ "binop": null, "updateContext": null }, - "start": 5057, - "end": 5058, + "start": 5185, + "end": 5186, "loc": { "start": { - "line": 184, + "line": 186, "column": 27 }, "end": { - "line": 184, + "line": 186, "column": 28 } } @@ -23290,15 +23595,15 @@ "binop": null }, "value": "posY", - "start": 5058, - "end": 5062, + "start": 5186, + "end": 5190, "loc": { "start": { - "line": 184, + "line": 186, "column": 28 }, "end": { - "line": 184, + "line": 186, "column": 32 } } @@ -23317,15 +23622,15 @@ "updateContext": null }, "value": ">", - "start": 5063, - "end": 5064, + "start": 5191, + "end": 5192, "loc": { "start": { - "line": 184, + "line": 186, "column": 33 }, "end": { - "line": 184, + "line": 186, "column": 34 } } @@ -23344,15 +23649,15 @@ "updateContext": null }, "value": "-", - "start": 5065, - "end": 5066, + "start": 5193, + "end": 5194, "loc": { "start": { - "line": 184, + "line": 186, "column": 35 }, "end": { - "line": 184, + "line": 186, "column": 36 } } @@ -23370,15 +23675,15 @@ "binop": null }, "value": "GLOBAL", - "start": 5066, - "end": 5072, + "start": 5194, + "end": 5200, "loc": { "start": { - "line": 184, + "line": 186, "column": 36 }, "end": { - "line": 184, + "line": 186, "column": 42 } } @@ -23396,15 +23701,15 @@ "binop": null, "updateContext": null }, - "start": 5072, - "end": 5073, + "start": 5200, + "end": 5201, "loc": { "start": { - "line": 184, + "line": 186, "column": 42 }, "end": { - "line": 184, + "line": 186, "column": 43 } } @@ -23422,15 +23727,15 @@ "binop": null }, "value": "GRID_SPACING", - "start": 5073, - "end": 5085, + "start": 5201, + "end": 5213, "loc": { "start": { - "line": 184, + "line": 186, "column": 43 }, "end": { - "line": 184, + "line": 186, "column": 55 } } @@ -23449,15 +23754,15 @@ "updateContext": null }, "value": "*", - "start": 5086, - "end": 5087, + "start": 5214, + "end": 5215, "loc": { "start": { - "line": 184, + "line": 186, "column": 56 }, "end": { - "line": 184, + "line": 186, "column": 57 } } @@ -23476,15 +23781,15 @@ "updateContext": null }, "value": 2, - "start": 5088, - "end": 5089, + "start": 5216, + "end": 5217, "loc": { "start": { - "line": 184, + "line": 186, "column": 58 }, "end": { - "line": 184, + "line": 186, "column": 59 } } @@ -23503,15 +23808,15 @@ "updateContext": null }, "value": "&&", - "start": 5090, - "end": 5092, + "start": 5218, + "end": 5220, "loc": { "start": { - "line": 184, + "line": 186, "column": 60 }, "end": { - "line": 184, + "line": 186, "column": 62 } } @@ -23529,15 +23834,15 @@ "binop": null }, "value": "obj", - "start": 5093, - "end": 5096, + "start": 5221, + "end": 5224, "loc": { "start": { - "line": 184, + "line": 186, "column": 63 }, "end": { - "line": 184, + "line": 186, "column": 66 } } @@ -23555,15 +23860,15 @@ "binop": null, "updateContext": null }, - "start": 5096, - "end": 5097, + "start": 5224, + "end": 5225, "loc": { "start": { - "line": 184, + "line": 186, "column": 66 }, "end": { - "line": 184, + "line": 186, "column": 67 } } @@ -23581,15 +23886,15 @@ "binop": null }, "value": "posX", - "start": 5097, - "end": 5101, + "start": 5225, + "end": 5229, "loc": { "start": { - "line": 184, + "line": 186, "column": 67 }, "end": { - "line": 184, + "line": 186, "column": 71 } } @@ -23608,15 +23913,15 @@ "updateContext": null }, "value": "<", - "start": 5102, - "end": 5103, + "start": 5230, + "end": 5231, "loc": { "start": { - "line": 184, + "line": 186, "column": 72 }, "end": { - "line": 184, + "line": 186, "column": 73 } } @@ -23634,15 +23939,15 @@ "binop": null }, "value": "MAP_LAYOUT", - "start": 5104, - "end": 5114, + "start": 5232, + "end": 5242, "loc": { "start": { - "line": 184, + "line": 186, "column": 74 }, "end": { - "line": 184, + "line": 186, "column": 84 } } @@ -23660,15 +23965,15 @@ "binop": null, "updateContext": null }, - "start": 5114, - "end": 5115, + "start": 5242, + "end": 5243, "loc": { "start": { - "line": 184, + "line": 186, "column": 84 }, "end": { - "line": 184, + "line": 186, "column": 85 } } @@ -23687,15 +23992,15 @@ "updateContext": null }, "value": 0, - "start": 5115, - "end": 5116, + "start": 5243, + "end": 5244, "loc": { "start": { - "line": 184, + "line": 186, "column": 85 }, "end": { - "line": 184, + "line": 186, "column": 86 } } @@ -23713,15 +24018,15 @@ "binop": null, "updateContext": null }, - "start": 5116, - "end": 5117, + "start": 5244, + "end": 5245, "loc": { "start": { - "line": 184, + "line": 186, "column": 86 }, "end": { - "line": 184, + "line": 186, "column": 87 } } @@ -23739,15 +24044,15 @@ "binop": null, "updateContext": null }, - "start": 5117, - "end": 5118, + "start": 5245, + "end": 5246, "loc": { "start": { - "line": 184, + "line": 186, "column": 87 }, "end": { - "line": 184, + "line": 186, "column": 88 } } @@ -23765,15 +24070,15 @@ "binop": null }, "value": "length", - "start": 5118, - "end": 5124, + "start": 5246, + "end": 5252, "loc": { "start": { - "line": 184, + "line": 186, "column": 88 }, "end": { - "line": 184, + "line": 186, "column": 94 } } @@ -23792,15 +24097,15 @@ "updateContext": null }, "value": "*", - "start": 5125, - "end": 5126, + "start": 5253, + "end": 5254, "loc": { "start": { - "line": 184, + "line": 186, "column": 95 }, "end": { - "line": 184, + "line": 186, "column": 96 } } @@ -23818,15 +24123,15 @@ "binop": null }, "value": "GLOBAL", - "start": 5127, - "end": 5133, + "start": 5255, + "end": 5261, "loc": { "start": { - "line": 184, + "line": 186, "column": 97 }, "end": { - "line": 184, + "line": 186, "column": 103 } } @@ -23844,15 +24149,15 @@ "binop": null, "updateContext": null }, - "start": 5133, - "end": 5134, + "start": 5261, + "end": 5262, "loc": { "start": { - "line": 184, + "line": 186, "column": 103 }, "end": { - "line": 184, + "line": 186, "column": 104 } } @@ -23870,15 +24175,15 @@ "binop": null }, "value": "GRID_SPACING", - "start": 5134, - "end": 5146, + "start": 5262, + "end": 5274, "loc": { "start": { - "line": 184, + "line": 186, "column": 104 }, "end": { - "line": 184, + "line": 186, "column": 116 } } @@ -23897,15 +24202,15 @@ "updateContext": null }, "value": "*", - "start": 5147, - "end": 5148, + "start": 5275, + "end": 5276, "loc": { "start": { - "line": 184, + "line": 186, "column": 117 }, "end": { - "line": 184, + "line": 186, "column": 118 } } @@ -23924,15 +24229,15 @@ "updateContext": null }, "value": 2, - "start": 5149, - "end": 5150, + "start": 5277, + "end": 5278, "loc": { "start": { - "line": 184, + "line": 186, "column": 119 }, "end": { - "line": 184, + "line": 186, "column": 120 } } @@ -23951,15 +24256,15 @@ "updateContext": null }, "value": "&&", - "start": 5151, - "end": 5153, + "start": 5279, + "end": 5281, "loc": { "start": { - "line": 184, + "line": 186, "column": 121 }, "end": { - "line": 184, + "line": 186, "column": 123 } } @@ -23977,15 +24282,15 @@ "binop": null }, "value": "obj", - "start": 5154, - "end": 5157, + "start": 5282, + "end": 5285, "loc": { "start": { - "line": 184, + "line": 186, "column": 124 }, "end": { - "line": 184, + "line": 186, "column": 127 } } @@ -24003,15 +24308,15 @@ "binop": null, "updateContext": null }, - "start": 5157, - "end": 5158, + "start": 5285, + "end": 5286, "loc": { "start": { - "line": 184, + "line": 186, "column": 127 }, "end": { - "line": 184, + "line": 186, "column": 128 } } @@ -24029,15 +24334,15 @@ "binop": null }, "value": "posY", - "start": 5158, - "end": 5162, + "start": 5286, + "end": 5290, "loc": { "start": { - "line": 184, + "line": 186, "column": 128 }, "end": { - "line": 184, + "line": 186, "column": 132 } } @@ -24056,15 +24361,15 @@ "updateContext": null }, "value": "<", - "start": 5163, - "end": 5164, + "start": 5291, + "end": 5292, "loc": { "start": { - "line": 184, + "line": 186, "column": 133 }, "end": { - "line": 184, + "line": 186, "column": 134 } } @@ -24081,15 +24386,15 @@ "postfix": false, "binop": null }, - "start": 5165, - "end": 5166, + "start": 5293, + "end": 5294, "loc": { "start": { - "line": 184, + "line": 186, "column": 135 }, "end": { - "line": 184, + "line": 186, "column": 136 } } @@ -24107,15 +24412,15 @@ "binop": null }, "value": "MAP_LAYOUT", - "start": 5166, - "end": 5176, + "start": 5294, + "end": 5304, "loc": { "start": { - "line": 184, + "line": 186, "column": 136 }, "end": { - "line": 184, + "line": 186, "column": 146 } } @@ -24133,15 +24438,15 @@ "binop": null, "updateContext": null }, - "start": 5176, - "end": 5177, + "start": 5304, + "end": 5305, "loc": { "start": { - "line": 184, + "line": 186, "column": 146 }, "end": { - "line": 184, + "line": 186, "column": 147 } } @@ -24159,15 +24464,15 @@ "binop": null }, "value": "length", - "start": 5177, - "end": 5183, + "start": 5305, + "end": 5311, "loc": { "start": { - "line": 184, + "line": 186, "column": 147 }, "end": { - "line": 184, + "line": 186, "column": 153 } } @@ -24186,15 +24491,15 @@ "updateContext": null }, "value": "-", - "start": 5184, - "end": 5185, + "start": 5312, + "end": 5313, "loc": { "start": { - "line": 184, + "line": 186, "column": 154 }, "end": { - "line": 184, + "line": 186, "column": 155 } } @@ -24213,15 +24518,15 @@ "updateContext": null }, "value": 1, - "start": 5186, - "end": 5187, + "start": 5314, + "end": 5315, "loc": { "start": { - "line": 184, + "line": 186, "column": 156 }, "end": { - "line": 184, + "line": 186, "column": 157 } } @@ -24238,15 +24543,15 @@ "postfix": false, "binop": null }, - "start": 5187, - "end": 5188, + "start": 5315, + "end": 5316, "loc": { "start": { - "line": 184, + "line": 186, "column": 157 }, "end": { - "line": 184, + "line": 186, "column": 158 } } @@ -24265,15 +24570,15 @@ "updateContext": null }, "value": "*", - "start": 5189, - "end": 5190, + "start": 5317, + "end": 5318, "loc": { "start": { - "line": 184, + "line": 186, "column": 159 }, "end": { - "line": 184, + "line": 186, "column": 160 } } @@ -24291,15 +24596,15 @@ "binop": null }, "value": "GLOBAL", - "start": 5191, - "end": 5197, + "start": 5319, + "end": 5325, "loc": { "start": { - "line": 184, + "line": 186, "column": 161 }, "end": { - "line": 184, + "line": 186, "column": 167 } } @@ -24317,15 +24622,15 @@ "binop": null, "updateContext": null }, - "start": 5197, - "end": 5198, + "start": 5325, + "end": 5326, "loc": { "start": { - "line": 184, + "line": 186, "column": 167 }, "end": { - "line": 184, + "line": 186, "column": 168 } } @@ -24343,15 +24648,15 @@ "binop": null }, "value": "GRID_SPACING", - "start": 5198, - "end": 5210, + "start": 5326, + "end": 5338, "loc": { "start": { - "line": 184, + "line": 186, "column": 168 }, "end": { - "line": 184, + "line": 186, "column": 180 } } @@ -24370,15 +24675,15 @@ "updateContext": null }, "value": "*", - "start": 5211, - "end": 5212, + "start": 5339, + "end": 5340, "loc": { "start": { - "line": 184, + "line": 186, "column": 181 }, "end": { - "line": 184, + "line": 186, "column": 182 } } @@ -24397,15 +24702,15 @@ "updateContext": null }, "value": 2, - "start": 5213, - "end": 5214, + "start": 5341, + "end": 5342, "loc": { "start": { - "line": 184, + "line": 186, "column": 183 }, "end": { - "line": 184, + "line": 186, "column": 184 } } @@ -24422,15 +24727,15 @@ "postfix": false, "binop": null }, - "start": 5215, - "end": 5216, + "start": 5343, + "end": 5344, "loc": { "start": { - "line": 185, + "line": 187, "column": 0 }, "end": { - "line": 185, + "line": 187, "column": 1 } } @@ -24438,15 +24743,15 @@ { "type": "CommentBlock", "value": "*\n * Gets the tile directly underneath any object.\n * @param {*} obj Any valid GameObject.\n * @returns {string} one-letter ID of current tile.\n ", - "start": 5218, - "end": 5366, + "start": 5346, + "end": 5494, "loc": { "start": { - "line": 187, + "line": 189, "column": 0 }, "end": { - "line": 191, + "line": 193, "column": 3 } } @@ -24466,15 +24771,15 @@ "updateContext": null }, "value": "export", - "start": 5367, - "end": 5373, + "start": 5495, + "end": 5501, "loc": { "start": { - "line": 192, + "line": 194, "column": 0 }, "end": { - "line": 192, + "line": 194, "column": 6 } } @@ -24493,15 +24798,15 @@ "binop": null }, "value": "function", - "start": 5374, - "end": 5382, + "start": 5502, + "end": 5510, "loc": { "start": { - "line": 192, + "line": 194, "column": 7 }, "end": { - "line": 192, + "line": 194, "column": 15 } } @@ -24519,15 +24824,15 @@ "binop": null }, "value": "getCurrTile", - "start": 5383, - "end": 5394, + "start": 5511, + "end": 5522, "loc": { "start": { - "line": 192, + "line": 194, "column": 16 }, "end": { - "line": 192, + "line": 194, "column": 27 } } @@ -24544,15 +24849,15 @@ "postfix": false, "binop": null }, - "start": 5395, - "end": 5396, + "start": 5523, + "end": 5524, "loc": { "start": { - "line": 192, + "line": 194, "column": 28 }, "end": { - "line": 192, + "line": 194, "column": 29 } } @@ -24570,15 +24875,15 @@ "binop": null }, "value": "obj", - "start": 5396, - "end": 5399, + "start": 5524, + "end": 5527, "loc": { "start": { - "line": 192, + "line": 194, "column": 29 }, "end": { - "line": 192, + "line": 194, "column": 32 } } @@ -24595,15 +24900,15 @@ "postfix": false, "binop": null }, - "start": 5399, - "end": 5400, + "start": 5527, + "end": 5528, "loc": { "start": { - "line": 192, + "line": 194, "column": 32 }, "end": { - "line": 192, + "line": 194, "column": 33 } } @@ -24620,15 +24925,15 @@ "postfix": false, "binop": null }, - "start": 5401, - "end": 5402, + "start": 5529, + "end": 5530, "loc": { "start": { - "line": 192, + "line": 194, "column": 34 }, "end": { - "line": 192, + "line": 194, "column": 35 } } @@ -24648,15 +24953,15 @@ "updateContext": null }, "value": "let", - "start": 5404, - "end": 5407, + "start": 5532, + "end": 5535, "loc": { "start": { - "line": 193, + "line": 195, "column": 1 }, "end": { - "line": 193, + "line": 195, "column": 4 } } @@ -24674,15 +24979,15 @@ "binop": null }, "value": "pos", - "start": 5408, - "end": 5411, + "start": 5536, + "end": 5539, "loc": { "start": { - "line": 193, + "line": 195, "column": 5 }, "end": { - "line": 193, + "line": 195, "column": 8 } } @@ -24701,15 +25006,15 @@ "updateContext": null }, "value": "=", - "start": 5412, - "end": 5413, + "start": 5540, + "end": 5541, "loc": { "start": { - "line": 193, + "line": 195, "column": 9 }, "end": { - "line": 193, + "line": 195, "column": 10 } } @@ -24727,15 +25032,15 @@ "binop": null }, "value": "getGlobalLocation", - "start": 5414, - "end": 5431, + "start": 5542, + "end": 5559, "loc": { "start": { - "line": 193, + "line": 195, "column": 11 }, "end": { - "line": 193, + "line": 195, "column": 28 } } @@ -24752,15 +25057,15 @@ "postfix": false, "binop": null }, - "start": 5431, - "end": 5432, + "start": 5559, + "end": 5560, "loc": { "start": { - "line": 193, + "line": 195, "column": 28 }, "end": { - "line": 193, + "line": 195, "column": 29 } } @@ -24778,15 +25083,15 @@ "binop": null }, "value": "obj", - "start": 5432, - "end": 5435, + "start": 5560, + "end": 5563, "loc": { "start": { - "line": 193, + "line": 195, "column": 29 }, "end": { - "line": 193, + "line": 195, "column": 32 } } @@ -24803,15 +25108,15 @@ "postfix": false, "binop": null }, - "start": 5435, - "end": 5436, + "start": 5563, + "end": 5564, "loc": { "start": { - "line": 193, + "line": 195, "column": 32 }, "end": { - "line": 193, + "line": 195, "column": 33 } } @@ -24831,15 +25136,15 @@ "updateContext": null }, "value": "try", - "start": 5439, - "end": 5442, + "start": 5567, + "end": 5570, "loc": { "start": { - "line": 195, + "line": 197, "column": 1 }, "end": { - "line": 195, + "line": 197, "column": 4 } } @@ -24856,15 +25161,15 @@ "postfix": false, "binop": null }, - "start": 5443, - "end": 5444, + "start": 5571, + "end": 5572, "loc": { "start": { - "line": 195, + "line": 197, "column": 5 }, "end": { - "line": 195, + "line": 197, "column": 6 } } @@ -24884,15 +25189,15 @@ "updateContext": null }, "value": "return", - "start": 5447, - "end": 5453, + "start": 5575, + "end": 5581, "loc": { "start": { - "line": 196, + "line": 198, "column": 2 }, "end": { - "line": 196, + "line": 198, "column": 8 } } @@ -24910,15 +25215,15 @@ "binop": null }, "value": "MAP_LAYOUT", - "start": 5454, - "end": 5464, + "start": 5582, + "end": 5592, "loc": { "start": { - "line": 196, + "line": 198, "column": 9 }, "end": { - "line": 196, + "line": 198, "column": 19 } } @@ -24936,15 +25241,15 @@ "binop": null, "updateContext": null }, - "start": 5464, - "end": 5465, + "start": 5592, + "end": 5593, "loc": { "start": { - "line": 196, + "line": 198, "column": 19 }, "end": { - "line": 196, + "line": 198, "column": 20 } } @@ -24961,17 +25266,17 @@ "postfix": false, "binop": null }, - "value": "MAP_LAYOUT", - "start": 5465, - "end": 5475, + "value": "pos", + "start": 5593, + "end": 5596, "loc": { "start": { - "line": 196, + "line": 198, "column": 20 }, "end": { - "line": 196, - "column": 30 + "line": 198, + "column": 23 } } }, @@ -24988,16 +25293,16 @@ "binop": null, "updateContext": null }, - "start": 5475, - "end": 5476, + "start": 5596, + "end": 5597, "loc": { "start": { - "line": 196, - "column": 30 + "line": 198, + "column": 23 }, "end": { - "line": 196, - "column": 31 + "line": 198, + "column": 24 } } }, @@ -25013,44 +25318,69 @@ "postfix": false, "binop": null }, - "value": "length", - "start": 5476, - "end": 5482, + "value": "globalY", + "start": 5597, + "end": 5604, + "loc": { + "start": { + "line": 198, + "column": 24 + }, + "end": { + "line": 198, + "column": 31 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5604, + "end": 5605, "loc": { "start": { - "line": 196, + "line": 198, "column": 31 }, "end": { - "line": 196, - "column": 37 + "line": 198, + "column": 32 } } }, { "type": { - "label": "+/-", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "-", - "start": 5483, - "end": 5484, + "start": 5605, + "end": 5606, "loc": { "start": { - "line": 196, - "column": 38 + "line": 198, + "column": 32 }, "end": { - "line": 196, - "column": 39 + "line": 198, + "column": 33 } } }, @@ -25067,16 +25397,16 @@ "binop": null }, "value": "pos", - "start": 5485, - "end": 5488, + "start": 5606, + "end": 5609, "loc": { "start": { - "line": 196, - "column": 40 + "line": 198, + "column": 33 }, "end": { - "line": 196, - "column": 43 + "line": 198, + "column": 36 } } }, @@ -25093,16 +25423,16 @@ "binop": null, "updateContext": null }, - "start": 5488, - "end": 5489, + "start": 5609, + "end": 5610, "loc": { "start": { - "line": 196, - "column": 43 + "line": 198, + "column": 36 }, "end": { - "line": 196, - "column": 44 + "line": 198, + "column": 37 } } }, @@ -25118,251 +25448,67 @@ "postfix": false, "binop": null }, - "value": "globalY", - "start": 5489, - "end": 5496, + "value": "globalX", + "start": 5610, + "end": 5617, "loc": { "start": { - "line": 196, - "column": 44 + "line": 198, + "column": 37 }, "end": { - "line": 196, - "column": 51 + "line": 198, + "column": 44 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": "]", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "-", - "start": 5497, - "end": 5498, + "start": 5617, + "end": 5618, "loc": { "start": { - "line": 196, - "column": 52 + "line": 198, + "column": 44 }, "end": { - "line": 196, - "column": 53 + "line": 198, + "column": 45 } } }, { "type": { - "label": "num", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 2, - "start": 5499, - "end": 5500, + "start": 5620, + "end": 5621, "loc": { "start": { - "line": 196, - "column": 54 - }, - "end": { - "line": 196, - "column": 55 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5500, - "end": 5501, - "loc": { - "start": { - "line": 196, - "column": 55 - }, - "end": { - "line": 196, - "column": 56 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5501, - "end": 5502, - "loc": { - "start": { - "line": 196, - "column": 56 - }, - "end": { - "line": 196, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pos", - "start": 5502, - "end": 5505, - "loc": { - "start": { - "line": 196, - "column": 57 - }, - "end": { - "line": 196, - "column": 60 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5505, - "end": 5506, - "loc": { - "start": { - "line": 196, - "column": 60 - }, - "end": { - "line": 196, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalX", - "start": 5506, - "end": 5513, - "loc": { - "start": { - "line": 196, - "column": 61 - }, - "end": { - "line": 196, - "column": 68 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5513, - "end": 5514, - "loc": { - "start": { - "line": 196, - "column": 68 - }, - "end": { - "line": 196, - "column": 69 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5516, - "end": 5517, - "loc": { - "start": { - "line": 197, + "line": 199, "column": 1 }, "end": { - "line": 197, + "line": 199, "column": 2 } } @@ -25382,15 +25528,15 @@ "updateContext": null }, "value": "catch", - "start": 5519, - "end": 5524, + "start": 5623, + "end": 5628, "loc": { "start": { - "line": 198, + "line": 200, "column": 1 }, "end": { - "line": 198, + "line": 200, "column": 6 } } @@ -25407,15 +25553,15 @@ "postfix": false, "binop": null }, - "start": 5525, - "end": 5526, + "start": 5629, + "end": 5630, "loc": { "start": { - "line": 198, + "line": 200, "column": 7 }, "end": { - "line": 198, + "line": 200, "column": 8 } } @@ -25433,15 +25579,15 @@ "binop": null }, "value": "error", - "start": 5526, - "end": 5531, + "start": 5630, + "end": 5635, "loc": { "start": { - "line": 198, + "line": 200, "column": 8 }, "end": { - "line": 198, + "line": 200, "column": 13 } } @@ -25458,15 +25604,15 @@ "postfix": false, "binop": null }, - "start": 5531, - "end": 5532, + "start": 5635, + "end": 5636, "loc": { "start": { - "line": 198, + "line": 200, "column": 13 }, "end": { - "line": 198, + "line": 200, "column": 14 } } @@ -25483,15 +25629,15 @@ "postfix": false, "binop": null }, - "start": 5533, - "end": 5534, + "start": 5637, + "end": 5638, "loc": { "start": { - "line": 198, + "line": 200, "column": 15 }, "end": { - "line": 198, + "line": 200, "column": 16 } } @@ -25511,15 +25657,15 @@ "updateContext": null }, "value": "return", - "start": 5537, - "end": 5543, + "start": 5641, + "end": 5647, "loc": { "start": { - "line": 199, + "line": 201, "column": 2 }, "end": { - "line": 199, + "line": 201, "column": 8 } } @@ -25538,15 +25684,15 @@ "updateContext": null }, "value": "E", - "start": 5544, - "end": 5547, + "start": 5648, + "end": 5651, "loc": { "start": { - "line": 199, + "line": 201, "column": 9 }, "end": { - "line": 199, + "line": 201, "column": 12 } } @@ -25563,15 +25709,15 @@ "postfix": false, "binop": null }, - "start": 5549, - "end": 5550, + "start": 5653, + "end": 5654, "loc": { "start": { - "line": 200, + "line": 202, "column": 1 }, "end": { - "line": 200, + "line": 202, "column": 2 } } @@ -25588,15 +25734,15 @@ "postfix": false, "binop": null }, - "start": 5551, - "end": 5552, + "start": 5655, + "end": 5656, "loc": { "start": { - "line": 201, + "line": 203, "column": 0 }, "end": { - "line": 201, + "line": 203, "column": 1 } } @@ -25604,15 +25750,15 @@ { "type": "CommentBlock", "value": "*\n * Gets the coordinates of the tile directly underneath the object.\n * @param {*} obj Any valid GameObject.\n ", - "start": 5554, - "end": 5669, + "start": 5658, + "end": 5773, "loc": { "start": { - "line": 203, + "line": 205, "column": 0 }, "end": { - "line": 206, + "line": 208, "column": 3 } } @@ -25632,15 +25778,15 @@ "updateContext": null }, "value": "export", - "start": 5670, - "end": 5676, + "start": 5774, + "end": 5780, "loc": { "start": { - "line": 207, + "line": 209, "column": 0 }, "end": { - "line": 207, + "line": 209, "column": 6 } } @@ -25659,15 +25805,15 @@ "binop": null }, "value": "function", - "start": 5677, - "end": 5685, + "start": 5781, + "end": 5789, "loc": { "start": { - "line": 207, + "line": 209, "column": 7 }, "end": { - "line": 207, + "line": 209, "column": 15 } } @@ -25685,15 +25831,15 @@ "binop": null }, "value": "getGlobalLocation", - "start": 5686, - "end": 5703, + "start": 5790, + "end": 5807, "loc": { "start": { - "line": 207, + "line": 209, "column": 16 }, "end": { - "line": 207, + "line": 209, "column": 33 } } @@ -25710,15 +25856,15 @@ "postfix": false, "binop": null }, - "start": 5704, - "end": 5705, + "start": 5808, + "end": 5809, "loc": { "start": { - "line": 207, + "line": 209, "column": 34 }, "end": { - "line": 207, + "line": 209, "column": 35 } } @@ -25736,15 +25882,15 @@ "binop": null }, "value": "obj", - "start": 5705, - "end": 5708, + "start": 5809, + "end": 5812, "loc": { "start": { - "line": 207, + "line": 209, "column": 35 }, "end": { - "line": 207, + "line": 209, "column": 38 } } @@ -25761,15 +25907,15 @@ "postfix": false, "binop": null }, - "start": 5708, - "end": 5709, + "start": 5812, + "end": 5813, "loc": { "start": { - "line": 207, + "line": 209, "column": 38 }, "end": { - "line": 207, + "line": 209, "column": 39 } } @@ -25786,15 +25932,15 @@ "postfix": false, "binop": null }, - "start": 5710, - "end": 5711, + "start": 5814, + "end": 5815, "loc": { "start": { - "line": 207, + "line": 209, "column": 40 }, "end": { - "line": 207, + "line": 209, "column": 41 } } @@ -25814,15 +25960,15 @@ "updateContext": null }, "value": "return", - "start": 5713, - "end": 5719, + "start": 5817, + "end": 5823, "loc": { "start": { - "line": 208, + "line": 210, "column": 1 }, "end": { - "line": 208, + "line": 210, "column": 7 } } @@ -25839,15 +25985,15 @@ "postfix": false, "binop": null }, - "start": 5720, - "end": 5721, + "start": 5824, + "end": 5825, "loc": { "start": { - "line": 208, + "line": 210, "column": 8 }, "end": { - "line": 208, + "line": 210, "column": 9 } } @@ -25864,16 +26010,16 @@ "postfix": false, "binop": null }, - "value": "globalX", - "start": 5724, - "end": 5731, + "value": "globalY", + "start": 5828, + "end": 5835, "loc": { "start": { - "line": 209, + "line": 211, "column": 2 }, "end": { - "line": 209, + "line": 211, "column": 9 } } @@ -25891,15 +26037,15 @@ "binop": null, "updateContext": null }, - "start": 5731, - "end": 5732, + "start": 5835, + "end": 5836, "loc": { "start": { - "line": 209, + "line": 211, "column": 9 }, "end": { - "line": 209, + "line": 211, "column": 10 } } @@ -25917,15 +26063,15 @@ "binop": null }, "value": "Math", - "start": 5733, - "end": 5737, + "start": 5837, + "end": 5841, "loc": { "start": { - "line": 209, + "line": 211, "column": 11 }, "end": { - "line": 209, + "line": 211, "column": 15 } } @@ -25943,15 +26089,15 @@ "binop": null, "updateContext": null }, - "start": 5737, - "end": 5738, + "start": 5841, + "end": 5842, "loc": { "start": { - "line": 209, + "line": 211, "column": 15 }, "end": { - "line": 209, + "line": 211, "column": 16 } } @@ -25969,15 +26115,15 @@ "binop": null }, "value": "floor", - "start": 5738, - "end": 5743, + "start": 5842, + "end": 5847, "loc": { "start": { - "line": 209, + "line": 211, "column": 16 }, "end": { - "line": 209, + "line": 211, "column": 21 } } @@ -25994,15 +26140,15 @@ "postfix": false, "binop": null }, - "start": 5743, - "end": 5744, + "start": 5847, + "end": 5848, "loc": { "start": { - "line": 209, + "line": 211, "column": 21 }, "end": { - "line": 209, + "line": 211, "column": 22 } } @@ -26020,15 +26166,15 @@ "binop": null }, "value": "obj", - "start": 5744, - "end": 5747, + "start": 5848, + "end": 5851, "loc": { "start": { - "line": 209, + "line": 211, "column": 22 }, "end": { - "line": 209, + "line": 211, "column": 25 } } @@ -26046,15 +26192,15 @@ "binop": null, "updateContext": null }, - "start": 5747, - "end": 5748, + "start": 5851, + "end": 5852, "loc": { "start": { - "line": 209, + "line": 211, "column": 25 }, "end": { - "line": 209, + "line": 211, "column": 26 } } @@ -26071,16 +26217,16 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 5748, - "end": 5752, + "value": "posY", + "start": 5852, + "end": 5856, "loc": { "start": { - "line": 209, + "line": 211, "column": 26 }, "end": { - "line": 209, + "line": 211, "column": 30 } } @@ -26099,15 +26245,15 @@ "updateContext": null }, "value": "/", - "start": 5753, - "end": 5754, + "start": 5857, + "end": 5858, "loc": { "start": { - "line": 209, + "line": 211, "column": 31 }, "end": { - "line": 209, + "line": 211, "column": 32 } } @@ -26124,15 +26270,15 @@ "postfix": false, "binop": null }, - "start": 5755, - "end": 5756, + "start": 5859, + "end": 5860, "loc": { "start": { - "line": 209, + "line": 211, "column": 33 }, "end": { - "line": 209, + "line": 211, "column": 34 } } @@ -26150,15 +26296,15 @@ "binop": null }, "value": "GLOBAL", - "start": 5756, - "end": 5762, + "start": 5860, + "end": 5866, "loc": { "start": { - "line": 209, + "line": 211, "column": 34 }, "end": { - "line": 209, + "line": 211, "column": 40 } } @@ -26176,15 +26322,15 @@ "binop": null, "updateContext": null }, - "start": 5762, - "end": 5763, + "start": 5866, + "end": 5867, "loc": { "start": { - "line": 209, + "line": 211, "column": 40 }, "end": { - "line": 209, + "line": 211, "column": 41 } } @@ -26202,15 +26348,15 @@ "binop": null }, "value": "GRID_SPACING", - "start": 5763, - "end": 5775, + "start": 5867, + "end": 5879, "loc": { "start": { - "line": 209, + "line": 211, "column": 41 }, "end": { - "line": 209, + "line": 211, "column": 53 } } @@ -26229,15 +26375,15 @@ "updateContext": null }, "value": "*", - "start": 5776, - "end": 5777, + "start": 5880, + "end": 5881, "loc": { "start": { - "line": 209, + "line": 211, "column": 54 }, "end": { - "line": 209, + "line": 211, "column": 55 } } @@ -26256,15 +26402,15 @@ "updateContext": null }, "value": 2, - "start": 5778, - "end": 5779, + "start": 5882, + "end": 5883, "loc": { "start": { - "line": 209, + "line": 211, "column": 56 }, "end": { - "line": 209, + "line": 211, "column": 57 } } @@ -26281,15 +26427,15 @@ "postfix": false, "binop": null }, - "start": 5779, - "end": 5780, + "start": 5883, + "end": 5884, "loc": { "start": { - "line": 209, + "line": 211, "column": 57 }, "end": { - "line": 209, + "line": 211, "column": 58 } } @@ -26306,19 +26452,73 @@ "postfix": false, "binop": null }, - "start": 5780, - "end": 5781, + "start": 5884, + "end": 5885, "loc": { "start": { - "line": 209, + "line": 211, "column": 58 }, "end": { - "line": 209, + "line": 211, "column": 59 } } }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 5886, + "end": 5887, + "loc": { + "start": { + "line": 211, + "column": 60 + }, + "end": { + "line": 211, + "column": 61 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 5888, + "end": 5889, + "loc": { + "start": { + "line": 211, + "column": 62 + }, + "end": { + "line": 211, + "column": 63 + } + } + }, { "type": { "label": ",", @@ -26332,16 +26532,16 @@ "binop": null, "updateContext": null }, - "start": 5781, - "end": 5782, + "start": 5889, + "end": 5890, "loc": { "start": { - "line": 209, - "column": 59 + "line": 211, + "column": 63 }, "end": { - "line": 209, - "column": 60 + "line": 211, + "column": 64 } } }, @@ -26357,16 +26557,16 @@ "postfix": false, "binop": null }, - "value": "globalY", - "start": 5785, - "end": 5792, + "value": "globalX", + "start": 5893, + "end": 5900, "loc": { "start": { - "line": 210, + "line": 212, "column": 2 }, "end": { - "line": 210, + "line": 212, "column": 9 } } @@ -26384,15 +26584,15 @@ "binop": null, "updateContext": null }, - "start": 5792, - "end": 5793, + "start": 5900, + "end": 5901, "loc": { "start": { - "line": 210, + "line": 212, "column": 9 }, "end": { - "line": 210, + "line": 212, "column": 10 } } @@ -26410,15 +26610,15 @@ "binop": null }, "value": "Math", - "start": 5794, - "end": 5798, + "start": 5902, + "end": 5906, "loc": { "start": { - "line": 210, + "line": 212, "column": 11 }, "end": { - "line": 210, + "line": 212, "column": 15 } } @@ -26436,15 +26636,15 @@ "binop": null, "updateContext": null }, - "start": 5798, - "end": 5799, + "start": 5906, + "end": 5907, "loc": { "start": { - "line": 210, + "line": 212, "column": 15 }, "end": { - "line": 210, + "line": 212, "column": 16 } } @@ -26462,15 +26662,15 @@ "binop": null }, "value": "floor", - "start": 5799, - "end": 5804, + "start": 5907, + "end": 5912, "loc": { "start": { - "line": 210, + "line": 212, "column": 16 }, "end": { - "line": 210, + "line": 212, "column": 21 } } @@ -26487,15 +26687,15 @@ "postfix": false, "binop": null }, - "start": 5804, - "end": 5805, + "start": 5912, + "end": 5913, "loc": { "start": { - "line": 210, + "line": 212, "column": 21 }, "end": { - "line": 210, + "line": 212, "column": 22 } } @@ -26513,15 +26713,15 @@ "binop": null }, "value": "obj", - "start": 5805, - "end": 5808, + "start": 5913, + "end": 5916, "loc": { "start": { - "line": 210, + "line": 212, "column": 22 }, "end": { - "line": 210, + "line": 212, "column": 25 } } @@ -26539,15 +26739,15 @@ "binop": null, "updateContext": null }, - "start": 5808, - "end": 5809, + "start": 5916, + "end": 5917, "loc": { "start": { - "line": 210, + "line": 212, "column": 25 }, "end": { - "line": 210, + "line": 212, "column": 26 } } @@ -26564,16 +26764,16 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 5809, - "end": 5813, + "value": "posX", + "start": 5917, + "end": 5921, "loc": { "start": { - "line": 210, + "line": 212, "column": 26 }, "end": { - "line": 210, + "line": 212, "column": 30 } } @@ -26592,15 +26792,15 @@ "updateContext": null }, "value": "/", - "start": 5814, - "end": 5815, + "start": 5922, + "end": 5923, "loc": { "start": { - "line": 210, + "line": 212, "column": 31 }, "end": { - "line": 210, + "line": 212, "column": 32 } } @@ -26617,15 +26817,15 @@ "postfix": false, "binop": null }, - "start": 5816, - "end": 5817, + "start": 5924, + "end": 5925, "loc": { "start": { - "line": 210, + "line": 212, "column": 33 }, "end": { - "line": 210, + "line": 212, "column": 34 } } @@ -26643,15 +26843,15 @@ "binop": null }, "value": "GLOBAL", - "start": 5817, - "end": 5823, + "start": 5925, + "end": 5931, "loc": { "start": { - "line": 210, + "line": 212, "column": 34 }, "end": { - "line": 210, + "line": 212, "column": 40 } } @@ -26669,15 +26869,15 @@ "binop": null, "updateContext": null }, - "start": 5823, - "end": 5824, + "start": 5931, + "end": 5932, "loc": { "start": { - "line": 210, + "line": 212, "column": 40 }, "end": { - "line": 210, + "line": 212, "column": 41 } } @@ -26695,15 +26895,15 @@ "binop": null }, "value": "GRID_SPACING", - "start": 5824, - "end": 5836, + "start": 5932, + "end": 5944, "loc": { "start": { - "line": 210, + "line": 212, "column": 41 }, "end": { - "line": 210, + "line": 212, "column": 53 } } @@ -26722,15 +26922,15 @@ "updateContext": null }, "value": "*", - "start": 5837, - "end": 5838, + "start": 5945, + "end": 5946, "loc": { "start": { - "line": 210, + "line": 212, "column": 54 }, "end": { - "line": 210, + "line": 212, "column": 55 } } @@ -26749,15 +26949,15 @@ "updateContext": null }, "value": 2, - "start": 5839, - "end": 5840, + "start": 5947, + "end": 5948, "loc": { "start": { - "line": 210, + "line": 212, "column": 56 }, "end": { - "line": 210, + "line": 212, "column": 57 } } @@ -26774,15 +26974,15 @@ "postfix": false, "binop": null }, - "start": 5840, - "end": 5841, + "start": 5948, + "end": 5949, "loc": { "start": { - "line": 210, + "line": 212, "column": 57 }, "end": { - "line": 210, + "line": 212, "column": 58 } } @@ -26799,15 +26999,15 @@ "postfix": false, "binop": null }, - "start": 5841, - "end": 5842, + "start": 5949, + "end": 5950, "loc": { "start": { - "line": 210, + "line": 212, "column": 58 }, "end": { - "line": 210, + "line": 212, "column": 59 } } @@ -26824,15 +27024,15 @@ "postfix": false, "binop": null }, - "start": 5844, - "end": 5845, + "start": 5952, + "end": 5953, "loc": { "start": { - "line": 211, + "line": 213, "column": 1 }, "end": { - "line": 211, + "line": 213, "column": 2 } } @@ -26849,15 +27049,15 @@ "postfix": false, "binop": null }, - "start": 5846, - "end": 5847, + "start": 5954, + "end": 5955, "loc": { "start": { - "line": 212, + "line": 214, "column": 0 }, "end": { - "line": 212, + "line": 214, "column": 1 } } @@ -26875,15 +27075,15 @@ "binop": null, "updateContext": null }, - "start": 5848, - "end": 5848, + "start": 5956, + "end": 5956, "loc": { "start": { - "line": 213, + "line": 215, "column": 0 }, "end": { - "line": 213, + "line": 215, "column": 0 } } diff --git a/docs/ast/source/client/js/obj/tiles.js.json b/docs/ast/source/client/js/obj/tiles.js.json index 59688e0..31013ed 100644 --- a/docs/ast/source/client/js/obj/tiles.js.json +++ b/docs/ast/source/client/js/obj/tiles.js.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 2731, + "end": 2724, "loc": { "start": { "line": 1, @@ -15,7 +15,7 @@ "program": { "type": "Program", "start": 0, - "end": 2731, + "end": 2724, "loc": { "start": { "line": 1, @@ -31,7 +31,7 @@ { "type": "ExportNamedDeclaration", "start": 443, - "end": 1945, + "end": 1938, "loc": { "start": { "line": 9, @@ -47,7 +47,7 @@ "declaration": { "type": "VariableDeclaration", "start": 450, - "end": 1945, + "end": 1938, "loc": { "start": { "line": 9, @@ -62,7 +62,7 @@ { "type": "VariableDeclarator", "start": 456, - "end": 1945, + "end": 1938, "loc": { "start": { "line": 9, @@ -94,7 +94,7 @@ "init": { "type": "ObjectExpression", "start": 464, - "end": 1945, + "end": 1938, "loc": { "start": { "line": 9, @@ -3945,7 +3945,7 @@ { "type": "ObjectProperty", "start": 1870, - "end": 1943, + "end": 1936, "loc": { "start": { "line": 102, @@ -3979,7 +3979,7 @@ "value": { "type": "ObjectExpression", "start": 1882, - "end": 1943, + "end": 1936, "loc": { "start": { "line": 102, @@ -3994,7 +3994,7 @@ { "type": "ObjectProperty", "start": 1886, - "end": 1918, + "end": 1911, "loc": { "start": { "line": 103, @@ -4002,7 +4002,7 @@ }, "end": { "line": 103, - "column": 34 + "column": 27 } }, "method": false, @@ -4028,7 +4028,7 @@ "value": { "type": "StringLiteral", "start": 1895, - "end": 1918, + "end": 1911, "loc": { "start": { "line": 103, @@ -4036,20 +4036,20 @@ }, "end": { "line": 103, - "column": 34 + "column": 27 } }, "extra": { - "rawValue": "StrongholdNeutral.png", - "raw": "'StrongholdNeutral.png'" + "rawValue": "stronghold.png", + "raw": "'stronghold.png'" }, - "value": "StrongholdNeutral.png" + "value": "stronghold.png" } }, { "type": "ObjectProperty", - "start": 1922, - "end": 1940, + "start": 1915, + "end": 1933, "loc": { "start": { "line": 104, @@ -4065,8 +4065,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1922, - "end": 1926, + "start": 1915, + "end": 1919, "loc": { "start": { "line": 104, @@ -4082,8 +4082,8 @@ }, "value": { "type": "StringLiteral", - "start": 1928, - "end": 1940, + "start": 1921, + "end": 1933, "loc": { "start": { "line": 104, @@ -4107,8 +4107,8 @@ { "type": "CommentBlock", "value": "*\n * 2D array containing the entire map tile layout. Top left is (0,0), furthest right is (n, 0) and furthest bottom is (0, n).\n * Shortcuts:\n * E = Empty\n * O = Oxygen\n * N = Nitrogen\n * C = Carbon\n ", - "start": 1947, - "end": 2151, + "start": 1940, + "end": 2144, "loc": { "start": { "line": 108, @@ -4152,8 +4152,8 @@ { "type": "CommentBlock", "value": "*\n * 2D array containing the entire map tile layout. Top left is (0,0), furthest right is (n, 0) and furthest bottom is (0, n).\n * Shortcuts:\n * E = Empty\n * O = Oxygen\n * N = Nitrogen\n * C = Carbon\n ", - "start": 1947, - "end": 2151, + "start": 1940, + "end": 2144, "loc": { "start": { "line": 108, @@ -4189,8 +4189,8 @@ { "type": "CommentBlock", "value": "*\n * 2D array containing the entire map tile layout. Top left is (0,0), furthest right is (n, 0) and furthest bottom is (0, n).\n * Shortcuts:\n * E = Empty\n * O = Oxygen\n * N = Nitrogen\n * C = Carbon\n ", - "start": 1947, - "end": 2151, + "start": 1940, + "end": 2144, "loc": { "start": { "line": 108, @@ -4206,8 +4206,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 2152, - "end": 2446, + "start": 2145, + "end": 2439, "loc": { "start": { "line": 116, @@ -4222,8 +4222,8 @@ "source": null, "declaration": { "type": "VariableDeclaration", - "start": 2159, - "end": 2446, + "start": 2152, + "end": 2439, "loc": { "start": { "line": 116, @@ -4237,8 +4237,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2165, - "end": 2446, + "start": 2158, + "end": 2439, "loc": { "start": { "line": 116, @@ -4251,8 +4251,8 @@ }, "id": { "type": "Identifier", - "start": 2165, - "end": 2175, + "start": 2158, + "end": 2168, "loc": { "start": { "line": 116, @@ -4268,8 +4268,8 @@ }, "init": { "type": "ArrayExpression", - "start": 2178, - "end": 2446, + "start": 2171, + "end": 2439, "loc": { "start": { "line": 116, @@ -4283,8 +4283,8 @@ "elements": [ { "type": "ArrayExpression", - "start": 2181, - "end": 2216, + "start": 2174, + "end": 2209, "loc": { "start": { "line": 117, @@ -4298,8 +4298,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2182, - "end": 2185, + "start": 2175, + "end": 2178, "loc": { "start": { "line": 117, @@ -4318,8 +4318,8 @@ }, { "type": "StringLiteral", - "start": 2187, - "end": 2190, + "start": 2180, + "end": 2183, "loc": { "start": { "line": 117, @@ -4338,8 +4338,8 @@ }, { "type": "StringLiteral", - "start": 2192, - "end": 2195, + "start": 2185, + "end": 2188, "loc": { "start": { "line": 117, @@ -4358,8 +4358,8 @@ }, { "type": "StringLiteral", - "start": 2197, - "end": 2200, + "start": 2190, + "end": 2193, "loc": { "start": { "line": 117, @@ -4378,8 +4378,8 @@ }, { "type": "StringLiteral", - "start": 2202, - "end": 2205, + "start": 2195, + "end": 2198, "loc": { "start": { "line": 117, @@ -4398,8 +4398,8 @@ }, { "type": "StringLiteral", - "start": 2207, - "end": 2210, + "start": 2200, + "end": 2203, "loc": { "start": { "line": 117, @@ -4418,8 +4418,8 @@ }, { "type": "StringLiteral", - "start": 2212, - "end": 2215, + "start": 2205, + "end": 2208, "loc": { "start": { "line": 117, @@ -4440,8 +4440,8 @@ }, { "type": "ArrayExpression", - "start": 2219, - "end": 2254, + "start": 2212, + "end": 2247, "loc": { "start": { "line": 118, @@ -4455,8 +4455,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2220, - "end": 2223, + "start": 2213, + "end": 2216, "loc": { "start": { "line": 118, @@ -4475,8 +4475,8 @@ }, { "type": "StringLiteral", - "start": 2225, - "end": 2228, + "start": 2218, + "end": 2221, "loc": { "start": { "line": 118, @@ -4495,8 +4495,8 @@ }, { "type": "StringLiteral", - "start": 2230, - "end": 2233, + "start": 2223, + "end": 2226, "loc": { "start": { "line": 118, @@ -4515,8 +4515,8 @@ }, { "type": "StringLiteral", - "start": 2235, - "end": 2238, + "start": 2228, + "end": 2231, "loc": { "start": { "line": 118, @@ -4535,8 +4535,8 @@ }, { "type": "StringLiteral", - "start": 2240, - "end": 2243, + "start": 2233, + "end": 2236, "loc": { "start": { "line": 118, @@ -4555,8 +4555,8 @@ }, { "type": "StringLiteral", - "start": 2245, - "end": 2248, + "start": 2238, + "end": 2241, "loc": { "start": { "line": 118, @@ -4575,8 +4575,8 @@ }, { "type": "StringLiteral", - "start": 2250, - "end": 2253, + "start": 2243, + "end": 2246, "loc": { "start": { "line": 118, @@ -4597,8 +4597,8 @@ }, { "type": "ArrayExpression", - "start": 2257, - "end": 2292, + "start": 2250, + "end": 2285, "loc": { "start": { "line": 119, @@ -4612,8 +4612,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2258, - "end": 2261, + "start": 2251, + "end": 2254, "loc": { "start": { "line": 119, @@ -4632,8 +4632,8 @@ }, { "type": "StringLiteral", - "start": 2263, - "end": 2266, + "start": 2256, + "end": 2259, "loc": { "start": { "line": 119, @@ -4652,8 +4652,8 @@ }, { "type": "StringLiteral", - "start": 2268, - "end": 2271, + "start": 2261, + "end": 2264, "loc": { "start": { "line": 119, @@ -4672,8 +4672,8 @@ }, { "type": "StringLiteral", - "start": 2273, - "end": 2276, + "start": 2266, + "end": 2269, "loc": { "start": { "line": 119, @@ -4692,8 +4692,8 @@ }, { "type": "StringLiteral", - "start": 2278, - "end": 2281, + "start": 2271, + "end": 2274, "loc": { "start": { "line": 119, @@ -4712,8 +4712,8 @@ }, { "type": "StringLiteral", - "start": 2283, - "end": 2286, + "start": 2276, + "end": 2279, "loc": { "start": { "line": 119, @@ -4732,8 +4732,8 @@ }, { "type": "StringLiteral", - "start": 2288, - "end": 2291, + "start": 2281, + "end": 2284, "loc": { "start": { "line": 119, @@ -4754,8 +4754,8 @@ }, { "type": "ArrayExpression", - "start": 2295, - "end": 2330, + "start": 2288, + "end": 2323, "loc": { "start": { "line": 120, @@ -4769,8 +4769,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2296, - "end": 2299, + "start": 2289, + "end": 2292, "loc": { "start": { "line": 120, @@ -4789,8 +4789,8 @@ }, { "type": "StringLiteral", - "start": 2301, - "end": 2304, + "start": 2294, + "end": 2297, "loc": { "start": { "line": 120, @@ -4809,8 +4809,8 @@ }, { "type": "StringLiteral", - "start": 2306, - "end": 2309, + "start": 2299, + "end": 2302, "loc": { "start": { "line": 120, @@ -4829,8 +4829,8 @@ }, { "type": "StringLiteral", - "start": 2311, - "end": 2314, + "start": 2304, + "end": 2307, "loc": { "start": { "line": 120, @@ -4849,8 +4849,8 @@ }, { "type": "StringLiteral", - "start": 2316, - "end": 2319, + "start": 2309, + "end": 2312, "loc": { "start": { "line": 120, @@ -4869,8 +4869,8 @@ }, { "type": "StringLiteral", - "start": 2321, - "end": 2324, + "start": 2314, + "end": 2317, "loc": { "start": { "line": 120, @@ -4889,8 +4889,8 @@ }, { "type": "StringLiteral", - "start": 2326, - "end": 2329, + "start": 2319, + "end": 2322, "loc": { "start": { "line": 120, @@ -4911,8 +4911,8 @@ }, { "type": "ArrayExpression", - "start": 2333, - "end": 2368, + "start": 2326, + "end": 2361, "loc": { "start": { "line": 121, @@ -4926,8 +4926,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2334, - "end": 2337, + "start": 2327, + "end": 2330, "loc": { "start": { "line": 121, @@ -4946,8 +4946,8 @@ }, { "type": "StringLiteral", - "start": 2339, - "end": 2342, + "start": 2332, + "end": 2335, "loc": { "start": { "line": 121, @@ -4966,8 +4966,8 @@ }, { "type": "StringLiteral", - "start": 2344, - "end": 2347, + "start": 2337, + "end": 2340, "loc": { "start": { "line": 121, @@ -4986,8 +4986,8 @@ }, { "type": "StringLiteral", - "start": 2349, - "end": 2352, + "start": 2342, + "end": 2345, "loc": { "start": { "line": 121, @@ -5006,8 +5006,8 @@ }, { "type": "StringLiteral", - "start": 2354, - "end": 2357, + "start": 2347, + "end": 2350, "loc": { "start": { "line": 121, @@ -5026,8 +5026,8 @@ }, { "type": "StringLiteral", - "start": 2359, - "end": 2362, + "start": 2352, + "end": 2355, "loc": { "start": { "line": 121, @@ -5046,8 +5046,8 @@ }, { "type": "StringLiteral", - "start": 2364, - "end": 2367, + "start": 2357, + "end": 2360, "loc": { "start": { "line": 121, @@ -5068,8 +5068,8 @@ }, { "type": "ArrayExpression", - "start": 2371, - "end": 2406, + "start": 2364, + "end": 2399, "loc": { "start": { "line": 122, @@ -5083,8 +5083,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2372, - "end": 2375, + "start": 2365, + "end": 2368, "loc": { "start": { "line": 122, @@ -5103,8 +5103,8 @@ }, { "type": "StringLiteral", - "start": 2377, - "end": 2380, + "start": 2370, + "end": 2373, "loc": { "start": { "line": 122, @@ -5123,8 +5123,8 @@ }, { "type": "StringLiteral", - "start": 2382, - "end": 2385, + "start": 2375, + "end": 2378, "loc": { "start": { "line": 122, @@ -5143,8 +5143,8 @@ }, { "type": "StringLiteral", - "start": 2387, - "end": 2390, + "start": 2380, + "end": 2383, "loc": { "start": { "line": 122, @@ -5163,8 +5163,8 @@ }, { "type": "StringLiteral", - "start": 2392, - "end": 2395, + "start": 2385, + "end": 2388, "loc": { "start": { "line": 122, @@ -5183,8 +5183,8 @@ }, { "type": "StringLiteral", - "start": 2397, - "end": 2400, + "start": 2390, + "end": 2393, "loc": { "start": { "line": 122, @@ -5203,8 +5203,8 @@ }, { "type": "StringLiteral", - "start": 2402, - "end": 2405, + "start": 2395, + "end": 2398, "loc": { "start": { "line": 122, @@ -5225,8 +5225,8 @@ }, { "type": "ArrayExpression", - "start": 2409, - "end": 2444, + "start": 2402, + "end": 2437, "loc": { "start": { "line": 123, @@ -5240,8 +5240,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2410, - "end": 2413, + "start": 2403, + "end": 2406, "loc": { "start": { "line": 123, @@ -5260,8 +5260,8 @@ }, { "type": "StringLiteral", - "start": 2415, - "end": 2418, + "start": 2408, + "end": 2411, "loc": { "start": { "line": 123, @@ -5280,8 +5280,8 @@ }, { "type": "StringLiteral", - "start": 2420, - "end": 2423, + "start": 2413, + "end": 2416, "loc": { "start": { "line": 123, @@ -5300,8 +5300,8 @@ }, { "type": "StringLiteral", - "start": 2425, - "end": 2428, + "start": 2418, + "end": 2421, "loc": { "start": { "line": 123, @@ -5320,8 +5320,8 @@ }, { "type": "StringLiteral", - "start": 2430, - "end": 2433, + "start": 2423, + "end": 2426, "loc": { "start": { "line": 123, @@ -5340,8 +5340,8 @@ }, { "type": "StringLiteral", - "start": 2435, - "end": 2438, + "start": 2428, + "end": 2431, "loc": { "start": { "line": 123, @@ -5360,8 +5360,8 @@ }, { "type": "StringLiteral", - "start": 2440, - "end": 2443, + "start": 2433, + "end": 2436, "loc": { "start": { "line": 123, @@ -5391,8 +5391,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 2448, - "end": 2730, + "start": 2441, + "end": 2723, "loc": { "start": { "line": 126, @@ -5407,8 +5407,8 @@ "source": null, "declaration": { "type": "VariableDeclaration", - "start": 2455, - "end": 2730, + "start": 2448, + "end": 2723, "loc": { "start": { "line": 126, @@ -5422,8 +5422,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2461, - "end": 2730, + "start": 2454, + "end": 2723, "loc": { "start": { "line": 126, @@ -5436,8 +5436,8 @@ }, "id": { "type": "Identifier", - "start": 2461, - "end": 2471, + "start": 2454, + "end": 2464, "loc": { "start": { "line": 126, @@ -5453,8 +5453,8 @@ }, "init": { "type": "ObjectExpression", - "start": 2474, - "end": 2730, + "start": 2467, + "end": 2723, "loc": { "start": { "line": 126, @@ -5468,8 +5468,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2477, - "end": 2487, + "start": 2470, + "end": 2480, "loc": { "start": { "line": 127, @@ -5485,8 +5485,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2477, - "end": 2478, + "start": 2470, + "end": 2471, "loc": { "start": { "line": 127, @@ -5502,8 +5502,8 @@ }, "value": { "type": "StringLiteral", - "start": 2480, - "end": 2487, + "start": 2473, + "end": 2480, "loc": { "start": { "line": 127, @@ -5523,8 +5523,8 @@ }, { "type": "ObjectProperty", - "start": 2490, - "end": 2505, + "start": 2483, + "end": 2498, "loc": { "start": { "line": 128, @@ -5540,8 +5540,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2490, - "end": 2491, + "start": 2483, + "end": 2484, "loc": { "start": { "line": 128, @@ -5557,8 +5557,8 @@ }, "value": { "type": "StringLiteral", - "start": 2493, - "end": 2505, + "start": 2486, + "end": 2498, "loc": { "start": { "line": 128, @@ -5578,8 +5578,8 @@ }, { "type": "ObjectProperty", - "start": 2508, - "end": 2525, + "start": 2501, + "end": 2518, "loc": { "start": { "line": 129, @@ -5595,8 +5595,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2508, - "end": 2509, + "start": 2501, + "end": 2502, "loc": { "start": { "line": 129, @@ -5612,8 +5612,8 @@ }, "value": { "type": "StringLiteral", - "start": 2511, - "end": 2525, + "start": 2504, + "end": 2518, "loc": { "start": { "line": 129, @@ -5633,8 +5633,8 @@ }, { "type": "ObjectProperty", - "start": 2528, - "end": 2543, + "start": 2521, + "end": 2536, "loc": { "start": { "line": 130, @@ -5650,8 +5650,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2528, - "end": 2529, + "start": 2521, + "end": 2522, "loc": { "start": { "line": 130, @@ -5667,8 +5667,8 @@ }, "value": { "type": "StringLiteral", - "start": 2531, - "end": 2543, + "start": 2524, + "end": 2536, "loc": { "start": { "line": 130, @@ -5688,8 +5688,8 @@ }, { "type": "ObjectProperty", - "start": 2546, - "end": 2563, + "start": 2539, + "end": 2556, "loc": { "start": { "line": 131, @@ -5705,8 +5705,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2546, - "end": 2547, + "start": 2539, + "end": 2540, "loc": { "start": { "line": 131, @@ -5722,8 +5722,8 @@ }, "value": { "type": "StringLiteral", - "start": 2549, - "end": 2563, + "start": 2542, + "end": 2556, "loc": { "start": { "line": 131, @@ -5743,8 +5743,8 @@ }, { "type": "ObjectProperty", - "start": 2566, - "end": 2576, + "start": 2559, + "end": 2569, "loc": { "start": { "line": 132, @@ -5760,8 +5760,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2566, - "end": 2567, + "start": 2559, + "end": 2560, "loc": { "start": { "line": 132, @@ -5777,8 +5777,8 @@ }, "value": { "type": "StringLiteral", - "start": 2569, - "end": 2576, + "start": 2562, + "end": 2569, "loc": { "start": { "line": 132, @@ -5798,8 +5798,8 @@ }, { "type": "ObjectProperty", - "start": 2579, - "end": 2594, + "start": 2572, + "end": 2587, "loc": { "start": { "line": 133, @@ -5815,8 +5815,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2579, - "end": 2580, + "start": 2572, + "end": 2573, "loc": { "start": { "line": 133, @@ -5832,8 +5832,8 @@ }, "value": { "type": "StringLiteral", - "start": 2582, - "end": 2594, + "start": 2575, + "end": 2587, "loc": { "start": { "line": 133, @@ -5853,8 +5853,8 @@ }, { "type": "ObjectProperty", - "start": 2597, - "end": 2609, + "start": 2590, + "end": 2602, "loc": { "start": { "line": 134, @@ -5870,8 +5870,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2597, - "end": 2598, + "start": 2590, + "end": 2591, "loc": { "start": { "line": 134, @@ -5887,8 +5887,8 @@ }, "value": { "type": "StringLiteral", - "start": 2600, - "end": 2609, + "start": 2593, + "end": 2602, "loc": { "start": { "line": 134, @@ -5908,8 +5908,8 @@ }, { "type": "ObjectProperty", - "start": 2612, - "end": 2624, + "start": 2605, + "end": 2617, "loc": { "start": { "line": 135, @@ -5925,8 +5925,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2612, - "end": 2613, + "start": 2605, + "end": 2606, "loc": { "start": { "line": 135, @@ -5942,8 +5942,8 @@ }, "value": { "type": "StringLiteral", - "start": 2615, - "end": 2624, + "start": 2608, + "end": 2617, "loc": { "start": { "line": 135, @@ -5963,8 +5963,8 @@ }, { "type": "ObjectProperty", - "start": 2627, - "end": 2640, + "start": 2620, + "end": 2633, "loc": { "start": { "line": 136, @@ -5980,8 +5980,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2627, - "end": 2628, + "start": 2620, + "end": 2621, "loc": { "start": { "line": 136, @@ -5997,8 +5997,8 @@ }, "value": { "type": "StringLiteral", - "start": 2630, - "end": 2640, + "start": 2623, + "end": 2633, "loc": { "start": { "line": 136, @@ -6018,8 +6018,8 @@ }, { "type": "ObjectProperty", - "start": 2643, - "end": 2656, + "start": 2636, + "end": 2649, "loc": { "start": { "line": 137, @@ -6035,8 +6035,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2643, - "end": 2644, + "start": 2636, + "end": 2637, "loc": { "start": { "line": 137, @@ -6052,8 +6052,8 @@ }, "value": { "type": "StringLiteral", - "start": 2646, - "end": 2656, + "start": 2639, + "end": 2649, "loc": { "start": { "line": 137, @@ -6073,8 +6073,8 @@ }, { "type": "ObjectProperty", - "start": 2659, - "end": 2673, + "start": 2652, + "end": 2666, "loc": { "start": { "line": 138, @@ -6090,8 +6090,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2659, - "end": 2660, + "start": 2652, + "end": 2653, "loc": { "start": { "line": 138, @@ -6107,8 +6107,8 @@ }, "value": { "type": "StringLiteral", - "start": 2662, - "end": 2673, + "start": 2655, + "end": 2666, "loc": { "start": { "line": 138, @@ -6128,8 +6128,8 @@ }, { "type": "ObjectProperty", - "start": 2676, - "end": 2691, + "start": 2669, + "end": 2684, "loc": { "start": { "line": 139, @@ -6145,8 +6145,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2676, - "end": 2677, + "start": 2669, + "end": 2670, "loc": { "start": { "line": 139, @@ -6162,8 +6162,8 @@ }, "value": { "type": "StringLiteral", - "start": 2679, - "end": 2691, + "start": 2672, + "end": 2684, "loc": { "start": { "line": 139, @@ -6183,8 +6183,8 @@ }, { "type": "ObjectProperty", - "start": 2694, - "end": 2709, + "start": 2687, + "end": 2702, "loc": { "start": { "line": 140, @@ -6200,8 +6200,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2694, - "end": 2695, + "start": 2687, + "end": 2688, "loc": { "start": { "line": 140, @@ -6217,8 +6217,8 @@ }, "value": { "type": "StringLiteral", - "start": 2697, - "end": 2709, + "start": 2690, + "end": 2702, "loc": { "start": { "line": 140, @@ -6238,8 +6238,8 @@ }, { "type": "ObjectProperty", - "start": 2712, - "end": 2728, + "start": 2705, + "end": 2721, "loc": { "start": { "line": 141, @@ -6255,8 +6255,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2712, - "end": 2713, + "start": 2705, + "end": 2706, "loc": { "start": { "line": 141, @@ -6272,8 +6272,8 @@ }, "value": { "type": "StringLiteral", - "start": 2715, - "end": 2728, + "start": 2708, + "end": 2721, "loc": { "start": { "line": 141, @@ -6323,8 +6323,8 @@ { "type": "CommentBlock", "value": "*\n * 2D array containing the entire map tile layout. Top left is (0,0), furthest right is (n, 0) and furthest bottom is (0, n).\n * Shortcuts:\n * E = Empty\n * O = Oxygen\n * N = Nitrogen\n * C = Carbon\n ", - "start": 1947, - "end": 2151, + "start": 1940, + "end": 2144, "loc": { "start": { "line": 108, @@ -14318,9 +14318,9 @@ "binop": null, "updateContext": null }, - "value": "StrongholdNeutral.png", + "value": "stronghold.png", "start": 1895, - "end": 1918, + "end": 1911, "loc": { "start": { "line": 103, @@ -14328,7 +14328,7 @@ }, "end": { "line": 103, - "column": 34 + "column": 27 } } }, @@ -14345,16 +14345,16 @@ "binop": null, "updateContext": null }, - "start": 1918, - "end": 1919, + "start": 1911, + "end": 1912, "loc": { "start": { "line": 103, - "column": 34 + "column": 27 }, "end": { "line": 103, - "column": 35 + "column": 28 } } }, @@ -14371,8 +14371,8 @@ "binop": null }, "value": "type", - "start": 1922, - "end": 1926, + "start": 1915, + "end": 1919, "loc": { "start": { "line": 104, @@ -14397,8 +14397,8 @@ "binop": null, "updateContext": null }, - "start": 1926, - "end": 1927, + "start": 1919, + "end": 1920, "loc": { "start": { "line": 104, @@ -14424,8 +14424,8 @@ "updateContext": null }, "value": "stronghold", - "start": 1928, - "end": 1940, + "start": 1921, + "end": 1933, "loc": { "start": { "line": 104, @@ -14449,8 +14449,8 @@ "postfix": false, "binop": null }, - "start": 1942, - "end": 1943, + "start": 1935, + "end": 1936, "loc": { "start": { "line": 105, @@ -14474,8 +14474,8 @@ "postfix": false, "binop": null }, - "start": 1944, - "end": 1945, + "start": 1937, + "end": 1938, "loc": { "start": { "line": 106, @@ -14490,8 +14490,8 @@ { "type": "CommentBlock", "value": "*\n * 2D array containing the entire map tile layout. Top left is (0,0), furthest right is (n, 0) and furthest bottom is (0, n).\n * Shortcuts:\n * E = Empty\n * O = Oxygen\n * N = Nitrogen\n * C = Carbon\n ", - "start": 1947, - "end": 2151, + "start": 1940, + "end": 2144, "loc": { "start": { "line": 108, @@ -14518,8 +14518,8 @@ "updateContext": null }, "value": "export", - "start": 2152, - "end": 2158, + "start": 2145, + "end": 2151, "loc": { "start": { "line": 116, @@ -14546,8 +14546,8 @@ "updateContext": null }, "value": "const", - "start": 2159, - "end": 2164, + "start": 2152, + "end": 2157, "loc": { "start": { "line": 116, @@ -14572,8 +14572,8 @@ "binop": null }, "value": "MAP_LAYOUT", - "start": 2165, - "end": 2175, + "start": 2158, + "end": 2168, "loc": { "start": { "line": 116, @@ -14599,8 +14599,8 @@ "updateContext": null }, "value": "=", - "start": 2176, - "end": 2177, + "start": 2169, + "end": 2170, "loc": { "start": { "line": 116, @@ -14625,8 +14625,8 @@ "binop": null, "updateContext": null }, - "start": 2178, - "end": 2179, + "start": 2171, + "end": 2172, "loc": { "start": { "line": 116, @@ -14651,8 +14651,8 @@ "binop": null, "updateContext": null }, - "start": 2181, - "end": 2182, + "start": 2174, + "end": 2175, "loc": { "start": { "line": 117, @@ -14678,8 +14678,8 @@ "updateContext": null }, "value": "H", - "start": 2182, - "end": 2185, + "start": 2175, + "end": 2178, "loc": { "start": { "line": 117, @@ -14704,8 +14704,8 @@ "binop": null, "updateContext": null }, - "start": 2185, - "end": 2186, + "start": 2178, + "end": 2179, "loc": { "start": { "line": 117, @@ -14731,8 +14731,8 @@ "updateContext": null }, "value": "E", - "start": 2187, - "end": 2190, + "start": 2180, + "end": 2183, "loc": { "start": { "line": 117, @@ -14757,8 +14757,8 @@ "binop": null, "updateContext": null }, - "start": 2190, - "end": 2191, + "start": 2183, + "end": 2184, "loc": { "start": { "line": 117, @@ -14784,8 +14784,8 @@ "updateContext": null }, "value": "E", - "start": 2192, - "end": 2195, + "start": 2185, + "end": 2188, "loc": { "start": { "line": 117, @@ -14810,8 +14810,8 @@ "binop": null, "updateContext": null }, - "start": 2195, - "end": 2196, + "start": 2188, + "end": 2189, "loc": { "start": { "line": 117, @@ -14837,8 +14837,8 @@ "updateContext": null }, "value": "E", - "start": 2197, - "end": 2200, + "start": 2190, + "end": 2193, "loc": { "start": { "line": 117, @@ -14863,8 +14863,8 @@ "binop": null, "updateContext": null }, - "start": 2200, - "end": 2201, + "start": 2193, + "end": 2194, "loc": { "start": { "line": 117, @@ -14890,8 +14890,8 @@ "updateContext": null }, "value": "E", - "start": 2202, - "end": 2205, + "start": 2195, + "end": 2198, "loc": { "start": { "line": 117, @@ -14916,8 +14916,8 @@ "binop": null, "updateContext": null }, - "start": 2205, - "end": 2206, + "start": 2198, + "end": 2199, "loc": { "start": { "line": 117, @@ -14943,8 +14943,8 @@ "updateContext": null }, "value": "E", - "start": 2207, - "end": 2210, + "start": 2200, + "end": 2203, "loc": { "start": { "line": 117, @@ -14969,8 +14969,8 @@ "binop": null, "updateContext": null }, - "start": 2210, - "end": 2211, + "start": 2203, + "end": 2204, "loc": { "start": { "line": 117, @@ -14996,8 +14996,8 @@ "updateContext": null }, "value": "H", - "start": 2212, - "end": 2215, + "start": 2205, + "end": 2208, "loc": { "start": { "line": 117, @@ -15022,8 +15022,8 @@ "binop": null, "updateContext": null }, - "start": 2215, - "end": 2216, + "start": 2208, + "end": 2209, "loc": { "start": { "line": 117, @@ -15048,8 +15048,8 @@ "binop": null, "updateContext": null }, - "start": 2216, - "end": 2217, + "start": 2209, + "end": 2210, "loc": { "start": { "line": 117, @@ -15074,8 +15074,8 @@ "binop": null, "updateContext": null }, - "start": 2219, - "end": 2220, + "start": 2212, + "end": 2213, "loc": { "start": { "line": 118, @@ -15101,8 +15101,8 @@ "updateContext": null }, "value": "E", - "start": 2220, - "end": 2223, + "start": 2213, + "end": 2216, "loc": { "start": { "line": 118, @@ -15127,8 +15127,8 @@ "binop": null, "updateContext": null }, - "start": 2223, - "end": 2224, + "start": 2216, + "end": 2217, "loc": { "start": { "line": 118, @@ -15154,8 +15154,8 @@ "updateContext": null }, "value": "O", - "start": 2225, - "end": 2228, + "start": 2218, + "end": 2221, "loc": { "start": { "line": 118, @@ -15180,8 +15180,8 @@ "binop": null, "updateContext": null }, - "start": 2228, - "end": 2229, + "start": 2221, + "end": 2222, "loc": { "start": { "line": 118, @@ -15207,8 +15207,8 @@ "updateContext": null }, "value": "E", - "start": 2230, - "end": 2233, + "start": 2223, + "end": 2226, "loc": { "start": { "line": 118, @@ -15233,8 +15233,8 @@ "binop": null, "updateContext": null }, - "start": 2233, - "end": 2234, + "start": 2226, + "end": 2227, "loc": { "start": { "line": 118, @@ -15260,8 +15260,8 @@ "updateContext": null }, "value": "S", - "start": 2235, - "end": 2238, + "start": 2228, + "end": 2231, "loc": { "start": { "line": 118, @@ -15286,8 +15286,8 @@ "binop": null, "updateContext": null }, - "start": 2238, - "end": 2239, + "start": 2231, + "end": 2232, "loc": { "start": { "line": 118, @@ -15313,8 +15313,8 @@ "updateContext": null }, "value": "E", - "start": 2240, - "end": 2243, + "start": 2233, + "end": 2236, "loc": { "start": { "line": 118, @@ -15339,8 +15339,8 @@ "binop": null, "updateContext": null }, - "start": 2243, - "end": 2244, + "start": 2236, + "end": 2237, "loc": { "start": { "line": 118, @@ -15366,8 +15366,8 @@ "updateContext": null }, "value": "O", - "start": 2245, - "end": 2248, + "start": 2238, + "end": 2241, "loc": { "start": { "line": 118, @@ -15392,8 +15392,8 @@ "binop": null, "updateContext": null }, - "start": 2248, - "end": 2249, + "start": 2241, + "end": 2242, "loc": { "start": { "line": 118, @@ -15419,8 +15419,8 @@ "updateContext": null }, "value": "E", - "start": 2250, - "end": 2253, + "start": 2243, + "end": 2246, "loc": { "start": { "line": 118, @@ -15445,8 +15445,8 @@ "binop": null, "updateContext": null }, - "start": 2253, - "end": 2254, + "start": 2246, + "end": 2247, "loc": { "start": { "line": 118, @@ -15471,8 +15471,8 @@ "binop": null, "updateContext": null }, - "start": 2254, - "end": 2255, + "start": 2247, + "end": 2248, "loc": { "start": { "line": 118, @@ -15497,8 +15497,8 @@ "binop": null, "updateContext": null }, - "start": 2257, - "end": 2258, + "start": 2250, + "end": 2251, "loc": { "start": { "line": 119, @@ -15524,8 +15524,8 @@ "updateContext": null }, "value": "E", - "start": 2258, - "end": 2261, + "start": 2251, + "end": 2254, "loc": { "start": { "line": 119, @@ -15550,8 +15550,8 @@ "binop": null, "updateContext": null }, - "start": 2261, - "end": 2262, + "start": 2254, + "end": 2255, "loc": { "start": { "line": 119, @@ -15577,8 +15577,8 @@ "updateContext": null }, "value": "E", - "start": 2263, - "end": 2266, + "start": 2256, + "end": 2259, "loc": { "start": { "line": 119, @@ -15603,8 +15603,8 @@ "binop": null, "updateContext": null }, - "start": 2266, - "end": 2267, + "start": 2259, + "end": 2260, "loc": { "start": { "line": 119, @@ -15630,8 +15630,8 @@ "updateContext": null }, "value": "F", - "start": 2268, - "end": 2271, + "start": 2261, + "end": 2264, "loc": { "start": { "line": 119, @@ -15656,8 +15656,8 @@ "binop": null, "updateContext": null }, - "start": 2271, - "end": 2272, + "start": 2264, + "end": 2265, "loc": { "start": { "line": 119, @@ -15683,8 +15683,8 @@ "updateContext": null }, "value": "N", - "start": 2273, - "end": 2276, + "start": 2266, + "end": 2269, "loc": { "start": { "line": 119, @@ -15709,8 +15709,8 @@ "binop": null, "updateContext": null }, - "start": 2276, - "end": 2277, + "start": 2269, + "end": 2270, "loc": { "start": { "line": 119, @@ -15736,8 +15736,8 @@ "updateContext": null }, "value": "F", - "start": 2278, - "end": 2281, + "start": 2271, + "end": 2274, "loc": { "start": { "line": 119, @@ -15762,8 +15762,8 @@ "binop": null, "updateContext": null }, - "start": 2281, - "end": 2282, + "start": 2274, + "end": 2275, "loc": { "start": { "line": 119, @@ -15789,8 +15789,8 @@ "updateContext": null }, "value": "E", - "start": 2283, - "end": 2286, + "start": 2276, + "end": 2279, "loc": { "start": { "line": 119, @@ -15815,8 +15815,8 @@ "binop": null, "updateContext": null }, - "start": 2286, - "end": 2287, + "start": 2279, + "end": 2280, "loc": { "start": { "line": 119, @@ -15842,8 +15842,8 @@ "updateContext": null }, "value": "E", - "start": 2288, - "end": 2291, + "start": 2281, + "end": 2284, "loc": { "start": { "line": 119, @@ -15868,8 +15868,8 @@ "binop": null, "updateContext": null }, - "start": 2291, - "end": 2292, + "start": 2284, + "end": 2285, "loc": { "start": { "line": 119, @@ -15894,8 +15894,8 @@ "binop": null, "updateContext": null }, - "start": 2292, - "end": 2293, + "start": 2285, + "end": 2286, "loc": { "start": { "line": 119, @@ -15920,8 +15920,8 @@ "binop": null, "updateContext": null }, - "start": 2295, - "end": 2296, + "start": 2288, + "end": 2289, "loc": { "start": { "line": 120, @@ -15947,8 +15947,8 @@ "updateContext": null }, "value": "E", - "start": 2296, - "end": 2299, + "start": 2289, + "end": 2292, "loc": { "start": { "line": 120, @@ -15973,8 +15973,8 @@ "binop": null, "updateContext": null }, - "start": 2299, - "end": 2300, + "start": 2292, + "end": 2293, "loc": { "start": { "line": 120, @@ -16000,8 +16000,8 @@ "updateContext": null }, "value": "S", - "start": 2301, - "end": 2304, + "start": 2294, + "end": 2297, "loc": { "start": { "line": 120, @@ -16026,8 +16026,8 @@ "binop": null, "updateContext": null }, - "start": 2304, - "end": 2305, + "start": 2297, + "end": 2298, "loc": { "start": { "line": 120, @@ -16053,8 +16053,8 @@ "updateContext": null }, "value": "F", - "start": 2306, - "end": 2309, + "start": 2299, + "end": 2302, "loc": { "start": { "line": 120, @@ -16079,8 +16079,8 @@ "binop": null, "updateContext": null }, - "start": 2309, - "end": 2310, + "start": 2302, + "end": 2303, "loc": { "start": { "line": 120, @@ -16106,8 +16106,8 @@ "updateContext": null }, "value": "C", - "start": 2311, - "end": 2314, + "start": 2304, + "end": 2307, "loc": { "start": { "line": 120, @@ -16132,8 +16132,8 @@ "binop": null, "updateContext": null }, - "start": 2314, - "end": 2315, + "start": 2307, + "end": 2308, "loc": { "start": { "line": 120, @@ -16159,8 +16159,8 @@ "updateContext": null }, "value": "F", - "start": 2316, - "end": 2319, + "start": 2309, + "end": 2312, "loc": { "start": { "line": 120, @@ -16185,8 +16185,8 @@ "binop": null, "updateContext": null }, - "start": 2319, - "end": 2320, + "start": 2312, + "end": 2313, "loc": { "start": { "line": 120, @@ -16212,8 +16212,8 @@ "updateContext": null }, "value": "S", - "start": 2321, - "end": 2324, + "start": 2314, + "end": 2317, "loc": { "start": { "line": 120, @@ -16238,8 +16238,8 @@ "binop": null, "updateContext": null }, - "start": 2324, - "end": 2325, + "start": 2317, + "end": 2318, "loc": { "start": { "line": 120, @@ -16265,8 +16265,8 @@ "updateContext": null }, "value": "E", - "start": 2326, - "end": 2329, + "start": 2319, + "end": 2322, "loc": { "start": { "line": 120, @@ -16291,8 +16291,8 @@ "binop": null, "updateContext": null }, - "start": 2329, - "end": 2330, + "start": 2322, + "end": 2323, "loc": { "start": { "line": 120, @@ -16317,8 +16317,8 @@ "binop": null, "updateContext": null }, - "start": 2330, - "end": 2331, + "start": 2323, + "end": 2324, "loc": { "start": { "line": 120, @@ -16343,8 +16343,8 @@ "binop": null, "updateContext": null }, - "start": 2333, - "end": 2334, + "start": 2326, + "end": 2327, "loc": { "start": { "line": 121, @@ -16370,8 +16370,8 @@ "updateContext": null }, "value": "E", - "start": 2334, - "end": 2337, + "start": 2327, + "end": 2330, "loc": { "start": { "line": 121, @@ -16396,8 +16396,8 @@ "binop": null, "updateContext": null }, - "start": 2337, - "end": 2338, + "start": 2330, + "end": 2331, "loc": { "start": { "line": 121, @@ -16423,8 +16423,8 @@ "updateContext": null }, "value": "E", - "start": 2339, - "end": 2342, + "start": 2332, + "end": 2335, "loc": { "start": { "line": 121, @@ -16449,8 +16449,8 @@ "binop": null, "updateContext": null }, - "start": 2342, - "end": 2343, + "start": 2335, + "end": 2336, "loc": { "start": { "line": 121, @@ -16476,8 +16476,8 @@ "updateContext": null }, "value": "F", - "start": 2344, - "end": 2347, + "start": 2337, + "end": 2340, "loc": { "start": { "line": 121, @@ -16502,8 +16502,8 @@ "binop": null, "updateContext": null }, - "start": 2347, - "end": 2348, + "start": 2340, + "end": 2341, "loc": { "start": { "line": 121, @@ -16529,8 +16529,8 @@ "updateContext": null }, "value": "N", - "start": 2349, - "end": 2352, + "start": 2342, + "end": 2345, "loc": { "start": { "line": 121, @@ -16555,8 +16555,8 @@ "binop": null, "updateContext": null }, - "start": 2352, - "end": 2353, + "start": 2345, + "end": 2346, "loc": { "start": { "line": 121, @@ -16582,8 +16582,8 @@ "updateContext": null }, "value": "F", - "start": 2354, - "end": 2357, + "start": 2347, + "end": 2350, "loc": { "start": { "line": 121, @@ -16608,8 +16608,8 @@ "binop": null, "updateContext": null }, - "start": 2357, - "end": 2358, + "start": 2350, + "end": 2351, "loc": { "start": { "line": 121, @@ -16635,8 +16635,8 @@ "updateContext": null }, "value": "E", - "start": 2359, - "end": 2362, + "start": 2352, + "end": 2355, "loc": { "start": { "line": 121, @@ -16661,8 +16661,8 @@ "binop": null, "updateContext": null }, - "start": 2362, - "end": 2363, + "start": 2355, + "end": 2356, "loc": { "start": { "line": 121, @@ -16688,8 +16688,8 @@ "updateContext": null }, "value": "E", - "start": 2364, - "end": 2367, + "start": 2357, + "end": 2360, "loc": { "start": { "line": 121, @@ -16714,8 +16714,8 @@ "binop": null, "updateContext": null }, - "start": 2367, - "end": 2368, + "start": 2360, + "end": 2361, "loc": { "start": { "line": 121, @@ -16740,8 +16740,8 @@ "binop": null, "updateContext": null }, - "start": 2368, - "end": 2369, + "start": 2361, + "end": 2362, "loc": { "start": { "line": 121, @@ -16766,8 +16766,8 @@ "binop": null, "updateContext": null }, - "start": 2371, - "end": 2372, + "start": 2364, + "end": 2365, "loc": { "start": { "line": 122, @@ -16793,8 +16793,8 @@ "updateContext": null }, "value": "E", - "start": 2372, - "end": 2375, + "start": 2365, + "end": 2368, "loc": { "start": { "line": 122, @@ -16819,8 +16819,8 @@ "binop": null, "updateContext": null }, - "start": 2375, - "end": 2376, + "start": 2368, + "end": 2369, "loc": { "start": { "line": 122, @@ -16846,8 +16846,8 @@ "updateContext": null }, "value": "O", - "start": 2377, - "end": 2380, + "start": 2370, + "end": 2373, "loc": { "start": { "line": 122, @@ -16872,8 +16872,8 @@ "binop": null, "updateContext": null }, - "start": 2380, - "end": 2381, + "start": 2373, + "end": 2374, "loc": { "start": { "line": 122, @@ -16899,8 +16899,8 @@ "updateContext": null }, "value": "E", - "start": 2382, - "end": 2385, + "start": 2375, + "end": 2378, "loc": { "start": { "line": 122, @@ -16925,8 +16925,8 @@ "binop": null, "updateContext": null }, - "start": 2385, - "end": 2386, + "start": 2378, + "end": 2379, "loc": { "start": { "line": 122, @@ -16952,8 +16952,8 @@ "updateContext": null }, "value": "S", - "start": 2387, - "end": 2390, + "start": 2380, + "end": 2383, "loc": { "start": { "line": 122, @@ -16978,8 +16978,8 @@ "binop": null, "updateContext": null }, - "start": 2390, - "end": 2391, + "start": 2383, + "end": 2384, "loc": { "start": { "line": 122, @@ -17005,8 +17005,8 @@ "updateContext": null }, "value": "E", - "start": 2392, - "end": 2395, + "start": 2385, + "end": 2388, "loc": { "start": { "line": 122, @@ -17031,8 +17031,8 @@ "binop": null, "updateContext": null }, - "start": 2395, - "end": 2396, + "start": 2388, + "end": 2389, "loc": { "start": { "line": 122, @@ -17058,8 +17058,8 @@ "updateContext": null }, "value": "O", - "start": 2397, - "end": 2400, + "start": 2390, + "end": 2393, "loc": { "start": { "line": 122, @@ -17084,8 +17084,8 @@ "binop": null, "updateContext": null }, - "start": 2400, - "end": 2401, + "start": 2393, + "end": 2394, "loc": { "start": { "line": 122, @@ -17111,8 +17111,8 @@ "updateContext": null }, "value": "E", - "start": 2402, - "end": 2405, + "start": 2395, + "end": 2398, "loc": { "start": { "line": 122, @@ -17137,8 +17137,8 @@ "binop": null, "updateContext": null }, - "start": 2405, - "end": 2406, + "start": 2398, + "end": 2399, "loc": { "start": { "line": 122, @@ -17163,8 +17163,8 @@ "binop": null, "updateContext": null }, - "start": 2406, - "end": 2407, + "start": 2399, + "end": 2400, "loc": { "start": { "line": 122, @@ -17189,8 +17189,8 @@ "binop": null, "updateContext": null }, - "start": 2409, - "end": 2410, + "start": 2402, + "end": 2403, "loc": { "start": { "line": 123, @@ -17216,8 +17216,8 @@ "updateContext": null }, "value": "H", - "start": 2410, - "end": 2413, + "start": 2403, + "end": 2406, "loc": { "start": { "line": 123, @@ -17242,8 +17242,8 @@ "binop": null, "updateContext": null }, - "start": 2413, - "end": 2414, + "start": 2406, + "end": 2407, "loc": { "start": { "line": 123, @@ -17269,8 +17269,8 @@ "updateContext": null }, "value": "E", - "start": 2415, - "end": 2418, + "start": 2408, + "end": 2411, "loc": { "start": { "line": 123, @@ -17295,8 +17295,8 @@ "binop": null, "updateContext": null }, - "start": 2418, - "end": 2419, + "start": 2411, + "end": 2412, "loc": { "start": { "line": 123, @@ -17322,8 +17322,8 @@ "updateContext": null }, "value": "E", - "start": 2420, - "end": 2423, + "start": 2413, + "end": 2416, "loc": { "start": { "line": 123, @@ -17348,8 +17348,8 @@ "binop": null, "updateContext": null }, - "start": 2423, - "end": 2424, + "start": 2416, + "end": 2417, "loc": { "start": { "line": 123, @@ -17375,8 +17375,8 @@ "updateContext": null }, "value": "E", - "start": 2425, - "end": 2428, + "start": 2418, + "end": 2421, "loc": { "start": { "line": 123, @@ -17401,8 +17401,8 @@ "binop": null, "updateContext": null }, - "start": 2428, - "end": 2429, + "start": 2421, + "end": 2422, "loc": { "start": { "line": 123, @@ -17428,8 +17428,8 @@ "updateContext": null }, "value": "E", - "start": 2430, - "end": 2433, + "start": 2423, + "end": 2426, "loc": { "start": { "line": 123, @@ -17454,8 +17454,8 @@ "binop": null, "updateContext": null }, - "start": 2433, - "end": 2434, + "start": 2426, + "end": 2427, "loc": { "start": { "line": 123, @@ -17481,8 +17481,8 @@ "updateContext": null }, "value": "E", - "start": 2435, - "end": 2438, + "start": 2428, + "end": 2431, "loc": { "start": { "line": 123, @@ -17507,8 +17507,8 @@ "binop": null, "updateContext": null }, - "start": 2438, - "end": 2439, + "start": 2431, + "end": 2432, "loc": { "start": { "line": 123, @@ -17534,8 +17534,8 @@ "updateContext": null }, "value": "H", - "start": 2440, - "end": 2443, + "start": 2433, + "end": 2436, "loc": { "start": { "line": 123, @@ -17560,8 +17560,8 @@ "binop": null, "updateContext": null }, - "start": 2443, - "end": 2444, + "start": 2436, + "end": 2437, "loc": { "start": { "line": 123, @@ -17586,8 +17586,8 @@ "binop": null, "updateContext": null }, - "start": 2445, - "end": 2446, + "start": 2438, + "end": 2439, "loc": { "start": { "line": 124, @@ -17614,8 +17614,8 @@ "updateContext": null }, "value": "export", - "start": 2448, - "end": 2454, + "start": 2441, + "end": 2447, "loc": { "start": { "line": 126, @@ -17642,8 +17642,8 @@ "updateContext": null }, "value": "const", - "start": 2455, - "end": 2460, + "start": 2448, + "end": 2453, "loc": { "start": { "line": 126, @@ -17668,8 +17668,8 @@ "binop": null }, "value": "TILE_NAMES", - "start": 2461, - "end": 2471, + "start": 2454, + "end": 2464, "loc": { "start": { "line": 126, @@ -17695,8 +17695,8 @@ "updateContext": null }, "value": "=", - "start": 2472, - "end": 2473, + "start": 2465, + "end": 2466, "loc": { "start": { "line": 126, @@ -17720,8 +17720,8 @@ "postfix": false, "binop": null }, - "start": 2474, - "end": 2475, + "start": 2467, + "end": 2468, "loc": { "start": { "line": 126, @@ -17746,8 +17746,8 @@ "binop": null }, "value": "E", - "start": 2477, - "end": 2478, + "start": 2470, + "end": 2471, "loc": { "start": { "line": 127, @@ -17772,8 +17772,8 @@ "binop": null, "updateContext": null }, - "start": 2478, - "end": 2479, + "start": 2471, + "end": 2472, "loc": { "start": { "line": 127, @@ -17799,8 +17799,8 @@ "updateContext": null }, "value": "empty", - "start": 2480, - "end": 2487, + "start": 2473, + "end": 2480, "loc": { "start": { "line": 127, @@ -17825,8 +17825,8 @@ "binop": null, "updateContext": null }, - "start": 2487, - "end": 2488, + "start": 2480, + "end": 2481, "loc": { "start": { "line": 127, @@ -17851,8 +17851,8 @@ "binop": null }, "value": "O", - "start": 2490, - "end": 2491, + "start": 2483, + "end": 2484, "loc": { "start": { "line": 128, @@ -17877,8 +17877,8 @@ "binop": null, "updateContext": null }, - "start": 2491, - "end": 2492, + "start": 2484, + "end": 2485, "loc": { "start": { "line": 128, @@ -17904,8 +17904,8 @@ "updateContext": null }, "value": "oxygenVent", - "start": 2493, - "end": 2505, + "start": 2486, + "end": 2498, "loc": { "start": { "line": 128, @@ -17930,8 +17930,8 @@ "binop": null, "updateContext": null }, - "start": 2505, - "end": 2506, + "start": 2498, + "end": 2499, "loc": { "start": { "line": 128, @@ -17956,8 +17956,8 @@ "binop": null }, "value": "N", - "start": 2508, - "end": 2509, + "start": 2501, + "end": 2502, "loc": { "start": { "line": 129, @@ -17982,8 +17982,8 @@ "binop": null, "updateContext": null }, - "start": 2509, - "end": 2510, + "start": 2502, + "end": 2503, "loc": { "start": { "line": 129, @@ -18009,8 +18009,8 @@ "updateContext": null }, "value": "nitrogenVent", - "start": 2511, - "end": 2525, + "start": 2504, + "end": 2518, "loc": { "start": { "line": 129, @@ -18035,8 +18035,8 @@ "binop": null, "updateContext": null }, - "start": 2525, - "end": 2526, + "start": 2518, + "end": 2519, "loc": { "start": { "line": 129, @@ -18061,8 +18061,8 @@ "binop": null }, "value": "C", - "start": 2528, - "end": 2529, + "start": 2521, + "end": 2522, "loc": { "start": { "line": 130, @@ -18087,8 +18087,8 @@ "binop": null, "updateContext": null }, - "start": 2529, - "end": 2530, + "start": 2522, + "end": 2523, "loc": { "start": { "line": 130, @@ -18114,8 +18114,8 @@ "updateContext": null }, "value": "carbonVent", - "start": 2531, - "end": 2543, + "start": 2524, + "end": 2536, "loc": { "start": { "line": 130, @@ -18140,8 +18140,8 @@ "binop": null, "updateContext": null }, - "start": 2543, - "end": 2544, + "start": 2536, + "end": 2537, "loc": { "start": { "line": 130, @@ -18166,8 +18166,8 @@ "binop": null }, "value": "H", - "start": 2546, - "end": 2547, + "start": 2539, + "end": 2540, "loc": { "start": { "line": 131, @@ -18192,8 +18192,8 @@ "binop": null, "updateContext": null }, - "start": 2547, - "end": 2548, + "start": 2540, + "end": 2541, "loc": { "start": { "line": 131, @@ -18219,8 +18219,8 @@ "updateContext": null }, "value": "hydrogenVent", - "start": 2549, - "end": 2563, + "start": 2542, + "end": 2556, "loc": { "start": { "line": 131, @@ -18245,8 +18245,8 @@ "binop": null, "updateContext": null }, - "start": 2563, - "end": 2564, + "start": 2556, + "end": 2557, "loc": { "start": { "line": 131, @@ -18271,8 +18271,8 @@ "binop": null }, "value": "F", - "start": 2566, - "end": 2567, + "start": 2559, + "end": 2560, "loc": { "start": { "line": 132, @@ -18297,8 +18297,8 @@ "binop": null, "updateContext": null }, - "start": 2567, - "end": 2568, + "start": 2560, + "end": 2561, "loc": { "start": { "line": 132, @@ -18324,8 +18324,8 @@ "updateContext": null }, "value": "flame", - "start": 2569, - "end": 2576, + "start": 2562, + "end": 2569, "loc": { "start": { "line": 132, @@ -18350,8 +18350,8 @@ "binop": null, "updateContext": null }, - "start": 2576, - "end": 2577, + "start": 2569, + "end": 2570, "loc": { "start": { "line": 132, @@ -18376,8 +18376,8 @@ "binop": null }, "value": "S", - "start": 2579, - "end": 2580, + "start": 2572, + "end": 2573, "loc": { "start": { "line": 133, @@ -18402,8 +18402,8 @@ "binop": null, "updateContext": null }, - "start": 2580, - "end": 2581, + "start": 2573, + "end": 2574, "loc": { "start": { "line": 133, @@ -18429,8 +18429,8 @@ "updateContext": null }, "value": "stronghold", - "start": 2582, - "end": 2594, + "start": 2575, + "end": 2587, "loc": { "start": { "line": 133, @@ -18455,8 +18455,8 @@ "binop": null, "updateContext": null }, - "start": 2594, - "end": 2595, + "start": 2587, + "end": 2588, "loc": { "start": { "line": 133, @@ -18481,8 +18481,8 @@ "binop": null }, "value": "q", - "start": 2597, - "end": 2598, + "start": 2590, + "end": 2591, "loc": { "start": { "line": 134, @@ -18507,8 +18507,8 @@ "binop": null, "updateContext": null }, - "start": 2598, - "end": 2599, + "start": 2591, + "end": 2592, "loc": { "start": { "line": 134, @@ -18534,8 +18534,8 @@ "updateContext": null }, "value": "topLeft", - "start": 2600, - "end": 2609, + "start": 2593, + "end": 2602, "loc": { "start": { "line": 134, @@ -18560,8 +18560,8 @@ "binop": null, "updateContext": null }, - "start": 2609, - "end": 2610, + "start": 2602, + "end": 2603, "loc": { "start": { "line": 134, @@ -18586,8 +18586,8 @@ "binop": null }, "value": "w", - "start": 2612, - "end": 2613, + "start": 2605, + "end": 2606, "loc": { "start": { "line": 135, @@ -18612,8 +18612,8 @@ "binop": null, "updateContext": null }, - "start": 2613, - "end": 2614, + "start": 2606, + "end": 2607, "loc": { "start": { "line": 135, @@ -18639,8 +18639,8 @@ "updateContext": null }, "value": "edgeTop", - "start": 2615, - "end": 2624, + "start": 2608, + "end": 2617, "loc": { "start": { "line": 135, @@ -18665,8 +18665,8 @@ "binop": null, "updateContext": null }, - "start": 2624, - "end": 2625, + "start": 2617, + "end": 2618, "loc": { "start": { "line": 135, @@ -18691,8 +18691,8 @@ "binop": null }, "value": "e", - "start": 2627, - "end": 2628, + "start": 2620, + "end": 2621, "loc": { "start": { "line": 136, @@ -18717,8 +18717,8 @@ "binop": null, "updateContext": null }, - "start": 2628, - "end": 2629, + "start": 2621, + "end": 2622, "loc": { "start": { "line": 136, @@ -18744,8 +18744,8 @@ "updateContext": null }, "value": "topRight", - "start": 2630, - "end": 2640, + "start": 2623, + "end": 2633, "loc": { "start": { "line": 136, @@ -18770,8 +18770,8 @@ "binop": null, "updateContext": null }, - "start": 2640, - "end": 2641, + "start": 2633, + "end": 2634, "loc": { "start": { "line": 136, @@ -18796,8 +18796,8 @@ "binop": null }, "value": "a", - "start": 2643, - "end": 2644, + "start": 2636, + "end": 2637, "loc": { "start": { "line": 137, @@ -18822,8 +18822,8 @@ "binop": null, "updateContext": null }, - "start": 2644, - "end": 2645, + "start": 2637, + "end": 2638, "loc": { "start": { "line": 137, @@ -18849,8 +18849,8 @@ "updateContext": null }, "value": "edgeLeft", - "start": 2646, - "end": 2656, + "start": 2639, + "end": 2649, "loc": { "start": { "line": 137, @@ -18875,8 +18875,8 @@ "binop": null, "updateContext": null }, - "start": 2656, - "end": 2657, + "start": 2649, + "end": 2650, "loc": { "start": { "line": 137, @@ -18901,8 +18901,8 @@ "binop": null }, "value": "d", - "start": 2659, - "end": 2660, + "start": 2652, + "end": 2653, "loc": { "start": { "line": 138, @@ -18927,8 +18927,8 @@ "binop": null, "updateContext": null }, - "start": 2660, - "end": 2661, + "start": 2653, + "end": 2654, "loc": { "start": { "line": 138, @@ -18954,8 +18954,8 @@ "updateContext": null }, "value": "edgeRight", - "start": 2662, - "end": 2673, + "start": 2655, + "end": 2666, "loc": { "start": { "line": 138, @@ -18980,8 +18980,8 @@ "binop": null, "updateContext": null }, - "start": 2673, - "end": 2674, + "start": 2666, + "end": 2667, "loc": { "start": { "line": 138, @@ -19006,8 +19006,8 @@ "binop": null }, "value": "z", - "start": 2676, - "end": 2677, + "start": 2669, + "end": 2670, "loc": { "start": { "line": 139, @@ -19032,8 +19032,8 @@ "binop": null, "updateContext": null }, - "start": 2677, - "end": 2678, + "start": 2670, + "end": 2671, "loc": { "start": { "line": 139, @@ -19059,8 +19059,8 @@ "updateContext": null }, "value": "bottomLeft", - "start": 2679, - "end": 2691, + "start": 2672, + "end": 2684, "loc": { "start": { "line": 139, @@ -19085,8 +19085,8 @@ "binop": null, "updateContext": null }, - "start": 2691, - "end": 2692, + "start": 2684, + "end": 2685, "loc": { "start": { "line": 139, @@ -19111,8 +19111,8 @@ "binop": null }, "value": "x", - "start": 2694, - "end": 2695, + "start": 2687, + "end": 2688, "loc": { "start": { "line": 140, @@ -19137,8 +19137,8 @@ "binop": null, "updateContext": null }, - "start": 2695, - "end": 2696, + "start": 2688, + "end": 2689, "loc": { "start": { "line": 140, @@ -19164,8 +19164,8 @@ "updateContext": null }, "value": "edgeBottom", - "start": 2697, - "end": 2709, + "start": 2690, + "end": 2702, "loc": { "start": { "line": 140, @@ -19190,8 +19190,8 @@ "binop": null, "updateContext": null }, - "start": 2709, - "end": 2710, + "start": 2702, + "end": 2703, "loc": { "start": { "line": 140, @@ -19216,8 +19216,8 @@ "binop": null }, "value": "c", - "start": 2712, - "end": 2713, + "start": 2705, + "end": 2706, "loc": { "start": { "line": 141, @@ -19242,8 +19242,8 @@ "binop": null, "updateContext": null }, - "start": 2713, - "end": 2714, + "start": 2706, + "end": 2707, "loc": { "start": { "line": 141, @@ -19269,8 +19269,8 @@ "updateContext": null }, "value": "bottomRight", - "start": 2715, - "end": 2728, + "start": 2708, + "end": 2721, "loc": { "start": { "line": 141, @@ -19294,8 +19294,8 @@ "postfix": false, "binop": null }, - "start": 2729, - "end": 2730, + "start": 2722, + "end": 2723, "loc": { "start": { "line": 142, @@ -19320,8 +19320,8 @@ "binop": null, "updateContext": null }, - "start": 2731, - "end": 2731, + "start": 2724, + "end": 2724, "loc": { "start": { "line": 143, diff --git a/docs/ast/source/client/js/pixigame.js.json b/docs/ast/source/client/js/pixigame.js.json index 28dd1e5..93590d3 100644 --- a/docs/ast/source/client/js/pixigame.js.json +++ b/docs/ast/source/client/js/pixigame.js.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 11973, + "end": 11999, "loc": { "start": { "line": 1, @@ -15,7 +15,7 @@ "program": { "type": "Program", "start": 0, - "end": 11973, + "end": 11999, "loc": { "start": { "line": 1, @@ -6477,7 +6477,7 @@ { "type": "FunctionDeclaration", "start": 3177, - "end": 5612, + "end": 5638, "loc": { "start": { "line": 87, @@ -6513,7 +6513,7 @@ "body": { "type": "BlockStatement", "start": 3207, - "end": 5612, + "end": 5638, "loc": { "start": { "line": 87, @@ -11717,7 +11717,7 @@ { "type": "ForStatement", "start": 5064, - "end": 5595, + "end": 5621, "loc": { "start": { "line": 162, @@ -11921,7 +11921,7 @@ "body": { "type": "BlockStatement", "start": 5114, - "end": 5595, + "end": 5621, "loc": { "start": { "line": 162, @@ -11936,7 +11936,7 @@ { "type": "ForStatement", "start": 5118, - "end": 5592, + "end": 5618, "loc": { "start": { "line": 163, @@ -12173,7 +12173,7 @@ "body": { "type": "BlockStatement", "start": 5171, - "end": 5592, + "end": 5618, "loc": { "start": { "line": 163, @@ -12188,7 +12188,7 @@ { "type": "VariableDeclaration", "start": 5176, - "end": 5216, + "end": 5242, "loc": { "start": { "line": 164, @@ -12196,14 +12196,14 @@ }, "end": { "line": 164, - "column": 43 + "column": 69 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5180, - "end": 5216, + "end": 5242, "loc": { "start": { "line": 164, @@ -12211,7 +12211,7 @@ }, "end": { "line": 164, - "column": 43 + "column": 69 } }, "id": { @@ -12234,7 +12234,7 @@ "init": { "type": "BinaryExpression", "start": 5191, - "end": 5216, + "end": 5242, "loc": { "start": { "line": 164, @@ -12242,7 +12242,7 @@ }, "end": { "line": 164, - "column": 43 + "column": 69 } }, "left": { @@ -12336,21 +12336,127 @@ }, "operator": "+", "right": { - "type": "Identifier", - "start": 5213, - "end": 5216, + "type": "BinaryExpression", + "start": 5214, + "end": 5241, "loc": { "start": { "line": 164, - "column": 40 + "column": 41 }, "end": { "line": 164, - "column": 43 + "column": 68 + } + }, + "left": { + "type": "BinaryExpression", + "start": 5214, + "end": 5237, + "loc": { + "start": { + "line": 164, + "column": 41 + }, + "end": { + "line": 164, + "column": 64 + } + }, + "left": { + "type": "MemberExpression", + "start": 5214, + "end": 5231, + "loc": { + "start": { + "line": 164, + "column": 41 + }, + "end": { + "line": 164, + "column": 58 + } + }, + "object": { + "type": "Identifier", + "start": 5214, + "end": 5224, + "loc": { + "start": { + "line": 164, + "column": 41 + }, + "end": { + "line": 164, + "column": 51 + }, + "identifierName": "MAP_LAYOUT" + }, + "name": "MAP_LAYOUT" + }, + "property": { + "type": "Identifier", + "start": 5225, + "end": 5231, + "loc": { + "start": { + "line": 164, + "column": 52 + }, + "end": { + "line": 164, + "column": 58 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "Identifier", + "start": 5234, + "end": 5237, + "loc": { + "start": { + "line": 164, + "column": 61 + }, + "end": { + "line": 164, + "column": 64 + }, + "identifierName": "row" + }, + "name": "row" + } + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 5240, + "end": 5241, + "loc": { + "start": { + "line": 164, + "column": 67 + }, + "end": { + "line": 164, + "column": 68 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" }, - "identifierName": "row" + "value": 1 }, - "name": "row" + "extra": { + "parenthesized": true, + "parenStart": 5213 + } } } } @@ -12359,8 +12465,8 @@ }, { "type": "IfStatement", - "start": 5220, - "end": 5588, + "start": 5246, + "end": 5614, "loc": { "start": { "line": 165, @@ -12373,8 +12479,8 @@ }, "test": { "type": "LogicalExpression", - "start": 5224, - "end": 5297, + "start": 5250, + "end": 5323, "loc": { "start": { "line": 165, @@ -12387,8 +12493,8 @@ }, "left": { "type": "BinaryExpression", - "start": 5224, - "end": 5261, + "start": 5250, + "end": 5287, "loc": { "start": { "line": 165, @@ -12401,8 +12507,8 @@ }, "left": { "type": "MemberExpression", - "start": 5224, - "end": 5247, + "start": 5250, + "end": 5273, "loc": { "start": { "line": 165, @@ -12415,8 +12521,8 @@ }, "object": { "type": "MemberExpression", - "start": 5224, - "end": 5237, + "start": 5250, + "end": 5263, "loc": { "start": { "line": 165, @@ -12429,8 +12535,8 @@ }, "object": { "type": "Identifier", - "start": 5224, - "end": 5231, + "start": 5250, + "end": 5257, "loc": { "start": { "line": 165, @@ -12446,8 +12552,8 @@ }, "property": { "type": "Identifier", - "start": 5232, - "end": 5237, + "start": 5258, + "end": 5263, "loc": { "start": { "line": 165, @@ -12465,8 +12571,8 @@ }, "property": { "type": "Identifier", - "start": 5238, - "end": 5246, + "start": 5264, + "end": 5272, "loc": { "start": { "line": 165, @@ -12485,8 +12591,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 5252, - "end": 5261, + "start": 5278, + "end": 5287, "loc": { "start": { "line": 165, @@ -12504,8 +12610,8 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 5265, - "end": 5297, + "start": 5291, + "end": 5323, "loc": { "start": { "line": 165, @@ -12518,8 +12624,8 @@ }, "left": { "type": "MemberExpression", - "start": 5265, - "end": 5288, + "start": 5291, + "end": 5314, "loc": { "start": { "line": 165, @@ -12532,8 +12638,8 @@ }, "object": { "type": "MemberExpression", - "start": 5265, - "end": 5278, + "start": 5291, + "end": 5304, "loc": { "start": { "line": 165, @@ -12546,8 +12652,8 @@ }, "object": { "type": "Identifier", - "start": 5265, - "end": 5272, + "start": 5291, + "end": 5298, "loc": { "start": { "line": 165, @@ -12563,8 +12669,8 @@ }, "property": { "type": "Identifier", - "start": 5273, - "end": 5278, + "start": 5299, + "end": 5304, "loc": { "start": { "line": 165, @@ -12582,8 +12688,8 @@ }, "property": { "type": "Identifier", - "start": 5279, - "end": 5287, + "start": 5305, + "end": 5313, "loc": { "start": { "line": 165, @@ -12602,8 +12708,8 @@ "operator": "===", "right": { "type": "NullLiteral", - "start": 5293, - "end": 5297, + "start": 5319, + "end": 5323, "loc": { "start": { "line": 165, @@ -12619,8 +12725,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5299, - "end": 5588, + "start": 5325, + "end": 5614, "loc": { "start": { "line": 165, @@ -12634,8 +12740,8 @@ "body": [ { "type": "IfStatement", - "start": 5305, - "end": 5583, + "start": 5331, + "end": 5609, "loc": { "start": { "line": 166, @@ -12648,8 +12754,8 @@ }, "test": { "type": "BinaryExpression", - "start": 5309, - "end": 5355, + "start": 5335, + "end": 5381, "loc": { "start": { "line": 166, @@ -12662,8 +12768,8 @@ }, "left": { "type": "MemberExpression", - "start": 5309, - "end": 5341, + "start": 5335, + "end": 5367, "loc": { "start": { "line": 166, @@ -12676,8 +12782,8 @@ }, "object": { "type": "Identifier", - "start": 5309, - "end": 5319, + "start": 5335, + "end": 5345, "loc": { "start": { "line": 166, @@ -12693,8 +12799,8 @@ }, "property": { "type": "MemberExpression", - "start": 5320, - "end": 5340, + "start": 5346, + "end": 5366, "loc": { "start": { "line": 166, @@ -12707,8 +12813,8 @@ }, "object": { "type": "MemberExpression", - "start": 5320, - "end": 5335, + "start": 5346, + "end": 5361, "loc": { "start": { "line": 166, @@ -12721,8 +12827,8 @@ }, "object": { "type": "Identifier", - "start": 5320, - "end": 5330, + "start": 5346, + "end": 5356, "loc": { "start": { "line": 166, @@ -12738,8 +12844,8 @@ }, "property": { "type": "Identifier", - "start": 5331, - "end": 5334, + "start": 5357, + "end": 5360, "loc": { "start": { "line": 166, @@ -12757,8 +12863,8 @@ }, "property": { "type": "Identifier", - "start": 5336, - "end": 5339, + "start": 5362, + "end": 5365, "loc": { "start": { "line": 166, @@ -12779,8 +12885,8 @@ "operator": "!==", "right": { "type": "Identifier", - "start": 5346, - "end": 5355, + "start": 5372, + "end": 5381, "loc": { "start": { "line": 166, @@ -12797,8 +12903,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5357, - "end": 5475, + "start": 5383, + "end": 5501, "loc": { "start": { "line": 166, @@ -12812,8 +12918,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5364, - "end": 5469, + "start": 5390, + "end": 5495, "loc": { "start": { "line": 167, @@ -12826,8 +12932,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5364, - "end": 5469, + "start": 5390, + "end": 5495, "loc": { "start": { "line": 167, @@ -12841,8 +12947,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5364, - "end": 5387, + "start": 5390, + "end": 5413, "loc": { "start": { "line": 167, @@ -12855,8 +12961,8 @@ }, "object": { "type": "MemberExpression", - "start": 5364, - "end": 5377, + "start": 5390, + "end": 5403, "loc": { "start": { "line": 167, @@ -12869,8 +12975,8 @@ }, "object": { "type": "Identifier", - "start": 5364, - "end": 5371, + "start": 5390, + "end": 5397, "loc": { "start": { "line": 167, @@ -12886,8 +12992,8 @@ }, "property": { "type": "Identifier", - "start": 5372, - "end": 5377, + "start": 5398, + "end": 5403, "loc": { "start": { "line": 167, @@ -12905,8 +13011,8 @@ }, "property": { "type": "Identifier", - "start": 5378, - "end": 5386, + "start": 5404, + "end": 5412, "loc": { "start": { "line": 167, @@ -12924,8 +13030,8 @@ }, "right": { "type": "NewExpression", - "start": 5390, - "end": 5469, + "start": 5416, + "end": 5495, "loc": { "start": { "line": 167, @@ -12938,8 +13044,8 @@ }, "callee": { "type": "Identifier", - "start": 5394, - "end": 5401, + "start": 5420, + "end": 5427, "loc": { "start": { "line": 167, @@ -12956,8 +13062,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 5402, - "end": 5434, + "start": 5428, + "end": 5460, "loc": { "start": { "line": 167, @@ -12970,8 +13076,8 @@ }, "object": { "type": "Identifier", - "start": 5402, - "end": 5412, + "start": 5428, + "end": 5438, "loc": { "start": { "line": 167, @@ -12987,8 +13093,8 @@ }, "property": { "type": "MemberExpression", - "start": 5413, - "end": 5433, + "start": 5439, + "end": 5459, "loc": { "start": { "line": 167, @@ -13001,8 +13107,8 @@ }, "object": { "type": "MemberExpression", - "start": 5413, - "end": 5428, + "start": 5439, + "end": 5454, "loc": { "start": { "line": 167, @@ -13015,8 +13121,8 @@ }, "object": { "type": "Identifier", - "start": 5413, - "end": 5423, + "start": 5439, + "end": 5449, "loc": { "start": { "line": 167, @@ -13032,8 +13138,8 @@ }, "property": { "type": "Identifier", - "start": 5424, - "end": 5427, + "start": 5450, + "end": 5453, "loc": { "start": { "line": 167, @@ -13051,8 +13157,8 @@ }, "property": { "type": "Identifier", - "start": 5429, - "end": 5432, + "start": 5455, + "end": 5458, "loc": { "start": { "line": 167, @@ -13072,8 +13178,8 @@ }, { "type": "Identifier", - "start": 5436, - "end": 5439, + "start": 5462, + "end": 5465, "loc": { "start": { "line": 167, @@ -13089,8 +13195,8 @@ }, { "type": "BinaryExpression", - "start": 5441, - "end": 5468, + "start": 5467, + "end": 5494, "loc": { "start": { "line": 167, @@ -13103,8 +13209,8 @@ }, "left": { "type": "BinaryExpression", - "start": 5441, - "end": 5464, + "start": 5467, + "end": 5490, "loc": { "start": { "line": 167, @@ -13117,8 +13223,8 @@ }, "left": { "type": "MemberExpression", - "start": 5441, - "end": 5458, + "start": 5467, + "end": 5484, "loc": { "start": { "line": 167, @@ -13131,8 +13237,8 @@ }, "object": { "type": "Identifier", - "start": 5441, - "end": 5451, + "start": 5467, + "end": 5477, "loc": { "start": { "line": 167, @@ -13148,8 +13254,8 @@ }, "property": { "type": "Identifier", - "start": 5452, - "end": 5458, + "start": 5478, + "end": 5484, "loc": { "start": { "line": 167, @@ -13168,8 +13274,8 @@ "operator": "-", "right": { "type": "Identifier", - "start": 5461, - "end": 5464, + "start": 5487, + "end": 5490, "loc": { "start": { "line": 167, @@ -13187,8 +13293,8 @@ "operator": "-", "right": { "type": "NumericLiteral", - "start": 5467, - "end": 5468, + "start": 5493, + "end": 5494, "loc": { "start": { "line": 167, @@ -13215,8 +13321,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 5485, - "end": 5583, + "start": 5511, + "end": 5609, "loc": { "start": { "line": 169, @@ -13230,8 +13336,8 @@ "body": [ { "type": "ThrowStatement", - "start": 5492, - "end": 5577, + "start": 5518, + "end": 5603, "loc": { "start": { "line": 170, @@ -13244,8 +13350,8 @@ }, "argument": { "type": "NewExpression", - "start": 5498, - "end": 5577, + "start": 5524, + "end": 5603, "loc": { "start": { "line": 170, @@ -13258,8 +13364,8 @@ }, "callee": { "type": "Identifier", - "start": 5502, - "end": 5507, + "start": 5528, + "end": 5533, "loc": { "start": { "line": 170, @@ -13276,8 +13382,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 5508, - "end": 5576, + "start": 5534, + "end": 5602, "loc": { "start": { "line": 170, @@ -13290,8 +13396,8 @@ }, "left": { "type": "BinaryExpression", - "start": 5508, - "end": 5538, + "start": 5534, + "end": 5564, "loc": { "start": { "line": 170, @@ -13304,8 +13410,8 @@ }, "left": { "type": "StringLiteral", - "start": 5508, - "end": 5515, + "start": 5534, + "end": 5541, "loc": { "start": { "line": 170, @@ -13325,8 +13431,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 5518, - "end": 5538, + "start": 5544, + "end": 5564, "loc": { "start": { "line": 170, @@ -13339,8 +13445,8 @@ }, "object": { "type": "MemberExpression", - "start": 5518, - "end": 5533, + "start": 5544, + "end": 5559, "loc": { "start": { "line": 170, @@ -13353,8 +13459,8 @@ }, "object": { "type": "Identifier", - "start": 5518, - "end": 5528, + "start": 5544, + "end": 5554, "loc": { "start": { "line": 170, @@ -13370,8 +13476,8 @@ }, "property": { "type": "Identifier", - "start": 5529, - "end": 5532, + "start": 5555, + "end": 5558, "loc": { "start": { "line": 170, @@ -13389,8 +13495,8 @@ }, "property": { "type": "Identifier", - "start": 5534, - "end": 5537, + "start": 5560, + "end": 5563, "loc": { "start": { "line": 170, @@ -13410,8 +13516,8 @@ "operator": "+", "right": { "type": "StringLiteral", - "start": 5541, - "end": 5576, + "start": 5567, + "end": 5602, "loc": { "start": { "line": 170, @@ -13469,8 +13575,8 @@ }, { "type": "ExpressionStatement", - "start": 5598, - "end": 5610, + "start": 5624, + "end": 5636, "loc": { "start": { "line": 176, @@ -13483,8 +13589,8 @@ }, "expression": { "type": "CallExpression", - "start": 5598, - "end": 5610, + "start": 5624, + "end": 5636, "loc": { "start": { "line": 176, @@ -13497,8 +13603,8 @@ }, "callee": { "type": "Identifier", - "start": 5598, - "end": 5608, + "start": 5624, + "end": 5634, "loc": { "start": { "line": 176, @@ -13541,8 +13647,8 @@ { "type": "CommentBlock", "value": "*\n * Called once per frame. Updates all moving sprites on the stage.\n * Also checks key inputs.\n * @param {number} delta Time value from Pixi\n ", - "start": 5614, - "end": 5761, + "start": 5640, + "end": 5787, "loc": { "start": { "line": 179, @@ -13558,8 +13664,8 @@ }, { "type": "FunctionDeclaration", - "start": 5762, - "end": 8073, + "start": 5788, + "end": 8099, "loc": { "start": { "line": 184, @@ -13572,8 +13678,8 @@ }, "id": { "type": "Identifier", - "start": 5771, - "end": 5775, + "start": 5797, + "end": 5801, "loc": { "start": { "line": 184, @@ -13594,8 +13700,8 @@ "params": [ { "type": "Identifier", - "start": 5777, - "end": 5782, + "start": 5803, + "end": 5808, "loc": { "start": { "line": 184, @@ -13612,8 +13718,8 @@ ], "body": { "type": "BlockStatement", - "start": 5784, - "end": 8073, + "start": 5810, + "end": 8099, "loc": { "start": { "line": 184, @@ -13627,8 +13733,8 @@ "body": [ { "type": "IfStatement", - "start": 5823, - "end": 7845, + "start": 5849, + "end": 7871, "loc": { "start": { "line": 186, @@ -13641,8 +13747,8 @@ }, "test": { "type": "BinaryExpression", - "start": 5827, - "end": 5847, + "start": 5853, + "end": 5873, "loc": { "start": { "line": 186, @@ -13655,8 +13761,8 @@ }, "left": { "type": "Identifier", - "start": 5827, - "end": 5833, + "start": 5853, + "end": 5859, "loc": { "start": { "line": 186, @@ -13674,8 +13780,8 @@ "operator": "!==", "right": { "type": "Identifier", - "start": 5838, - "end": 5847, + "start": 5864, + "end": 5873, "loc": { "start": { "line": 186, @@ -13693,8 +13799,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5849, - "end": 7845, + "start": 5875, + "end": 7871, "loc": { "start": { "line": 186, @@ -13708,8 +13814,8 @@ "body": [ { "type": "IfStatement", - "start": 5911, - "end": 6954, + "start": 5937, + "end": 6980, "loc": { "start": { "line": 188, @@ -13722,8 +13828,8 @@ }, "test": { "type": "LogicalExpression", - "start": 5915, - "end": 5936, + "start": 5941, + "end": 5962, "loc": { "start": { "line": 188, @@ -13736,8 +13842,8 @@ }, "left": { "type": "CallExpression", - "start": 5915, - "end": 5926, + "start": 5941, + "end": 5952, "loc": { "start": { "line": 188, @@ -13750,8 +13856,8 @@ }, "callee": { "type": "Identifier", - "start": 5915, - "end": 5924, + "start": 5941, + "end": 5950, "loc": { "start": { "line": 188, @@ -13772,8 +13878,8 @@ "operator": "&&", "right": { "type": "Identifier", - "start": 5930, - "end": 5936, + "start": 5956, + "end": 5962, "loc": { "start": { "line": 188, @@ -13791,8 +13897,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5938, - "end": 6740, + "start": 5964, + "end": 6766, "loc": { "start": { "line": 188, @@ -13806,8 +13912,8 @@ "body": [ { "type": "IfStatement", - "start": 5974, - "end": 6133, + "start": 6000, + "end": 6159, "loc": { "start": { "line": 191, @@ -13820,8 +13926,8 @@ }, "test": { "type": "LogicalExpression", - "start": 5978, - "end": 6090, + "start": 6004, + "end": 6116, "loc": { "start": { "line": 191, @@ -13834,8 +13940,8 @@ }, "left": { "type": "LogicalExpression", - "start": 5979, - "end": 6037, + "start": 6005, + "end": 6063, "loc": { "start": { "line": 191, @@ -13848,8 +13954,8 @@ }, "left": { "type": "MemberExpression", - "start": 5979, - "end": 5997, + "start": 6005, + "end": 6023, "loc": { "start": { "line": 191, @@ -13862,8 +13968,8 @@ }, "object": { "type": "MemberExpression", - "start": 5979, - "end": 5990, + "start": 6005, + "end": 6016, "loc": { "start": { "line": 191, @@ -13876,8 +13982,8 @@ }, "object": { "type": "Identifier", - "start": 5979, - "end": 5987, + "start": 6005, + "end": 6013, "loc": { "start": { "line": 191, @@ -13894,8 +14000,8 @@ }, "property": { "type": "NumericLiteral", - "start": 5988, - "end": 5989, + "start": 6014, + "end": 6015, "loc": { "start": { "line": 191, @@ -13917,8 +14023,8 @@ }, "property": { "type": "Identifier", - "start": 5991, - "end": 5997, + "start": 6017, + "end": 6023, "loc": { "start": { "line": 191, @@ -13938,8 +14044,8 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 6001, - "end": 6037, + "start": 6027, + "end": 6063, "loc": { "start": { "line": 191, @@ -13952,8 +14058,8 @@ }, "left": { "type": "MemberExpression", - "start": 6001, - "end": 6028, + "start": 6027, + "end": 6054, "loc": { "start": { "line": 191, @@ -13966,8 +14072,8 @@ }, "object": { "type": "MemberExpression", - "start": 6001, - "end": 6019, + "start": 6027, + "end": 6045, "loc": { "start": { "line": 191, @@ -13980,8 +14086,8 @@ }, "object": { "type": "Identifier", - "start": 6001, - "end": 6009, + "start": 6027, + "end": 6035, "loc": { "start": { "line": 191, @@ -13997,8 +14103,8 @@ }, "property": { "type": "Identifier", - "start": 6010, - "end": 6019, + "start": 6036, + "end": 6045, "loc": { "start": { "line": 191, @@ -14016,8 +14122,8 @@ }, "property": { "type": "Identifier", - "start": 6020, - "end": 6028, + "start": 6046, + "end": 6054, "loc": { "start": { "line": 191, @@ -14036,8 +14142,8 @@ "operator": "===", "right": { "type": "BooleanLiteral", - "start": 6033, - "end": 6037, + "start": 6059, + "end": 6063, "loc": { "start": { "line": 191, @@ -14054,14 +14160,14 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 5978 + "parenStart": 6004 } }, "operator": "&&", "right": { "type": "BinaryExpression", - "start": 6042, - "end": 6090, + "start": 6068, + "end": 6116, "loc": { "start": { "line": 191, @@ -14074,8 +14180,8 @@ }, "left": { "type": "MemberExpression", - "start": 6042, - "end": 6051, + "start": 6068, + "end": 6077, "loc": { "start": { "line": 191, @@ -14088,8 +14194,8 @@ }, "object": { "type": "Identifier", - "start": 6042, - "end": 6048, + "start": 6068, + "end": 6074, "loc": { "start": { "line": 191, @@ -14105,8 +14211,8 @@ }, "property": { "type": "Identifier", - "start": 6049, - "end": 6051, + "start": 6075, + "end": 6077, "loc": { "start": { "line": 191, @@ -14125,8 +14231,8 @@ "operator": ">", "right": { "type": "BinaryExpression", - "start": 6054, - "end": 6090, + "start": 6080, + "end": 6116, "loc": { "start": { "line": 191, @@ -14139,8 +14245,8 @@ }, "left": { "type": "UnaryExpression", - "start": 6054, - "end": 6071, + "start": 6080, + "end": 6097, "loc": { "start": { "line": 191, @@ -14155,8 +14261,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 6055, - "end": 6071, + "start": 6081, + "end": 6097, "loc": { "start": { "line": 191, @@ -14169,8 +14275,8 @@ }, "object": { "type": "Identifier", - "start": 6055, - "end": 6061, + "start": 6081, + "end": 6087, "loc": { "start": { "line": 191, @@ -14186,8 +14292,8 @@ }, "property": { "type": "Identifier", - "start": 6062, - "end": 6071, + "start": 6088, + "end": 6097, "loc": { "start": { "line": 191, @@ -14210,8 +14316,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 6074, - "end": 6090, + "start": 6100, + "end": 6116, "loc": { "start": { "line": 191, @@ -14224,8 +14330,8 @@ }, "object": { "type": "Identifier", - "start": 6074, - "end": 6080, + "start": 6100, + "end": 6106, "loc": { "start": { "line": 191, @@ -14241,8 +14347,8 @@ }, "property": { "type": "Identifier", - "start": 6081, - "end": 6090, + "start": 6107, + "end": 6116, "loc": { "start": { "line": 191, @@ -14264,8 +14370,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6092, - "end": 6133, + "start": 6118, + "end": 6159, "loc": { "start": { "line": 191, @@ -14279,8 +14385,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6106, - "end": 6128, + "start": 6132, + "end": 6154, "loc": { "start": { "line": 192, @@ -14293,8 +14399,8 @@ }, "expression": { "type": "CallExpression", - "start": 6106, - "end": 6128, + "start": 6132, + "end": 6154, "loc": { "start": { "line": 192, @@ -14307,8 +14413,8 @@ }, "callee": { "type": "Identifier", - "start": 6106, - "end": 6120, + "start": 6132, + "end": 6146, "loc": { "start": { "line": 192, @@ -14326,8 +14432,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 6121, - "end": 6127, + "start": 6147, + "end": 6153, "loc": { "start": { "line": 192, @@ -14351,8 +14457,8 @@ { "type": "CommentLine", "value": " Left", - "start": 6094, - "end": 6101, + "start": 6120, + "end": 6127, "loc": { "start": { "line": 191, @@ -14374,8 +14480,8 @@ { "type": "CommentLine", "value": " Keyboard based controls", - "start": 5943, - "end": 5969, + "start": 5969, + "end": 5995, "loc": { "start": { "line": 189, @@ -14391,8 +14497,8 @@ }, { "type": "IfStatement", - "start": 6137, - "end": 6298, + "start": 6163, + "end": 6324, "loc": { "start": { "line": 194, @@ -14405,8 +14511,8 @@ }, "test": { "type": "LogicalExpression", - "start": 6141, - "end": 6253, + "start": 6167, + "end": 6279, "loc": { "start": { "line": 194, @@ -14419,8 +14525,8 @@ }, "left": { "type": "LogicalExpression", - "start": 6142, - "end": 6201, + "start": 6168, + "end": 6227, "loc": { "start": { "line": 194, @@ -14433,8 +14539,8 @@ }, "left": { "type": "MemberExpression", - "start": 6142, - "end": 6160, + "start": 6168, + "end": 6186, "loc": { "start": { "line": 194, @@ -14447,8 +14553,8 @@ }, "object": { "type": "MemberExpression", - "start": 6142, - "end": 6153, + "start": 6168, + "end": 6179, "loc": { "start": { "line": 194, @@ -14461,8 +14567,8 @@ }, "object": { "type": "Identifier", - "start": 6142, - "end": 6150, + "start": 6168, + "end": 6176, "loc": { "start": { "line": 194, @@ -14478,8 +14584,8 @@ }, "property": { "type": "NumericLiteral", - "start": 6151, - "end": 6152, + "start": 6177, + "end": 6178, "loc": { "start": { "line": 194, @@ -14500,8 +14606,8 @@ }, "property": { "type": "Identifier", - "start": 6154, - "end": 6160, + "start": 6180, + "end": 6186, "loc": { "start": { "line": 194, @@ -14520,8 +14626,8 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 6164, - "end": 6201, + "start": 6190, + "end": 6227, "loc": { "start": { "line": 194, @@ -14534,8 +14640,8 @@ }, "left": { "type": "MemberExpression", - "start": 6164, - "end": 6192, + "start": 6190, + "end": 6218, "loc": { "start": { "line": 194, @@ -14548,8 +14654,8 @@ }, "object": { "type": "MemberExpression", - "start": 6164, - "end": 6182, + "start": 6190, + "end": 6208, "loc": { "start": { "line": 194, @@ -14562,8 +14668,8 @@ }, "object": { "type": "Identifier", - "start": 6164, - "end": 6172, + "start": 6190, + "end": 6198, "loc": { "start": { "line": 194, @@ -14579,8 +14685,8 @@ }, "property": { "type": "Identifier", - "start": 6173, - "end": 6182, + "start": 6199, + "end": 6208, "loc": { "start": { "line": 194, @@ -14598,8 +14704,8 @@ }, "property": { "type": "Identifier", - "start": 6183, - "end": 6192, + "start": 6209, + "end": 6218, "loc": { "start": { "line": 194, @@ -14618,8 +14724,8 @@ "operator": "===", "right": { "type": "BooleanLiteral", - "start": 6197, - "end": 6201, + "start": 6223, + "end": 6227, "loc": { "start": { "line": 194, @@ -14635,14 +14741,14 @@ }, "extra": { "parenthesized": true, - "parenStart": 6141 + "parenStart": 6167 } }, "operator": "&&", "right": { "type": "BinaryExpression", - "start": 6206, - "end": 6253, + "start": 6232, + "end": 6279, "loc": { "start": { "line": 194, @@ -14655,8 +14761,8 @@ }, "left": { "type": "MemberExpression", - "start": 6206, - "end": 6215, + "start": 6232, + "end": 6241, "loc": { "start": { "line": 194, @@ -14669,8 +14775,8 @@ }, "object": { "type": "Identifier", - "start": 6206, - "end": 6212, + "start": 6232, + "end": 6238, "loc": { "start": { "line": 194, @@ -14686,8 +14792,8 @@ }, "property": { "type": "Identifier", - "start": 6213, - "end": 6215, + "start": 6239, + "end": 6241, "loc": { "start": { "line": 194, @@ -14706,8 +14812,8 @@ "operator": "<", "right": { "type": "BinaryExpression", - "start": 6218, - "end": 6253, + "start": 6244, + "end": 6279, "loc": { "start": { "line": 194, @@ -14720,8 +14826,8 @@ }, "left": { "type": "MemberExpression", - "start": 6218, - "end": 6234, + "start": 6244, + "end": 6260, "loc": { "start": { "line": 194, @@ -14734,8 +14840,8 @@ }, "object": { "type": "Identifier", - "start": 6218, - "end": 6224, + "start": 6244, + "end": 6250, "loc": { "start": { "line": 194, @@ -14751,8 +14857,8 @@ }, "property": { "type": "Identifier", - "start": 6225, - "end": 6234, + "start": 6251, + "end": 6260, "loc": { "start": { "line": 194, @@ -14771,8 +14877,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 6237, - "end": 6253, + "start": 6263, + "end": 6279, "loc": { "start": { "line": 194, @@ -14785,8 +14891,8 @@ }, "object": { "type": "Identifier", - "start": 6237, - "end": 6243, + "start": 6263, + "end": 6269, "loc": { "start": { "line": 194, @@ -14802,8 +14908,8 @@ }, "property": { "type": "Identifier", - "start": 6244, - "end": 6253, + "start": 6270, + "end": 6279, "loc": { "start": { "line": 194, @@ -14824,8 +14930,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6255, - "end": 6298, + "start": 6281, + "end": 6324, "loc": { "start": { "line": 194, @@ -14839,8 +14945,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6270, - "end": 6293, + "start": 6296, + "end": 6319, "loc": { "start": { "line": 195, @@ -14853,8 +14959,8 @@ }, "expression": { "type": "CallExpression", - "start": 6270, - "end": 6293, + "start": 6296, + "end": 6319, "loc": { "start": { "line": 195, @@ -14867,8 +14973,8 @@ }, "callee": { "type": "Identifier", - "start": 6270, - "end": 6284, + "start": 6296, + "end": 6310, "loc": { "start": { "line": 195, @@ -14886,8 +14992,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 6285, - "end": 6292, + "start": 6311, + "end": 6318, "loc": { "start": { "line": 195, @@ -14911,8 +15017,8 @@ { "type": "CommentLine", "value": " Right", - "start": 6257, - "end": 6265, + "start": 6283, + "end": 6291, "loc": { "start": { "line": 194, @@ -14933,8 +15039,8 @@ }, { "type": "IfStatement", - "start": 6302, - "end": 6454, + "start": 6328, + "end": 6480, "loc": { "start": { "line": 197, @@ -14947,8 +15053,8 @@ }, "test": { "type": "LogicalExpression", - "start": 6306, - "end": 6415, + "start": 6332, + "end": 6441, "loc": { "start": { "line": 197, @@ -14961,8 +15067,8 @@ }, "left": { "type": "LogicalExpression", - "start": 6307, - "end": 6363, + "start": 6333, + "end": 6389, "loc": { "start": { "line": 197, @@ -14975,8 +15081,8 @@ }, "left": { "type": "MemberExpression", - "start": 6307, - "end": 6325, + "start": 6333, + "end": 6351, "loc": { "start": { "line": 197, @@ -14989,8 +15095,8 @@ }, "object": { "type": "MemberExpression", - "start": 6307, - "end": 6318, + "start": 6333, + "end": 6344, "loc": { "start": { "line": 197, @@ -15003,8 +15109,8 @@ }, "object": { "type": "Identifier", - "start": 6307, - "end": 6315, + "start": 6333, + "end": 6341, "loc": { "start": { "line": 197, @@ -15020,8 +15126,8 @@ }, "property": { "type": "NumericLiteral", - "start": 6316, - "end": 6317, + "start": 6342, + "end": 6343, "loc": { "start": { "line": 197, @@ -15042,8 +15148,8 @@ }, "property": { "type": "Identifier", - "start": 6319, - "end": 6325, + "start": 6345, + "end": 6351, "loc": { "start": { "line": 197, @@ -15062,8 +15168,8 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 6329, - "end": 6363, + "start": 6355, + "end": 6389, "loc": { "start": { "line": 197, @@ -15076,8 +15182,8 @@ }, "left": { "type": "MemberExpression", - "start": 6329, - "end": 6354, + "start": 6355, + "end": 6380, "loc": { "start": { "line": 197, @@ -15090,8 +15196,8 @@ }, "object": { "type": "MemberExpression", - "start": 6329, - "end": 6347, + "start": 6355, + "end": 6373, "loc": { "start": { "line": 197, @@ -15104,8 +15210,8 @@ }, "object": { "type": "Identifier", - "start": 6329, - "end": 6337, + "start": 6355, + "end": 6363, "loc": { "start": { "line": 197, @@ -15121,8 +15227,8 @@ }, "property": { "type": "Identifier", - "start": 6338, - "end": 6347, + "start": 6364, + "end": 6373, "loc": { "start": { "line": 197, @@ -15140,8 +15246,8 @@ }, "property": { "type": "Identifier", - "start": 6348, - "end": 6354, + "start": 6374, + "end": 6380, "loc": { "start": { "line": 197, @@ -15160,8 +15266,8 @@ "operator": "===", "right": { "type": "BooleanLiteral", - "start": 6359, - "end": 6363, + "start": 6385, + "end": 6389, "loc": { "start": { "line": 197, @@ -15177,14 +15283,14 @@ }, "extra": { "parenthesized": true, - "parenStart": 6306 + "parenStart": 6332 } }, "operator": "&&", "right": { "type": "BinaryExpression", - "start": 6368, - "end": 6415, + "start": 6394, + "end": 6441, "loc": { "start": { "line": 197, @@ -15197,8 +15303,8 @@ }, "left": { "type": "MemberExpression", - "start": 6368, - "end": 6377, + "start": 6394, + "end": 6403, "loc": { "start": { "line": 197, @@ -15211,8 +15317,8 @@ }, "object": { "type": "Identifier", - "start": 6368, - "end": 6374, + "start": 6394, + "end": 6400, "loc": { "start": { "line": 197, @@ -15228,8 +15334,8 @@ }, "property": { "type": "Identifier", - "start": 6375, - "end": 6377, + "start": 6401, + "end": 6403, "loc": { "start": { "line": 197, @@ -15248,8 +15354,8 @@ "operator": "<", "right": { "type": "BinaryExpression", - "start": 6380, - "end": 6415, + "start": 6406, + "end": 6441, "loc": { "start": { "line": 197, @@ -15262,8 +15368,8 @@ }, "left": { "type": "MemberExpression", - "start": 6380, - "end": 6396, + "start": 6406, + "end": 6422, "loc": { "start": { "line": 197, @@ -15276,8 +15382,8 @@ }, "object": { "type": "Identifier", - "start": 6380, - "end": 6386, + "start": 6406, + "end": 6412, "loc": { "start": { "line": 197, @@ -15293,8 +15399,8 @@ }, "property": { "type": "Identifier", - "start": 6387, - "end": 6396, + "start": 6413, + "end": 6422, "loc": { "start": { "line": 197, @@ -15313,8 +15419,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 6399, - "end": 6415, + "start": 6425, + "end": 6441, "loc": { "start": { "line": 197, @@ -15327,8 +15433,8 @@ }, "object": { "type": "Identifier", - "start": 6399, - "end": 6405, + "start": 6425, + "end": 6431, "loc": { "start": { "line": 197, @@ -15344,8 +15450,8 @@ }, "property": { "type": "Identifier", - "start": 6406, - "end": 6415, + "start": 6432, + "end": 6441, "loc": { "start": { "line": 197, @@ -15366,8 +15472,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6417, - "end": 6454, + "start": 6443, + "end": 6480, "loc": { "start": { "line": 197, @@ -15381,8 +15487,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6429, - "end": 6449, + "start": 6455, + "end": 6475, "loc": { "start": { "line": 198, @@ -15395,8 +15501,8 @@ }, "expression": { "type": "CallExpression", - "start": 6429, - "end": 6449, + "start": 6455, + "end": 6475, "loc": { "start": { "line": 198, @@ -15409,8 +15515,8 @@ }, "callee": { "type": "Identifier", - "start": 6429, - "end": 6443, + "start": 6455, + "end": 6469, "loc": { "start": { "line": 198, @@ -15428,8 +15534,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 6444, - "end": 6448, + "start": 6470, + "end": 6474, "loc": { "start": { "line": 198, @@ -15453,8 +15559,8 @@ { "type": "CommentLine", "value": " Up", - "start": 6419, - "end": 6424, + "start": 6445, + "end": 6450, "loc": { "start": { "line": 197, @@ -15475,8 +15581,8 @@ }, { "type": "IfStatement", - "start": 6458, - "end": 6617, + "start": 6484, + "end": 6643, "loc": { "start": { "line": 200, @@ -15489,8 +15595,8 @@ }, "test": { "type": "LogicalExpression", - "start": 6462, - "end": 6574, + "start": 6488, + "end": 6600, "loc": { "start": { "line": 200, @@ -15503,8 +15609,8 @@ }, "left": { "type": "LogicalExpression", - "start": 6463, - "end": 6521, + "start": 6489, + "end": 6547, "loc": { "start": { "line": 200, @@ -15517,8 +15623,8 @@ }, "left": { "type": "MemberExpression", - "start": 6463, - "end": 6481, + "start": 6489, + "end": 6507, "loc": { "start": { "line": 200, @@ -15531,8 +15637,8 @@ }, "object": { "type": "MemberExpression", - "start": 6463, - "end": 6474, + "start": 6489, + "end": 6500, "loc": { "start": { "line": 200, @@ -15545,8 +15651,8 @@ }, "object": { "type": "Identifier", - "start": 6463, - "end": 6471, + "start": 6489, + "end": 6497, "loc": { "start": { "line": 200, @@ -15562,8 +15668,8 @@ }, "property": { "type": "NumericLiteral", - "start": 6472, - "end": 6473, + "start": 6498, + "end": 6499, "loc": { "start": { "line": 200, @@ -15584,8 +15690,8 @@ }, "property": { "type": "Identifier", - "start": 6475, - "end": 6481, + "start": 6501, + "end": 6507, "loc": { "start": { "line": 200, @@ -15604,8 +15710,8 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 6485, - "end": 6521, + "start": 6511, + "end": 6547, "loc": { "start": { "line": 200, @@ -15618,8 +15724,8 @@ }, "left": { "type": "MemberExpression", - "start": 6485, - "end": 6512, + "start": 6511, + "end": 6538, "loc": { "start": { "line": 200, @@ -15632,8 +15738,8 @@ }, "object": { "type": "MemberExpression", - "start": 6485, - "end": 6503, + "start": 6511, + "end": 6529, "loc": { "start": { "line": 200, @@ -15646,8 +15752,8 @@ }, "object": { "type": "Identifier", - "start": 6485, - "end": 6493, + "start": 6511, + "end": 6519, "loc": { "start": { "line": 200, @@ -15663,8 +15769,8 @@ }, "property": { "type": "Identifier", - "start": 6494, - "end": 6503, + "start": 6520, + "end": 6529, "loc": { "start": { "line": 200, @@ -15682,8 +15788,8 @@ }, "property": { "type": "Identifier", - "start": 6504, - "end": 6512, + "start": 6530, + "end": 6538, "loc": { "start": { "line": 200, @@ -15702,8 +15808,8 @@ "operator": "===", "right": { "type": "BooleanLiteral", - "start": 6517, - "end": 6521, + "start": 6543, + "end": 6547, "loc": { "start": { "line": 200, @@ -15719,14 +15825,14 @@ }, "extra": { "parenthesized": true, - "parenStart": 6462 + "parenStart": 6488 } }, "operator": "&&", "right": { "type": "BinaryExpression", - "start": 6526, - "end": 6574, + "start": 6552, + "end": 6600, "loc": { "start": { "line": 200, @@ -15739,8 +15845,8 @@ }, "left": { "type": "MemberExpression", - "start": 6526, - "end": 6535, + "start": 6552, + "end": 6561, "loc": { "start": { "line": 200, @@ -15753,8 +15859,8 @@ }, "object": { "type": "Identifier", - "start": 6526, - "end": 6532, + "start": 6552, + "end": 6558, "loc": { "start": { "line": 200, @@ -15770,8 +15876,8 @@ }, "property": { "type": "Identifier", - "start": 6533, - "end": 6535, + "start": 6559, + "end": 6561, "loc": { "start": { "line": 200, @@ -15790,8 +15896,8 @@ "operator": ">", "right": { "type": "BinaryExpression", - "start": 6538, - "end": 6574, + "start": 6564, + "end": 6600, "loc": { "start": { "line": 200, @@ -15804,8 +15910,8 @@ }, "left": { "type": "UnaryExpression", - "start": 6538, - "end": 6555, + "start": 6564, + "end": 6581, "loc": { "start": { "line": 200, @@ -15820,8 +15926,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 6539, - "end": 6555, + "start": 6565, + "end": 6581, "loc": { "start": { "line": 200, @@ -15834,8 +15940,8 @@ }, "object": { "type": "Identifier", - "start": 6539, - "end": 6545, + "start": 6565, + "end": 6571, "loc": { "start": { "line": 200, @@ -15851,8 +15957,8 @@ }, "property": { "type": "Identifier", - "start": 6546, - "end": 6555, + "start": 6572, + "end": 6581, "loc": { "start": { "line": 200, @@ -15875,8 +15981,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 6558, - "end": 6574, + "start": 6584, + "end": 6600, "loc": { "start": { "line": 200, @@ -15889,8 +15995,8 @@ }, "object": { "type": "Identifier", - "start": 6558, - "end": 6564, + "start": 6584, + "end": 6590, "loc": { "start": { "line": 200, @@ -15906,8 +16012,8 @@ }, "property": { "type": "Identifier", - "start": 6565, - "end": 6574, + "start": 6591, + "end": 6600, "loc": { "start": { "line": 200, @@ -15928,8 +16034,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6576, - "end": 6617, + "start": 6602, + "end": 6643, "loc": { "start": { "line": 200, @@ -15943,8 +16049,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6590, - "end": 6612, + "start": 6616, + "end": 6638, "loc": { "start": { "line": 201, @@ -15957,8 +16063,8 @@ }, "expression": { "type": "CallExpression", - "start": 6590, - "end": 6612, + "start": 6616, + "end": 6638, "loc": { "start": { "line": 201, @@ -15971,8 +16077,8 @@ }, "callee": { "type": "Identifier", - "start": 6590, - "end": 6604, + "start": 6616, + "end": 6630, "loc": { "start": { "line": 201, @@ -15990,8 +16096,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 6605, - "end": 6611, + "start": 6631, + "end": 6637, "loc": { "start": { "line": 201, @@ -16015,8 +16121,8 @@ { "type": "CommentLine", "value": " Down", - "start": 6578, - "end": 6585, + "start": 6604, + "end": 6611, "loc": { "start": { "line": 200, @@ -16037,8 +16143,8 @@ }, { "type": "ExpressionStatement", - "start": 6621, - "end": 6644, + "start": 6647, + "end": 6670, "loc": { "start": { "line": 203, @@ -16051,8 +16157,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6621, - "end": 6644, + "start": 6647, + "end": 6670, "loc": { "start": { "line": 203, @@ -16066,8 +16172,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6621, - "end": 6636, + "start": 6647, + "end": 6662, "loc": { "start": { "line": 203, @@ -16080,8 +16186,8 @@ }, "object": { "type": "Identifier", - "start": 6621, - "end": 6627, + "start": 6647, + "end": 6653, "loc": { "start": { "line": 203, @@ -16097,8 +16203,8 @@ }, "property": { "type": "Identifier", - "start": 6628, - "end": 6636, + "start": 6654, + "end": 6662, "loc": { "start": { "line": 203, @@ -16116,8 +16222,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 6639, - "end": 6644, + "start": 6665, + "end": 6670, "loc": { "start": { "line": 203, @@ -16134,8 +16240,8 @@ }, { "type": "ForOfStatement", - "start": 6648, - "end": 6736, + "start": 6674, + "end": 6762, "loc": { "start": { "line": 204, @@ -16148,8 +16254,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 6653, - "end": 6660, + "start": 6679, + "end": 6686, "loc": { "start": { "line": 204, @@ -16163,8 +16269,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 6657, - "end": 6660, + "start": 6683, + "end": 6686, "loc": { "start": { "line": 204, @@ -16177,8 +16283,8 @@ }, "id": { "type": "Identifier", - "start": 6657, - "end": 6660, + "start": 6683, + "end": 6686, "loc": { "start": { "line": 204, @@ -16199,8 +16305,8 @@ }, "right": { "type": "Identifier", - "start": 6664, - "end": 6672, + "start": 6690, + "end": 6698, "loc": { "start": { "line": 204, @@ -16216,8 +16322,8 @@ }, "body": { "type": "BlockStatement", - "start": 6674, - "end": 6736, + "start": 6700, + "end": 6762, "loc": { "start": { "line": 204, @@ -16231,8 +16337,8 @@ "body": [ { "type": "IfStatement", - "start": 6680, - "end": 6731, + "start": 6706, + "end": 6757, "loc": { "start": { "line": 205, @@ -16245,8 +16351,8 @@ }, "test": { "type": "MemberExpression", - "start": 6684, - "end": 6694, + "start": 6710, + "end": 6720, "loc": { "start": { "line": 205, @@ -16259,8 +16365,8 @@ }, "object": { "type": "Identifier", - "start": 6684, - "end": 6687, + "start": 6710, + "end": 6713, "loc": { "start": { "line": 205, @@ -16276,8 +16382,8 @@ }, "property": { "type": "Identifier", - "start": 6688, - "end": 6694, + "start": 6714, + "end": 6720, "loc": { "start": { "line": 205, @@ -16295,8 +16401,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6696, - "end": 6731, + "start": 6722, + "end": 6757, "loc": { "start": { "line": 205, @@ -16310,8 +16416,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6703, - "end": 6725, + "start": 6729, + "end": 6751, "loc": { "start": { "line": 206, @@ -16324,8 +16430,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6703, - "end": 6725, + "start": 6729, + "end": 6751, "loc": { "start": { "line": 206, @@ -16339,8 +16445,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6703, - "end": 6718, + "start": 6729, + "end": 6744, "loc": { "start": { "line": 206, @@ -16353,8 +16459,8 @@ }, "object": { "type": "Identifier", - "start": 6703, - "end": 6709, + "start": 6729, + "end": 6735, "loc": { "start": { "line": 206, @@ -16370,8 +16476,8 @@ }, "property": { "type": "Identifier", - "start": 6710, - "end": 6718, + "start": 6736, + "end": 6744, "loc": { "start": { "line": 206, @@ -16389,8 +16495,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 6721, - "end": 6725, + "start": 6747, + "end": 6751, "loc": { "start": { "line": 206, @@ -16419,8 +16525,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 6748, - "end": 6954, + "start": 6774, + "end": 6980, "loc": { "start": { "line": 210, @@ -16434,8 +16540,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6753, - "end": 6776, + "start": 6779, + "end": 6802, "loc": { "start": { "line": 211, @@ -16448,8 +16554,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6753, - "end": 6776, + "start": 6779, + "end": 6802, "loc": { "start": { "line": 211, @@ -16463,8 +16569,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6753, - "end": 6768, + "start": 6779, + "end": 6794, "loc": { "start": { "line": 211, @@ -16477,8 +16583,8 @@ }, "object": { "type": "Identifier", - "start": 6753, - "end": 6759, + "start": 6779, + "end": 6785, "loc": { "start": { "line": 211, @@ -16494,8 +16600,8 @@ }, "property": { "type": "Identifier", - "start": 6760, - "end": 6768, + "start": 6786, + "end": 6794, "loc": { "start": { "line": 211, @@ -16513,8 +16619,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 6771, - "end": 6776, + "start": 6797, + "end": 6802, "loc": { "start": { "line": 211, @@ -16535,8 +16641,8 @@ { "type": "CommentLine", "value": " Because the document is not focused disable all keys(Stops moving!)", - "start": 6781, - "end": 6851, + "start": 6807, + "end": 6877, "loc": { "start": { "line": 213, @@ -16552,8 +16658,8 @@ }, { "type": "ForInStatement", - "start": 6855, - "end": 6950, + "start": 6881, + "end": 6976, "loc": { "start": { "line": 214, @@ -16566,8 +16672,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 6860, - "end": 6867, + "start": 6886, + "end": 6893, "loc": { "start": { "line": 214, @@ -16581,8 +16687,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 6864, - "end": 6867, + "start": 6890, + "end": 6893, "loc": { "start": { "line": 214, @@ -16595,8 +16701,8 @@ }, "id": { "type": "Identifier", - "start": 6864, - "end": 6867, + "start": 6890, + "end": 6893, "loc": { "start": { "line": 214, @@ -16620,8 +16726,8 @@ }, "right": { "type": "Identifier", - "start": 6871, - "end": 6879, + "start": 6897, + "end": 6905, "loc": { "start": { "line": 214, @@ -16637,8 +16743,8 @@ }, "body": { "type": "BlockStatement", - "start": 6881, - "end": 6950, + "start": 6907, + "end": 6976, "loc": { "start": { "line": 214, @@ -16652,8 +16758,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6887, - "end": 6915, + "start": 6913, + "end": 6941, "loc": { "start": { "line": 215, @@ -16666,8 +16772,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6887, - "end": 6915, + "start": 6913, + "end": 6941, "loc": { "start": { "line": 215, @@ -16681,8 +16787,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6887, - "end": 6907, + "start": 6913, + "end": 6933, "loc": { "start": { "line": 215, @@ -16695,8 +16801,8 @@ }, "object": { "type": "MemberExpression", - "start": 6887, - "end": 6900, + "start": 6913, + "end": 6926, "loc": { "start": { "line": 215, @@ -16709,8 +16815,8 @@ }, "object": { "type": "Identifier", - "start": 6887, - "end": 6895, + "start": 6913, + "end": 6921, "loc": { "start": { "line": 215, @@ -16726,8 +16832,8 @@ }, "property": { "type": "Identifier", - "start": 6896, - "end": 6899, + "start": 6922, + "end": 6925, "loc": { "start": { "line": 215, @@ -16745,8 +16851,8 @@ }, "property": { "type": "Identifier", - "start": 6901, - "end": 6907, + "start": 6927, + "end": 6933, "loc": { "start": { "line": 215, @@ -16764,8 +16870,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 6910, - "end": 6915, + "start": 6936, + "end": 6941, "loc": { "start": { "line": 215, @@ -16782,8 +16888,8 @@ }, { "type": "ExpressionStatement", - "start": 6920, - "end": 6945, + "start": 6946, + "end": 6971, "loc": { "start": { "line": 216, @@ -16796,8 +16902,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6920, - "end": 6945, + "start": 6946, + "end": 6971, "loc": { "start": { "line": 216, @@ -16811,8 +16917,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6920, - "end": 6938, + "start": 6946, + "end": 6964, "loc": { "start": { "line": 216, @@ -16825,8 +16931,8 @@ }, "object": { "type": "MemberExpression", - "start": 6920, - "end": 6933, + "start": 6946, + "end": 6959, "loc": { "start": { "line": 216, @@ -16839,8 +16945,8 @@ }, "object": { "type": "Identifier", - "start": 6920, - "end": 6928, + "start": 6946, + "end": 6954, "loc": { "start": { "line": 216, @@ -16856,8 +16962,8 @@ }, "property": { "type": "Identifier", - "start": 6929, - "end": 6932, + "start": 6955, + "end": 6958, "loc": { "start": { "line": 216, @@ -16875,8 +16981,8 @@ }, "property": { "type": "Identifier", - "start": 6934, - "end": 6938, + "start": 6960, + "end": 6964, "loc": { "start": { "line": 216, @@ -16894,8 +17000,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 6941, - "end": 6945, + "start": 6967, + "end": 6971, "loc": { "start": { "line": 216, @@ -16917,8 +17023,8 @@ { "type": "CommentLine", "value": " Because the document is not focused disable all keys(Stops moving!)", - "start": 6781, - "end": 6851, + "start": 6807, + "end": 6877, "loc": { "start": { "line": 213, @@ -16940,8 +17046,8 @@ { "type": "CommentLine", "value": " Make sure player is not in chat before checking move", - "start": 5853, - "end": 5908, + "start": 5879, + "end": 5934, "loc": { "start": { "line": 187, @@ -16958,8 +17064,8 @@ { "type": "CommentLine", "value": " Slow down gradually - unaffected by chat input", - "start": 6958, - "end": 7007, + "start": 6984, + "end": 7033, "loc": { "start": { "line": 220, @@ -16975,8 +17081,8 @@ }, { "type": "IfStatement", - "start": 7010, - "end": 7100, + "start": 7036, + "end": 7126, "loc": { "start": { "line": 221, @@ -16989,8 +17095,8 @@ }, "test": { "type": "LogicalExpression", - "start": 7014, - "end": 7056, + "start": 7040, + "end": 7082, "loc": { "start": { "line": 221, @@ -17003,8 +17109,8 @@ }, "left": { "type": "UnaryExpression", - "start": 7014, - "end": 7033, + "start": 7040, + "end": 7059, "loc": { "start": { "line": 221, @@ -17019,8 +17125,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 7015, - "end": 7033, + "start": 7041, + "end": 7059, "loc": { "start": { "line": 221, @@ -17033,8 +17139,8 @@ }, "object": { "type": "MemberExpression", - "start": 7015, - "end": 7026, + "start": 7041, + "end": 7052, "loc": { "start": { "line": 221, @@ -17047,8 +17153,8 @@ }, "object": { "type": "Identifier", - "start": 7015, - "end": 7023, + "start": 7041, + "end": 7049, "loc": { "start": { "line": 221, @@ -17065,8 +17171,8 @@ }, "property": { "type": "NumericLiteral", - "start": 7024, - "end": 7025, + "start": 7050, + "end": 7051, "loc": { "start": { "line": 221, @@ -17088,8 +17194,8 @@ }, "property": { "type": "Identifier", - "start": 7027, - "end": 7033, + "start": 7053, + "end": 7059, "loc": { "start": { "line": 221, @@ -17114,8 +17220,8 @@ "operator": "&&", "right": { "type": "UnaryExpression", - "start": 7037, - "end": 7056, + "start": 7063, + "end": 7082, "loc": { "start": { "line": 221, @@ -17130,8 +17236,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 7038, - "end": 7056, + "start": 7064, + "end": 7082, "loc": { "start": { "line": 221, @@ -17144,8 +17250,8 @@ }, "object": { "type": "MemberExpression", - "start": 7038, - "end": 7049, + "start": 7064, + "end": 7075, "loc": { "start": { "line": 221, @@ -17158,8 +17264,8 @@ }, "object": { "type": "Identifier", - "start": 7038, - "end": 7046, + "start": 7064, + "end": 7072, "loc": { "start": { "line": 221, @@ -17175,8 +17281,8 @@ }, "property": { "type": "NumericLiteral", - "start": 7047, - "end": 7048, + "start": 7073, + "end": 7074, "loc": { "start": { "line": 221, @@ -17197,8 +17303,8 @@ }, "property": { "type": "Identifier", - "start": 7050, - "end": 7056, + "start": 7076, + "end": 7082, "loc": { "start": { "line": 221, @@ -17222,8 +17328,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7058, - "end": 7100, + "start": 7084, + "end": 7126, "loc": { "start": { "line": 221, @@ -17237,8 +17343,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7063, - "end": 7096, + "start": 7089, + "end": 7122, "loc": { "start": { "line": 222, @@ -17251,8 +17357,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 7063, - "end": 7096, + "start": 7089, + "end": 7122, "loc": { "start": { "line": 222, @@ -17266,8 +17372,8 @@ "operator": "*=", "left": { "type": "MemberExpression", - "start": 7063, - "end": 7072, + "start": 7089, + "end": 7098, "loc": { "start": { "line": 222, @@ -17280,8 +17386,8 @@ }, "object": { "type": "Identifier", - "start": 7063, - "end": 7069, + "start": 7089, + "end": 7095, "loc": { "start": { "line": 222, @@ -17297,8 +17403,8 @@ }, "property": { "type": "Identifier", - "start": 7070, - "end": 7072, + "start": 7096, + "end": 7098, "loc": { "start": { "line": 222, @@ -17316,8 +17422,8 @@ }, "right": { "type": "MemberExpression", - "start": 7076, - "end": 7096, + "start": 7102, + "end": 7122, "loc": { "start": { "line": 222, @@ -17330,8 +17436,8 @@ }, "object": { "type": "Identifier", - "start": 7076, - "end": 7082, + "start": 7102, + "end": 7108, "loc": { "start": { "line": 222, @@ -17347,8 +17453,8 @@ }, "property": { "type": "Identifier", - "start": 7083, - "end": 7096, + "start": 7109, + "end": 7122, "loc": { "start": { "line": 222, @@ -17374,8 +17480,8 @@ { "type": "CommentLine", "value": " Slow down gradually - unaffected by chat input", - "start": 6958, - "end": 7007, + "start": 6984, + "end": 7033, "loc": { "start": { "line": 220, @@ -17391,8 +17497,8 @@ }, { "type": "IfStatement", - "start": 7103, - "end": 7193, + "start": 7129, + "end": 7219, "loc": { "start": { "line": 224, @@ -17405,8 +17511,8 @@ }, "test": { "type": "LogicalExpression", - "start": 7107, - "end": 7149, + "start": 7133, + "end": 7175, "loc": { "start": { "line": 224, @@ -17419,8 +17525,8 @@ }, "left": { "type": "UnaryExpression", - "start": 7107, - "end": 7126, + "start": 7133, + "end": 7152, "loc": { "start": { "line": 224, @@ -17435,8 +17541,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 7108, - "end": 7126, + "start": 7134, + "end": 7152, "loc": { "start": { "line": 224, @@ -17449,8 +17555,8 @@ }, "object": { "type": "MemberExpression", - "start": 7108, - "end": 7119, + "start": 7134, + "end": 7145, "loc": { "start": { "line": 224, @@ -17463,8 +17569,8 @@ }, "object": { "type": "Identifier", - "start": 7108, - "end": 7116, + "start": 7134, + "end": 7142, "loc": { "start": { "line": 224, @@ -17480,8 +17586,8 @@ }, "property": { "type": "NumericLiteral", - "start": 7117, - "end": 7118, + "start": 7143, + "end": 7144, "loc": { "start": { "line": 224, @@ -17502,8 +17608,8 @@ }, "property": { "type": "Identifier", - "start": 7120, - "end": 7126, + "start": 7146, + "end": 7152, "loc": { "start": { "line": 224, @@ -17526,8 +17632,8 @@ "operator": "&&", "right": { "type": "UnaryExpression", - "start": 7130, - "end": 7149, + "start": 7156, + "end": 7175, "loc": { "start": { "line": 224, @@ -17542,8 +17648,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 7131, - "end": 7149, + "start": 7157, + "end": 7175, "loc": { "start": { "line": 224, @@ -17556,8 +17662,8 @@ }, "object": { "type": "MemberExpression", - "start": 7131, - "end": 7142, + "start": 7157, + "end": 7168, "loc": { "start": { "line": 224, @@ -17570,8 +17676,8 @@ }, "object": { "type": "Identifier", - "start": 7131, - "end": 7139, + "start": 7157, + "end": 7165, "loc": { "start": { "line": 224, @@ -17587,8 +17693,8 @@ }, "property": { "type": "NumericLiteral", - "start": 7140, - "end": 7141, + "start": 7166, + "end": 7167, "loc": { "start": { "line": 224, @@ -17609,8 +17715,8 @@ }, "property": { "type": "Identifier", - "start": 7143, - "end": 7149, + "start": 7169, + "end": 7175, "loc": { "start": { "line": 224, @@ -17633,8 +17739,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7151, - "end": 7193, + "start": 7177, + "end": 7219, "loc": { "start": { "line": 224, @@ -17648,8 +17754,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7156, - "end": 7189, + "start": 7182, + "end": 7215, "loc": { "start": { "line": 225, @@ -17662,8 +17768,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 7156, - "end": 7189, + "start": 7182, + "end": 7215, "loc": { "start": { "line": 225, @@ -17677,8 +17783,8 @@ "operator": "*=", "left": { "type": "MemberExpression", - "start": 7156, - "end": 7165, + "start": 7182, + "end": 7191, "loc": { "start": { "line": 225, @@ -17691,8 +17797,8 @@ }, "object": { "type": "Identifier", - "start": 7156, - "end": 7162, + "start": 7182, + "end": 7188, "loc": { "start": { "line": 225, @@ -17708,8 +17814,8 @@ }, "property": { "type": "Identifier", - "start": 7163, - "end": 7165, + "start": 7189, + "end": 7191, "loc": { "start": { "line": 225, @@ -17727,8 +17833,8 @@ }, "right": { "type": "MemberExpression", - "start": 7169, - "end": 7189, + "start": 7195, + "end": 7215, "loc": { "start": { "line": 225, @@ -17741,8 +17847,8 @@ }, "object": { "type": "Identifier", - "start": 7169, - "end": 7175, + "start": 7195, + "end": 7201, "loc": { "start": { "line": 225, @@ -17758,8 +17864,8 @@ }, "property": { "type": "Identifier", - "start": 7176, - "end": 7189, + "start": 7202, + "end": 7215, "loc": { "start": { "line": 225, @@ -17786,8 +17892,8 @@ { "type": "CommentLine", "value": " Shooting", - "start": 7197, - "end": 7208, + "start": 7223, + "end": 7234, "loc": { "start": { "line": 228, @@ -17803,8 +17909,8 @@ }, { "type": "ExpressionStatement", - "start": 7211, - "end": 7368, + "start": 7237, + "end": 7394, "loc": { "start": { "line": 229, @@ -17817,8 +17923,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 7211, - "end": 7368, + "start": 7237, + "end": 7394, "loc": { "start": { "line": 229, @@ -17832,8 +17938,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 7211, - "end": 7222, + "start": 7237, + "end": 7248, "loc": { "start": { "line": 229, @@ -17846,8 +17952,8 @@ }, "object": { "type": "Identifier", - "start": 7211, - "end": 7216, + "start": 7237, + "end": 7242, "loc": { "start": { "line": 229, @@ -17864,8 +17970,8 @@ }, "property": { "type": "Identifier", - "start": 7217, - "end": 7222, + "start": 7243, + "end": 7248, "loc": { "start": { "line": 229, @@ -17884,8 +17990,8 @@ }, "right": { "type": "ArrowFunctionExpression", - "start": 7225, - "end": 7368, + "start": 7251, + "end": 7394, "loc": { "start": { "line": 229, @@ -17903,8 +18009,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 7231, - "end": 7368, + "start": 7257, + "end": 7394, "loc": { "start": { "line": 229, @@ -17918,8 +18024,8 @@ "body": [ { "type": "IfStatement", - "start": 7236, - "end": 7364, + "start": 7262, + "end": 7390, "loc": { "start": { "line": 230, @@ -17932,8 +18038,8 @@ }, "test": { "type": "BinaryExpression", - "start": 7240, - "end": 7294, + "start": 7266, + "end": 7320, "loc": { "start": { "line": 230, @@ -17946,8 +18052,8 @@ }, "left": { "type": "MemberExpression", - "start": 7240, - "end": 7281, + "start": 7266, + "end": 7307, "loc": { "start": { "line": 230, @@ -17960,8 +18066,8 @@ }, "object": { "type": "MemberExpression", - "start": 7240, - "end": 7276, + "start": 7266, + "end": 7302, "loc": { "start": { "line": 230, @@ -17974,8 +18080,8 @@ }, "object": { "type": "Identifier", - "start": 7240, - "end": 7258, + "start": 7266, + "end": 7284, "loc": { "start": { "line": 230, @@ -17991,8 +18097,8 @@ }, "property": { "type": "Identifier", - "start": 7259, - "end": 7275, + "start": 7285, + "end": 7301, "loc": { "start": { "line": 230, @@ -18010,8 +18116,8 @@ }, "property": { "type": "Identifier", - "start": 7277, - "end": 7281, + "start": 7303, + "end": 7307, "loc": { "start": { "line": 230, @@ -18030,8 +18136,8 @@ "operator": "!==", "right": { "type": "StringLiteral", - "start": 7286, - "end": 7294, + "start": 7312, + "end": 7320, "loc": { "start": { "line": 230, @@ -18051,8 +18157,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7296, - "end": 7364, + "start": 7322, + "end": 7390, "loc": { "start": { "line": 230, @@ -18066,8 +18172,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7302, - "end": 7359, + "start": 7328, + "end": 7385, "loc": { "start": { "line": 231, @@ -18080,8 +18186,8 @@ }, "expression": { "type": "CallExpression", - "start": 7302, - "end": 7359, + "start": 7328, + "end": 7385, "loc": { "start": { "line": 231, @@ -18094,8 +18200,8 @@ }, "callee": { "type": "Identifier", - "start": 7302, - "end": 7314, + "start": 7328, + "end": 7340, "loc": { "start": { "line": 231, @@ -18112,8 +18218,8 @@ "arguments": [ { "type": "ObjectExpression", - "start": 7315, - "end": 7351, + "start": 7341, + "end": 7377, "loc": { "start": { "line": 231, @@ -18127,8 +18233,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 7317, - "end": 7332, + "start": 7343, + "end": 7358, "loc": { "start": { "line": 231, @@ -18144,8 +18250,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 7317, - "end": 7324, + "start": 7343, + "end": 7350, "loc": { "start": { "line": 231, @@ -18161,8 +18267,8 @@ }, "value": { "type": "Identifier", - "start": 7326, - "end": 7332, + "start": 7352, + "end": 7358, "loc": { "start": { "line": 231, @@ -18179,8 +18285,8 @@ }, { "type": "ObjectProperty", - "start": 7334, - "end": 7349, + "start": 7360, + "end": 7375, "loc": { "start": { "line": 231, @@ -18196,8 +18302,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 7334, - "end": 7341, + "start": 7360, + "end": 7367, "loc": { "start": { "line": 231, @@ -18213,8 +18319,8 @@ }, "value": { "type": "Identifier", - "start": 7343, - "end": 7349, + "start": 7369, + "end": 7375, "loc": { "start": { "line": 231, @@ -18233,8 +18339,8 @@ }, { "type": "BooleanLiteral", - "start": 7353, - "end": 7358, + "start": 7379, + "end": 7384, "loc": { "start": { "line": 231, @@ -18268,8 +18374,8 @@ { "type": "CommentLine", "value": " Shooting", - "start": 7197, - "end": 7208, + "start": 7223, + "end": 7234, "loc": { "start": { "line": 228, @@ -18286,8 +18392,8 @@ { "type": "CommentLine", "value": " Streams", - "start": 7372, - "end": 7382, + "start": 7398, + "end": 7408, "loc": { "start": { "line": 235, @@ -18303,8 +18409,8 @@ }, { "type": "IfStatement", - "start": 7385, - "end": 7541, + "start": 7411, + "end": 7567, "loc": { "start": { "line": 236, @@ -18317,8 +18423,8 @@ }, "test": { "type": "LogicalExpression", - "start": 7389, - "end": 7474, + "start": 7415, + "end": 7500, "loc": { "start": { "line": 236, @@ -18331,8 +18437,8 @@ }, "left": { "type": "LogicalExpression", - "start": 7390, - "end": 7415, + "start": 7416, + "end": 7441, "loc": { "start": { "line": 236, @@ -18345,8 +18451,8 @@ }, "left": { "type": "MemberExpression", - "start": 7390, - "end": 7402, + "start": 7416, + "end": 7428, "loc": { "start": { "line": 236, @@ -18359,8 +18465,8 @@ }, "object": { "type": "Identifier", - "start": 7390, - "end": 7395, + "start": 7416, + "end": 7421, "loc": { "start": { "line": 236, @@ -18377,8 +18483,8 @@ }, "property": { "type": "Identifier", - "start": 7396, - "end": 7402, + "start": 7422, + "end": 7428, "loc": { "start": { "line": 236, @@ -18398,8 +18504,8 @@ "operator": "||", "right": { "type": "Identifier", - "start": 7406, - "end": 7415, + "start": 7432, + "end": 7441, "loc": { "start": { "line": 236, @@ -18416,14 +18522,14 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 7389 + "parenStart": 7415 } }, "operator": "&&", "right": { "type": "BinaryExpression", - "start": 7420, - "end": 7474, + "start": 7446, + "end": 7500, "loc": { "start": { "line": 236, @@ -18436,8 +18542,8 @@ }, "left": { "type": "MemberExpression", - "start": 7420, - "end": 7461, + "start": 7446, + "end": 7487, "loc": { "start": { "line": 236, @@ -18450,8 +18556,8 @@ }, "object": { "type": "MemberExpression", - "start": 7420, - "end": 7456, + "start": 7446, + "end": 7482, "loc": { "start": { "line": 236, @@ -18464,8 +18570,8 @@ }, "object": { "type": "Identifier", - "start": 7420, - "end": 7438, + "start": 7446, + "end": 7464, "loc": { "start": { "line": 236, @@ -18481,8 +18587,8 @@ }, "property": { "type": "Identifier", - "start": 7439, - "end": 7455, + "start": 7465, + "end": 7481, "loc": { "start": { "line": 236, @@ -18500,8 +18606,8 @@ }, "property": { "type": "Identifier", - "start": 7457, - "end": 7461, + "start": 7483, + "end": 7487, "loc": { "start": { "line": 236, @@ -18520,8 +18626,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 7466, - "end": 7474, + "start": 7492, + "end": 7500, "loc": { "start": { "line": 236, @@ -18543,8 +18649,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7476, - "end": 7541, + "start": 7502, + "end": 7567, "loc": { "start": { "line": 236, @@ -18558,8 +18664,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7481, - "end": 7537, + "start": 7507, + "end": 7563, "loc": { "start": { "line": 237, @@ -18572,8 +18678,8 @@ }, "expression": { "type": "CallExpression", - "start": 7481, - "end": 7537, + "start": 7507, + "end": 7563, "loc": { "start": { "line": 237, @@ -18586,8 +18692,8 @@ }, "callee": { "type": "Identifier", - "start": 7481, - "end": 7493, + "start": 7507, + "end": 7519, "loc": { "start": { "line": 237, @@ -18604,8 +18710,8 @@ "arguments": [ { "type": "ObjectExpression", - "start": 7494, - "end": 7530, + "start": 7520, + "end": 7556, "loc": { "start": { "line": 237, @@ -18619,8 +18725,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 7496, - "end": 7511, + "start": 7522, + "end": 7537, "loc": { "start": { "line": 237, @@ -18636,8 +18742,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 7496, - "end": 7503, + "start": 7522, + "end": 7529, "loc": { "start": { "line": 237, @@ -18653,8 +18759,8 @@ }, "value": { "type": "Identifier", - "start": 7505, - "end": 7511, + "start": 7531, + "end": 7537, "loc": { "start": { "line": 237, @@ -18671,8 +18777,8 @@ }, { "type": "ObjectProperty", - "start": 7513, - "end": 7528, + "start": 7539, + "end": 7554, "loc": { "start": { "line": 237, @@ -18688,8 +18794,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 7513, - "end": 7520, + "start": 7539, + "end": 7546, "loc": { "start": { "line": 237, @@ -18705,8 +18811,8 @@ }, "value": { "type": "Identifier", - "start": 7522, - "end": 7528, + "start": 7548, + "end": 7554, "loc": { "start": { "line": 237, @@ -18725,8 +18831,8 @@ }, { "type": "BooleanLiteral", - "start": 7532, - "end": 7536, + "start": 7558, + "end": 7562, "loc": { "start": { "line": 237, @@ -18751,8 +18857,8 @@ { "type": "CommentLine", "value": " Streams", - "start": 7372, - "end": 7382, + "start": 7398, + "end": 7408, "loc": { "start": { "line": 235, @@ -18769,8 +18875,8 @@ { "type": "CommentLine", "value": " Reset stream count when space key is released", - "start": 7545, - "end": 7593, + "start": 7571, + "end": 7619, "loc": { "start": { "line": 240, @@ -18786,8 +18892,8 @@ }, { "type": "ExpressionStatement", - "start": 7596, - "end": 7639, + "start": 7622, + "end": 7665, "loc": { "start": { "line": 241, @@ -18800,8 +18906,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 7596, - "end": 7639, + "start": 7622, + "end": 7665, "loc": { "start": { "line": 241, @@ -18815,8 +18921,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 7596, - "end": 7609, + "start": 7622, + "end": 7635, "loc": { "start": { "line": 241, @@ -18829,8 +18935,8 @@ }, "object": { "type": "Identifier", - "start": 7596, - "end": 7601, + "start": 7622, + "end": 7627, "loc": { "start": { "line": 241, @@ -18847,8 +18953,8 @@ }, "property": { "type": "Identifier", - "start": 7602, - "end": 7609, + "start": 7628, + "end": 7635, "loc": { "start": { "line": 241, @@ -18867,8 +18973,8 @@ }, "right": { "type": "ArrowFunctionExpression", - "start": 7612, - "end": 7639, + "start": 7638, + "end": 7665, "loc": { "start": { "line": 241, @@ -18886,8 +18992,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 7618, - "end": 7639, + "start": 7644, + "end": 7665, "loc": { "start": { "line": 241, @@ -18901,8 +19007,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7623, - "end": 7635, + "start": 7649, + "end": 7661, "loc": { "start": { "line": 242, @@ -18915,8 +19021,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 7623, - "end": 7635, + "start": 7649, + "end": 7661, "loc": { "start": { "line": 242, @@ -18930,8 +19036,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 7623, - "end": 7631, + "start": 7649, + "end": 7657, "loc": { "start": { "line": 242, @@ -18947,8 +19053,8 @@ }, "right": { "type": "NumericLiteral", - "start": 7634, - "end": 7635, + "start": 7660, + "end": 7661, "loc": { "start": { "line": 242, @@ -18980,8 +19086,8 @@ { "type": "CommentLine", "value": " Reset stream count when space key is released", - "start": 7545, - "end": 7593, + "start": 7571, + "end": 7619, "loc": { "start": { "line": 240, @@ -18998,8 +19104,8 @@ { "type": "CommentLine", "value": " Move player", - "start": 7643, - "end": 7657, + "start": 7669, + "end": 7683, "loc": { "start": { "line": 245, @@ -19015,8 +19121,8 @@ }, { "type": "ExpressionStatement", - "start": 7660, - "end": 7673, + "start": 7686, + "end": 7699, "loc": { "start": { "line": 246, @@ -19029,8 +19135,8 @@ }, "expression": { "type": "CallExpression", - "start": 7660, - "end": 7673, + "start": 7686, + "end": 7699, "loc": { "start": { "line": 246, @@ -19043,8 +19149,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7660, - "end": 7671, + "start": 7686, + "end": 7697, "loc": { "start": { "line": 246, @@ -19057,8 +19163,8 @@ }, "object": { "type": "Identifier", - "start": 7660, - "end": 7666, + "start": 7686, + "end": 7692, "loc": { "start": { "line": 246, @@ -19075,8 +19181,8 @@ }, "property": { "type": "Identifier", - "start": 7667, - "end": 7671, + "start": 7693, + "end": 7697, "loc": { "start": { "line": 246, @@ -19101,8 +19207,8 @@ { "type": "CommentLine", "value": " Move player", - "start": 7643, - "end": 7657, + "start": 7669, + "end": 7683, "loc": { "start": { "line": 245, @@ -19119,8 +19225,8 @@ { "type": "CommentLine", "value": " Send coordinates", - "start": 7677, - "end": 7696, + "start": 7703, + "end": 7722, "loc": { "start": { "line": 248, @@ -19136,8 +19242,8 @@ }, { "type": "ExpressionStatement", - "start": 7699, - "end": 7842, + "start": 7725, + "end": 7868, "loc": { "start": { "line": 249, @@ -19150,8 +19256,8 @@ }, "expression": { "type": "CallExpression", - "start": 7699, - "end": 7842, + "start": 7725, + "end": 7868, "loc": { "start": { "line": 249, @@ -19164,8 +19270,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7699, - "end": 7710, + "start": 7725, + "end": 7736, "loc": { "start": { "line": 249, @@ -19178,8 +19284,8 @@ }, "object": { "type": "Identifier", - "start": 7699, - "end": 7705, + "start": 7725, + "end": 7731, "loc": { "start": { "line": 249, @@ -19196,8 +19302,8 @@ }, "property": { "type": "Identifier", - "start": 7706, - "end": 7710, + "start": 7732, + "end": 7736, "loc": { "start": { "line": 249, @@ -19217,8 +19323,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7711, - "end": 7717, + "start": 7737, + "end": 7743, "loc": { "start": { "line": 249, @@ -19237,8 +19343,8 @@ }, { "type": "ObjectExpression", - "start": 7719, - "end": 7841, + "start": 7745, + "end": 7867, "loc": { "start": { "line": 249, @@ -19252,8 +19358,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 7724, - "end": 7739, + "start": 7750, + "end": 7765, "loc": { "start": { "line": 250, @@ -19269,8 +19375,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 7724, - "end": 7728, + "start": 7750, + "end": 7754, "loc": { "start": { "line": 250, @@ -19286,8 +19392,8 @@ }, "value": { "type": "StringLiteral", - "start": 7730, - "end": 7739, + "start": 7756, + "end": 7765, "loc": { "start": { "line": 250, @@ -19307,8 +19413,8 @@ }, { "type": "ObjectProperty", - "start": 7744, - "end": 7757, + "start": 7770, + "end": 7783, "loc": { "start": { "line": 251, @@ -19324,8 +19430,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 7744, - "end": 7746, + "start": 7770, + "end": 7772, "loc": { "start": { "line": 251, @@ -19341,8 +19447,8 @@ }, "value": { "type": "MemberExpression", - "start": 7748, - "end": 7757, + "start": 7774, + "end": 7783, "loc": { "start": { "line": 251, @@ -19355,8 +19461,8 @@ }, "object": { "type": "Identifier", - "start": 7748, - "end": 7754, + "start": 7774, + "end": 7780, "loc": { "start": { "line": 251, @@ -19372,8 +19478,8 @@ }, "property": { "type": "Identifier", - "start": 7755, - "end": 7757, + "start": 7781, + "end": 7783, "loc": { "start": { "line": 251, @@ -19392,8 +19498,8 @@ }, { "type": "ObjectProperty", - "start": 7762, - "end": 7779, + "start": 7788, + "end": 7805, "loc": { "start": { "line": 252, @@ -19409,8 +19515,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 7762, - "end": 7766, + "start": 7788, + "end": 7792, "loc": { "start": { "line": 252, @@ -19426,8 +19532,8 @@ }, "value": { "type": "MemberExpression", - "start": 7768, - "end": 7779, + "start": 7794, + "end": 7805, "loc": { "start": { "line": 252, @@ -19440,8 +19546,8 @@ }, "object": { "type": "Identifier", - "start": 7768, - "end": 7774, + "start": 7794, + "end": 7800, "loc": { "start": { "line": 252, @@ -19457,8 +19563,8 @@ }, "property": { "type": "Identifier", - "start": 7775, - "end": 7779, + "start": 7801, + "end": 7805, "loc": { "start": { "line": 252, @@ -19477,8 +19583,8 @@ }, { "type": "ObjectProperty", - "start": 7784, - "end": 7801, + "start": 7810, + "end": 7827, "loc": { "start": { "line": 253, @@ -19494,8 +19600,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 7784, - "end": 7788, + "start": 7810, + "end": 7814, "loc": { "start": { "line": 253, @@ -19511,8 +19617,8 @@ }, "value": { "type": "MemberExpression", - "start": 7790, - "end": 7801, + "start": 7816, + "end": 7827, "loc": { "start": { "line": 253, @@ -19525,8 +19631,8 @@ }, "object": { "type": "Identifier", - "start": 7790, - "end": 7796, + "start": 7816, + "end": 7822, "loc": { "start": { "line": 253, @@ -19542,8 +19648,8 @@ }, "property": { "type": "Identifier", - "start": 7797, - "end": 7801, + "start": 7823, + "end": 7827, "loc": { "start": { "line": 253, @@ -19562,8 +19668,8 @@ }, { "type": "ObjectProperty", - "start": 7806, - "end": 7819, + "start": 7832, + "end": 7845, "loc": { "start": { "line": 254, @@ -19579,8 +19685,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 7806, - "end": 7808, + "start": 7832, + "end": 7834, "loc": { "start": { "line": 254, @@ -19596,8 +19702,8 @@ }, "value": { "type": "MemberExpression", - "start": 7810, - "end": 7819, + "start": 7836, + "end": 7845, "loc": { "start": { "line": 254, @@ -19610,8 +19716,8 @@ }, "object": { "type": "Identifier", - "start": 7810, - "end": 7816, + "start": 7836, + "end": 7842, "loc": { "start": { "line": 254, @@ -19627,8 +19733,8 @@ }, "property": { "type": "Identifier", - "start": 7817, - "end": 7819, + "start": 7843, + "end": 7845, "loc": { "start": { "line": 254, @@ -19647,8 +19753,8 @@ }, { "type": "ObjectProperty", - "start": 7824, - "end": 7837, + "start": 7850, + "end": 7863, "loc": { "start": { "line": 255, @@ -19664,8 +19770,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 7824, - "end": 7826, + "start": 7850, + "end": 7852, "loc": { "start": { "line": 255, @@ -19681,8 +19787,8 @@ }, "value": { "type": "MemberExpression", - "start": 7828, - "end": 7837, + "start": 7854, + "end": 7863, "loc": { "start": { "line": 255, @@ -19695,8 +19801,8 @@ }, "object": { "type": "Identifier", - "start": 7828, - "end": 7834, + "start": 7854, + "end": 7860, "loc": { "start": { "line": 255, @@ -19712,8 +19818,8 @@ }, "property": { "type": "Identifier", - "start": 7835, - "end": 7837, + "start": 7861, + "end": 7863, "loc": { "start": { "line": 255, @@ -19739,8 +19845,8 @@ { "type": "CommentLine", "value": " Send coordinates", - "start": 7677, - "end": 7696, + "start": 7703, + "end": 7722, "loc": { "start": { "line": 248, @@ -19763,8 +19869,8 @@ { "type": "CommentLine", "value": " Handle this player and movement", - "start": 5787, - "end": 5821, + "start": 5813, + "end": 5847, "loc": { "start": { "line": 185, @@ -19781,8 +19887,8 @@ { "type": "CommentLine", "value": " Handle objects except for this player", - "start": 7848, - "end": 7888, + "start": 7874, + "end": 7914, "loc": { "start": { "line": 259, @@ -19798,8 +19904,8 @@ }, { "type": "ForInStatement", - "start": 7890, - "end": 8071, + "start": 7916, + "end": 8097, "loc": { "start": { "line": 260, @@ -19812,8 +19918,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 7895, - "end": 7906, + "start": 7921, + "end": 7932, "loc": { "start": { "line": 260, @@ -19827,8 +19933,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7899, - "end": 7906, + "start": 7925, + "end": 7932, "loc": { "start": { "line": 260, @@ -19841,8 +19947,8 @@ }, "id": { "type": "Identifier", - "start": 7899, - "end": 7906, + "start": 7925, + "end": 7932, "loc": { "start": { "line": 260, @@ -19866,8 +19972,8 @@ }, "right": { "type": "Identifier", - "start": 7910, - "end": 7917, + "start": 7936, + "end": 7943, "loc": { "start": { "line": 260, @@ -19883,8 +19989,8 @@ }, "body": { "type": "BlockStatement", - "start": 7919, - "end": 8071, + "start": 7945, + "end": 8097, "loc": { "start": { "line": 260, @@ -19898,8 +20004,8 @@ "body": [ { "type": "ForInStatement", - "start": 7923, - "end": 8068, + "start": 7949, + "end": 8094, "loc": { "start": { "line": 261, @@ -19912,8 +20018,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 7928, - "end": 7935, + "start": 7954, + "end": 7961, "loc": { "start": { "line": 261, @@ -19927,8 +20033,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7932, - "end": 7935, + "start": 7958, + "end": 7961, "loc": { "start": { "line": 261, @@ -19941,8 +20047,8 @@ }, "id": { "type": "Identifier", - "start": 7932, - "end": 7935, + "start": 7958, + "end": 7961, "loc": { "start": { "line": 261, @@ -19963,8 +20069,8 @@ }, "right": { "type": "MemberExpression", - "start": 7939, - "end": 7955, + "start": 7965, + "end": 7981, "loc": { "start": { "line": 261, @@ -19977,8 +20083,8 @@ }, "object": { "type": "Identifier", - "start": 7939, - "end": 7946, + "start": 7965, + "end": 7972, "loc": { "start": { "line": 261, @@ -19994,8 +20100,8 @@ }, "property": { "type": "Identifier", - "start": 7947, - "end": 7954, + "start": 7973, + "end": 7980, "loc": { "start": { "line": 261, @@ -20013,8 +20119,8 @@ }, "body": { "type": "BlockStatement", - "start": 7957, - "end": 8068, + "start": 7983, + "end": 8094, "loc": { "start": { "line": 261, @@ -20028,8 +20134,8 @@ "body": [ { "type": "IfStatement", - "start": 7962, - "end": 8064, + "start": 7988, + "end": 8090, "loc": { "start": { "line": 262, @@ -20042,8 +20148,8 @@ }, "test": { "type": "LogicalExpression", - "start": 7966, - "end": 8023, + "start": 7992, + "end": 8049, "loc": { "start": { "line": 262, @@ -20056,8 +20162,8 @@ }, "left": { "type": "BinaryExpression", - "start": 7966, - "end": 7987, + "start": 7992, + "end": 8013, "loc": { "start": { "line": 262, @@ -20070,8 +20176,8 @@ }, "left": { "type": "Identifier", - "start": 7966, - "end": 7973, + "start": 7992, + "end": 7999, "loc": { "start": { "line": 262, @@ -20088,8 +20194,8 @@ "operator": "!==", "right": { "type": "StringLiteral", - "start": 7978, - "end": 7987, + "start": 8004, + "end": 8013, "loc": { "start": { "line": 262, @@ -20110,8 +20216,8 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 7991, - "end": 8023, + "start": 8017, + "end": 8049, "loc": { "start": { "line": 262, @@ -20124,8 +20230,8 @@ }, "left": { "type": "Identifier", - "start": 7991, - "end": 7997, + "start": 8017, + "end": 8023, "loc": { "start": { "line": 262, @@ -20142,8 +20248,8 @@ "operator": "!==", "right": { "type": "MemberExpression", - "start": 8002, - "end": 8023, + "start": 8028, + "end": 8049, "loc": { "start": { "line": 262, @@ -20156,8 +20262,8 @@ }, "object": { "type": "MemberExpression", - "start": 8002, - "end": 8018, + "start": 8028, + "end": 8044, "loc": { "start": { "line": 262, @@ -20170,8 +20276,8 @@ }, "object": { "type": "Identifier", - "start": 8002, - "end": 8009, + "start": 8028, + "end": 8035, "loc": { "start": { "line": 262, @@ -20187,8 +20293,8 @@ }, "property": { "type": "Identifier", - "start": 8010, - "end": 8017, + "start": 8036, + "end": 8043, "loc": { "start": { "line": 262, @@ -20206,8 +20312,8 @@ }, "property": { "type": "Identifier", - "start": 8019, - "end": 8022, + "start": 8045, + "end": 8048, "loc": { "start": { "line": 262, @@ -20227,8 +20333,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8025, - "end": 8064, + "start": 8051, + "end": 8090, "loc": { "start": { "line": 262, @@ -20242,8 +20348,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8031, - "end": 8059, + "start": 8057, + "end": 8085, "loc": { "start": { "line": 263, @@ -20256,8 +20362,8 @@ }, "expression": { "type": "CallExpression", - "start": 8031, - "end": 8059, + "start": 8057, + "end": 8085, "loc": { "start": { "line": 263, @@ -20270,8 +20376,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8031, - "end": 8057, + "start": 8057, + "end": 8083, "loc": { "start": { "line": 263, @@ -20284,8 +20390,8 @@ }, "object": { "type": "MemberExpression", - "start": 8031, - "end": 8052, + "start": 8057, + "end": 8078, "loc": { "start": { "line": 263, @@ -20298,8 +20404,8 @@ }, "object": { "type": "MemberExpression", - "start": 8031, - "end": 8047, + "start": 8057, + "end": 8073, "loc": { "start": { "line": 263, @@ -20312,8 +20418,8 @@ }, "object": { "type": "Identifier", - "start": 8031, - "end": 8038, + "start": 8057, + "end": 8064, "loc": { "start": { "line": 263, @@ -20329,8 +20435,8 @@ }, "property": { "type": "Identifier", - "start": 8039, - "end": 8046, + "start": 8065, + "end": 8072, "loc": { "start": { "line": 263, @@ -20348,8 +20454,8 @@ }, "property": { "type": "Identifier", - "start": 8048, - "end": 8051, + "start": 8074, + "end": 8077, "loc": { "start": { "line": 263, @@ -20367,8 +20473,8 @@ }, "property": { "type": "Identifier", - "start": 8053, - "end": 8057, + "start": 8079, + "end": 8083, "loc": { "start": { "line": 263, @@ -20403,8 +20509,8 @@ { "type": "CommentLine", "value": " Handle objects except for this player", - "start": 7848, - "end": 7888, + "start": 7874, + "end": 7914, "loc": { "start": { "line": 259, @@ -20426,8 +20532,8 @@ { "type": "CommentBlock", "value": "*\n * Called once per frame. Updates all moving sprites on the stage.\n * Also checks key inputs.\n * @param {number} delta Time value from Pixi\n ", - "start": 5614, - "end": 5761, + "start": 5640, + "end": 5787, "loc": { "start": { "line": 179, @@ -20444,8 +20550,8 @@ { "type": "CommentBlock", "value": "*\n * Shows or hides the in-game menu box\n ", - "start": 8075, - "end": 8121, + "start": 8101, + "end": 8147, "loc": { "start": { "line": 269, @@ -20461,8 +20567,8 @@ }, { "type": "FunctionDeclaration", - "start": 8122, - "end": 8277, + "start": 8148, + "end": 8303, "loc": { "start": { "line": 272, @@ -20475,8 +20581,8 @@ }, "id": { "type": "Identifier", - "start": 8131, - "end": 8141, + "start": 8157, + "end": 8167, "loc": { "start": { "line": 272, @@ -20497,8 +20603,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 8145, - "end": 8277, + "start": 8171, + "end": 8303, "loc": { "start": { "line": 272, @@ -20512,8 +20618,8 @@ "body": [ { "type": "IfStatement", - "start": 8148, - "end": 8275, + "start": 8174, + "end": 8301, "loc": { "start": { "line": 273, @@ -20526,8 +20632,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8152, - "end": 8208, + "start": 8178, + "end": 8234, "loc": { "start": { "line": 273, @@ -20540,8 +20646,8 @@ }, "left": { "type": "MemberExpression", - "start": 8152, - "end": 8199, + "start": 8178, + "end": 8225, "loc": { "start": { "line": 273, @@ -20554,8 +20660,8 @@ }, "object": { "type": "CallExpression", - "start": 8152, - "end": 8186, + "start": 8178, + "end": 8212, "loc": { "start": { "line": 273, @@ -20568,8 +20674,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8152, - "end": 8175, + "start": 8178, + "end": 8201, "loc": { "start": { "line": 273, @@ -20582,8 +20688,8 @@ }, "object": { "type": "Identifier", - "start": 8152, - "end": 8160, + "start": 8178, + "end": 8186, "loc": { "start": { "line": 273, @@ -20599,8 +20705,8 @@ }, "property": { "type": "Identifier", - "start": 8161, - "end": 8175, + "start": 8187, + "end": 8201, "loc": { "start": { "line": 273, @@ -20619,8 +20725,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8176, - "end": 8185, + "start": 8202, + "end": 8211, "loc": { "start": { "line": 273, @@ -20641,8 +20747,8 @@ }, "property": { "type": "Identifier", - "start": 8187, - "end": 8199, + "start": 8213, + "end": 8225, "loc": { "start": { "line": 273, @@ -20661,8 +20767,8 @@ "operator": "===", "right": { "type": "NullLiteral", - "start": 8204, - "end": 8208, + "start": 8230, + "end": 8234, "loc": { "start": { "line": 273, @@ -20677,8 +20783,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8210, - "end": 8239, + "start": 8236, + "end": 8265, "loc": { "start": { "line": 273, @@ -20692,8 +20798,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8214, - "end": 8236, + "start": 8240, + "end": 8262, "loc": { "start": { "line": 274, @@ -20706,8 +20812,8 @@ }, "expression": { "type": "CallExpression", - "start": 8214, - "end": 8236, + "start": 8240, + "end": 8262, "loc": { "start": { "line": 274, @@ -20720,8 +20826,8 @@ }, "callee": { "type": "Identifier", - "start": 8214, - "end": 8225, + "start": 8240, + "end": 8251, "loc": { "start": { "line": 274, @@ -20738,8 +20844,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8226, - "end": 8235, + "start": 8252, + "end": 8261, "loc": { "start": { "line": 274, @@ -20764,8 +20870,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 8246, - "end": 8275, + "start": 8272, + "end": 8301, "loc": { "start": { "line": 276, @@ -20779,8 +20885,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8250, - "end": 8272, + "start": 8276, + "end": 8298, "loc": { "start": { "line": 277, @@ -20793,8 +20899,8 @@ }, "expression": { "type": "CallExpression", - "start": 8250, - "end": 8272, + "start": 8276, + "end": 8298, "loc": { "start": { "line": 277, @@ -20807,8 +20913,8 @@ }, "callee": { "type": "Identifier", - "start": 8250, - "end": 8261, + "start": 8276, + "end": 8287, "loc": { "start": { "line": 277, @@ -20825,8 +20931,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8262, - "end": 8271, + "start": 8288, + "end": 8297, "loc": { "start": { "line": 277, @@ -20858,8 +20964,8 @@ { "type": "CommentBlock", "value": "*\n * Shows or hides the in-game menu box\n ", - "start": 8075, - "end": 8121, + "start": 8101, + "end": 8147, "loc": { "start": { "line": 269, @@ -20876,8 +20982,8 @@ { "type": "CommentBlock", "value": "*\n * Remove all elements pre-rendered on stage.\n ", - "start": 8279, - "end": 8332, + "start": 8305, + "end": 8358, "loc": { "start": { "line": 281, @@ -20893,8 +20999,8 @@ }, { "type": "FunctionDeclaration", - "start": 8333, - "end": 8469, + "start": 8359, + "end": 8495, "loc": { "start": { "line": 284, @@ -20907,8 +21013,8 @@ }, "id": { "type": "Identifier", - "start": 8342, - "end": 8352, + "start": 8368, + "end": 8378, "loc": { "start": { "line": 284, @@ -20929,8 +21035,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 8356, - "end": 8469, + "start": 8382, + "end": 8495, "loc": { "start": { "line": 284, @@ -20944,8 +21050,8 @@ "body": [ { "type": "ForStatement", - "start": 8359, - "end": 8467, + "start": 8385, + "end": 8493, "loc": { "start": { "line": 285, @@ -20958,8 +21064,8 @@ }, "init": { "type": "VariableDeclaration", - "start": 8364, - "end": 8401, + "start": 8390, + "end": 8427, "loc": { "start": { "line": 285, @@ -20973,8 +21079,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8368, - "end": 8401, + "start": 8394, + "end": 8427, "loc": { "start": { "line": 285, @@ -20987,8 +21093,8 @@ }, "id": { "type": "Identifier", - "start": 8368, - "end": 8369, + "start": 8394, + "end": 8395, "loc": { "start": { "line": 285, @@ -21004,8 +21110,8 @@ }, "init": { "type": "BinaryExpression", - "start": 8372, - "end": 8401, + "start": 8398, + "end": 8427, "loc": { "start": { "line": 285, @@ -21018,8 +21124,8 @@ }, "left": { "type": "MemberExpression", - "start": 8372, - "end": 8397, + "start": 8398, + "end": 8423, "loc": { "start": { "line": 285, @@ -21032,8 +21138,8 @@ }, "object": { "type": "MemberExpression", - "start": 8372, - "end": 8390, + "start": 8398, + "end": 8416, "loc": { "start": { "line": 285, @@ -21046,8 +21152,8 @@ }, "object": { "type": "MemberExpression", - "start": 8372, - "end": 8381, + "start": 8398, + "end": 8407, "loc": { "start": { "line": 285, @@ -21060,8 +21166,8 @@ }, "object": { "type": "Identifier", - "start": 8372, - "end": 8375, + "start": 8398, + "end": 8401, "loc": { "start": { "line": 285, @@ -21077,8 +21183,8 @@ }, "property": { "type": "Identifier", - "start": 8376, - "end": 8381, + "start": 8402, + "end": 8407, "loc": { "start": { "line": 285, @@ -21096,8 +21202,8 @@ }, "property": { "type": "Identifier", - "start": 8382, - "end": 8390, + "start": 8408, + "end": 8416, "loc": { "start": { "line": 285, @@ -21115,8 +21221,8 @@ }, "property": { "type": "Identifier", - "start": 8391, - "end": 8397, + "start": 8417, + "end": 8423, "loc": { "start": { "line": 285, @@ -21135,8 +21241,8 @@ "operator": "-", "right": { "type": "NumericLiteral", - "start": 8400, - "end": 8401, + "start": 8426, + "end": 8427, "loc": { "start": { "line": 285, @@ -21160,8 +21266,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8403, - "end": 8409, + "start": 8429, + "end": 8435, "loc": { "start": { "line": 285, @@ -21174,8 +21280,8 @@ }, "left": { "type": "Identifier", - "start": 8403, - "end": 8404, + "start": 8429, + "end": 8430, "loc": { "start": { "line": 285, @@ -21192,8 +21298,8 @@ "operator": ">=", "right": { "type": "NumericLiteral", - "start": 8408, - "end": 8409, + "start": 8434, + "end": 8435, "loc": { "start": { "line": 285, @@ -21213,8 +21319,8 @@ }, "update": { "type": "UpdateExpression", - "start": 8411, - "end": 8414, + "start": 8437, + "end": 8440, "loc": { "start": { "line": 285, @@ -21229,8 +21335,8 @@ "prefix": false, "argument": { "type": "Identifier", - "start": 8411, - "end": 8412, + "start": 8437, + "end": 8438, "loc": { "start": { "line": 285, @@ -21247,8 +21353,8 @@ }, "body": { "type": "BlockStatement", - "start": 8416, - "end": 8467, + "start": 8442, + "end": 8493, "loc": { "start": { "line": 285, @@ -21262,8 +21368,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8420, - "end": 8464, + "start": 8446, + "end": 8490, "loc": { "start": { "line": 286, @@ -21276,8 +21382,8 @@ }, "expression": { "type": "CallExpression", - "start": 8420, - "end": 8464, + "start": 8446, + "end": 8490, "loc": { "start": { "line": 286, @@ -21290,8 +21396,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8420, - "end": 8441, + "start": 8446, + "end": 8467, "loc": { "start": { "line": 286, @@ -21304,8 +21410,8 @@ }, "object": { "type": "MemberExpression", - "start": 8420, - "end": 8429, + "start": 8446, + "end": 8455, "loc": { "start": { "line": 286, @@ -21318,8 +21424,8 @@ }, "object": { "type": "Identifier", - "start": 8420, - "end": 8423, + "start": 8446, + "end": 8449, "loc": { "start": { "line": 286, @@ -21335,8 +21441,8 @@ }, "property": { "type": "Identifier", - "start": 8424, - "end": 8429, + "start": 8450, + "end": 8455, "loc": { "start": { "line": 286, @@ -21354,8 +21460,8 @@ }, "property": { "type": "Identifier", - "start": 8430, - "end": 8441, + "start": 8456, + "end": 8467, "loc": { "start": { "line": 286, @@ -21374,8 +21480,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 8442, - "end": 8463, + "start": 8468, + "end": 8489, "loc": { "start": { "line": 286, @@ -21388,8 +21494,8 @@ }, "object": { "type": "MemberExpression", - "start": 8442, - "end": 8460, + "start": 8468, + "end": 8486, "loc": { "start": { "line": 286, @@ -21402,8 +21508,8 @@ }, "object": { "type": "MemberExpression", - "start": 8442, - "end": 8451, + "start": 8468, + "end": 8477, "loc": { "start": { "line": 286, @@ -21416,8 +21522,8 @@ }, "object": { "type": "Identifier", - "start": 8442, - "end": 8445, + "start": 8468, + "end": 8471, "loc": { "start": { "line": 286, @@ -21433,8 +21539,8 @@ }, "property": { "type": "Identifier", - "start": 8446, - "end": 8451, + "start": 8472, + "end": 8477, "loc": { "start": { "line": 286, @@ -21452,8 +21558,8 @@ }, "property": { "type": "Identifier", - "start": 8452, - "end": 8460, + "start": 8478, + "end": 8486, "loc": { "start": { "line": 286, @@ -21471,8 +21577,8 @@ }, "property": { "type": "Identifier", - "start": 8461, - "end": 8462, + "start": 8487, + "end": 8488, "loc": { "start": { "line": 286, @@ -21503,8 +21609,8 @@ { "type": "CommentBlock", "value": "*\n * Remove all elements pre-rendered on stage.\n ", - "start": 8279, - "end": 8332, + "start": 8305, + "end": 8358, "loc": { "start": { "line": 281, @@ -21521,8 +21627,8 @@ { "type": "CommentBlock", "value": "*\n * Destroy everything in PIXI. DANGEROUS avoid!\n ", - "start": 8471, - "end": 8526, + "start": 8497, + "end": 8552, "loc": { "start": { "line": 290, @@ -21538,8 +21644,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 8527, - "end": 8696, + "start": 8553, + "end": 8722, "loc": { "start": { "line": 293, @@ -21554,8 +21660,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 8534, - "end": 8696, + "start": 8560, + "end": 8722, "loc": { "start": { "line": 293, @@ -21568,8 +21674,8 @@ }, "id": { "type": "Identifier", - "start": 8543, - "end": 8554, + "start": 8569, + "end": 8580, "loc": { "start": { "line": 293, @@ -21590,8 +21696,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 8558, - "end": 8696, + "start": 8584, + "end": 8722, "loc": { "start": { "line": 293, @@ -21605,8 +21711,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8561, - "end": 8639, + "start": 8587, + "end": 8665, "loc": { "start": { "line": 294, @@ -21619,8 +21725,8 @@ }, "expression": { "type": "CallExpression", - "start": 8561, - "end": 8639, + "start": 8587, + "end": 8665, "loc": { "start": { "line": 294, @@ -21633,8 +21739,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8561, - "end": 8572, + "start": 8587, + "end": 8598, "loc": { "start": { "line": 294, @@ -21647,8 +21753,8 @@ }, "object": { "type": "Identifier", - "start": 8561, - "end": 8564, + "start": 8587, + "end": 8590, "loc": { "start": { "line": 294, @@ -21664,8 +21770,8 @@ }, "property": { "type": "Identifier", - "start": 8565, - "end": 8572, + "start": 8591, + "end": 8598, "loc": { "start": { "line": 294, @@ -21684,8 +21790,8 @@ "arguments": [ { "type": "BooleanLiteral", - "start": 8573, - "end": 8577, + "start": 8599, + "end": 8603, "loc": { "start": { "line": 294, @@ -21700,8 +21806,8 @@ }, { "type": "ObjectExpression", - "start": 8579, - "end": 8638, + "start": 8605, + "end": 8664, "loc": { "start": { "line": 294, @@ -21715,8 +21821,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 8583, - "end": 8597, + "start": 8609, + "end": 8623, "loc": { "start": { "line": 295, @@ -21732,8 +21838,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 8583, - "end": 8591, + "start": 8609, + "end": 8617, "loc": { "start": { "line": 295, @@ -21749,8 +21855,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 8593, - "end": 8597, + "start": 8619, + "end": 8623, "loc": { "start": { "line": 295, @@ -21766,8 +21872,8 @@ }, { "type": "ObjectProperty", - "start": 8601, - "end": 8614, + "start": 8627, + "end": 8640, "loc": { "start": { "line": 296, @@ -21783,8 +21889,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 8601, - "end": 8608, + "start": 8627, + "end": 8634, "loc": { "start": { "line": 296, @@ -21800,8 +21906,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 8610, - "end": 8614, + "start": 8636, + "end": 8640, "loc": { "start": { "line": 296, @@ -21817,8 +21923,8 @@ }, { "type": "ObjectProperty", - "start": 8618, - "end": 8635, + "start": 8644, + "end": 8661, "loc": { "start": { "line": 297, @@ -21834,8 +21940,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 8618, - "end": 8629, + "start": 8644, + "end": 8655, "loc": { "start": { "line": 297, @@ -21851,8 +21957,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 8631, - "end": 8635, + "start": 8657, + "end": 8661, "loc": { "start": { "line": 297, @@ -21873,8 +21979,8 @@ }, { "type": "ExpressionStatement", - "start": 8641, - "end": 8660, + "start": 8667, + "end": 8686, "loc": { "start": { "line": 299, @@ -21887,8 +21993,8 @@ }, "expression": { "type": "CallExpression", - "start": 8641, - "end": 8660, + "start": 8667, + "end": 8686, "loc": { "start": { "line": 299, @@ -21901,8 +22007,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8641, - "end": 8658, + "start": 8667, + "end": 8684, "loc": { "start": { "line": 299, @@ -21915,8 +22021,8 @@ }, "object": { "type": "MemberExpression", - "start": 8641, - "end": 8652, + "start": 8667, + "end": 8678, "loc": { "start": { "line": 299, @@ -21929,8 +22035,8 @@ }, "object": { "type": "Identifier", - "start": 8641, - "end": 8645, + "start": 8667, + "end": 8671, "loc": { "start": { "line": 299, @@ -21946,8 +22052,8 @@ }, "property": { "type": "Identifier", - "start": 8646, - "end": 8652, + "start": 8672, + "end": 8678, "loc": { "start": { "line": 299, @@ -21965,8 +22071,8 @@ }, "property": { "type": "Identifier", - "start": 8653, - "end": 8658, + "start": 8679, + "end": 8684, "loc": { "start": { "line": 299, @@ -21987,8 +22093,8 @@ }, { "type": "ExpressionStatement", - "start": 8662, - "end": 8677, + "start": 8688, + "end": 8703, "loc": { "start": { "line": 300, @@ -22001,8 +22107,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8662, - "end": 8677, + "start": 8688, + "end": 8703, "loc": { "start": { "line": 300, @@ -22016,8 +22122,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8662, - "end": 8669, + "start": 8688, + "end": 8695, "loc": { "start": { "line": 300, @@ -22033,8 +22139,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 8672, - "end": 8677, + "start": 8698, + "end": 8703, "loc": { "start": { "line": 300, @@ -22051,8 +22157,8 @@ }, { "type": "ExpressionStatement", - "start": 8679, - "end": 8694, + "start": 8705, + "end": 8720, "loc": { "start": { "line": 301, @@ -22065,8 +22171,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8679, - "end": 8694, + "start": 8705, + "end": 8720, "loc": { "start": { "line": 301, @@ -22080,8 +22186,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8679, - "end": 8682, + "start": 8705, + "end": 8708, "loc": { "start": { "line": 301, @@ -22097,8 +22203,8 @@ }, "right": { "type": "Identifier", - "start": 8685, - "end": 8694, + "start": 8711, + "end": 8720, "loc": { "start": { "line": 301, @@ -22122,8 +22228,8 @@ { "type": "CommentBlock", "value": "*\n * Destroy everything in PIXI. DANGEROUS avoid!\n ", - "start": 8471, - "end": 8526, + "start": 8497, + "end": 8552, "loc": { "start": { "line": 290, @@ -22140,8 +22246,8 @@ { "type": "CommentBlock", "value": "*\n * Call this function to hide loading div and show UI\n ", - "start": 8698, - "end": 8759, + "start": 8724, + "end": 8785, "loc": { "start": { "line": 304, @@ -22159,8 +22265,8 @@ { "type": "CommentBlock", "value": "*\n * Destroy everything in PIXI. DANGEROUS avoid!\n ", - "start": 8471, - "end": 8526, + "start": 8497, + "end": 8552, "loc": { "start": { "line": 290, @@ -22177,8 +22283,8 @@ { "type": "CommentBlock", "value": "*\n * Call this function to hide loading div and show UI\n ", - "start": 8698, - "end": 8759, + "start": 8724, + "end": 8785, "loc": { "start": { "line": 304, @@ -22194,8 +22300,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 8760, - "end": 8883, + "start": 8786, + "end": 8909, "loc": { "start": { "line": 307, @@ -22210,8 +22316,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 8767, - "end": 8883, + "start": 8793, + "end": 8909, "loc": { "start": { "line": 307, @@ -22224,8 +22330,8 @@ }, "id": { "type": "Identifier", - "start": 8776, - "end": 8786, + "start": 8802, + "end": 8812, "loc": { "start": { "line": 307, @@ -22246,8 +22352,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 8790, - "end": 8883, + "start": 8816, + "end": 8909, "loc": { "start": { "line": 307, @@ -22261,8 +22367,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8817, - "end": 8839, + "start": 8843, + "end": 8865, "loc": { "start": { "line": 309, @@ -22275,8 +22381,8 @@ }, "expression": { "type": "CallExpression", - "start": 8817, - "end": 8839, + "start": 8843, + "end": 8865, "loc": { "start": { "line": 309, @@ -22289,8 +22395,8 @@ }, "callee": { "type": "Identifier", - "start": 8817, - "end": 8828, + "start": 8843, + "end": 8854, "loc": { "start": { "line": 309, @@ -22308,8 +22414,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8829, - "end": 8838, + "start": 8855, + "end": 8864, "loc": { "start": { "line": 309, @@ -22333,8 +22439,8 @@ { "type": "CommentLine", "value": " Hide loading screen", - "start": 8793, - "end": 8815, + "start": 8819, + "end": 8841, "loc": { "start": { "line": 308, @@ -22350,8 +22456,8 @@ }, { "type": "IfStatement", - "start": 8841, - "end": 8881, + "start": 8867, + "end": 8907, "loc": { "start": { "line": 310, @@ -22364,8 +22470,8 @@ }, "test": { "type": "UnaryExpression", - "start": 8845, - "end": 8852, + "start": 8871, + "end": 8878, "loc": { "start": { "line": 310, @@ -22380,8 +22486,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 8846, - "end": 8852, + "start": 8872, + "end": 8878, "loc": { "start": { "line": 310, @@ -22401,8 +22507,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8854, - "end": 8881, + "start": 8880, + "end": 8907, "loc": { "start": { "line": 310, @@ -22416,8 +22522,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8858, - "end": 8878, + "start": 8884, + "end": 8904, "loc": { "start": { "line": 311, @@ -22430,8 +22536,8 @@ }, "expression": { "type": "CallExpression", - "start": 8858, - "end": 8878, + "start": 8884, + "end": 8904, "loc": { "start": { "line": 311, @@ -22444,8 +22550,8 @@ }, "callee": { "type": "Identifier", - "start": 8858, - "end": 8869, + "start": 8884, + "end": 8895, "loc": { "start": { "line": 311, @@ -22462,8 +22568,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8870, - "end": 8877, + "start": 8896, + "end": 8903, "loc": { "start": { "line": 311, @@ -22496,8 +22602,8 @@ { "type": "CommentBlock", "value": "*\n * Call this function to hide loading div and show UI\n ", - "start": 8698, - "end": 8759, + "start": 8724, + "end": 8785, "loc": { "start": { "line": 304, @@ -22514,8 +22620,8 @@ { "type": "CommentBlock", "value": "*\n * Creates a Player instance once the stage is fully set up and ready.\n * @param {*} data Starting values to assign to the player. Generated from server\n * @returns {Player} The Player object that was created\n ", - "start": 8885, - "end": 9101, + "start": 8911, + "end": 9127, "loc": { "start": { "line": 315, @@ -22533,8 +22639,8 @@ { "type": "CommentBlock", "value": "*\n * Call this function to hide loading div and show UI\n ", - "start": 8698, - "end": 8759, + "start": 8724, + "end": 8785, "loc": { "start": { "line": 304, @@ -22551,8 +22657,8 @@ { "type": "CommentBlock", "value": "*\n * Creates a Player instance once the stage is fully set up and ready.\n * @param {*} data Starting values to assign to the player. Generated from server\n * @returns {Player} The Player object that was created\n ", - "start": 8885, - "end": 9101, + "start": 8911, + "end": 9127, "loc": { "start": { "line": 315, @@ -22568,8 +22674,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 9102, - "end": 9471, + "start": 9128, + "end": 9497, "loc": { "start": { "line": 320, @@ -22584,8 +22690,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 9109, - "end": 9471, + "start": 9135, + "end": 9497, "loc": { "start": { "line": 320, @@ -22598,8 +22704,8 @@ }, "id": { "type": "Identifier", - "start": 9118, - "end": 9130, + "start": 9144, + "end": 9156, "loc": { "start": { "line": 320, @@ -22620,8 +22726,8 @@ "params": [ { "type": "Identifier", - "start": 9132, - "end": 9136, + "start": 9158, + "end": 9162, "loc": { "start": { "line": 320, @@ -22638,8 +22744,8 @@ ], "body": { "type": "BlockStatement", - "start": 9138, - "end": 9471, + "start": 9164, + "end": 9497, "loc": { "start": { "line": 320, @@ -22653,8 +22759,8 @@ "body": [ { "type": "IfStatement", - "start": 9141, - "end": 9469, + "start": 9167, + "end": 9495, "loc": { "start": { "line": 321, @@ -22667,8 +22773,8 @@ }, "test": { "type": "Identifier", - "start": 9145, - "end": 9152, + "start": 9171, + "end": 9178, "loc": { "start": { "line": 321, @@ -22684,8 +22790,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9154, - "end": 9469, + "start": 9180, + "end": 9495, "loc": { "start": { "line": 321, @@ -22699,8 +22805,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9158, - "end": 9197, + "start": 9184, + "end": 9223, "loc": { "start": { "line": 322, @@ -22713,8 +22819,8 @@ }, "expression": { "type": "CallExpression", - "start": 9158, - "end": 9197, + "start": 9184, + "end": 9223, "loc": { "start": { "line": 322, @@ -22727,8 +22833,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9158, - "end": 9169, + "start": 9184, + "end": 9195, "loc": { "start": { "line": 322, @@ -22741,8 +22847,8 @@ }, "object": { "type": "Identifier", - "start": 9158, - "end": 9165, + "start": 9184, + "end": 9191, "loc": { "start": { "line": 322, @@ -22758,8 +22864,8 @@ }, "property": { "type": "Identifier", - "start": 9166, - "end": 9169, + "start": 9192, + "end": 9195, "loc": { "start": { "line": 322, @@ -22778,8 +22884,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 9170, - "end": 9196, + "start": 9196, + "end": 9222, "loc": { "start": { "line": 322, @@ -22792,8 +22898,8 @@ }, "left": { "type": "StringLiteral", - "start": 9170, - "end": 9186, + "start": 9196, + "end": 9212, "loc": { "start": { "line": 322, @@ -22813,8 +22919,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 9189, - "end": 9196, + "start": 9215, + "end": 9222, "loc": { "start": { "line": 322, @@ -22827,8 +22933,8 @@ }, "object": { "type": "Identifier", - "start": 9189, - "end": 9193, + "start": 9215, + "end": 9219, "loc": { "start": { "line": 322, @@ -22844,8 +22950,8 @@ }, "property": { "type": "Identifier", - "start": 9194, - "end": 9196, + "start": 9220, + "end": 9222, "loc": { "start": { "line": 322, @@ -22867,8 +22973,8 @@ }, { "type": "ExpressionStatement", - "start": 9200, - "end": 9217, + "start": 9226, + "end": 9243, "loc": { "start": { "line": 323, @@ -22881,8 +22987,8 @@ }, "expression": { "type": "CallExpression", - "start": 9200, - "end": 9217, + "start": 9226, + "end": 9243, "loc": { "start": { "line": 323, @@ -22895,8 +23001,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9200, - "end": 9211, + "start": 9226, + "end": 9237, "loc": { "start": { "line": 323, @@ -22909,8 +23015,8 @@ }, "object": { "type": "Identifier", - "start": 9200, - "end": 9207, + "start": 9226, + "end": 9233, "loc": { "start": { "line": 323, @@ -22926,8 +23032,8 @@ }, "property": { "type": "Identifier", - "start": 9208, - "end": 9211, + "start": 9234, + "end": 9237, "loc": { "start": { "line": 323, @@ -22946,8 +23052,8 @@ "arguments": [ { "type": "Identifier", - "start": 9212, - "end": 9216, + "start": 9238, + "end": 9242, "loc": { "start": { "line": 323, @@ -22966,8 +23072,8 @@ }, { "type": "VariableDeclaration", - "start": 9220, - "end": 9389, + "start": 9246, + "end": 9415, "loc": { "start": { "line": 324, @@ -22981,8 +23087,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 9224, - "end": 9389, + "start": 9250, + "end": 9415, "loc": { "start": { "line": 324, @@ -22995,8 +23101,8 @@ }, "id": { "type": "Identifier", - "start": 9224, - "end": 9233, + "start": 9250, + "end": 9259, "loc": { "start": { "line": 324, @@ -23012,8 +23118,8 @@ }, "init": { "type": "NewExpression", - "start": 9236, - "end": 9389, + "start": 9262, + "end": 9415, "loc": { "start": { "line": 324, @@ -23026,8 +23132,8 @@ }, "callee": { "type": "Identifier", - "start": 9240, - "end": 9246, + "start": 9266, + "end": 9272, "loc": { "start": { "line": 324, @@ -23044,8 +23150,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 9247, - "end": 9293, + "start": 9273, + "end": 9319, "loc": { "start": { "line": 324, @@ -23058,8 +23164,8 @@ }, "object": { "type": "MemberExpression", - "start": 9247, - "end": 9267, + "start": 9273, + "end": 9293, "loc": { "start": { "line": 324, @@ -23072,8 +23178,8 @@ }, "object": { "type": "Identifier", - "start": 9247, - "end": 9258, + "start": 9273, + "end": 9284, "loc": { "start": { "line": 324, @@ -23089,8 +23195,8 @@ }, "property": { "type": "Identifier", - "start": 9259, - "end": 9267, + "start": 9285, + "end": 9293, "loc": { "start": { "line": 324, @@ -23108,8 +23214,8 @@ }, "property": { "type": "MemberExpression", - "start": 9268, - "end": 9292, + "start": 9294, + "end": 9318, "loc": { "start": { "line": 324, @@ -23122,8 +23228,8 @@ }, "object": { "type": "MemberExpression", - "start": 9268, - "end": 9289, + "start": 9294, + "end": 9315, "loc": { "start": { "line": 324, @@ -23136,8 +23242,8 @@ }, "object": { "type": "Identifier", - "start": 9268, - "end": 9274, + "start": 9294, + "end": 9300, "loc": { "start": { "line": 324, @@ -23153,8 +23259,8 @@ }, "property": { "type": "Identifier", - "start": 9275, - "end": 9289, + "start": 9301, + "end": 9315, "loc": { "start": { "line": 324, @@ -23172,8 +23278,8 @@ }, "property": { "type": "NumericLiteral", - "start": 9290, - "end": 9291, + "start": 9316, + "end": 9317, "loc": { "start": { "line": 324, @@ -23196,8 +23302,8 @@ }, { "type": "MemberExpression", - "start": 9295, - "end": 9302, + "start": 9321, + "end": 9328, "loc": { "start": { "line": 324, @@ -23210,8 +23316,8 @@ }, "object": { "type": "Identifier", - "start": 9295, - "end": 9299, + "start": 9321, + "end": 9325, "loc": { "start": { "line": 324, @@ -23227,8 +23333,8 @@ }, "property": { "type": "Identifier", - "start": 9300, - "end": 9302, + "start": 9326, + "end": 9328, "loc": { "start": { "line": 324, @@ -23246,8 +23352,8 @@ }, { "type": "MemberExpression", - "start": 9304, - "end": 9313, + "start": 9330, + "end": 9339, "loc": { "start": { "line": 324, @@ -23260,8 +23366,8 @@ }, "object": { "type": "Identifier", - "start": 9304, - "end": 9308, + "start": 9330, + "end": 9334, "loc": { "start": { "line": 324, @@ -23277,8 +23383,8 @@ }, "property": { "type": "Identifier", - "start": 9309, - "end": 9313, + "start": 9335, + "end": 9339, "loc": { "start": { "line": 324, @@ -23296,8 +23402,8 @@ }, { "type": "MemberExpression", - "start": 9315, - "end": 9324, + "start": 9341, + "end": 9350, "loc": { "start": { "line": 324, @@ -23310,8 +23416,8 @@ }, "object": { "type": "Identifier", - "start": 9315, - "end": 9319, + "start": 9341, + "end": 9345, "loc": { "start": { "line": 324, @@ -23327,8 +23433,8 @@ }, "property": { "type": "Identifier", - "start": 9320, - "end": 9324, + "start": 9346, + "end": 9350, "loc": { "start": { "line": 324, @@ -23346,8 +23452,8 @@ }, { "type": "MemberExpression", - "start": 9326, - "end": 9335, + "start": 9352, + "end": 9361, "loc": { "start": { "line": 324, @@ -23360,8 +23466,8 @@ }, "object": { "type": "Identifier", - "start": 9326, - "end": 9330, + "start": 9352, + "end": 9356, "loc": { "start": { "line": 324, @@ -23377,8 +23483,8 @@ }, "property": { "type": "Identifier", - "start": 9331, - "end": 9335, + "start": 9357, + "end": 9361, "loc": { "start": { "line": 324, @@ -23396,8 +23502,8 @@ }, { "type": "MemberExpression", - "start": 9337, - "end": 9348, + "start": 9363, + "end": 9374, "loc": { "start": { "line": 324, @@ -23410,8 +23516,8 @@ }, "object": { "type": "Identifier", - "start": 9337, - "end": 9341, + "start": 9363, + "end": 9367, "loc": { "start": { "line": 324, @@ -23427,8 +23533,8 @@ }, "property": { "type": "Identifier", - "start": 9342, - "end": 9348, + "start": 9368, + "end": 9374, "loc": { "start": { "line": 324, @@ -23446,8 +23552,8 @@ }, { "type": "MemberExpression", - "start": 9350, - "end": 9359, + "start": 9376, + "end": 9385, "loc": { "start": { "line": 324, @@ -23460,8 +23566,8 @@ }, "object": { "type": "Identifier", - "start": 9350, - "end": 9354, + "start": 9376, + "end": 9380, "loc": { "start": { "line": 324, @@ -23477,8 +23583,8 @@ }, "property": { "type": "Identifier", - "start": 9355, - "end": 9359, + "start": 9381, + "end": 9385, "loc": { "start": { "line": 324, @@ -23496,8 +23602,8 @@ }, { "type": "MemberExpression", - "start": 9361, - "end": 9370, + "start": 9387, + "end": 9396, "loc": { "start": { "line": 324, @@ -23510,8 +23616,8 @@ }, "object": { "type": "Identifier", - "start": 9361, - "end": 9365, + "start": 9387, + "end": 9391, "loc": { "start": { "line": 324, @@ -23527,8 +23633,8 @@ }, "property": { "type": "Identifier", - "start": 9366, - "end": 9370, + "start": 9392, + "end": 9396, "loc": { "start": { "line": 324, @@ -23546,8 +23652,8 @@ }, { "type": "MemberExpression", - "start": 9372, - "end": 9379, + "start": 9398, + "end": 9405, "loc": { "start": { "line": 324, @@ -23560,8 +23666,8 @@ }, "object": { "type": "Identifier", - "start": 9372, - "end": 9376, + "start": 9398, + "end": 9402, "loc": { "start": { "line": 324, @@ -23577,8 +23683,8 @@ }, "property": { "type": "Identifier", - "start": 9377, - "end": 9379, + "start": 9403, + "end": 9405, "loc": { "start": { "line": 324, @@ -23596,8 +23702,8 @@ }, { "type": "MemberExpression", - "start": 9381, - "end": 9388, + "start": 9407, + "end": 9414, "loc": { "start": { "line": 324, @@ -23610,8 +23716,8 @@ }, "object": { "type": "Identifier", - "start": 9381, - "end": 9385, + "start": 9407, + "end": 9411, "loc": { "start": { "line": 324, @@ -23627,8 +23733,8 @@ }, "property": { "type": "Identifier", - "start": 9386, - "end": 9388, + "start": 9412, + "end": 9414, "loc": { "start": { "line": 324, @@ -23652,8 +23758,8 @@ }, { "type": "IfStatement", - "start": 9392, - "end": 9446, + "start": 9418, + "end": 9472, "loc": { "start": { "line": 325, @@ -23666,8 +23772,8 @@ }, "test": { "type": "BinaryExpression", - "start": 9396, - "end": 9417, + "start": 9422, + "end": 9443, "loc": { "start": { "line": 325, @@ -23680,8 +23786,8 @@ }, "left": { "type": "MemberExpression", - "start": 9396, - "end": 9403, + "start": 9422, + "end": 9429, "loc": { "start": { "line": 325, @@ -23694,8 +23800,8 @@ }, "object": { "type": "Identifier", - "start": 9396, - "end": 9400, + "start": 9422, + "end": 9426, "loc": { "start": { "line": 325, @@ -23711,8 +23817,8 @@ }, "property": { "type": "Identifier", - "start": 9401, - "end": 9403, + "start": 9427, + "end": 9429, "loc": { "start": { "line": 325, @@ -23731,8 +23837,8 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 9408, - "end": 9417, + "start": 9434, + "end": 9443, "loc": { "start": { "line": 325, @@ -23745,8 +23851,8 @@ }, "object": { "type": "Identifier", - "start": 9408, - "end": 9414, + "start": 9434, + "end": 9440, "loc": { "start": { "line": 325, @@ -23762,8 +23868,8 @@ }, "property": { "type": "Identifier", - "start": 9415, - "end": 9417, + "start": 9441, + "end": 9443, "loc": { "start": { "line": 325, @@ -23782,8 +23888,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9419, - "end": 9446, + "start": 9445, + "end": 9472, "loc": { "start": { "line": 325, @@ -23797,8 +23903,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9424, - "end": 9442, + "start": 9450, + "end": 9468, "loc": { "start": { "line": 326, @@ -23811,8 +23917,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 9424, - "end": 9442, + "start": 9450, + "end": 9468, "loc": { "start": { "line": 326, @@ -23826,8 +23932,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 9424, - "end": 9430, + "start": 9450, + "end": 9456, "loc": { "start": { "line": 326, @@ -23843,8 +23949,8 @@ }, "right": { "type": "Identifier", - "start": 9433, - "end": 9442, + "start": 9459, + "end": 9468, "loc": { "start": { "line": 326, @@ -23867,8 +23973,8 @@ }, { "type": "ReturnStatement", - "start": 9450, - "end": 9466, + "start": 9476, + "end": 9492, "loc": { "start": { "line": 329, @@ -23881,8 +23987,8 @@ }, "argument": { "type": "Identifier", - "start": 9457, - "end": 9466, + "start": 9483, + "end": 9492, "loc": { "start": { "line": 329, @@ -23910,8 +24016,8 @@ { "type": "CommentBlock", "value": "*\n * Creates a Player instance once the stage is fully set up and ready.\n * @param {*} data Starting values to assign to the player. Generated from server\n * @returns {Player} The Player object that was created\n ", - "start": 8885, - "end": 9101, + "start": 8911, + "end": 9127, "loc": { "start": { "line": 315, @@ -23928,8 +24034,8 @@ { "type": "CommentBlock", "value": "*\n * If the document is Focused return true otherwise false\n *", - "start": 9473, - "end": 9539, + "start": 9499, + "end": 9565, "loc": { "start": { "line": 333, @@ -23947,8 +24053,8 @@ { "type": "CommentBlock", "value": "*\n * Creates a Player instance once the stage is fully set up and ready.\n * @param {*} data Starting values to assign to the player. Generated from server\n * @returns {Player} The Player object that was created\n ", - "start": 8885, - "end": 9101, + "start": 8911, + "end": 9127, "loc": { "start": { "line": 315, @@ -23965,8 +24071,8 @@ { "type": "CommentBlock", "value": "*\n * If the document is Focused return true otherwise false\n *", - "start": 9473, - "end": 9539, + "start": 9499, + "end": 9565, "loc": { "start": { "line": 333, @@ -23982,8 +24088,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 9540, - "end": 9667, + "start": 9566, + "end": 9693, "loc": { "start": { "line": 336, @@ -23998,8 +24104,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 9547, - "end": 9667, + "start": 9573, + "end": 9693, "loc": { "start": { "line": 336, @@ -24012,8 +24118,8 @@ }, "id": { "type": "Identifier", - "start": 9556, - "end": 9565, + "start": 9582, + "end": 9591, "loc": { "start": { "line": 336, @@ -24034,8 +24140,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 9569, - "end": 9667, + "start": 9595, + "end": 9693, "loc": { "start": { "line": 336, @@ -24049,8 +24155,8 @@ "body": [ { "type": "ReturnStatement", - "start": 9572, - "end": 9665, + "start": 9598, + "end": 9691, "loc": { "start": { "line": 337, @@ -24063,8 +24169,8 @@ }, "argument": { "type": "LogicalExpression", - "start": 9579, - "end": 9665, + "start": 9605, + "end": 9691, "loc": { "start": { "line": 337, @@ -24077,8 +24183,8 @@ }, "left": { "type": "CallExpression", - "start": 9579, - "end": 9598, + "start": 9605, + "end": 9624, "loc": { "start": { "line": 337, @@ -24091,8 +24197,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9579, - "end": 9596, + "start": 9605, + "end": 9622, "loc": { "start": { "line": 337, @@ -24105,8 +24211,8 @@ }, "object": { "type": "Identifier", - "start": 9579, - "end": 9587, + "start": 9605, + "end": 9613, "loc": { "start": { "line": 337, @@ -24122,8 +24228,8 @@ }, "property": { "type": "Identifier", - "start": 9588, - "end": 9596, + "start": 9614, + "end": 9622, "loc": { "start": { "line": 337, @@ -24144,8 +24250,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 9602, - "end": 9665, + "start": 9628, + "end": 9691, "loc": { "start": { "line": 337, @@ -24158,8 +24264,8 @@ }, "left": { "type": "MemberExpression", - "start": 9602, - "end": 9624, + "start": 9628, + "end": 9650, "loc": { "start": { "line": 337, @@ -24172,8 +24278,8 @@ }, "object": { "type": "Identifier", - "start": 9602, - "end": 9610, + "start": 9628, + "end": 9636, "loc": { "start": { "line": 337, @@ -24189,8 +24295,8 @@ }, "property": { "type": "Identifier", - "start": 9611, - "end": 9624, + "start": 9637, + "end": 9650, "loc": { "start": { "line": 337, @@ -24209,8 +24315,8 @@ "operator": "!==", "right": { "type": "CallExpression", - "start": 9629, - "end": 9665, + "start": 9655, + "end": 9691, "loc": { "start": { "line": 337, @@ -24223,8 +24329,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9629, - "end": 9652, + "start": 9655, + "end": 9678, "loc": { "start": { "line": 337, @@ -24237,8 +24343,8 @@ }, "object": { "type": "Identifier", - "start": 9629, - "end": 9637, + "start": 9655, + "end": 9663, "loc": { "start": { "line": 337, @@ -24254,8 +24360,8 @@ }, "property": { "type": "Identifier", - "start": 9638, - "end": 9652, + "start": 9664, + "end": 9678, "loc": { "start": { "line": 337, @@ -24274,8 +24380,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9653, - "end": 9664, + "start": 9679, + "end": 9690, "loc": { "start": { "line": 337, @@ -24305,8 +24411,8 @@ { "type": "CommentBlock", "value": "*\n * If the document is Focused return true otherwise false\n *", - "start": 9473, - "end": 9539, + "start": 9499, + "end": 9565, "loc": { "start": { "line": 333, @@ -24323,8 +24429,8 @@ { "type": "CommentBlock", "value": "*\n * Starts the game after lobby closes.\n * @param {boolean} emit True if this client should emit the event to the server.\n * @param {*} teams Array of teams on the scoreboard.\n ", - "start": 9669, - "end": 9851, + "start": 9695, + "end": 9877, "loc": { "start": { "line": 340, @@ -24342,8 +24448,8 @@ { "type": "CommentBlock", "value": "*\n * If the document is Focused return true otherwise false\n *", - "start": 9473, - "end": 9539, + "start": 9499, + "end": 9565, "loc": { "start": { "line": 333, @@ -24360,8 +24466,8 @@ { "type": "CommentBlock", "value": "*\n * Starts the game after lobby closes.\n * @param {boolean} emit True if this client should emit the event to the server.\n * @param {*} teams Array of teams on the scoreboard.\n ", - "start": 9669, - "end": 9851, + "start": 9695, + "end": 9877, "loc": { "start": { "line": 340, @@ -24377,8 +24483,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 9852, - "end": 10503, + "start": 9878, + "end": 10529, "loc": { "start": { "line": 345, @@ -24393,8 +24499,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 9859, - "end": 10503, + "start": 9885, + "end": 10529, "loc": { "start": { "line": 345, @@ -24407,8 +24513,8 @@ }, "id": { "type": "Identifier", - "start": 9868, - "end": 9877, + "start": 9894, + "end": 9903, "loc": { "start": { "line": 345, @@ -24429,8 +24535,8 @@ "params": [ { "type": "Identifier", - "start": 9879, - "end": 9883, + "start": 9905, + "end": 9909, "loc": { "start": { "line": 345, @@ -24446,8 +24552,8 @@ }, { "type": "Identifier", - "start": 9885, - "end": 9890, + "start": 9911, + "end": 9916, "loc": { "start": { "line": 345, @@ -24464,8 +24570,8 @@ ], "body": { "type": "BlockStatement", - "start": 9892, - "end": 10503, + "start": 9918, + "end": 10529, "loc": { "start": { "line": 345, @@ -24479,8 +24585,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9895, - "end": 9910, + "start": 9921, + "end": 9936, "loc": { "start": { "line": 346, @@ -24493,8 +24599,8 @@ }, "expression": { "type": "CallExpression", - "start": 9895, - "end": 9910, + "start": 9921, + "end": 9936, "loc": { "start": { "line": 346, @@ -24507,8 +24613,8 @@ }, "callee": { "type": "Identifier", - "start": 9895, - "end": 9904, + "start": 9921, + "end": 9930, "loc": { "start": { "line": 346, @@ -24525,8 +24631,8 @@ "arguments": [ { "type": "BooleanLiteral", - "start": 9905, - "end": 9909, + "start": 9931, + "end": 9935, "loc": { "start": { "line": 346, @@ -24544,8 +24650,8 @@ }, { "type": "ExpressionStatement", - "start": 9912, - "end": 9932, + "start": 9938, + "end": 9958, "loc": { "start": { "line": 347, @@ -24558,8 +24664,8 @@ }, "expression": { "type": "CallExpression", - "start": 9912, - "end": 9932, + "start": 9938, + "end": 9958, "loc": { "start": { "line": 347, @@ -24572,8 +24678,8 @@ }, "callee": { "type": "Identifier", - "start": 9912, - "end": 9923, + "start": 9938, + "end": 9949, "loc": { "start": { "line": 347, @@ -24590,8 +24696,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9924, - "end": 9931, + "start": 9950, + "end": 9957, "loc": { "start": { "line": 347, @@ -24613,8 +24719,8 @@ }, { "type": "ExpressionStatement", - "start": 9934, - "end": 9952, + "start": 9960, + "end": 9978, "loc": { "start": { "line": 348, @@ -24627,8 +24733,8 @@ }, "expression": { "type": "CallExpression", - "start": 9934, - "end": 9952, + "start": 9960, + "end": 9978, "loc": { "start": { "line": 348, @@ -24641,8 +24747,8 @@ }, "callee": { "type": "Identifier", - "start": 9934, - "end": 9945, + "start": 9960, + "end": 9971, "loc": { "start": { "line": 348, @@ -24659,8 +24765,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9946, - "end": 9951, + "start": 9972, + "end": 9977, "loc": { "start": { "line": 348, @@ -24682,8 +24788,8 @@ }, { "type": "IfStatement", - "start": 9954, - "end": 10017, + "start": 9980, + "end": 10043, "loc": { "start": { "line": 349, @@ -24696,8 +24802,8 @@ }, "test": { "type": "Identifier", - "start": 9958, - "end": 9962, + "start": 9984, + "end": 9988, "loc": { "start": { "line": 349, @@ -24713,8 +24819,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9964, - "end": 10017, + "start": 9990, + "end": 10043, "loc": { "start": { "line": 349, @@ -24728,8 +24834,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9968, - "end": 10014, + "start": 9994, + "end": 10040, "loc": { "start": { "line": 350, @@ -24742,8 +24848,8 @@ }, "expression": { "type": "CallExpression", - "start": 9968, - "end": 10014, + "start": 9994, + "end": 10040, "loc": { "start": { "line": 350, @@ -24756,8 +24862,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9968, - "end": 9979, + "start": 9994, + "end": 10005, "loc": { "start": { "line": 350, @@ -24770,8 +24876,8 @@ }, "object": { "type": "Identifier", - "start": 9968, - "end": 9974, + "start": 9994, + "end": 10000, "loc": { "start": { "line": 350, @@ -24787,8 +24893,8 @@ }, "property": { "type": "Identifier", - "start": 9975, - "end": 9979, + "start": 10001, + "end": 10005, "loc": { "start": { "line": 350, @@ -24807,8 +24913,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9980, - "end": 9991, + "start": 10006, + "end": 10017, "loc": { "start": { "line": 350, @@ -24827,8 +24933,8 @@ }, { "type": "ObjectExpression", - "start": 9993, - "end": 10013, + "start": 10019, + "end": 10039, "loc": { "start": { "line": 350, @@ -24842,8 +24948,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 9998, - "end": 10009, + "start": 10024, + "end": 10035, "loc": { "start": { "line": 351, @@ -24859,8 +24965,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 9998, - "end": 10003, + "start": 10024, + "end": 10029, "loc": { "start": { "line": 351, @@ -24876,8 +24982,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 10005, - "end": 10009, + "start": 10031, + "end": 10035, "loc": { "start": { "line": 351, @@ -24905,8 +25011,8 @@ { "type": "CommentLine", "value": " Init scoreboard", - "start": 10020, - "end": 10038, + "start": 10046, + "end": 10064, "loc": { "start": { "line": 355, @@ -24922,8 +25028,8 @@ }, { "type": "IfStatement", - "start": 10040, - "end": 10501, + "start": 10066, + "end": 10527, "loc": { "start": { "line": 356, @@ -24936,8 +25042,8 @@ }, "test": { "type": "BinaryExpression", - "start": 10044, - "end": 10063, + "start": 10070, + "end": 10089, "loc": { "start": { "line": 356, @@ -24950,8 +25056,8 @@ }, "left": { "type": "Identifier", - "start": 10044, - "end": 10049, + "start": 10070, + "end": 10075, "loc": { "start": { "line": 356, @@ -24969,8 +25075,8 @@ "operator": "!==", "right": { "type": "Identifier", - "start": 10054, - "end": 10063, + "start": 10080, + "end": 10089, "loc": { "start": { "line": 356, @@ -24988,8 +25094,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 10065, - "end": 10501, + "start": 10091, + "end": 10527, "loc": { "start": { "line": 356, @@ -25003,8 +25109,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 10112, - "end": 10159, + "start": 10138, + "end": 10185, "loc": { "start": { "line": 358, @@ -25017,8 +25123,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10112, - "end": 10159, + "start": 10138, + "end": 10185, "loc": { "start": { "line": 358, @@ -25032,8 +25138,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 10112, - "end": 10154, + "start": 10138, + "end": 10180, "loc": { "start": { "line": 358, @@ -25046,8 +25152,8 @@ }, "object": { "type": "CallExpression", - "start": 10112, - "end": 10144, + "start": 10138, + "end": 10170, "loc": { "start": { "line": 358, @@ -25060,8 +25166,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10112, - "end": 10135, + "start": 10138, + "end": 10161, "loc": { "start": { "line": 358, @@ -25074,8 +25180,8 @@ }, "object": { "type": "Identifier", - "start": 10112, - "end": 10120, + "start": 10138, + "end": 10146, "loc": { "start": { "line": 358, @@ -25092,8 +25198,8 @@ }, "property": { "type": "Identifier", - "start": 10121, - "end": 10135, + "start": 10147, + "end": 10161, "loc": { "start": { "line": 358, @@ -25113,8 +25219,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 10136, - "end": 10143, + "start": 10162, + "end": 10169, "loc": { "start": { "line": 358, @@ -25136,8 +25242,8 @@ }, "property": { "type": "Identifier", - "start": 10145, - "end": 10154, + "start": 10171, + "end": 10180, "loc": { "start": { "line": 358, @@ -25156,8 +25262,8 @@ }, "right": { "type": "StringLiteral", - "start": 10157, - "end": 10159, + "start": 10183, + "end": 10185, "loc": { "start": { "line": 358, @@ -25180,8 +25286,8 @@ { "type": "CommentLine", "value": " Reset scoreboard from previous rounds", - "start": 10069, - "end": 10109, + "start": 10095, + "end": 10135, "loc": { "start": { "line": 357, @@ -25197,8 +25303,8 @@ }, { "type": "ForStatement", - "start": 10163, - "end": 10388, + "start": 10189, + "end": 10414, "loc": { "start": { "line": 360, @@ -25211,8 +25317,8 @@ }, "init": { "type": "VariableDeclaration", - "start": 10168, - "end": 10177, + "start": 10194, + "end": 10203, "loc": { "start": { "line": 360, @@ -25226,8 +25332,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10172, - "end": 10177, + "start": 10198, + "end": 10203, "loc": { "start": { "line": 360, @@ -25240,8 +25346,8 @@ }, "id": { "type": "Identifier", - "start": 10172, - "end": 10173, + "start": 10198, + "end": 10199, "loc": { "start": { "line": 360, @@ -25257,8 +25363,8 @@ }, "init": { "type": "NumericLiteral", - "start": 10176, - "end": 10177, + "start": 10202, + "end": 10203, "loc": { "start": { "line": 360, @@ -25281,8 +25387,8 @@ }, "test": { "type": "BinaryExpression", - "start": 10179, - "end": 10195, + "start": 10205, + "end": 10221, "loc": { "start": { "line": 360, @@ -25295,8 +25401,8 @@ }, "left": { "type": "Identifier", - "start": 10179, - "end": 10180, + "start": 10205, + "end": 10206, "loc": { "start": { "line": 360, @@ -25313,8 +25419,8 @@ "operator": "<", "right": { "type": "MemberExpression", - "start": 10183, - "end": 10195, + "start": 10209, + "end": 10221, "loc": { "start": { "line": 360, @@ -25327,8 +25433,8 @@ }, "object": { "type": "Identifier", - "start": 10183, - "end": 10188, + "start": 10209, + "end": 10214, "loc": { "start": { "line": 360, @@ -25344,8 +25450,8 @@ }, "property": { "type": "Identifier", - "start": 10189, - "end": 10195, + "start": 10215, + "end": 10221, "loc": { "start": { "line": 360, @@ -25364,8 +25470,8 @@ }, "update": { "type": "UpdateExpression", - "start": 10197, - "end": 10200, + "start": 10223, + "end": 10226, "loc": { "start": { "line": 360, @@ -25380,8 +25486,8 @@ "prefix": false, "argument": { "type": "Identifier", - "start": 10197, - "end": 10198, + "start": 10223, + "end": 10224, "loc": { "start": { "line": 360, @@ -25398,8 +25504,8 @@ }, "body": { "type": "BlockStatement", - "start": 10202, - "end": 10388, + "start": 10228, + "end": 10414, "loc": { "start": { "line": 360, @@ -25413,8 +25519,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 10207, - "end": 10296, + "start": 10233, + "end": 10322, "loc": { "start": { "line": 361, @@ -25427,8 +25533,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10207, - "end": 10296, + "start": 10233, + "end": 10322, "loc": { "start": { "line": 361, @@ -25442,8 +25548,8 @@ "operator": "+=", "left": { "type": "MemberExpression", - "start": 10207, - "end": 10249, + "start": 10233, + "end": 10275, "loc": { "start": { "line": 361, @@ -25456,8 +25562,8 @@ }, "object": { "type": "CallExpression", - "start": 10207, - "end": 10239, + "start": 10233, + "end": 10265, "loc": { "start": { "line": 361, @@ -25470,8 +25576,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10207, - "end": 10230, + "start": 10233, + "end": 10256, "loc": { "start": { "line": 361, @@ -25484,8 +25590,8 @@ }, "object": { "type": "Identifier", - "start": 10207, - "end": 10215, + "start": 10233, + "end": 10241, "loc": { "start": { "line": 361, @@ -25501,8 +25607,8 @@ }, "property": { "type": "Identifier", - "start": 10216, - "end": 10230, + "start": 10242, + "end": 10256, "loc": { "start": { "line": 361, @@ -25521,8 +25627,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 10231, - "end": 10238, + "start": 10257, + "end": 10264, "loc": { "start": { "line": 361, @@ -25543,8 +25649,8 @@ }, "property": { "type": "Identifier", - "start": 10240, - "end": 10249, + "start": 10266, + "end": 10275, "loc": { "start": { "line": 361, @@ -25562,8 +25668,8 @@ }, "right": { "type": "BinaryExpression", - "start": 10253, - "end": 10296, + "start": 10279, + "end": 10322, "loc": { "start": { "line": 361, @@ -25576,8 +25682,8 @@ }, "left": { "type": "BinaryExpression", - "start": 10253, - "end": 10281, + "start": 10279, + "end": 10307, "loc": { "start": { "line": 361, @@ -25590,8 +25696,8 @@ }, "left": { "type": "StringLiteral", - "start": 10253, - "end": 10277, + "start": 10279, + "end": 10303, "loc": { "start": { "line": 361, @@ -25611,8 +25717,8 @@ "operator": "+", "right": { "type": "Identifier", - "start": 10280, - "end": 10281, + "start": 10306, + "end": 10307, "loc": { "start": { "line": 361, @@ -25630,8 +25736,8 @@ "operator": "+", "right": { "type": "StringLiteral", - "start": 10284, - "end": 10296, + "start": 10310, + "end": 10322, "loc": { "start": { "line": 361, @@ -25653,8 +25759,8 @@ }, { "type": "ExpressionStatement", - "start": 10300, - "end": 10384, + "start": 10326, + "end": 10410, "loc": { "start": { "line": 362, @@ -25667,8 +25773,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10300, - "end": 10384, + "start": 10326, + "end": 10410, "loc": { "start": { "line": 362, @@ -25682,8 +25788,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 10300, - "end": 10354, + "start": 10326, + "end": 10380, "loc": { "start": { "line": 362, @@ -25696,8 +25802,8 @@ }, "object": { "type": "MemberExpression", - "start": 10300, - "end": 10348, + "start": 10326, + "end": 10374, "loc": { "start": { "line": 362, @@ -25710,8 +25816,8 @@ }, "object": { "type": "CallExpression", - "start": 10300, - "end": 10342, + "start": 10326, + "end": 10368, "loc": { "start": { "line": 362, @@ -25724,8 +25830,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10300, - "end": 10323, + "start": 10326, + "end": 10349, "loc": { "start": { "line": 362, @@ -25738,8 +25844,8 @@ }, "object": { "type": "Identifier", - "start": 10300, - "end": 10308, + "start": 10326, + "end": 10334, "loc": { "start": { "line": 362, @@ -25755,8 +25861,8 @@ }, "property": { "type": "Identifier", - "start": 10309, - "end": 10323, + "start": 10335, + "end": 10349, "loc": { "start": { "line": 362, @@ -25775,8 +25881,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 10324, - "end": 10341, + "start": 10350, + "end": 10367, "loc": { "start": { "line": 362, @@ -25789,8 +25895,8 @@ }, "left": { "type": "StringLiteral", - "start": 10324, - "end": 10337, + "start": 10350, + "end": 10363, "loc": { "start": { "line": 362, @@ -25810,8 +25916,8 @@ "operator": "+", "right": { "type": "Identifier", - "start": 10340, - "end": 10341, + "start": 10366, + "end": 10367, "loc": { "start": { "line": 362, @@ -25830,8 +25936,8 @@ }, "property": { "type": "Identifier", - "start": 10343, - "end": 10348, + "start": 10369, + "end": 10374, "loc": { "start": { "line": 362, @@ -25849,8 +25955,8 @@ }, "property": { "type": "Identifier", - "start": 10349, - "end": 10354, + "start": 10375, + "end": 10380, "loc": { "start": { "line": 362, @@ -25868,8 +25974,8 @@ }, "right": { "type": "BinaryExpression", - "start": 10357, - "end": 10384, + "start": 10383, + "end": 10410, "loc": { "start": { "line": 362, @@ -25882,8 +25988,8 @@ }, "left": { "type": "StringLiteral", - "start": 10357, - "end": 10360, + "start": 10383, + "end": 10386, "loc": { "start": { "line": 362, @@ -25903,8 +26009,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 10363, - "end": 10384, + "start": 10389, + "end": 10410, "loc": { "start": { "line": 362, @@ -25917,8 +26023,8 @@ }, "object": { "type": "MemberExpression", - "start": 10363, - "end": 10381, + "start": 10389, + "end": 10407, "loc": { "start": { "line": 362, @@ -25931,8 +26037,8 @@ }, "object": { "type": "Identifier", - "start": 10363, - "end": 10369, + "start": 10389, + "end": 10395, "loc": { "start": { "line": 362, @@ -25948,8 +26054,8 @@ }, "property": { "type": "Identifier", - "start": 10370, - "end": 10381, + "start": 10396, + "end": 10407, "loc": { "start": { "line": 362, @@ -25967,8 +26073,8 @@ }, "property": { "type": "Identifier", - "start": 10382, - "end": 10383, + "start": 10408, + "end": 10409, "loc": { "start": { "line": 362, @@ -25993,8 +26099,8 @@ }, { "type": "ExpressionStatement", - "start": 10391, - "end": 10446, + "start": 10417, + "end": 10472, "loc": { "start": { "line": 364, @@ -26007,8 +26113,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10391, - "end": 10446, + "start": 10417, + "end": 10472, "loc": { "start": { "line": 364, @@ -26022,8 +26128,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 10391, - "end": 10438, + "start": 10417, + "end": 10464, "loc": { "start": { "line": 364, @@ -26036,8 +26142,8 @@ }, "object": { "type": "MemberExpression", - "start": 10391, - "end": 10429, + "start": 10417, + "end": 10455, "loc": { "start": { "line": 364, @@ -26050,8 +26156,8 @@ }, "object": { "type": "CallExpression", - "start": 10391, - "end": 10423, + "start": 10417, + "end": 10449, "loc": { "start": { "line": 364, @@ -26064,8 +26170,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10391, - "end": 10414, + "start": 10417, + "end": 10440, "loc": { "start": { "line": 364, @@ -26078,8 +26184,8 @@ }, "object": { "type": "Identifier", - "start": 10391, - "end": 10399, + "start": 10417, + "end": 10425, "loc": { "start": { "line": 364, @@ -26095,8 +26201,8 @@ }, "property": { "type": "Identifier", - "start": 10400, - "end": 10414, + "start": 10426, + "end": 10440, "loc": { "start": { "line": 364, @@ -26115,8 +26221,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 10415, - "end": 10422, + "start": 10441, + "end": 10448, "loc": { "start": { "line": 364, @@ -26137,8 +26243,8 @@ }, "property": { "type": "Identifier", - "start": 10424, - "end": 10429, + "start": 10450, + "end": 10455, "loc": { "start": { "line": 364, @@ -26156,8 +26262,8 @@ }, "property": { "type": "Identifier", - "start": 10430, - "end": 10438, + "start": 10456, + "end": 10464, "loc": { "start": { "line": 364, @@ -26175,8 +26281,8 @@ }, "right": { "type": "StringLiteral", - "start": 10441, - "end": 10446, + "start": 10467, + "end": 10472, "loc": { "start": { "line": 364, @@ -26197,8 +26303,8 @@ }, { "type": "ExpressionStatement", - "start": 10449, - "end": 10498, + "start": 10475, + "end": 10524, "loc": { "start": { "line": 365, @@ -26211,8 +26317,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10449, - "end": 10498, + "start": 10475, + "end": 10524, "loc": { "start": { "line": 365, @@ -26226,8 +26332,8 @@ "operator": "+=", "left": { "type": "MemberExpression", - "start": 10449, - "end": 10491, + "start": 10475, + "end": 10517, "loc": { "start": { "line": 365, @@ -26240,8 +26346,8 @@ }, "object": { "type": "CallExpression", - "start": 10449, - "end": 10481, + "start": 10475, + "end": 10507, "loc": { "start": { "line": 365, @@ -26254,8 +26360,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10449, - "end": 10472, + "start": 10475, + "end": 10498, "loc": { "start": { "line": 365, @@ -26268,8 +26374,8 @@ }, "object": { "type": "Identifier", - "start": 10449, - "end": 10457, + "start": 10475, + "end": 10483, "loc": { "start": { "line": 365, @@ -26285,8 +26391,8 @@ }, "property": { "type": "Identifier", - "start": 10458, - "end": 10472, + "start": 10484, + "end": 10498, "loc": { "start": { "line": 365, @@ -26305,8 +26411,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 10473, - "end": 10480, + "start": 10499, + "end": 10506, "loc": { "start": { "line": 365, @@ -26327,8 +26433,8 @@ }, "property": { "type": "Identifier", - "start": 10482, - "end": 10491, + "start": 10508, + "end": 10517, "loc": { "start": { "line": 365, @@ -26346,8 +26452,8 @@ }, "right": { "type": "StringLiteral", - "start": 10495, - "end": 10498, + "start": 10521, + "end": 10524, "loc": { "start": { "line": 365, @@ -26374,8 +26480,8 @@ { "type": "CommentLine", "value": " Init scoreboard", - "start": 10020, - "end": 10038, + "start": 10046, + "end": 10064, "loc": { "start": { "line": 355, @@ -26397,8 +26503,8 @@ { "type": "CommentBlock", "value": "*\n * Starts the game after lobby closes.\n * @param {boolean} emit True if this client should emit the event to the server.\n * @param {*} teams Array of teams on the scoreboard.\n ", - "start": 9669, - "end": 9851, + "start": 9695, + "end": 9877, "loc": { "start": { "line": 340, @@ -26415,8 +26521,8 @@ { "type": "CommentBlock", "value": "*\n * Sets the value of inGame\n * @param {boolean} newValue Value to set inGame to\n ", - "start": 10505, - "end": 10592, + "start": 10531, + "end": 10618, "loc": { "start": { "line": 369, @@ -26434,8 +26540,8 @@ { "type": "CommentBlock", "value": "*\n * Starts the game after lobby closes.\n * @param {boolean} emit True if this client should emit the event to the server.\n * @param {*} teams Array of teams on the scoreboard.\n ", - "start": 9669, - "end": 9851, + "start": 9695, + "end": 9877, "loc": { "start": { "line": 340, @@ -26452,8 +26558,8 @@ { "type": "CommentBlock", "value": "*\n * Sets the value of inGame\n * @param {boolean} newValue Value to set inGame to\n ", - "start": 10505, - "end": 10592, + "start": 10531, + "end": 10618, "loc": { "start": { "line": 369, @@ -26469,8 +26575,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 10593, - "end": 10652, + "start": 10619, + "end": 10678, "loc": { "start": { "line": 373, @@ -26485,8 +26591,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 10600, - "end": 10652, + "start": 10626, + "end": 10678, "loc": { "start": { "line": 373, @@ -26499,8 +26605,8 @@ }, "id": { "type": "Identifier", - "start": 10609, - "end": 10618, + "start": 10635, + "end": 10644, "loc": { "start": { "line": 373, @@ -26521,8 +26627,8 @@ "params": [ { "type": "Identifier", - "start": 10620, - "end": 10628, + "start": 10646, + "end": 10654, "loc": { "start": { "line": 373, @@ -26539,8 +26645,8 @@ ], "body": { "type": "BlockStatement", - "start": 10630, - "end": 10652, + "start": 10656, + "end": 10678, "loc": { "start": { "line": 373, @@ -26554,8 +26660,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 10633, - "end": 10650, + "start": 10659, + "end": 10676, "loc": { "start": { "line": 374, @@ -26568,8 +26674,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10633, - "end": 10650, + "start": 10659, + "end": 10676, "loc": { "start": { "line": 374, @@ -26583,8 +26689,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 10633, - "end": 10639, + "start": 10659, + "end": 10665, "loc": { "start": { "line": 374, @@ -26600,8 +26706,8 @@ }, "right": { "type": "Identifier", - "start": 10642, - "end": 10650, + "start": 10668, + "end": 10676, "loc": { "start": { "line": 374, @@ -26625,8 +26731,8 @@ { "type": "CommentBlock", "value": "*\n * Sets the value of inGame\n * @param {boolean} newValue Value to set inGame to\n ", - "start": 10505, - "end": 10592, + "start": 10531, + "end": 10618, "loc": { "start": { "line": 369, @@ -26643,8 +26749,8 @@ { "type": "CommentBlock", "value": "*\n * @returns {boolean} Returns inGame variable\n ", - "start": 10654, - "end": 10707, + "start": 10680, + "end": 10733, "loc": { "start": { "line": 377, @@ -26662,8 +26768,8 @@ { "type": "CommentBlock", "value": "*\n * Sets the value of inGame\n * @param {boolean} newValue Value to set inGame to\n ", - "start": 10505, - "end": 10592, + "start": 10531, + "end": 10618, "loc": { "start": { "line": 369, @@ -26680,8 +26786,8 @@ { "type": "CommentBlock", "value": "*\n * @returns {boolean} Returns inGame variable\n ", - "start": 10654, - "end": 10707, + "start": 10680, + "end": 10733, "loc": { "start": { "line": 377, @@ -26697,8 +26803,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 10708, - "end": 10755, + "start": 10734, + "end": 10781, "loc": { "start": { "line": 380, @@ -26713,8 +26819,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 10715, - "end": 10755, + "start": 10741, + "end": 10781, "loc": { "start": { "line": 380, @@ -26727,8 +26833,8 @@ }, "id": { "type": "Identifier", - "start": 10724, - "end": 10733, + "start": 10750, + "end": 10759, "loc": { "start": { "line": 380, @@ -26749,8 +26855,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 10737, - "end": 10755, + "start": 10763, + "end": 10781, "loc": { "start": { "line": 380, @@ -26764,8 +26870,8 @@ "body": [ { "type": "ReturnStatement", - "start": 10740, - "end": 10753, + "start": 10766, + "end": 10779, "loc": { "start": { "line": 381, @@ -26778,8 +26884,8 @@ }, "argument": { "type": "Identifier", - "start": 10747, - "end": 10753, + "start": 10773, + "end": 10779, "loc": { "start": { "line": 381, @@ -26802,8 +26908,8 @@ { "type": "CommentBlock", "value": "*\n * @returns {boolean} Returns inGame variable\n ", - "start": 10654, - "end": 10707, + "start": 10680, + "end": 10733, "loc": { "start": { "line": 377, @@ -26820,8 +26926,8 @@ { "type": "CommentBlock", "value": "*\n * Called on mouse up from app.js\n * @param {*} e Click event\n ", - "start": 10757, - "end": 10826, + "start": 10783, + "end": 10852, "loc": { "start": { "line": 384, @@ -26839,8 +26945,8 @@ { "type": "CommentBlock", "value": "*\n * @returns {boolean} Returns inGame variable\n ", - "start": 10654, - "end": 10707, + "start": 10680, + "end": 10733, "loc": { "start": { "line": 377, @@ -26857,8 +26963,8 @@ { "type": "CommentBlock", "value": "*\n * Called on mouse up from app.js\n * @param {*} e Click event\n ", - "start": 10757, - "end": 10826, + "start": 10783, + "end": 10852, "loc": { "start": { "line": 384, @@ -26874,8 +26980,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 10827, - "end": 11014, + "start": 10853, + "end": 11040, "loc": { "start": { "line": 388, @@ -26890,8 +26996,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 10834, - "end": 11014, + "start": 10860, + "end": 11040, "loc": { "start": { "line": 388, @@ -26904,8 +27010,8 @@ }, "id": { "type": "Identifier", - "start": 10843, - "end": 10857, + "start": 10869, + "end": 10883, "loc": { "start": { "line": 388, @@ -26926,8 +27032,8 @@ "params": [ { "type": "Identifier", - "start": 10859, - "end": 10860, + "start": 10885, + "end": 10886, "loc": { "start": { "line": 388, @@ -26944,8 +27050,8 @@ ], "body": { "type": "BlockStatement", - "start": 10862, - "end": 11014, + "start": 10888, + "end": 11040, "loc": { "start": { "line": 388, @@ -26959,8 +27065,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 10865, - "end": 10881, + "start": 10891, + "end": 10907, "loc": { "start": { "line": 389, @@ -26973,8 +27079,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10865, - "end": 10881, + "start": 10891, + "end": 10907, "loc": { "start": { "line": 389, @@ -26988,8 +27094,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 10865, - "end": 10874, + "start": 10891, + "end": 10900, "loc": { "start": { "line": 389, @@ -27005,8 +27111,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 10877, - "end": 10881, + "start": 10903, + "end": 10907, "loc": { "start": { "line": 389, @@ -27023,8 +27129,8 @@ }, { "type": "IfStatement", - "start": 10883, - "end": 11012, + "start": 10909, + "end": 11038, "loc": { "start": { "line": 390, @@ -27037,8 +27143,8 @@ }, "test": { "type": "LogicalExpression", - "start": 10887, - "end": 10981, + "start": 10913, + "end": 11007, "loc": { "start": { "line": 390, @@ -27051,8 +27157,8 @@ }, "left": { "type": "MemberExpression", - "start": 10887, - "end": 10923, + "start": 10913, + "end": 10949, "loc": { "start": { "line": 390, @@ -27065,8 +27171,8 @@ }, "object": { "type": "Identifier", - "start": 10887, - "end": 10905, + "start": 10913, + "end": 10931, "loc": { "start": { "line": 390, @@ -27082,8 +27188,8 @@ }, "property": { "type": "Identifier", - "start": 10906, - "end": 10922, + "start": 10932, + "end": 10948, "loc": { "start": { "line": 390, @@ -27102,8 +27208,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 10927, - "end": 10981, + "start": 10953, + "end": 11007, "loc": { "start": { "line": 390, @@ -27116,8 +27222,8 @@ }, "left": { "type": "MemberExpression", - "start": 10927, - "end": 10968, + "start": 10953, + "end": 10994, "loc": { "start": { "line": 390, @@ -27130,8 +27236,8 @@ }, "object": { "type": "MemberExpression", - "start": 10927, - "end": 10963, + "start": 10953, + "end": 10989, "loc": { "start": { "line": 390, @@ -27144,8 +27250,8 @@ }, "object": { "type": "Identifier", - "start": 10927, - "end": 10945, + "start": 10953, + "end": 10971, "loc": { "start": { "line": 390, @@ -27161,8 +27267,8 @@ }, "property": { "type": "Identifier", - "start": 10946, - "end": 10962, + "start": 10972, + "end": 10988, "loc": { "start": { "line": 390, @@ -27180,8 +27286,8 @@ }, "property": { "type": "Identifier", - "start": 10964, - "end": 10968, + "start": 10990, + "end": 10994, "loc": { "start": { "line": 390, @@ -27200,8 +27306,8 @@ "operator": "!==", "right": { "type": "StringLiteral", - "start": 10973, - "end": 10981, + "start": 10999, + "end": 11007, "loc": { "start": { "line": 390, @@ -27222,8 +27328,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 10983, - "end": 11012, + "start": 11009, + "end": 11038, "loc": { "start": { "line": 390, @@ -27237,8 +27343,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 10987, - "end": 11009, + "start": 11013, + "end": 11035, "loc": { "start": { "line": 391, @@ -27251,8 +27357,8 @@ }, "expression": { "type": "CallExpression", - "start": 10987, - "end": 11009, + "start": 11013, + "end": 11035, "loc": { "start": { "line": 391, @@ -27265,8 +27371,8 @@ }, "callee": { "type": "Identifier", - "start": 10987, - "end": 10999, + "start": 11013, + "end": 11025, "loc": { "start": { "line": 391, @@ -27283,8 +27389,8 @@ "arguments": [ { "type": "Identifier", - "start": 11000, - "end": 11001, + "start": 11026, + "end": 11027, "loc": { "start": { "line": 391, @@ -27300,8 +27406,8 @@ }, { "type": "BooleanLiteral", - "start": 11003, - "end": 11008, + "start": 11029, + "end": 11034, "loc": { "start": { "line": 391, @@ -27330,8 +27436,8 @@ { "type": "CommentBlock", "value": "*\n * Called on mouse up from app.js\n * @param {*} e Click event\n ", - "start": 10757, - "end": 10826, + "start": 10783, + "end": 10852, "loc": { "start": { "line": 384, @@ -27348,8 +27454,8 @@ { "type": "CommentBlock", "value": "*\n * Called on mouse down from app.js\n * @param {*} e Click event\n ", - "start": 11015, - "end": 11086, + "start": 11041, + "end": 11112, "loc": { "start": { "line": 394, @@ -27367,8 +27473,8 @@ { "type": "CommentBlock", "value": "*\n * Called on mouse up from app.js\n * @param {*} e Click event\n ", - "start": 10757, - "end": 10826, + "start": 10783, + "end": 10852, "loc": { "start": { "line": 384, @@ -27385,8 +27491,8 @@ { "type": "CommentBlock", "value": "*\n * Called on mouse down from app.js\n * @param {*} e Click event\n ", - "start": 11015, - "end": 11086, + "start": 11041, + "end": 11112, "loc": { "start": { "line": 394, @@ -27402,8 +27508,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 11087, - "end": 11160, + "start": 11113, + "end": 11186, "loc": { "start": { "line": 398, @@ -27418,8 +27524,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 11094, - "end": 11160, + "start": 11120, + "end": 11186, "loc": { "start": { "line": 398, @@ -27432,8 +27538,8 @@ }, "id": { "type": "Identifier", - "start": 11103, - "end": 11119, + "start": 11129, + "end": 11145, "loc": { "start": { "line": 398, @@ -27454,8 +27560,8 @@ "params": [ { "type": "Identifier", - "start": 11121, - "end": 11122, + "start": 11147, + "end": 11148, "loc": { "start": { "line": 398, @@ -27472,8 +27578,8 @@ ], "body": { "type": "BlockStatement", - "start": 11124, - "end": 11160, + "start": 11150, + "end": 11186, "loc": { "start": { "line": 398, @@ -27487,8 +27593,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 11127, - "end": 11144, + "start": 11153, + "end": 11170, "loc": { "start": { "line": 399, @@ -27501,8 +27607,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 11127, - "end": 11144, + "start": 11153, + "end": 11170, "loc": { "start": { "line": 399, @@ -27516,8 +27622,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 11127, - "end": 11136, + "start": 11153, + "end": 11162, "loc": { "start": { "line": 399, @@ -27533,8 +27639,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 11139, - "end": 11144, + "start": 11165, + "end": 11170, "loc": { "start": { "line": 399, @@ -27551,8 +27657,8 @@ }, { "type": "ExpressionStatement", - "start": 11146, - "end": 11158, + "start": 11172, + "end": 11184, "loc": { "start": { "line": 400, @@ -27565,8 +27671,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 11146, - "end": 11158, + "start": 11172, + "end": 11184, "loc": { "start": { "line": 400, @@ -27580,8 +27686,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 11146, - "end": 11154, + "start": 11172, + "end": 11180, "loc": { "start": { "line": 400, @@ -27597,8 +27703,8 @@ }, "right": { "type": "NumericLiteral", - "start": 11157, - "end": 11158, + "start": 11183, + "end": 11184, "loc": { "start": { "line": 400, @@ -27625,8 +27731,8 @@ { "type": "CommentBlock", "value": "*\n * Called on mouse down from app.js\n * @param {*} e Click event\n ", - "start": 11015, - "end": 11086, + "start": 11041, + "end": 11112, "loc": { "start": { "line": 394, @@ -27643,8 +27749,8 @@ { "type": "CommentBlock", "value": "*\n * Handles shooting mechanics on mouse/spacebar click/hold.\n * @param {*} e Click event\n * @param {boolean} stream True if sending a stream (such as water); false otherwise.\n ", - "start": 11162, - "end": 11343, + "start": 11188, + "end": 11369, "loc": { "start": { "line": 403, @@ -27662,8 +27768,8 @@ { "type": "CommentBlock", "value": "*\n * Called on mouse down from app.js\n * @param {*} e Click event\n ", - "start": 11015, - "end": 11086, + "start": 11041, + "end": 11112, "loc": { "start": { "line": 394, @@ -27680,8 +27786,8 @@ { "type": "CommentBlock", "value": "*\n * Handles shooting mechanics on mouse/spacebar click/hold.\n * @param {*} e Click event\n * @param {boolean} stream True if sending a stream (such as water); false otherwise.\n ", - "start": 11162, - "end": 11343, + "start": 11188, + "end": 11369, "loc": { "start": { "line": 403, @@ -27697,8 +27803,8 @@ }, { "type": "FunctionDeclaration", - "start": 11344, - "end": 11542, + "start": 11370, + "end": 11568, "loc": { "start": { "line": 408, @@ -27711,8 +27817,8 @@ }, "id": { "type": "Identifier", - "start": 11353, - "end": 11365, + "start": 11379, + "end": 11391, "loc": { "start": { "line": 408, @@ -27733,8 +27839,8 @@ "params": [ { "type": "Identifier", - "start": 11367, - "end": 11368, + "start": 11393, + "end": 11394, "loc": { "start": { "line": 408, @@ -27750,8 +27856,8 @@ }, { "type": "Identifier", - "start": 11370, - "end": 11376, + "start": 11396, + "end": 11402, "loc": { "start": { "line": 408, @@ -27768,8 +27874,8 @@ ], "body": { "type": "BlockStatement", - "start": 11378, - "end": 11542, + "start": 11404, + "end": 11568, "loc": { "start": { "line": 408, @@ -27783,8 +27889,8 @@ "body": [ { "type": "IfStatement", - "start": 11381, - "end": 11540, + "start": 11407, + "end": 11566, "loc": { "start": { "line": 409, @@ -27797,8 +27903,8 @@ }, "test": { "type": "LogicalExpression", - "start": 11385, - "end": 11406, + "start": 11411, + "end": 11432, "loc": { "start": { "line": 409, @@ -27811,8 +27917,8 @@ }, "left": { "type": "CallExpression", - "start": 11385, - "end": 11396, + "start": 11411, + "end": 11422, "loc": { "start": { "line": 409, @@ -27825,8 +27931,8 @@ }, "callee": { "type": "Identifier", - "start": 11385, - "end": 11394, + "start": 11411, + "end": 11420, "loc": { "start": { "line": 409, @@ -27845,8 +27951,8 @@ "operator": "&&", "right": { "type": "Identifier", - "start": 11400, - "end": 11406, + "start": 11426, + "end": 11432, "loc": { "start": { "line": 409, @@ -27863,8 +27969,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 11408, - "end": 11540, + "start": 11434, + "end": 11566, "loc": { "start": { "line": 409, @@ -27878,8 +27984,8 @@ "body": [ { "type": "IfStatement", - "start": 11412, - "end": 11443, + "start": 11438, + "end": 11469, "loc": { "start": { "line": 410, @@ -27892,8 +27998,8 @@ }, "test": { "type": "Identifier", - "start": 11416, - "end": 11422, + "start": 11442, + "end": 11448, "loc": { "start": { "line": 410, @@ -27909,8 +28015,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 11424, - "end": 11443, + "start": 11450, + "end": 11469, "loc": { "start": { "line": 410, @@ -27924,8 +28030,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 11429, - "end": 11439, + "start": 11455, + "end": 11465, "loc": { "start": { "line": 411, @@ -27938,8 +28044,8 @@ }, "expression": { "type": "UpdateExpression", - "start": 11429, - "end": 11439, + "start": 11455, + "end": 11465, "loc": { "start": { "line": 411, @@ -27954,8 +28060,8 @@ "prefix": false, "argument": { "type": "Identifier", - "start": 11429, - "end": 11437, + "start": 11455, + "end": 11463, "loc": { "start": { "line": 411, @@ -27978,8 +28084,8 @@ }, { "type": "ExpressionStatement", - "start": 11446, - "end": 11537, + "start": 11472, + "end": 11563, "loc": { "start": { "line": 413, @@ -27992,8 +28098,8 @@ }, "expression": { "type": "CallExpression", - "start": 11446, - "end": 11537, + "start": 11472, + "end": 11563, "loc": { "start": { "line": 413, @@ -28006,8 +28112,8 @@ }, "callee": { "type": "Identifier", - "start": 11446, - "end": 11467, + "start": 11472, + "end": 11493, "loc": { "start": { "line": 413, @@ -28024,8 +28130,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 11468, - "end": 11504, + "start": 11494, + "end": 11530, "loc": { "start": { "line": 413, @@ -28038,8 +28144,8 @@ }, "object": { "type": "Identifier", - "start": 11468, - "end": 11486, + "start": 11494, + "end": 11512, "loc": { "start": { "line": 413, @@ -28055,8 +28161,8 @@ }, "property": { "type": "Identifier", - "start": 11487, - "end": 11503, + "start": 11513, + "end": 11529, "loc": { "start": { "line": 413, @@ -28074,8 +28180,8 @@ }, { "type": "MemberExpression", - "start": 11506, - "end": 11515, + "start": 11532, + "end": 11541, "loc": { "start": { "line": 413, @@ -28088,8 +28194,8 @@ }, "object": { "type": "Identifier", - "start": 11506, - "end": 11507, + "start": 11532, + "end": 11533, "loc": { "start": { "line": 413, @@ -28105,8 +28211,8 @@ }, "property": { "type": "Identifier", - "start": 11508, - "end": 11515, + "start": 11534, + "end": 11541, "loc": { "start": { "line": 413, @@ -28124,8 +28230,8 @@ }, { "type": "MemberExpression", - "start": 11517, - "end": 11526, + "start": 11543, + "end": 11552, "loc": { "start": { "line": 413, @@ -28138,8 +28244,8 @@ }, "object": { "type": "Identifier", - "start": 11517, - "end": 11518, + "start": 11543, + "end": 11544, "loc": { "start": { "line": 413, @@ -28155,8 +28261,8 @@ }, "property": { "type": "Identifier", - "start": 11519, - "end": 11526, + "start": 11545, + "end": 11552, "loc": { "start": { "line": 413, @@ -28174,8 +28280,8 @@ }, { "type": "Identifier", - "start": 11528, - "end": 11536, + "start": 11554, + "end": 11562, "loc": { "start": { "line": 413, @@ -28205,8 +28311,8 @@ { "type": "CommentBlock", "value": "*\n * Handles shooting mechanics on mouse/spacebar click/hold.\n * @param {*} e Click event\n * @param {boolean} stream True if sending a stream (such as water); false otherwise.\n ", - "start": 11162, - "end": 11343, + "start": 11188, + "end": 11369, "loc": { "start": { "line": 403, @@ -28223,8 +28329,8 @@ { "type": "CommentLine", "value": " actually name this better bro", - "start": 11544, - "end": 11576, + "start": 11570, + "end": 11602, "loc": { "start": { "line": 417, @@ -28240,8 +28346,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 11577, - "end": 11972, + "start": 11603, + "end": 11998, "loc": { "start": { "line": 418, @@ -28256,8 +28362,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 11584, - "end": 11972, + "start": 11610, + "end": 11998, "loc": { "start": { "line": 418, @@ -28270,8 +28376,8 @@ }, "id": { "type": "Identifier", - "start": 11593, - "end": 11607, + "start": 11619, + "end": 11633, "loc": { "start": { "line": 418, @@ -28292,8 +28398,8 @@ "params": [ { "type": "Identifier", - "start": 11609, - "end": 11618, + "start": 11635, + "end": 11644, "loc": { "start": { "line": 418, @@ -28310,8 +28416,8 @@ ], "body": { "type": "BlockStatement", - "start": 11620, - "end": 11972, + "start": 11646, + "end": 11998, "loc": { "start": { "line": 418, @@ -28325,8 +28431,8 @@ "body": [ { "type": "IfStatement", - "start": 11623, - "end": 11706, + "start": 11649, + "end": 11732, "loc": { "start": { "line": 419, @@ -28339,8 +28445,8 @@ }, "test": { "type": "BinaryExpression", - "start": 11627, - "end": 11645, + "start": 11653, + "end": 11671, "loc": { "start": { "line": 419, @@ -28353,8 +28459,8 @@ }, "left": { "type": "Identifier", - "start": 11627, - "end": 11636, + "start": 11653, + "end": 11662, "loc": { "start": { "line": 419, @@ -28371,8 +28477,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 11641, - "end": 11645, + "start": 11667, + "end": 11671, "loc": { "start": { "line": 419, @@ -28392,8 +28498,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 11647, - "end": 11706, + "start": 11673, + "end": 11732, "loc": { "start": { "line": 419, @@ -28407,8 +28513,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 11651, - "end": 11703, + "start": 11677, + "end": 11729, "loc": { "start": { "line": 420, @@ -28421,8 +28527,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 11651, - "end": 11703, + "start": 11677, + "end": 11729, "loc": { "start": { "line": 420, @@ -28436,8 +28542,8 @@ "operator": "+=", "left": { "type": "MemberExpression", - "start": 11651, - "end": 11660, + "start": 11677, + "end": 11686, "loc": { "start": { "line": 420, @@ -28450,8 +28556,8 @@ }, "object": { "type": "Identifier", - "start": 11651, - "end": 11657, + "start": 11677, + "end": 11683, "loc": { "start": { "line": 420, @@ -28467,8 +28573,8 @@ }, "property": { "type": "Identifier", - "start": 11658, - "end": 11660, + "start": 11684, + "end": 11686, "loc": { "start": { "line": 420, @@ -28486,8 +28592,8 @@ }, "right": { "type": "BinaryExpression", - "start": 11664, - "end": 11703, + "start": 11690, + "end": 11729, "loc": { "start": { "line": 420, @@ -28500,8 +28606,8 @@ }, "left": { "type": "MemberExpression", - "start": 11664, - "end": 11684, + "start": 11690, + "end": 11710, "loc": { "start": { "line": 420, @@ -28514,8 +28620,8 @@ }, "object": { "type": "Identifier", - "start": 11664, - "end": 11670, + "start": 11690, + "end": 11696, "loc": { "start": { "line": 420, @@ -28531,8 +28637,8 @@ }, "property": { "type": "Identifier", - "start": 11671, - "end": 11684, + "start": 11697, + "end": 11710, "loc": { "start": { "line": 420, @@ -28551,8 +28657,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 11687, - "end": 11703, + "start": 11713, + "end": 11729, "loc": { "start": { "line": 420, @@ -28565,8 +28671,8 @@ }, "object": { "type": "Identifier", - "start": 11687, - "end": 11693, + "start": 11713, + "end": 11719, "loc": { "start": { "line": 420, @@ -28582,8 +28688,8 @@ }, "property": { "type": "Identifier", - "start": 11694, - "end": 11703, + "start": 11720, + "end": 11729, "loc": { "start": { "line": 420, @@ -28609,8 +28715,8 @@ }, { "type": "IfStatement", - "start": 11708, - "end": 11794, + "start": 11734, + "end": 11820, "loc": { "start": { "line": 422, @@ -28623,8 +28729,8 @@ }, "test": { "type": "BinaryExpression", - "start": 11712, - "end": 11732, + "start": 11738, + "end": 11758, "loc": { "start": { "line": 422, @@ -28637,8 +28743,8 @@ }, "left": { "type": "Identifier", - "start": 11712, - "end": 11721, + "start": 11738, + "end": 11747, "loc": { "start": { "line": 422, @@ -28655,8 +28761,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 11726, - "end": 11732, + "start": 11752, + "end": 11758, "loc": { "start": { "line": 422, @@ -28676,8 +28782,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 11734, - "end": 11794, + "start": 11760, + "end": 11820, "loc": { "start": { "line": 422, @@ -28691,8 +28797,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 11738, - "end": 11791, + "start": 11764, + "end": 11817, "loc": { "start": { "line": 423, @@ -28705,8 +28811,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 11738, - "end": 11791, + "start": 11764, + "end": 11817, "loc": { "start": { "line": 423, @@ -28720,8 +28826,8 @@ "operator": "+=", "left": { "type": "MemberExpression", - "start": 11738, - "end": 11747, + "start": 11764, + "end": 11773, "loc": { "start": { "line": 423, @@ -28734,8 +28840,8 @@ }, "object": { "type": "Identifier", - "start": 11738, - "end": 11744, + "start": 11764, + "end": 11770, "loc": { "start": { "line": 423, @@ -28751,8 +28857,8 @@ }, "property": { "type": "Identifier", - "start": 11745, - "end": 11747, + "start": 11771, + "end": 11773, "loc": { "start": { "line": 423, @@ -28770,8 +28876,8 @@ }, "right": { "type": "BinaryExpression", - "start": 11751, - "end": 11791, + "start": 11777, + "end": 11817, "loc": { "start": { "line": 423, @@ -28784,8 +28890,8 @@ }, "left": { "type": "UnaryExpression", - "start": 11751, - "end": 11772, + "start": 11777, + "end": 11798, "loc": { "start": { "line": 423, @@ -28800,8 +28906,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 11752, - "end": 11772, + "start": 11778, + "end": 11798, "loc": { "start": { "line": 423, @@ -28814,8 +28920,8 @@ }, "object": { "type": "Identifier", - "start": 11752, - "end": 11758, + "start": 11778, + "end": 11784, "loc": { "start": { "line": 423, @@ -28831,8 +28937,8 @@ }, "property": { "type": "Identifier", - "start": 11759, - "end": 11772, + "start": 11785, + "end": 11798, "loc": { "start": { "line": 423, @@ -28855,8 +28961,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 11775, - "end": 11791, + "start": 11801, + "end": 11817, "loc": { "start": { "line": 423, @@ -28869,8 +28975,8 @@ }, "object": { "type": "Identifier", - "start": 11775, - "end": 11781, + "start": 11801, + "end": 11807, "loc": { "start": { "line": 423, @@ -28886,8 +28992,8 @@ }, "property": { "type": "Identifier", - "start": 11782, - "end": 11791, + "start": 11808, + "end": 11817, "loc": { "start": { "line": 423, @@ -28913,8 +29019,8 @@ }, { "type": "IfStatement", - "start": 11796, - "end": 11882, + "start": 11822, + "end": 11908, "loc": { "start": { "line": 425, @@ -28927,8 +29033,8 @@ }, "test": { "type": "BinaryExpression", - "start": 11800, - "end": 11821, + "start": 11826, + "end": 11847, "loc": { "start": { "line": 425, @@ -28941,8 +29047,8 @@ }, "left": { "type": "Identifier", - "start": 11800, - "end": 11809, + "start": 11826, + "end": 11835, "loc": { "start": { "line": 425, @@ -28959,8 +29065,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 11814, - "end": 11821, + "start": 11840, + "end": 11847, "loc": { "start": { "line": 425, @@ -28980,8 +29086,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 11823, - "end": 11882, + "start": 11849, + "end": 11908, "loc": { "start": { "line": 425, @@ -28995,8 +29101,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 11827, - "end": 11879, + "start": 11853, + "end": 11905, "loc": { "start": { "line": 426, @@ -29009,8 +29115,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 11827, - "end": 11879, + "start": 11853, + "end": 11905, "loc": { "start": { "line": 426, @@ -29024,8 +29130,8 @@ "operator": "+=", "left": { "type": "MemberExpression", - "start": 11827, - "end": 11836, + "start": 11853, + "end": 11862, "loc": { "start": { "line": 426, @@ -29038,8 +29144,8 @@ }, "object": { "type": "Identifier", - "start": 11827, - "end": 11833, + "start": 11853, + "end": 11859, "loc": { "start": { "line": 426, @@ -29055,8 +29161,8 @@ }, "property": { "type": "Identifier", - "start": 11834, - "end": 11836, + "start": 11860, + "end": 11862, "loc": { "start": { "line": 426, @@ -29074,8 +29180,8 @@ }, "right": { "type": "BinaryExpression", - "start": 11840, - "end": 11879, + "start": 11866, + "end": 11905, "loc": { "start": { "line": 426, @@ -29088,8 +29194,8 @@ }, "left": { "type": "MemberExpression", - "start": 11840, - "end": 11860, + "start": 11866, + "end": 11886, "loc": { "start": { "line": 426, @@ -29102,8 +29208,8 @@ }, "object": { "type": "Identifier", - "start": 11840, - "end": 11846, + "start": 11866, + "end": 11872, "loc": { "start": { "line": 426, @@ -29119,8 +29225,8 @@ }, "property": { "type": "Identifier", - "start": 11847, - "end": 11860, + "start": 11873, + "end": 11886, "loc": { "start": { "line": 426, @@ -29139,8 +29245,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 11863, - "end": 11879, + "start": 11889, + "end": 11905, "loc": { "start": { "line": 426, @@ -29153,8 +29259,8 @@ }, "object": { "type": "Identifier", - "start": 11863, - "end": 11869, + "start": 11889, + "end": 11895, "loc": { "start": { "line": 426, @@ -29170,8 +29276,8 @@ }, "property": { "type": "Identifier", - "start": 11870, - "end": 11879, + "start": 11896, + "end": 11905, "loc": { "start": { "line": 426, @@ -29197,8 +29303,8 @@ }, { "type": "IfStatement", - "start": 11884, - "end": 11970, + "start": 11910, + "end": 11996, "loc": { "start": { "line": 428, @@ -29211,8 +29317,8 @@ }, "test": { "type": "BinaryExpression", - "start": 11888, - "end": 11908, + "start": 11914, + "end": 11934, "loc": { "start": { "line": 428, @@ -29225,8 +29331,8 @@ }, "left": { "type": "Identifier", - "start": 11888, - "end": 11897, + "start": 11914, + "end": 11923, "loc": { "start": { "line": 428, @@ -29243,8 +29349,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 11902, - "end": 11908, + "start": 11928, + "end": 11934, "loc": { "start": { "line": 428, @@ -29264,8 +29370,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 11910, - "end": 11970, + "start": 11936, + "end": 11996, "loc": { "start": { "line": 428, @@ -29279,8 +29385,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 11914, - "end": 11967, + "start": 11940, + "end": 11993, "loc": { "start": { "line": 429, @@ -29293,8 +29399,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 11914, - "end": 11967, + "start": 11940, + "end": 11993, "loc": { "start": { "line": 429, @@ -29308,8 +29414,8 @@ "operator": "+=", "left": { "type": "MemberExpression", - "start": 11914, - "end": 11923, + "start": 11940, + "end": 11949, "loc": { "start": { "line": 429, @@ -29322,8 +29428,8 @@ }, "object": { "type": "Identifier", - "start": 11914, - "end": 11920, + "start": 11940, + "end": 11946, "loc": { "start": { "line": 429, @@ -29339,8 +29445,8 @@ }, "property": { "type": "Identifier", - "start": 11921, - "end": 11923, + "start": 11947, + "end": 11949, "loc": { "start": { "line": 429, @@ -29358,8 +29464,8 @@ }, "right": { "type": "BinaryExpression", - "start": 11927, - "end": 11967, + "start": 11953, + "end": 11993, "loc": { "start": { "line": 429, @@ -29372,8 +29478,8 @@ }, "left": { "type": "UnaryExpression", - "start": 11927, - "end": 11948, + "start": 11953, + "end": 11974, "loc": { "start": { "line": 429, @@ -29388,8 +29494,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 11928, - "end": 11948, + "start": 11954, + "end": 11974, "loc": { "start": { "line": 429, @@ -29402,8 +29508,8 @@ }, "object": { "type": "Identifier", - "start": 11928, - "end": 11934, + "start": 11954, + "end": 11960, "loc": { "start": { "line": 429, @@ -29419,8 +29525,8 @@ }, "property": { "type": "Identifier", - "start": 11935, - "end": 11948, + "start": 11961, + "end": 11974, "loc": { "start": { "line": 429, @@ -29443,8 +29549,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 11951, - "end": 11967, + "start": 11977, + "end": 11993, "loc": { "start": { "line": 429, @@ -29457,8 +29563,8 @@ }, "object": { "type": "Identifier", - "start": 11951, - "end": 11957, + "start": 11977, + "end": 11983, "loc": { "start": { "line": 429, @@ -29474,8 +29580,8 @@ }, "property": { "type": "Identifier", - "start": 11958, - "end": 11967, + "start": 11984, + "end": 11993, "loc": { "start": { "line": 429, @@ -29506,8 +29612,8 @@ { "type": "CommentLine", "value": " actually name this better bro", - "start": 11544, - "end": 11576, + "start": 11570, + "end": 11602, "loc": { "start": { "line": 417, @@ -29526,8 +29632,8 @@ { "type": "CommentLine", "value": " actually name this better bro", - "start": 11544, - "end": 11576, + "start": 11570, + "end": 11602, "loc": { "start": { "line": 417, @@ -30444,8 +30550,8 @@ { "type": "CommentBlock", "value": "*\n * Called once per frame. Updates all moving sprites on the stage.\n * Also checks key inputs.\n * @param {number} delta Time value from Pixi\n ", - "start": 5614, - "end": 5761, + "start": 5640, + "end": 5787, "loc": { "start": { "line": 179, @@ -30460,8 +30566,8 @@ { "type": "CommentLine", "value": " Handle this player and movement", - "start": 5787, - "end": 5821, + "start": 5813, + "end": 5847, "loc": { "start": { "line": 185, @@ -30476,8 +30582,8 @@ { "type": "CommentLine", "value": " Make sure player is not in chat before checking move", - "start": 5853, - "end": 5908, + "start": 5879, + "end": 5934, "loc": { "start": { "line": 187, @@ -30492,8 +30598,8 @@ { "type": "CommentLine", "value": " Keyboard based controls", - "start": 5943, - "end": 5969, + "start": 5969, + "end": 5995, "loc": { "start": { "line": 189, @@ -30508,8 +30614,8 @@ { "type": "CommentLine", "value": " Left", - "start": 6094, - "end": 6101, + "start": 6120, + "end": 6127, "loc": { "start": { "line": 191, @@ -30524,8 +30630,8 @@ { "type": "CommentLine", "value": " Right", - "start": 6257, - "end": 6265, + "start": 6283, + "end": 6291, "loc": { "start": { "line": 194, @@ -30540,8 +30646,8 @@ { "type": "CommentLine", "value": " Up", - "start": 6419, - "end": 6424, + "start": 6445, + "end": 6450, "loc": { "start": { "line": 197, @@ -30556,8 +30662,8 @@ { "type": "CommentLine", "value": " Down", - "start": 6578, - "end": 6585, + "start": 6604, + "end": 6611, "loc": { "start": { "line": 200, @@ -30572,8 +30678,8 @@ { "type": "CommentLine", "value": " Because the document is not focused disable all keys(Stops moving!)", - "start": 6781, - "end": 6851, + "start": 6807, + "end": 6877, "loc": { "start": { "line": 213, @@ -30588,8 +30694,8 @@ { "type": "CommentLine", "value": " Slow down gradually - unaffected by chat input", - "start": 6958, - "end": 7007, + "start": 6984, + "end": 7033, "loc": { "start": { "line": 220, @@ -30604,8 +30710,8 @@ { "type": "CommentLine", "value": " Shooting", - "start": 7197, - "end": 7208, + "start": 7223, + "end": 7234, "loc": { "start": { "line": 228, @@ -30620,8 +30726,8 @@ { "type": "CommentLine", "value": " Streams", - "start": 7372, - "end": 7382, + "start": 7398, + "end": 7408, "loc": { "start": { "line": 235, @@ -30636,8 +30742,8 @@ { "type": "CommentLine", "value": " Reset stream count when space key is released", - "start": 7545, - "end": 7593, + "start": 7571, + "end": 7619, "loc": { "start": { "line": 240, @@ -30652,8 +30758,8 @@ { "type": "CommentLine", "value": " Move player", - "start": 7643, - "end": 7657, + "start": 7669, + "end": 7683, "loc": { "start": { "line": 245, @@ -30668,8 +30774,8 @@ { "type": "CommentLine", "value": " Send coordinates", - "start": 7677, - "end": 7696, + "start": 7703, + "end": 7722, "loc": { "start": { "line": 248, @@ -30684,8 +30790,8 @@ { "type": "CommentLine", "value": " Handle objects except for this player", - "start": 7848, - "end": 7888, + "start": 7874, + "end": 7914, "loc": { "start": { "line": 259, @@ -30700,8 +30806,8 @@ { "type": "CommentBlock", "value": "*\n * Shows or hides the in-game menu box\n ", - "start": 8075, - "end": 8121, + "start": 8101, + "end": 8147, "loc": { "start": { "line": 269, @@ -30716,8 +30822,8 @@ { "type": "CommentBlock", "value": "*\n * Remove all elements pre-rendered on stage.\n ", - "start": 8279, - "end": 8332, + "start": 8305, + "end": 8358, "loc": { "start": { "line": 281, @@ -30732,8 +30838,8 @@ { "type": "CommentBlock", "value": "*\n * Destroy everything in PIXI. DANGEROUS avoid!\n ", - "start": 8471, - "end": 8526, + "start": 8497, + "end": 8552, "loc": { "start": { "line": 290, @@ -30748,8 +30854,8 @@ { "type": "CommentBlock", "value": "*\n * Call this function to hide loading div and show UI\n ", - "start": 8698, - "end": 8759, + "start": 8724, + "end": 8785, "loc": { "start": { "line": 304, @@ -30764,8 +30870,8 @@ { "type": "CommentLine", "value": " Hide loading screen", - "start": 8793, - "end": 8815, + "start": 8819, + "end": 8841, "loc": { "start": { "line": 308, @@ -30780,8 +30886,8 @@ { "type": "CommentBlock", "value": "*\n * Creates a Player instance once the stage is fully set up and ready.\n * @param {*} data Starting values to assign to the player. Generated from server\n * @returns {Player} The Player object that was created\n ", - "start": 8885, - "end": 9101, + "start": 8911, + "end": 9127, "loc": { "start": { "line": 315, @@ -30796,8 +30902,8 @@ { "type": "CommentBlock", "value": "*\n * If the document is Focused return true otherwise false\n *", - "start": 9473, - "end": 9539, + "start": 9499, + "end": 9565, "loc": { "start": { "line": 333, @@ -30812,8 +30918,8 @@ { "type": "CommentBlock", "value": "*\n * Starts the game after lobby closes.\n * @param {boolean} emit True if this client should emit the event to the server.\n * @param {*} teams Array of teams on the scoreboard.\n ", - "start": 9669, - "end": 9851, + "start": 9695, + "end": 9877, "loc": { "start": { "line": 340, @@ -30828,8 +30934,8 @@ { "type": "CommentLine", "value": " Init scoreboard", - "start": 10020, - "end": 10038, + "start": 10046, + "end": 10064, "loc": { "start": { "line": 355, @@ -30844,8 +30950,8 @@ { "type": "CommentLine", "value": " Reset scoreboard from previous rounds", - "start": 10069, - "end": 10109, + "start": 10095, + "end": 10135, "loc": { "start": { "line": 357, @@ -30860,8 +30966,8 @@ { "type": "CommentBlock", "value": "*\n * Sets the value of inGame\n * @param {boolean} newValue Value to set inGame to\n ", - "start": 10505, - "end": 10592, + "start": 10531, + "end": 10618, "loc": { "start": { "line": 369, @@ -30876,8 +30982,8 @@ { "type": "CommentBlock", "value": "*\n * @returns {boolean} Returns inGame variable\n ", - "start": 10654, - "end": 10707, + "start": 10680, + "end": 10733, "loc": { "start": { "line": 377, @@ -30892,8 +30998,8 @@ { "type": "CommentBlock", "value": "*\n * Called on mouse up from app.js\n * @param {*} e Click event\n ", - "start": 10757, - "end": 10826, + "start": 10783, + "end": 10852, "loc": { "start": { "line": 384, @@ -30908,8 +31014,8 @@ { "type": "CommentBlock", "value": "*\n * Called on mouse down from app.js\n * @param {*} e Click event\n ", - "start": 11015, - "end": 11086, + "start": 11041, + "end": 11112, "loc": { "start": { "line": 394, @@ -30924,8 +31030,8 @@ { "type": "CommentBlock", "value": "*\n * Handles shooting mechanics on mouse/spacebar click/hold.\n * @param {*} e Click event\n * @param {boolean} stream True if sending a stream (such as water); false otherwise.\n ", - "start": 11162, - "end": 11343, + "start": 11188, + "end": 11369, "loc": { "start": { "line": 403, @@ -30940,8 +31046,8 @@ { "type": "CommentLine", "value": " actually name this better bro", - "start": 11544, - "end": 11576, + "start": 11570, + "end": 11602, "loc": { "start": { "line": 417, @@ -48983,6 +49089,136 @@ } } }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5213, + "end": 5214, + "loc": { + "start": { + "line": 164, + "column": 40 + }, + "end": { + "line": 164, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "MAP_LAYOUT", + "start": 5214, + "end": 5224, + "loc": { + "start": { + "line": 164, + "column": 41 + }, + "end": { + "line": 164, + "column": 51 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5224, + "end": 5225, + "loc": { + "start": { + "line": 164, + "column": 51 + }, + "end": { + "line": 164, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 5225, + "end": 5231, + "loc": { + "start": { + "line": 164, + "column": 52 + }, + "end": { + "line": 164, + "column": 58 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 5232, + "end": 5233, + "loc": { + "start": { + "line": 164, + "column": 59 + }, + "end": { + "line": 164, + "column": 60 + } + } + }, { "type": { "label": "name", @@ -48996,16 +49232,95 @@ "binop": null }, "value": "row", - "start": 5213, - "end": 5216, + "start": 5234, + "end": 5237, "loc": { "start": { "line": 164, - "column": 40 + "column": 61 }, "end": { "line": 164, - "column": 43 + "column": 64 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 5238, + "end": 5239, + "loc": { + "start": { + "line": 164, + "column": 65 + }, + "end": { + "line": 164, + "column": 66 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 5240, + "end": 5241, + "loc": { + "start": { + "line": 164, + "column": 67 + }, + "end": { + "line": 164, + "column": 68 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5241, + "end": 5242, + "loc": { + "start": { + "line": 164, + "column": 68 + }, + "end": { + "line": 164, + "column": 69 } } }, @@ -49024,8 +49339,8 @@ "updateContext": null }, "value": "if", - "start": 5220, - "end": 5222, + "start": 5246, + "end": 5248, "loc": { "start": { "line": 165, @@ -49049,8 +49364,8 @@ "postfix": false, "binop": null }, - "start": 5223, - "end": 5224, + "start": 5249, + "end": 5250, "loc": { "start": { "line": 165, @@ -49075,8 +49390,8 @@ "binop": null }, "value": "objects", - "start": 5224, - "end": 5231, + "start": 5250, + "end": 5257, "loc": { "start": { "line": 165, @@ -49101,8 +49416,8 @@ "binop": null, "updateContext": null }, - "start": 5231, - "end": 5232, + "start": 5257, + "end": 5258, "loc": { "start": { "line": 165, @@ -49127,8 +49442,8 @@ "binop": null }, "value": "tiles", - "start": 5232, - "end": 5237, + "start": 5258, + "end": 5263, "loc": { "start": { "line": 165, @@ -49153,8 +49468,8 @@ "binop": null, "updateContext": null }, - "start": 5237, - "end": 5238, + "start": 5263, + "end": 5264, "loc": { "start": { "line": 165, @@ -49179,8 +49494,8 @@ "binop": null }, "value": "tileName", - "start": 5238, - "end": 5246, + "start": 5264, + "end": 5272, "loc": { "start": { "line": 165, @@ -49205,8 +49520,8 @@ "binop": null, "updateContext": null }, - "start": 5246, - "end": 5247, + "start": 5272, + "end": 5273, "loc": { "start": { "line": 165, @@ -49232,8 +49547,8 @@ "updateContext": null }, "value": "===", - "start": 5248, - "end": 5251, + "start": 5274, + "end": 5277, "loc": { "start": { "line": 165, @@ -49258,8 +49573,8 @@ "binop": null }, "value": "undefined", - "start": 5252, - "end": 5261, + "start": 5278, + "end": 5287, "loc": { "start": { "line": 165, @@ -49285,8 +49600,8 @@ "updateContext": null }, "value": "||", - "start": 5262, - "end": 5264, + "start": 5288, + "end": 5290, "loc": { "start": { "line": 165, @@ -49311,8 +49626,8 @@ "binop": null }, "value": "objects", - "start": 5265, - "end": 5272, + "start": 5291, + "end": 5298, "loc": { "start": { "line": 165, @@ -49337,8 +49652,8 @@ "binop": null, "updateContext": null }, - "start": 5272, - "end": 5273, + "start": 5298, + "end": 5299, "loc": { "start": { "line": 165, @@ -49363,8 +49678,8 @@ "binop": null }, "value": "tiles", - "start": 5273, - "end": 5278, + "start": 5299, + "end": 5304, "loc": { "start": { "line": 165, @@ -49389,8 +49704,8 @@ "binop": null, "updateContext": null }, - "start": 5278, - "end": 5279, + "start": 5304, + "end": 5305, "loc": { "start": { "line": 165, @@ -49415,8 +49730,8 @@ "binop": null }, "value": "tileName", - "start": 5279, - "end": 5287, + "start": 5305, + "end": 5313, "loc": { "start": { "line": 165, @@ -49441,8 +49756,8 @@ "binop": null, "updateContext": null }, - "start": 5287, - "end": 5288, + "start": 5313, + "end": 5314, "loc": { "start": { "line": 165, @@ -49468,8 +49783,8 @@ "updateContext": null }, "value": "===", - "start": 5289, - "end": 5292, + "start": 5315, + "end": 5318, "loc": { "start": { "line": 165, @@ -49496,8 +49811,8 @@ "updateContext": null }, "value": "null", - "start": 5293, - "end": 5297, + "start": 5319, + "end": 5323, "loc": { "start": { "line": 165, @@ -49521,8 +49836,8 @@ "postfix": false, "binop": null }, - "start": 5297, - "end": 5298, + "start": 5323, + "end": 5324, "loc": { "start": { "line": 165, @@ -49546,8 +49861,8 @@ "postfix": false, "binop": null }, - "start": 5299, - "end": 5300, + "start": 5325, + "end": 5326, "loc": { "start": { "line": 165, @@ -49574,8 +49889,8 @@ "updateContext": null }, "value": "if", - "start": 5305, - "end": 5307, + "start": 5331, + "end": 5333, "loc": { "start": { "line": 166, @@ -49599,8 +49914,8 @@ "postfix": false, "binop": null }, - "start": 5308, - "end": 5309, + "start": 5334, + "end": 5335, "loc": { "start": { "line": 166, @@ -49625,8 +49940,8 @@ "binop": null }, "value": "TILE_NAMES", - "start": 5309, - "end": 5319, + "start": 5335, + "end": 5345, "loc": { "start": { "line": 166, @@ -49651,8 +49966,8 @@ "binop": null, "updateContext": null }, - "start": 5319, - "end": 5320, + "start": 5345, + "end": 5346, "loc": { "start": { "line": 166, @@ -49677,8 +49992,8 @@ "binop": null }, "value": "MAP_LAYOUT", - "start": 5320, - "end": 5330, + "start": 5346, + "end": 5356, "loc": { "start": { "line": 166, @@ -49703,8 +50018,8 @@ "binop": null, "updateContext": null }, - "start": 5330, - "end": 5331, + "start": 5356, + "end": 5357, "loc": { "start": { "line": 166, @@ -49729,8 +50044,8 @@ "binop": null }, "value": "row", - "start": 5331, - "end": 5334, + "start": 5357, + "end": 5360, "loc": { "start": { "line": 166, @@ -49755,8 +50070,8 @@ "binop": null, "updateContext": null }, - "start": 5334, - "end": 5335, + "start": 5360, + "end": 5361, "loc": { "start": { "line": 166, @@ -49781,8 +50096,8 @@ "binop": null, "updateContext": null }, - "start": 5335, - "end": 5336, + "start": 5361, + "end": 5362, "loc": { "start": { "line": 166, @@ -49807,8 +50122,8 @@ "binop": null }, "value": "col", - "start": 5336, - "end": 5339, + "start": 5362, + "end": 5365, "loc": { "start": { "line": 166, @@ -49833,8 +50148,8 @@ "binop": null, "updateContext": null }, - "start": 5339, - "end": 5340, + "start": 5365, + "end": 5366, "loc": { "start": { "line": 166, @@ -49859,8 +50174,8 @@ "binop": null, "updateContext": null }, - "start": 5340, - "end": 5341, + "start": 5366, + "end": 5367, "loc": { "start": { "line": 166, @@ -49886,8 +50201,8 @@ "updateContext": null }, "value": "!==", - "start": 5342, - "end": 5345, + "start": 5368, + "end": 5371, "loc": { "start": { "line": 166, @@ -49912,8 +50227,8 @@ "binop": null }, "value": "undefined", - "start": 5346, - "end": 5355, + "start": 5372, + "end": 5381, "loc": { "start": { "line": 166, @@ -49937,8 +50252,8 @@ "postfix": false, "binop": null }, - "start": 5355, - "end": 5356, + "start": 5381, + "end": 5382, "loc": { "start": { "line": 166, @@ -49962,8 +50277,8 @@ "postfix": false, "binop": null }, - "start": 5357, - "end": 5358, + "start": 5383, + "end": 5384, "loc": { "start": { "line": 166, @@ -49988,8 +50303,8 @@ "binop": null }, "value": "objects", - "start": 5364, - "end": 5371, + "start": 5390, + "end": 5397, "loc": { "start": { "line": 167, @@ -50014,8 +50329,8 @@ "binop": null, "updateContext": null }, - "start": 5371, - "end": 5372, + "start": 5397, + "end": 5398, "loc": { "start": { "line": 167, @@ -50040,8 +50355,8 @@ "binop": null }, "value": "tiles", - "start": 5372, - "end": 5377, + "start": 5398, + "end": 5403, "loc": { "start": { "line": 167, @@ -50066,8 +50381,8 @@ "binop": null, "updateContext": null }, - "start": 5377, - "end": 5378, + "start": 5403, + "end": 5404, "loc": { "start": { "line": 167, @@ -50092,8 +50407,8 @@ "binop": null }, "value": "tileName", - "start": 5378, - "end": 5386, + "start": 5404, + "end": 5412, "loc": { "start": { "line": 167, @@ -50118,8 +50433,8 @@ "binop": null, "updateContext": null }, - "start": 5386, - "end": 5387, + "start": 5412, + "end": 5413, "loc": { "start": { "line": 167, @@ -50145,8 +50460,8 @@ "updateContext": null }, "value": "=", - "start": 5388, - "end": 5389, + "start": 5414, + "end": 5415, "loc": { "start": { "line": 167, @@ -50173,8 +50488,8 @@ "updateContext": null }, "value": "new", - "start": 5390, - "end": 5393, + "start": 5416, + "end": 5419, "loc": { "start": { "line": 167, @@ -50199,8 +50514,8 @@ "binop": null }, "value": "MapTile", - "start": 5394, - "end": 5401, + "start": 5420, + "end": 5427, "loc": { "start": { "line": 167, @@ -50224,8 +50539,8 @@ "postfix": false, "binop": null }, - "start": 5401, - "end": 5402, + "start": 5427, + "end": 5428, "loc": { "start": { "line": 167, @@ -50250,8 +50565,8 @@ "binop": null }, "value": "TILE_NAMES", - "start": 5402, - "end": 5412, + "start": 5428, + "end": 5438, "loc": { "start": { "line": 167, @@ -50276,8 +50591,8 @@ "binop": null, "updateContext": null }, - "start": 5412, - "end": 5413, + "start": 5438, + "end": 5439, "loc": { "start": { "line": 167, @@ -50302,8 +50617,8 @@ "binop": null }, "value": "MAP_LAYOUT", - "start": 5413, - "end": 5423, + "start": 5439, + "end": 5449, "loc": { "start": { "line": 167, @@ -50328,8 +50643,8 @@ "binop": null, "updateContext": null }, - "start": 5423, - "end": 5424, + "start": 5449, + "end": 5450, "loc": { "start": { "line": 167, @@ -50354,8 +50669,8 @@ "binop": null }, "value": "row", - "start": 5424, - "end": 5427, + "start": 5450, + "end": 5453, "loc": { "start": { "line": 167, @@ -50380,8 +50695,8 @@ "binop": null, "updateContext": null }, - "start": 5427, - "end": 5428, + "start": 5453, + "end": 5454, "loc": { "start": { "line": 167, @@ -50406,8 +50721,8 @@ "binop": null, "updateContext": null }, - "start": 5428, - "end": 5429, + "start": 5454, + "end": 5455, "loc": { "start": { "line": 167, @@ -50432,8 +50747,8 @@ "binop": null }, "value": "col", - "start": 5429, - "end": 5432, + "start": 5455, + "end": 5458, "loc": { "start": { "line": 167, @@ -50458,8 +50773,8 @@ "binop": null, "updateContext": null }, - "start": 5432, - "end": 5433, + "start": 5458, + "end": 5459, "loc": { "start": { "line": 167, @@ -50484,8 +50799,8 @@ "binop": null, "updateContext": null }, - "start": 5433, - "end": 5434, + "start": 5459, + "end": 5460, "loc": { "start": { "line": 167, @@ -50510,8 +50825,8 @@ "binop": null, "updateContext": null }, - "start": 5434, - "end": 5435, + "start": 5460, + "end": 5461, "loc": { "start": { "line": 167, @@ -50536,8 +50851,8 @@ "binop": null }, "value": "col", - "start": 5436, - "end": 5439, + "start": 5462, + "end": 5465, "loc": { "start": { "line": 167, @@ -50562,8 +50877,8 @@ "binop": null, "updateContext": null }, - "start": 5439, - "end": 5440, + "start": 5465, + "end": 5466, "loc": { "start": { "line": 167, @@ -50588,8 +50903,8 @@ "binop": null }, "value": "MAP_LAYOUT", - "start": 5441, - "end": 5451, + "start": 5467, + "end": 5477, "loc": { "start": { "line": 167, @@ -50614,8 +50929,8 @@ "binop": null, "updateContext": null }, - "start": 5451, - "end": 5452, + "start": 5477, + "end": 5478, "loc": { "start": { "line": 167, @@ -50640,8 +50955,8 @@ "binop": null }, "value": "length", - "start": 5452, - "end": 5458, + "start": 5478, + "end": 5484, "loc": { "start": { "line": 167, @@ -50667,8 +50982,8 @@ "updateContext": null }, "value": "-", - "start": 5459, - "end": 5460, + "start": 5485, + "end": 5486, "loc": { "start": { "line": 167, @@ -50693,8 +51008,8 @@ "binop": null }, "value": "row", - "start": 5461, - "end": 5464, + "start": 5487, + "end": 5490, "loc": { "start": { "line": 167, @@ -50720,8 +51035,8 @@ "updateContext": null }, "value": "-", - "start": 5465, - "end": 5466, + "start": 5491, + "end": 5492, "loc": { "start": { "line": 167, @@ -50747,8 +51062,8 @@ "updateContext": null }, "value": 1, - "start": 5467, - "end": 5468, + "start": 5493, + "end": 5494, "loc": { "start": { "line": 167, @@ -50772,8 +51087,8 @@ "postfix": false, "binop": null }, - "start": 5468, - "end": 5469, + "start": 5494, + "end": 5495, "loc": { "start": { "line": 167, @@ -50797,8 +51112,8 @@ "postfix": false, "binop": null }, - "start": 5474, - "end": 5475, + "start": 5500, + "end": 5501, "loc": { "start": { "line": 168, @@ -50825,8 +51140,8 @@ "updateContext": null }, "value": "else", - "start": 5480, - "end": 5484, + "start": 5506, + "end": 5510, "loc": { "start": { "line": 169, @@ -50850,8 +51165,8 @@ "postfix": false, "binop": null }, - "start": 5485, - "end": 5486, + "start": 5511, + "end": 5512, "loc": { "start": { "line": 169, @@ -50878,8 +51193,8 @@ "updateContext": null }, "value": "throw", - "start": 5492, - "end": 5497, + "start": 5518, + "end": 5523, "loc": { "start": { "line": 170, @@ -50906,8 +51221,8 @@ "updateContext": null }, "value": "new", - "start": 5498, - "end": 5501, + "start": 5524, + "end": 5527, "loc": { "start": { "line": 170, @@ -50932,8 +51247,8 @@ "binop": null }, "value": "Error", - "start": 5502, - "end": 5507, + "start": 5528, + "end": 5533, "loc": { "start": { "line": 170, @@ -50957,8 +51272,8 @@ "postfix": false, "binop": null }, - "start": 5507, - "end": 5508, + "start": 5533, + "end": 5534, "loc": { "start": { "line": 170, @@ -50984,8 +51299,8 @@ "updateContext": null }, "value": "Tile ", - "start": 5508, - "end": 5515, + "start": 5534, + "end": 5541, "loc": { "start": { "line": 170, @@ -51011,8 +51326,8 @@ "updateContext": null }, "value": "+", - "start": 5516, - "end": 5517, + "start": 5542, + "end": 5543, "loc": { "start": { "line": 170, @@ -51037,8 +51352,8 @@ "binop": null }, "value": "MAP_LAYOUT", - "start": 5518, - "end": 5528, + "start": 5544, + "end": 5554, "loc": { "start": { "line": 170, @@ -51063,8 +51378,8 @@ "binop": null, "updateContext": null }, - "start": 5528, - "end": 5529, + "start": 5554, + "end": 5555, "loc": { "start": { "line": 170, @@ -51089,8 +51404,8 @@ "binop": null }, "value": "row", - "start": 5529, - "end": 5532, + "start": 5555, + "end": 5558, "loc": { "start": { "line": 170, @@ -51115,8 +51430,8 @@ "binop": null, "updateContext": null }, - "start": 5532, - "end": 5533, + "start": 5558, + "end": 5559, "loc": { "start": { "line": 170, @@ -51141,8 +51456,8 @@ "binop": null, "updateContext": null }, - "start": 5533, - "end": 5534, + "start": 5559, + "end": 5560, "loc": { "start": { "line": 170, @@ -51167,8 +51482,8 @@ "binop": null }, "value": "col", - "start": 5534, - "end": 5537, + "start": 5560, + "end": 5563, "loc": { "start": { "line": 170, @@ -51193,8 +51508,8 @@ "binop": null, "updateContext": null }, - "start": 5537, - "end": 5538, + "start": 5563, + "end": 5564, "loc": { "start": { "line": 170, @@ -51220,8 +51535,8 @@ "updateContext": null }, "value": "+", - "start": 5539, - "end": 5540, + "start": 5565, + "end": 5566, "loc": { "start": { "line": 170, @@ -51247,8 +51562,8 @@ "updateContext": null }, "value": " could not be resolved to a name.", - "start": 5541, - "end": 5576, + "start": 5567, + "end": 5602, "loc": { "start": { "line": 170, @@ -51272,8 +51587,8 @@ "postfix": false, "binop": null }, - "start": 5576, - "end": 5577, + "start": 5602, + "end": 5603, "loc": { "start": { "line": 170, @@ -51297,8 +51612,8 @@ "postfix": false, "binop": null }, - "start": 5582, - "end": 5583, + "start": 5608, + "end": 5609, "loc": { "start": { "line": 171, @@ -51322,8 +51637,8 @@ "postfix": false, "binop": null }, - "start": 5587, - "end": 5588, + "start": 5613, + "end": 5614, "loc": { "start": { "line": 172, @@ -51347,8 +51662,8 @@ "postfix": false, "binop": null }, - "start": 5591, - "end": 5592, + "start": 5617, + "end": 5618, "loc": { "start": { "line": 173, @@ -51372,8 +51687,8 @@ "postfix": false, "binop": null }, - "start": 5594, - "end": 5595, + "start": 5620, + "end": 5621, "loc": { "start": { "line": 174, @@ -51398,8 +51713,8 @@ "binop": null }, "value": "showGameUI", - "start": 5598, - "end": 5608, + "start": 5624, + "end": 5634, "loc": { "start": { "line": 176, @@ -51423,8 +51738,8 @@ "postfix": false, "binop": null }, - "start": 5608, - "end": 5609, + "start": 5634, + "end": 5635, "loc": { "start": { "line": 176, @@ -51448,8 +51763,8 @@ "postfix": false, "binop": null }, - "start": 5609, - "end": 5610, + "start": 5635, + "end": 5636, "loc": { "start": { "line": 176, @@ -51473,8 +51788,8 @@ "postfix": false, "binop": null }, - "start": 5611, - "end": 5612, + "start": 5637, + "end": 5638, "loc": { "start": { "line": 177, @@ -51489,8 +51804,8 @@ { "type": "CommentBlock", "value": "*\n * Called once per frame. Updates all moving sprites on the stage.\n * Also checks key inputs.\n * @param {number} delta Time value from Pixi\n ", - "start": 5614, - "end": 5761, + "start": 5640, + "end": 5787, "loc": { "start": { "line": 179, @@ -51516,8 +51831,8 @@ "binop": null }, "value": "function", - "start": 5762, - "end": 5770, + "start": 5788, + "end": 5796, "loc": { "start": { "line": 184, @@ -51542,8 +51857,8 @@ "binop": null }, "value": "draw", - "start": 5771, - "end": 5775, + "start": 5797, + "end": 5801, "loc": { "start": { "line": 184, @@ -51567,8 +51882,8 @@ "postfix": false, "binop": null }, - "start": 5776, - "end": 5777, + "start": 5802, + "end": 5803, "loc": { "start": { "line": 184, @@ -51593,8 +51908,8 @@ "binop": null }, "value": "delta", - "start": 5777, - "end": 5782, + "start": 5803, + "end": 5808, "loc": { "start": { "line": 184, @@ -51618,8 +51933,8 @@ "postfix": false, "binop": null }, - "start": 5782, - "end": 5783, + "start": 5808, + "end": 5809, "loc": { "start": { "line": 184, @@ -51643,8 +51958,8 @@ "postfix": false, "binop": null }, - "start": 5784, - "end": 5785, + "start": 5810, + "end": 5811, "loc": { "start": { "line": 184, @@ -51659,8 +51974,8 @@ { "type": "CommentLine", "value": " Handle this player and movement", - "start": 5787, - "end": 5821, + "start": 5813, + "end": 5847, "loc": { "start": { "line": 185, @@ -51687,8 +52002,8 @@ "updateContext": null }, "value": "if", - "start": 5823, - "end": 5825, + "start": 5849, + "end": 5851, "loc": { "start": { "line": 186, @@ -51712,8 +52027,8 @@ "postfix": false, "binop": null }, - "start": 5826, - "end": 5827, + "start": 5852, + "end": 5853, "loc": { "start": { "line": 186, @@ -51738,8 +52053,8 @@ "binop": null }, "value": "player", - "start": 5827, - "end": 5833, + "start": 5853, + "end": 5859, "loc": { "start": { "line": 186, @@ -51765,8 +52080,8 @@ "updateContext": null }, "value": "!==", - "start": 5834, - "end": 5837, + "start": 5860, + "end": 5863, "loc": { "start": { "line": 186, @@ -51791,8 +52106,8 @@ "binop": null }, "value": "undefined", - "start": 5838, - "end": 5847, + "start": 5864, + "end": 5873, "loc": { "start": { "line": 186, @@ -51816,8 +52131,8 @@ "postfix": false, "binop": null }, - "start": 5847, - "end": 5848, + "start": 5873, + "end": 5874, "loc": { "start": { "line": 186, @@ -51841,8 +52156,8 @@ "postfix": false, "binop": null }, - "start": 5849, - "end": 5850, + "start": 5875, + "end": 5876, "loc": { "start": { "line": 186, @@ -51857,8 +52172,8 @@ { "type": "CommentLine", "value": " Make sure player is not in chat before checking move", - "start": 5853, - "end": 5908, + "start": 5879, + "end": 5934, "loc": { "start": { "line": 187, @@ -51885,8 +52200,8 @@ "updateContext": null }, "value": "if", - "start": 5911, - "end": 5913, + "start": 5937, + "end": 5939, "loc": { "start": { "line": 188, @@ -51910,8 +52225,8 @@ "postfix": false, "binop": null }, - "start": 5914, - "end": 5915, + "start": 5940, + "end": 5941, "loc": { "start": { "line": 188, @@ -51936,8 +52251,8 @@ "binop": null }, "value": "isFocused", - "start": 5915, - "end": 5924, + "start": 5941, + "end": 5950, "loc": { "start": { "line": 188, @@ -51961,8 +52276,8 @@ "postfix": false, "binop": null }, - "start": 5924, - "end": 5925, + "start": 5950, + "end": 5951, "loc": { "start": { "line": 188, @@ -51986,8 +52301,8 @@ "postfix": false, "binop": null }, - "start": 5925, - "end": 5926, + "start": 5951, + "end": 5952, "loc": { "start": { "line": 188, @@ -52013,8 +52328,8 @@ "updateContext": null }, "value": "&&", - "start": 5927, - "end": 5929, + "start": 5953, + "end": 5955, "loc": { "start": { "line": 188, @@ -52039,8 +52354,8 @@ "binop": null }, "value": "inGame", - "start": 5930, - "end": 5936, + "start": 5956, + "end": 5962, "loc": { "start": { "line": 188, @@ -52064,8 +52379,8 @@ "postfix": false, "binop": null }, - "start": 5936, - "end": 5937, + "start": 5962, + "end": 5963, "loc": { "start": { "line": 188, @@ -52089,8 +52404,8 @@ "postfix": false, "binop": null }, - "start": 5938, - "end": 5939, + "start": 5964, + "end": 5965, "loc": { "start": { "line": 188, @@ -52105,8 +52420,8 @@ { "type": "CommentLine", "value": " Keyboard based controls", - "start": 5943, - "end": 5969, + "start": 5969, + "end": 5995, "loc": { "start": { "line": 189, @@ -52133,8 +52448,8 @@ "updateContext": null }, "value": "if", - "start": 5974, - "end": 5976, + "start": 6000, + "end": 6002, "loc": { "start": { "line": 191, @@ -52158,8 +52473,8 @@ "postfix": false, "binop": null }, - "start": 5977, - "end": 5978, + "start": 6003, + "end": 6004, "loc": { "start": { "line": 191, @@ -52183,8 +52498,8 @@ "postfix": false, "binop": null }, - "start": 5978, - "end": 5979, + "start": 6004, + "end": 6005, "loc": { "start": { "line": 191, @@ -52209,8 +52524,8 @@ "binop": null }, "value": "moveKeys", - "start": 5979, - "end": 5987, + "start": 6005, + "end": 6013, "loc": { "start": { "line": 191, @@ -52235,8 +52550,8 @@ "binop": null, "updateContext": null }, - "start": 5987, - "end": 5988, + "start": 6013, + "end": 6014, "loc": { "start": { "line": 191, @@ -52262,8 +52577,8 @@ "updateContext": null }, "value": 0, - "start": 5988, - "end": 5989, + "start": 6014, + "end": 6015, "loc": { "start": { "line": 191, @@ -52288,8 +52603,8 @@ "binop": null, "updateContext": null }, - "start": 5989, - "end": 5990, + "start": 6015, + "end": 6016, "loc": { "start": { "line": 191, @@ -52314,8 +52629,8 @@ "binop": null, "updateContext": null }, - "start": 5990, - "end": 5991, + "start": 6016, + "end": 6017, "loc": { "start": { "line": 191, @@ -52340,8 +52655,8 @@ "binop": null }, "value": "isDown", - "start": 5991, - "end": 5997, + "start": 6017, + "end": 6023, "loc": { "start": { "line": 191, @@ -52367,8 +52682,8 @@ "updateContext": null }, "value": "||", - "start": 5998, - "end": 6000, + "start": 6024, + "end": 6026, "loc": { "start": { "line": 191, @@ -52393,8 +52708,8 @@ "binop": null }, "value": "joystick", - "start": 6001, - "end": 6009, + "start": 6027, + "end": 6035, "loc": { "start": { "line": 191, @@ -52419,8 +52734,8 @@ "binop": null, "updateContext": null }, - "start": 6009, - "end": 6010, + "start": 6035, + "end": 6036, "loc": { "start": { "line": 191, @@ -52445,8 +52760,8 @@ "binop": null }, "value": "mobileKey", - "start": 6010, - "end": 6019, + "start": 6036, + "end": 6045, "loc": { "start": { "line": 191, @@ -52471,8 +52786,8 @@ "binop": null, "updateContext": null }, - "start": 6019, - "end": 6020, + "start": 6045, + "end": 6046, "loc": { "start": { "line": 191, @@ -52497,8 +52812,8 @@ "binop": null }, "value": "leftDown", - "start": 6020, - "end": 6028, + "start": 6046, + "end": 6054, "loc": { "start": { "line": 191, @@ -52524,8 +52839,8 @@ "updateContext": null }, "value": "===", - "start": 6029, - "end": 6032, + "start": 6055, + "end": 6058, "loc": { "start": { "line": 191, @@ -52552,8 +52867,8 @@ "updateContext": null }, "value": "true", - "start": 6033, - "end": 6037, + "start": 6059, + "end": 6063, "loc": { "start": { "line": 191, @@ -52577,8 +52892,8 @@ "postfix": false, "binop": null }, - "start": 6037, - "end": 6038, + "start": 6063, + "end": 6064, "loc": { "start": { "line": 191, @@ -52604,8 +52919,8 @@ "updateContext": null }, "value": "&&", - "start": 6039, - "end": 6041, + "start": 6065, + "end": 6067, "loc": { "start": { "line": 191, @@ -52630,8 +52945,8 @@ "binop": null }, "value": "player", - "start": 6042, - "end": 6048, + "start": 6068, + "end": 6074, "loc": { "start": { "line": 191, @@ -52656,8 +52971,8 @@ "binop": null, "updateContext": null }, - "start": 6048, - "end": 6049, + "start": 6074, + "end": 6075, "loc": { "start": { "line": 191, @@ -52682,8 +52997,8 @@ "binop": null }, "value": "vx", - "start": 6049, - "end": 6051, + "start": 6075, + "end": 6077, "loc": { "start": { "line": 191, @@ -52709,8 +53024,8 @@ "updateContext": null }, "value": ">", - "start": 6052, - "end": 6053, + "start": 6078, + "end": 6079, "loc": { "start": { "line": 191, @@ -52736,8 +53051,8 @@ "updateContext": null }, "value": "-", - "start": 6054, - "end": 6055, + "start": 6080, + "end": 6081, "loc": { "start": { "line": 191, @@ -52762,8 +53077,8 @@ "binop": null }, "value": "GLOBAL", - "start": 6055, - "end": 6061, + "start": 6081, + "end": 6087, "loc": { "start": { "line": 191, @@ -52788,8 +53103,8 @@ "binop": null, "updateContext": null }, - "start": 6061, - "end": 6062, + "start": 6087, + "end": 6088, "loc": { "start": { "line": 191, @@ -52814,8 +53129,8 @@ "binop": null }, "value": "MAX_SPEED", - "start": 6062, - "end": 6071, + "start": 6088, + "end": 6097, "loc": { "start": { "line": 191, @@ -52841,8 +53156,8 @@ "updateContext": null }, "value": "*", - "start": 6072, - "end": 6073, + "start": 6098, + "end": 6099, "loc": { "start": { "line": 191, @@ -52867,8 +53182,8 @@ "binop": null }, "value": "player", - "start": 6074, - "end": 6080, + "start": 6100, + "end": 6106, "loc": { "start": { "line": 191, @@ -52893,8 +53208,8 @@ "binop": null, "updateContext": null }, - "start": 6080, - "end": 6081, + "start": 6106, + "end": 6107, "loc": { "start": { "line": 191, @@ -52919,8 +53234,8 @@ "binop": null }, "value": "speedMult", - "start": 6081, - "end": 6090, + "start": 6107, + "end": 6116, "loc": { "start": { "line": 191, @@ -52944,8 +53259,8 @@ "postfix": false, "binop": null }, - "start": 6090, - "end": 6091, + "start": 6116, + "end": 6117, "loc": { "start": { "line": 191, @@ -52969,8 +53284,8 @@ "postfix": false, "binop": null }, - "start": 6092, - "end": 6093, + "start": 6118, + "end": 6119, "loc": { "start": { "line": 191, @@ -52985,8 +53300,8 @@ { "type": "CommentLine", "value": " Left", - "start": 6094, - "end": 6101, + "start": 6120, + "end": 6127, "loc": { "start": { "line": 191, @@ -53011,8 +53326,8 @@ "binop": null }, "value": "mobileMovement", - "start": 6106, - "end": 6120, + "start": 6132, + "end": 6146, "loc": { "start": { "line": 192, @@ -53036,8 +53351,8 @@ "postfix": false, "binop": null }, - "start": 6120, - "end": 6121, + "start": 6146, + "end": 6147, "loc": { "start": { "line": 192, @@ -53063,8 +53378,8 @@ "updateContext": null }, "value": "left", - "start": 6121, - "end": 6127, + "start": 6147, + "end": 6153, "loc": { "start": { "line": 192, @@ -53088,8 +53403,8 @@ "postfix": false, "binop": null }, - "start": 6127, - "end": 6128, + "start": 6153, + "end": 6154, "loc": { "start": { "line": 192, @@ -53113,8 +53428,8 @@ "postfix": false, "binop": null }, - "start": 6132, - "end": 6133, + "start": 6158, + "end": 6159, "loc": { "start": { "line": 193, @@ -53141,8 +53456,8 @@ "updateContext": null }, "value": "if", - "start": 6137, - "end": 6139, + "start": 6163, + "end": 6165, "loc": { "start": { "line": 194, @@ -53166,8 +53481,8 @@ "postfix": false, "binop": null }, - "start": 6140, - "end": 6141, + "start": 6166, + "end": 6167, "loc": { "start": { "line": 194, @@ -53191,8 +53506,8 @@ "postfix": false, "binop": null }, - "start": 6141, - "end": 6142, + "start": 6167, + "end": 6168, "loc": { "start": { "line": 194, @@ -53217,8 +53532,8 @@ "binop": null }, "value": "moveKeys", - "start": 6142, - "end": 6150, + "start": 6168, + "end": 6176, "loc": { "start": { "line": 194, @@ -53243,8 +53558,8 @@ "binop": null, "updateContext": null }, - "start": 6150, - "end": 6151, + "start": 6176, + "end": 6177, "loc": { "start": { "line": 194, @@ -53270,8 +53585,8 @@ "updateContext": null }, "value": 1, - "start": 6151, - "end": 6152, + "start": 6177, + "end": 6178, "loc": { "start": { "line": 194, @@ -53296,8 +53611,8 @@ "binop": null, "updateContext": null }, - "start": 6152, - "end": 6153, + "start": 6178, + "end": 6179, "loc": { "start": { "line": 194, @@ -53322,8 +53637,8 @@ "binop": null, "updateContext": null }, - "start": 6153, - "end": 6154, + "start": 6179, + "end": 6180, "loc": { "start": { "line": 194, @@ -53348,8 +53663,8 @@ "binop": null }, "value": "isDown", - "start": 6154, - "end": 6160, + "start": 6180, + "end": 6186, "loc": { "start": { "line": 194, @@ -53375,8 +53690,8 @@ "updateContext": null }, "value": "||", - "start": 6161, - "end": 6163, + "start": 6187, + "end": 6189, "loc": { "start": { "line": 194, @@ -53401,8 +53716,8 @@ "binop": null }, "value": "joystick", - "start": 6164, - "end": 6172, + "start": 6190, + "end": 6198, "loc": { "start": { "line": 194, @@ -53427,8 +53742,8 @@ "binop": null, "updateContext": null }, - "start": 6172, - "end": 6173, + "start": 6198, + "end": 6199, "loc": { "start": { "line": 194, @@ -53453,8 +53768,8 @@ "binop": null }, "value": "mobileKey", - "start": 6173, - "end": 6182, + "start": 6199, + "end": 6208, "loc": { "start": { "line": 194, @@ -53479,8 +53794,8 @@ "binop": null, "updateContext": null }, - "start": 6182, - "end": 6183, + "start": 6208, + "end": 6209, "loc": { "start": { "line": 194, @@ -53505,8 +53820,8 @@ "binop": null }, "value": "rightDown", - "start": 6183, - "end": 6192, + "start": 6209, + "end": 6218, "loc": { "start": { "line": 194, @@ -53532,8 +53847,8 @@ "updateContext": null }, "value": "===", - "start": 6193, - "end": 6196, + "start": 6219, + "end": 6222, "loc": { "start": { "line": 194, @@ -53560,8 +53875,8 @@ "updateContext": null }, "value": "true", - "start": 6197, - "end": 6201, + "start": 6223, + "end": 6227, "loc": { "start": { "line": 194, @@ -53585,8 +53900,8 @@ "postfix": false, "binop": null }, - "start": 6201, - "end": 6202, + "start": 6227, + "end": 6228, "loc": { "start": { "line": 194, @@ -53612,8 +53927,8 @@ "updateContext": null }, "value": "&&", - "start": 6203, - "end": 6205, + "start": 6229, + "end": 6231, "loc": { "start": { "line": 194, @@ -53638,8 +53953,8 @@ "binop": null }, "value": "player", - "start": 6206, - "end": 6212, + "start": 6232, + "end": 6238, "loc": { "start": { "line": 194, @@ -53664,8 +53979,8 @@ "binop": null, "updateContext": null }, - "start": 6212, - "end": 6213, + "start": 6238, + "end": 6239, "loc": { "start": { "line": 194, @@ -53690,8 +54005,8 @@ "binop": null }, "value": "vx", - "start": 6213, - "end": 6215, + "start": 6239, + "end": 6241, "loc": { "start": { "line": 194, @@ -53717,8 +54032,8 @@ "updateContext": null }, "value": "<", - "start": 6216, - "end": 6217, + "start": 6242, + "end": 6243, "loc": { "start": { "line": 194, @@ -53743,8 +54058,8 @@ "binop": null }, "value": "GLOBAL", - "start": 6218, - "end": 6224, + "start": 6244, + "end": 6250, "loc": { "start": { "line": 194, @@ -53769,8 +54084,8 @@ "binop": null, "updateContext": null }, - "start": 6224, - "end": 6225, + "start": 6250, + "end": 6251, "loc": { "start": { "line": 194, @@ -53795,8 +54110,8 @@ "binop": null }, "value": "MAX_SPEED", - "start": 6225, - "end": 6234, + "start": 6251, + "end": 6260, "loc": { "start": { "line": 194, @@ -53822,8 +54137,8 @@ "updateContext": null }, "value": "*", - "start": 6235, - "end": 6236, + "start": 6261, + "end": 6262, "loc": { "start": { "line": 194, @@ -53848,8 +54163,8 @@ "binop": null }, "value": "player", - "start": 6237, - "end": 6243, + "start": 6263, + "end": 6269, "loc": { "start": { "line": 194, @@ -53874,8 +54189,8 @@ "binop": null, "updateContext": null }, - "start": 6243, - "end": 6244, + "start": 6269, + "end": 6270, "loc": { "start": { "line": 194, @@ -53900,8 +54215,8 @@ "binop": null }, "value": "speedMult", - "start": 6244, - "end": 6253, + "start": 6270, + "end": 6279, "loc": { "start": { "line": 194, @@ -53925,8 +54240,8 @@ "postfix": false, "binop": null }, - "start": 6253, - "end": 6254, + "start": 6279, + "end": 6280, "loc": { "start": { "line": 194, @@ -53950,8 +54265,8 @@ "postfix": false, "binop": null }, - "start": 6255, - "end": 6256, + "start": 6281, + "end": 6282, "loc": { "start": { "line": 194, @@ -53966,8 +54281,8 @@ { "type": "CommentLine", "value": " Right", - "start": 6257, - "end": 6265, + "start": 6283, + "end": 6291, "loc": { "start": { "line": 194, @@ -53992,8 +54307,8 @@ "binop": null }, "value": "mobileMovement", - "start": 6270, - "end": 6284, + "start": 6296, + "end": 6310, "loc": { "start": { "line": 195, @@ -54017,8 +54332,8 @@ "postfix": false, "binop": null }, - "start": 6284, - "end": 6285, + "start": 6310, + "end": 6311, "loc": { "start": { "line": 195, @@ -54044,8 +54359,8 @@ "updateContext": null }, "value": "right", - "start": 6285, - "end": 6292, + "start": 6311, + "end": 6318, "loc": { "start": { "line": 195, @@ -54069,8 +54384,8 @@ "postfix": false, "binop": null }, - "start": 6292, - "end": 6293, + "start": 6318, + "end": 6319, "loc": { "start": { "line": 195, @@ -54094,8 +54409,8 @@ "postfix": false, "binop": null }, - "start": 6297, - "end": 6298, + "start": 6323, + "end": 6324, "loc": { "start": { "line": 196, @@ -54122,8 +54437,8 @@ "updateContext": null }, "value": "if", - "start": 6302, - "end": 6304, + "start": 6328, + "end": 6330, "loc": { "start": { "line": 197, @@ -54147,8 +54462,8 @@ "postfix": false, "binop": null }, - "start": 6305, - "end": 6306, + "start": 6331, + "end": 6332, "loc": { "start": { "line": 197, @@ -54172,8 +54487,8 @@ "postfix": false, "binop": null }, - "start": 6306, - "end": 6307, + "start": 6332, + "end": 6333, "loc": { "start": { "line": 197, @@ -54198,8 +54513,8 @@ "binop": null }, "value": "moveKeys", - "start": 6307, - "end": 6315, + "start": 6333, + "end": 6341, "loc": { "start": { "line": 197, @@ -54224,8 +54539,8 @@ "binop": null, "updateContext": null }, - "start": 6315, - "end": 6316, + "start": 6341, + "end": 6342, "loc": { "start": { "line": 197, @@ -54251,8 +54566,8 @@ "updateContext": null }, "value": 2, - "start": 6316, - "end": 6317, + "start": 6342, + "end": 6343, "loc": { "start": { "line": 197, @@ -54277,8 +54592,8 @@ "binop": null, "updateContext": null }, - "start": 6317, - "end": 6318, + "start": 6343, + "end": 6344, "loc": { "start": { "line": 197, @@ -54303,8 +54618,8 @@ "binop": null, "updateContext": null }, - "start": 6318, - "end": 6319, + "start": 6344, + "end": 6345, "loc": { "start": { "line": 197, @@ -54329,8 +54644,8 @@ "binop": null }, "value": "isDown", - "start": 6319, - "end": 6325, + "start": 6345, + "end": 6351, "loc": { "start": { "line": 197, @@ -54356,8 +54671,8 @@ "updateContext": null }, "value": "||", - "start": 6326, - "end": 6328, + "start": 6352, + "end": 6354, "loc": { "start": { "line": 197, @@ -54382,8 +54697,8 @@ "binop": null }, "value": "joystick", - "start": 6329, - "end": 6337, + "start": 6355, + "end": 6363, "loc": { "start": { "line": 197, @@ -54408,8 +54723,8 @@ "binop": null, "updateContext": null }, - "start": 6337, - "end": 6338, + "start": 6363, + "end": 6364, "loc": { "start": { "line": 197, @@ -54434,8 +54749,8 @@ "binop": null }, "value": "mobileKey", - "start": 6338, - "end": 6347, + "start": 6364, + "end": 6373, "loc": { "start": { "line": 197, @@ -54460,8 +54775,8 @@ "binop": null, "updateContext": null }, - "start": 6347, - "end": 6348, + "start": 6373, + "end": 6374, "loc": { "start": { "line": 197, @@ -54486,8 +54801,8 @@ "binop": null }, "value": "upDown", - "start": 6348, - "end": 6354, + "start": 6374, + "end": 6380, "loc": { "start": { "line": 197, @@ -54513,8 +54828,8 @@ "updateContext": null }, "value": "===", - "start": 6355, - "end": 6358, + "start": 6381, + "end": 6384, "loc": { "start": { "line": 197, @@ -54541,8 +54856,8 @@ "updateContext": null }, "value": "true", - "start": 6359, - "end": 6363, + "start": 6385, + "end": 6389, "loc": { "start": { "line": 197, @@ -54566,8 +54881,8 @@ "postfix": false, "binop": null }, - "start": 6363, - "end": 6364, + "start": 6389, + "end": 6390, "loc": { "start": { "line": 197, @@ -54593,8 +54908,8 @@ "updateContext": null }, "value": "&&", - "start": 6365, - "end": 6367, + "start": 6391, + "end": 6393, "loc": { "start": { "line": 197, @@ -54619,8 +54934,8 @@ "binop": null }, "value": "player", - "start": 6368, - "end": 6374, + "start": 6394, + "end": 6400, "loc": { "start": { "line": 197, @@ -54645,8 +54960,8 @@ "binop": null, "updateContext": null }, - "start": 6374, - "end": 6375, + "start": 6400, + "end": 6401, "loc": { "start": { "line": 197, @@ -54671,8 +54986,8 @@ "binop": null }, "value": "vy", - "start": 6375, - "end": 6377, + "start": 6401, + "end": 6403, "loc": { "start": { "line": 197, @@ -54698,8 +55013,8 @@ "updateContext": null }, "value": "<", - "start": 6378, - "end": 6379, + "start": 6404, + "end": 6405, "loc": { "start": { "line": 197, @@ -54724,8 +55039,8 @@ "binop": null }, "value": "GLOBAL", - "start": 6380, - "end": 6386, + "start": 6406, + "end": 6412, "loc": { "start": { "line": 197, @@ -54750,8 +55065,8 @@ "binop": null, "updateContext": null }, - "start": 6386, - "end": 6387, + "start": 6412, + "end": 6413, "loc": { "start": { "line": 197, @@ -54776,8 +55091,8 @@ "binop": null }, "value": "MAX_SPEED", - "start": 6387, - "end": 6396, + "start": 6413, + "end": 6422, "loc": { "start": { "line": 197, @@ -54803,8 +55118,8 @@ "updateContext": null }, "value": "*", - "start": 6397, - "end": 6398, + "start": 6423, + "end": 6424, "loc": { "start": { "line": 197, @@ -54829,8 +55144,8 @@ "binop": null }, "value": "player", - "start": 6399, - "end": 6405, + "start": 6425, + "end": 6431, "loc": { "start": { "line": 197, @@ -54855,8 +55170,8 @@ "binop": null, "updateContext": null }, - "start": 6405, - "end": 6406, + "start": 6431, + "end": 6432, "loc": { "start": { "line": 197, @@ -54881,8 +55196,8 @@ "binop": null }, "value": "speedMult", - "start": 6406, - "end": 6415, + "start": 6432, + "end": 6441, "loc": { "start": { "line": 197, @@ -54906,8 +55221,8 @@ "postfix": false, "binop": null }, - "start": 6415, - "end": 6416, + "start": 6441, + "end": 6442, "loc": { "start": { "line": 197, @@ -54931,8 +55246,8 @@ "postfix": false, "binop": null }, - "start": 6417, - "end": 6418, + "start": 6443, + "end": 6444, "loc": { "start": { "line": 197, @@ -54947,8 +55262,8 @@ { "type": "CommentLine", "value": " Up", - "start": 6419, - "end": 6424, + "start": 6445, + "end": 6450, "loc": { "start": { "line": 197, @@ -54973,8 +55288,8 @@ "binop": null }, "value": "mobileMovement", - "start": 6429, - "end": 6443, + "start": 6455, + "end": 6469, "loc": { "start": { "line": 198, @@ -54998,8 +55313,8 @@ "postfix": false, "binop": null }, - "start": 6443, - "end": 6444, + "start": 6469, + "end": 6470, "loc": { "start": { "line": 198, @@ -55025,8 +55340,8 @@ "updateContext": null }, "value": "up", - "start": 6444, - "end": 6448, + "start": 6470, + "end": 6474, "loc": { "start": { "line": 198, @@ -55050,8 +55365,8 @@ "postfix": false, "binop": null }, - "start": 6448, - "end": 6449, + "start": 6474, + "end": 6475, "loc": { "start": { "line": 198, @@ -55075,8 +55390,8 @@ "postfix": false, "binop": null }, - "start": 6453, - "end": 6454, + "start": 6479, + "end": 6480, "loc": { "start": { "line": 199, @@ -55103,8 +55418,8 @@ "updateContext": null }, "value": "if", - "start": 6458, - "end": 6460, + "start": 6484, + "end": 6486, "loc": { "start": { "line": 200, @@ -55128,8 +55443,8 @@ "postfix": false, "binop": null }, - "start": 6461, - "end": 6462, + "start": 6487, + "end": 6488, "loc": { "start": { "line": 200, @@ -55153,8 +55468,8 @@ "postfix": false, "binop": null }, - "start": 6462, - "end": 6463, + "start": 6488, + "end": 6489, "loc": { "start": { "line": 200, @@ -55179,8 +55494,8 @@ "binop": null }, "value": "moveKeys", - "start": 6463, - "end": 6471, + "start": 6489, + "end": 6497, "loc": { "start": { "line": 200, @@ -55205,8 +55520,8 @@ "binop": null, "updateContext": null }, - "start": 6471, - "end": 6472, + "start": 6497, + "end": 6498, "loc": { "start": { "line": 200, @@ -55232,8 +55547,8 @@ "updateContext": null }, "value": 3, - "start": 6472, - "end": 6473, + "start": 6498, + "end": 6499, "loc": { "start": { "line": 200, @@ -55258,8 +55573,8 @@ "binop": null, "updateContext": null }, - "start": 6473, - "end": 6474, + "start": 6499, + "end": 6500, "loc": { "start": { "line": 200, @@ -55284,8 +55599,8 @@ "binop": null, "updateContext": null }, - "start": 6474, - "end": 6475, + "start": 6500, + "end": 6501, "loc": { "start": { "line": 200, @@ -55310,8 +55625,8 @@ "binop": null }, "value": "isDown", - "start": 6475, - "end": 6481, + "start": 6501, + "end": 6507, "loc": { "start": { "line": 200, @@ -55337,8 +55652,8 @@ "updateContext": null }, "value": "||", - "start": 6482, - "end": 6484, + "start": 6508, + "end": 6510, "loc": { "start": { "line": 200, @@ -55363,8 +55678,8 @@ "binop": null }, "value": "joystick", - "start": 6485, - "end": 6493, + "start": 6511, + "end": 6519, "loc": { "start": { "line": 200, @@ -55389,8 +55704,8 @@ "binop": null, "updateContext": null }, - "start": 6493, - "end": 6494, + "start": 6519, + "end": 6520, "loc": { "start": { "line": 200, @@ -55415,8 +55730,8 @@ "binop": null }, "value": "mobileKey", - "start": 6494, - "end": 6503, + "start": 6520, + "end": 6529, "loc": { "start": { "line": 200, @@ -55441,8 +55756,8 @@ "binop": null, "updateContext": null }, - "start": 6503, - "end": 6504, + "start": 6529, + "end": 6530, "loc": { "start": { "line": 200, @@ -55467,8 +55782,8 @@ "binop": null }, "value": "downDown", - "start": 6504, - "end": 6512, + "start": 6530, + "end": 6538, "loc": { "start": { "line": 200, @@ -55494,8 +55809,8 @@ "updateContext": null }, "value": "===", - "start": 6513, - "end": 6516, + "start": 6539, + "end": 6542, "loc": { "start": { "line": 200, @@ -55522,8 +55837,8 @@ "updateContext": null }, "value": "true", - "start": 6517, - "end": 6521, + "start": 6543, + "end": 6547, "loc": { "start": { "line": 200, @@ -55547,8 +55862,8 @@ "postfix": false, "binop": null }, - "start": 6521, - "end": 6522, + "start": 6547, + "end": 6548, "loc": { "start": { "line": 200, @@ -55574,8 +55889,8 @@ "updateContext": null }, "value": "&&", - "start": 6523, - "end": 6525, + "start": 6549, + "end": 6551, "loc": { "start": { "line": 200, @@ -55600,8 +55915,8 @@ "binop": null }, "value": "player", - "start": 6526, - "end": 6532, + "start": 6552, + "end": 6558, "loc": { "start": { "line": 200, @@ -55626,8 +55941,8 @@ "binop": null, "updateContext": null }, - "start": 6532, - "end": 6533, + "start": 6558, + "end": 6559, "loc": { "start": { "line": 200, @@ -55652,8 +55967,8 @@ "binop": null }, "value": "vy", - "start": 6533, - "end": 6535, + "start": 6559, + "end": 6561, "loc": { "start": { "line": 200, @@ -55679,8 +55994,8 @@ "updateContext": null }, "value": ">", - "start": 6536, - "end": 6537, + "start": 6562, + "end": 6563, "loc": { "start": { "line": 200, @@ -55706,8 +56021,8 @@ "updateContext": null }, "value": "-", - "start": 6538, - "end": 6539, + "start": 6564, + "end": 6565, "loc": { "start": { "line": 200, @@ -55732,8 +56047,8 @@ "binop": null }, "value": "GLOBAL", - "start": 6539, - "end": 6545, + "start": 6565, + "end": 6571, "loc": { "start": { "line": 200, @@ -55758,8 +56073,8 @@ "binop": null, "updateContext": null }, - "start": 6545, - "end": 6546, + "start": 6571, + "end": 6572, "loc": { "start": { "line": 200, @@ -55784,8 +56099,8 @@ "binop": null }, "value": "MAX_SPEED", - "start": 6546, - "end": 6555, + "start": 6572, + "end": 6581, "loc": { "start": { "line": 200, @@ -55811,8 +56126,8 @@ "updateContext": null }, "value": "*", - "start": 6556, - "end": 6557, + "start": 6582, + "end": 6583, "loc": { "start": { "line": 200, @@ -55837,8 +56152,8 @@ "binop": null }, "value": "player", - "start": 6558, - "end": 6564, + "start": 6584, + "end": 6590, "loc": { "start": { "line": 200, @@ -55863,8 +56178,8 @@ "binop": null, "updateContext": null }, - "start": 6564, - "end": 6565, + "start": 6590, + "end": 6591, "loc": { "start": { "line": 200, @@ -55889,8 +56204,8 @@ "binop": null }, "value": "speedMult", - "start": 6565, - "end": 6574, + "start": 6591, + "end": 6600, "loc": { "start": { "line": 200, @@ -55914,8 +56229,8 @@ "postfix": false, "binop": null }, - "start": 6574, - "end": 6575, + "start": 6600, + "end": 6601, "loc": { "start": { "line": 200, @@ -55939,8 +56254,8 @@ "postfix": false, "binop": null }, - "start": 6576, - "end": 6577, + "start": 6602, + "end": 6603, "loc": { "start": { "line": 200, @@ -55955,8 +56270,8 @@ { "type": "CommentLine", "value": " Down", - "start": 6578, - "end": 6585, + "start": 6604, + "end": 6611, "loc": { "start": { "line": 200, @@ -55981,8 +56296,8 @@ "binop": null }, "value": "mobileMovement", - "start": 6590, - "end": 6604, + "start": 6616, + "end": 6630, "loc": { "start": { "line": 201, @@ -56006,8 +56321,8 @@ "postfix": false, "binop": null }, - "start": 6604, - "end": 6605, + "start": 6630, + "end": 6631, "loc": { "start": { "line": 201, @@ -56033,8 +56348,8 @@ "updateContext": null }, "value": "down", - "start": 6605, - "end": 6611, + "start": 6631, + "end": 6637, "loc": { "start": { "line": 201, @@ -56058,8 +56373,8 @@ "postfix": false, "binop": null }, - "start": 6611, - "end": 6612, + "start": 6637, + "end": 6638, "loc": { "start": { "line": 201, @@ -56083,8 +56398,8 @@ "postfix": false, "binop": null }, - "start": 6616, - "end": 6617, + "start": 6642, + "end": 6643, "loc": { "start": { "line": 202, @@ -56109,8 +56424,8 @@ "binop": null }, "value": "player", - "start": 6621, - "end": 6627, + "start": 6647, + "end": 6653, "loc": { "start": { "line": 203, @@ -56135,8 +56450,8 @@ "binop": null, "updateContext": null }, - "start": 6627, - "end": 6628, + "start": 6653, + "end": 6654, "loc": { "start": { "line": 203, @@ -56161,8 +56476,8 @@ "binop": null }, "value": "isMoving", - "start": 6628, - "end": 6636, + "start": 6654, + "end": 6662, "loc": { "start": { "line": 203, @@ -56188,8 +56503,8 @@ "updateContext": null }, "value": "=", - "start": 6637, - "end": 6638, + "start": 6663, + "end": 6664, "loc": { "start": { "line": 203, @@ -56216,8 +56531,8 @@ "updateContext": null }, "value": "false", - "start": 6639, - "end": 6644, + "start": 6665, + "end": 6670, "loc": { "start": { "line": 203, @@ -56244,8 +56559,8 @@ "updateContext": null }, "value": "for", - "start": 6648, - "end": 6651, + "start": 6674, + "end": 6677, "loc": { "start": { "line": 204, @@ -56269,8 +56584,8 @@ "postfix": false, "binop": null }, - "start": 6652, - "end": 6653, + "start": 6678, + "end": 6679, "loc": { "start": { "line": 204, @@ -56297,8 +56612,8 @@ "updateContext": null }, "value": "let", - "start": 6653, - "end": 6656, + "start": 6679, + "end": 6682, "loc": { "start": { "line": 204, @@ -56323,8 +56638,8 @@ "binop": null }, "value": "key", - "start": 6657, - "end": 6660, + "start": 6683, + "end": 6686, "loc": { "start": { "line": 204, @@ -56349,8 +56664,8 @@ "binop": null }, "value": "of", - "start": 6661, - "end": 6663, + "start": 6687, + "end": 6689, "loc": { "start": { "line": 204, @@ -56375,8 +56690,8 @@ "binop": null }, "value": "moveKeys", - "start": 6664, - "end": 6672, + "start": 6690, + "end": 6698, "loc": { "start": { "line": 204, @@ -56400,8 +56715,8 @@ "postfix": false, "binop": null }, - "start": 6672, - "end": 6673, + "start": 6698, + "end": 6699, "loc": { "start": { "line": 204, @@ -56425,8 +56740,8 @@ "postfix": false, "binop": null }, - "start": 6674, - "end": 6675, + "start": 6700, + "end": 6701, "loc": { "start": { "line": 204, @@ -56453,8 +56768,8 @@ "updateContext": null }, "value": "if", - "start": 6680, - "end": 6682, + "start": 6706, + "end": 6708, "loc": { "start": { "line": 205, @@ -56478,8 +56793,8 @@ "postfix": false, "binop": null }, - "start": 6683, - "end": 6684, + "start": 6709, + "end": 6710, "loc": { "start": { "line": 205, @@ -56504,8 +56819,8 @@ "binop": null }, "value": "key", - "start": 6684, - "end": 6687, + "start": 6710, + "end": 6713, "loc": { "start": { "line": 205, @@ -56530,8 +56845,8 @@ "binop": null, "updateContext": null }, - "start": 6687, - "end": 6688, + "start": 6713, + "end": 6714, "loc": { "start": { "line": 205, @@ -56556,8 +56871,8 @@ "binop": null }, "value": "isDown", - "start": 6688, - "end": 6694, + "start": 6714, + "end": 6720, "loc": { "start": { "line": 205, @@ -56581,8 +56896,8 @@ "postfix": false, "binop": null }, - "start": 6694, - "end": 6695, + "start": 6720, + "end": 6721, "loc": { "start": { "line": 205, @@ -56606,8 +56921,8 @@ "postfix": false, "binop": null }, - "start": 6696, - "end": 6697, + "start": 6722, + "end": 6723, "loc": { "start": { "line": 205, @@ -56632,8 +56947,8 @@ "binop": null }, "value": "player", - "start": 6703, - "end": 6709, + "start": 6729, + "end": 6735, "loc": { "start": { "line": 206, @@ -56658,8 +56973,8 @@ "binop": null, "updateContext": null }, - "start": 6709, - "end": 6710, + "start": 6735, + "end": 6736, "loc": { "start": { "line": 206, @@ -56684,8 +56999,8 @@ "binop": null }, "value": "isMoving", - "start": 6710, - "end": 6718, + "start": 6736, + "end": 6744, "loc": { "start": { "line": 206, @@ -56711,8 +57026,8 @@ "updateContext": null }, "value": "=", - "start": 6719, - "end": 6720, + "start": 6745, + "end": 6746, "loc": { "start": { "line": 206, @@ -56739,8 +57054,8 @@ "updateContext": null }, "value": "true", - "start": 6721, - "end": 6725, + "start": 6747, + "end": 6751, "loc": { "start": { "line": 206, @@ -56764,8 +57079,8 @@ "postfix": false, "binop": null }, - "start": 6730, - "end": 6731, + "start": 6756, + "end": 6757, "loc": { "start": { "line": 207, @@ -56789,8 +57104,8 @@ "postfix": false, "binop": null }, - "start": 6735, - "end": 6736, + "start": 6761, + "end": 6762, "loc": { "start": { "line": 208, @@ -56814,8 +57129,8 @@ "postfix": false, "binop": null }, - "start": 6739, - "end": 6740, + "start": 6765, + "end": 6766, "loc": { "start": { "line": 209, @@ -56842,8 +57157,8 @@ "updateContext": null }, "value": "else", - "start": 6743, - "end": 6747, + "start": 6769, + "end": 6773, "loc": { "start": { "line": 210, @@ -56867,8 +57182,8 @@ "postfix": false, "binop": null }, - "start": 6748, - "end": 6749, + "start": 6774, + "end": 6775, "loc": { "start": { "line": 210, @@ -56893,8 +57208,8 @@ "binop": null }, "value": "player", - "start": 6753, - "end": 6759, + "start": 6779, + "end": 6785, "loc": { "start": { "line": 211, @@ -56919,8 +57234,8 @@ "binop": null, "updateContext": null }, - "start": 6759, - "end": 6760, + "start": 6785, + "end": 6786, "loc": { "start": { "line": 211, @@ -56945,8 +57260,8 @@ "binop": null }, "value": "isMoving", - "start": 6760, - "end": 6768, + "start": 6786, + "end": 6794, "loc": { "start": { "line": 211, @@ -56972,8 +57287,8 @@ "updateContext": null }, "value": "=", - "start": 6769, - "end": 6770, + "start": 6795, + "end": 6796, "loc": { "start": { "line": 211, @@ -57000,8 +57315,8 @@ "updateContext": null }, "value": "false", - "start": 6771, - "end": 6776, + "start": 6797, + "end": 6802, "loc": { "start": { "line": 211, @@ -57016,8 +57331,8 @@ { "type": "CommentLine", "value": " Because the document is not focused disable all keys(Stops moving!)", - "start": 6781, - "end": 6851, + "start": 6807, + "end": 6877, "loc": { "start": { "line": 213, @@ -57044,8 +57359,8 @@ "updateContext": null }, "value": "for", - "start": 6855, - "end": 6858, + "start": 6881, + "end": 6884, "loc": { "start": { "line": 214, @@ -57069,8 +57384,8 @@ "postfix": false, "binop": null }, - "start": 6859, - "end": 6860, + "start": 6885, + "end": 6886, "loc": { "start": { "line": 214, @@ -57097,8 +57412,8 @@ "updateContext": null }, "value": "let", - "start": 6860, - "end": 6863, + "start": 6886, + "end": 6889, "loc": { "start": { "line": 214, @@ -57123,8 +57438,8 @@ "binop": null }, "value": "key", - "start": 6864, - "end": 6867, + "start": 6890, + "end": 6893, "loc": { "start": { "line": 214, @@ -57151,8 +57466,8 @@ "updateContext": null }, "value": "in", - "start": 6868, - "end": 6870, + "start": 6894, + "end": 6896, "loc": { "start": { "line": 214, @@ -57177,8 +57492,8 @@ "binop": null }, "value": "moveKeys", - "start": 6871, - "end": 6879, + "start": 6897, + "end": 6905, "loc": { "start": { "line": 214, @@ -57202,8 +57517,8 @@ "postfix": false, "binop": null }, - "start": 6879, - "end": 6880, + "start": 6905, + "end": 6906, "loc": { "start": { "line": 214, @@ -57227,8 +57542,8 @@ "postfix": false, "binop": null }, - "start": 6881, - "end": 6882, + "start": 6907, + "end": 6908, "loc": { "start": { "line": 214, @@ -57253,8 +57568,8 @@ "binop": null }, "value": "moveKeys", - "start": 6887, - "end": 6895, + "start": 6913, + "end": 6921, "loc": { "start": { "line": 215, @@ -57279,8 +57594,8 @@ "binop": null, "updateContext": null }, - "start": 6895, - "end": 6896, + "start": 6921, + "end": 6922, "loc": { "start": { "line": 215, @@ -57305,8 +57620,8 @@ "binop": null }, "value": "key", - "start": 6896, - "end": 6899, + "start": 6922, + "end": 6925, "loc": { "start": { "line": 215, @@ -57331,8 +57646,8 @@ "binop": null, "updateContext": null }, - "start": 6899, - "end": 6900, + "start": 6925, + "end": 6926, "loc": { "start": { "line": 215, @@ -57357,8 +57672,8 @@ "binop": null, "updateContext": null }, - "start": 6900, - "end": 6901, + "start": 6926, + "end": 6927, "loc": { "start": { "line": 215, @@ -57383,8 +57698,8 @@ "binop": null }, "value": "isDown", - "start": 6901, - "end": 6907, + "start": 6927, + "end": 6933, "loc": { "start": { "line": 215, @@ -57410,8 +57725,8 @@ "updateContext": null }, "value": "=", - "start": 6908, - "end": 6909, + "start": 6934, + "end": 6935, "loc": { "start": { "line": 215, @@ -57438,8 +57753,8 @@ "updateContext": null }, "value": "false", - "start": 6910, - "end": 6915, + "start": 6936, + "end": 6941, "loc": { "start": { "line": 215, @@ -57464,8 +57779,8 @@ "binop": null }, "value": "moveKeys", - "start": 6920, - "end": 6928, + "start": 6946, + "end": 6954, "loc": { "start": { "line": 216, @@ -57490,8 +57805,8 @@ "binop": null, "updateContext": null }, - "start": 6928, - "end": 6929, + "start": 6954, + "end": 6955, "loc": { "start": { "line": 216, @@ -57516,8 +57831,8 @@ "binop": null }, "value": "key", - "start": 6929, - "end": 6932, + "start": 6955, + "end": 6958, "loc": { "start": { "line": 216, @@ -57542,8 +57857,8 @@ "binop": null, "updateContext": null }, - "start": 6932, - "end": 6933, + "start": 6958, + "end": 6959, "loc": { "start": { "line": 216, @@ -57568,8 +57883,8 @@ "binop": null, "updateContext": null }, - "start": 6933, - "end": 6934, + "start": 6959, + "end": 6960, "loc": { "start": { "line": 216, @@ -57594,8 +57909,8 @@ "binop": null }, "value": "isUp", - "start": 6934, - "end": 6938, + "start": 6960, + "end": 6964, "loc": { "start": { "line": 216, @@ -57621,8 +57936,8 @@ "updateContext": null }, "value": "=", - "start": 6939, - "end": 6940, + "start": 6965, + "end": 6966, "loc": { "start": { "line": 216, @@ -57649,8 +57964,8 @@ "updateContext": null }, "value": "true", - "start": 6941, - "end": 6945, + "start": 6967, + "end": 6971, "loc": { "start": { "line": 216, @@ -57674,8 +57989,8 @@ "postfix": false, "binop": null }, - "start": 6949, - "end": 6950, + "start": 6975, + "end": 6976, "loc": { "start": { "line": 217, @@ -57699,8 +58014,8 @@ "postfix": false, "binop": null }, - "start": 6953, - "end": 6954, + "start": 6979, + "end": 6980, "loc": { "start": { "line": 218, @@ -57715,8 +58030,8 @@ { "type": "CommentLine", "value": " Slow down gradually - unaffected by chat input", - "start": 6958, - "end": 7007, + "start": 6984, + "end": 7033, "loc": { "start": { "line": 220, @@ -57743,8 +58058,8 @@ "updateContext": null }, "value": "if", - "start": 7010, - "end": 7012, + "start": 7036, + "end": 7038, "loc": { "start": { "line": 221, @@ -57768,8 +58083,8 @@ "postfix": false, "binop": null }, - "start": 7013, - "end": 7014, + "start": 7039, + "end": 7040, "loc": { "start": { "line": 221, @@ -57795,8 +58110,8 @@ "updateContext": null }, "value": "!", - "start": 7014, - "end": 7015, + "start": 7040, + "end": 7041, "loc": { "start": { "line": 221, @@ -57821,8 +58136,8 @@ "binop": null }, "value": "moveKeys", - "start": 7015, - "end": 7023, + "start": 7041, + "end": 7049, "loc": { "start": { "line": 221, @@ -57847,8 +58162,8 @@ "binop": null, "updateContext": null }, - "start": 7023, - "end": 7024, + "start": 7049, + "end": 7050, "loc": { "start": { "line": 221, @@ -57874,8 +58189,8 @@ "updateContext": null }, "value": 2, - "start": 7024, - "end": 7025, + "start": 7050, + "end": 7051, "loc": { "start": { "line": 221, @@ -57900,8 +58215,8 @@ "binop": null, "updateContext": null }, - "start": 7025, - "end": 7026, + "start": 7051, + "end": 7052, "loc": { "start": { "line": 221, @@ -57926,8 +58241,8 @@ "binop": null, "updateContext": null }, - "start": 7026, - "end": 7027, + "start": 7052, + "end": 7053, "loc": { "start": { "line": 221, @@ -57952,8 +58267,8 @@ "binop": null }, "value": "isDown", - "start": 7027, - "end": 7033, + "start": 7053, + "end": 7059, "loc": { "start": { "line": 221, @@ -57979,8 +58294,8 @@ "updateContext": null }, "value": "&&", - "start": 7034, - "end": 7036, + "start": 7060, + "end": 7062, "loc": { "start": { "line": 221, @@ -58006,8 +58321,8 @@ "updateContext": null }, "value": "!", - "start": 7037, - "end": 7038, + "start": 7063, + "end": 7064, "loc": { "start": { "line": 221, @@ -58032,8 +58347,8 @@ "binop": null }, "value": "moveKeys", - "start": 7038, - "end": 7046, + "start": 7064, + "end": 7072, "loc": { "start": { "line": 221, @@ -58058,8 +58373,8 @@ "binop": null, "updateContext": null }, - "start": 7046, - "end": 7047, + "start": 7072, + "end": 7073, "loc": { "start": { "line": 221, @@ -58085,8 +58400,8 @@ "updateContext": null }, "value": 3, - "start": 7047, - "end": 7048, + "start": 7073, + "end": 7074, "loc": { "start": { "line": 221, @@ -58111,8 +58426,8 @@ "binop": null, "updateContext": null }, - "start": 7048, - "end": 7049, + "start": 7074, + "end": 7075, "loc": { "start": { "line": 221, @@ -58137,8 +58452,8 @@ "binop": null, "updateContext": null }, - "start": 7049, - "end": 7050, + "start": 7075, + "end": 7076, "loc": { "start": { "line": 221, @@ -58163,8 +58478,8 @@ "binop": null }, "value": "isDown", - "start": 7050, - "end": 7056, + "start": 7076, + "end": 7082, "loc": { "start": { "line": 221, @@ -58188,8 +58503,8 @@ "postfix": false, "binop": null }, - "start": 7056, - "end": 7057, + "start": 7082, + "end": 7083, "loc": { "start": { "line": 221, @@ -58213,8 +58528,8 @@ "postfix": false, "binop": null }, - "start": 7058, - "end": 7059, + "start": 7084, + "end": 7085, "loc": { "start": { "line": 221, @@ -58239,8 +58554,8 @@ "binop": null }, "value": "player", - "start": 7063, - "end": 7069, + "start": 7089, + "end": 7095, "loc": { "start": { "line": 222, @@ -58265,8 +58580,8 @@ "binop": null, "updateContext": null }, - "start": 7069, - "end": 7070, + "start": 7095, + "end": 7096, "loc": { "start": { "line": 222, @@ -58291,8 +58606,8 @@ "binop": null }, "value": "vy", - "start": 7070, - "end": 7072, + "start": 7096, + "end": 7098, "loc": { "start": { "line": 222, @@ -58318,8 +58633,8 @@ "updateContext": null }, "value": "*=", - "start": 7073, - "end": 7075, + "start": 7099, + "end": 7101, "loc": { "start": { "line": 222, @@ -58344,8 +58659,8 @@ "binop": null }, "value": "GLOBAL", - "start": 7076, - "end": 7082, + "start": 7102, + "end": 7108, "loc": { "start": { "line": 222, @@ -58370,8 +58685,8 @@ "binop": null, "updateContext": null }, - "start": 7082, - "end": 7083, + "start": 7108, + "end": 7109, "loc": { "start": { "line": 222, @@ -58396,8 +58711,8 @@ "binop": null }, "value": "VELOCITY_STEP", - "start": 7083, - "end": 7096, + "start": 7109, + "end": 7122, "loc": { "start": { "line": 222, @@ -58421,8 +58736,8 @@ "postfix": false, "binop": null }, - "start": 7099, - "end": 7100, + "start": 7125, + "end": 7126, "loc": { "start": { "line": 223, @@ -58449,8 +58764,8 @@ "updateContext": null }, "value": "if", - "start": 7103, - "end": 7105, + "start": 7129, + "end": 7131, "loc": { "start": { "line": 224, @@ -58474,8 +58789,8 @@ "postfix": false, "binop": null }, - "start": 7106, - "end": 7107, + "start": 7132, + "end": 7133, "loc": { "start": { "line": 224, @@ -58501,8 +58816,8 @@ "updateContext": null }, "value": "!", - "start": 7107, - "end": 7108, + "start": 7133, + "end": 7134, "loc": { "start": { "line": 224, @@ -58527,8 +58842,8 @@ "binop": null }, "value": "moveKeys", - "start": 7108, - "end": 7116, + "start": 7134, + "end": 7142, "loc": { "start": { "line": 224, @@ -58553,8 +58868,8 @@ "binop": null, "updateContext": null }, - "start": 7116, - "end": 7117, + "start": 7142, + "end": 7143, "loc": { "start": { "line": 224, @@ -58580,8 +58895,8 @@ "updateContext": null }, "value": 0, - "start": 7117, - "end": 7118, + "start": 7143, + "end": 7144, "loc": { "start": { "line": 224, @@ -58606,8 +58921,8 @@ "binop": null, "updateContext": null }, - "start": 7118, - "end": 7119, + "start": 7144, + "end": 7145, "loc": { "start": { "line": 224, @@ -58632,8 +58947,8 @@ "binop": null, "updateContext": null }, - "start": 7119, - "end": 7120, + "start": 7145, + "end": 7146, "loc": { "start": { "line": 224, @@ -58658,8 +58973,8 @@ "binop": null }, "value": "isDown", - "start": 7120, - "end": 7126, + "start": 7146, + "end": 7152, "loc": { "start": { "line": 224, @@ -58685,8 +59000,8 @@ "updateContext": null }, "value": "&&", - "start": 7127, - "end": 7129, + "start": 7153, + "end": 7155, "loc": { "start": { "line": 224, @@ -58712,8 +59027,8 @@ "updateContext": null }, "value": "!", - "start": 7130, - "end": 7131, + "start": 7156, + "end": 7157, "loc": { "start": { "line": 224, @@ -58738,8 +59053,8 @@ "binop": null }, "value": "moveKeys", - "start": 7131, - "end": 7139, + "start": 7157, + "end": 7165, "loc": { "start": { "line": 224, @@ -58764,8 +59079,8 @@ "binop": null, "updateContext": null }, - "start": 7139, - "end": 7140, + "start": 7165, + "end": 7166, "loc": { "start": { "line": 224, @@ -58791,8 +59106,8 @@ "updateContext": null }, "value": 1, - "start": 7140, - "end": 7141, + "start": 7166, + "end": 7167, "loc": { "start": { "line": 224, @@ -58817,8 +59132,8 @@ "binop": null, "updateContext": null }, - "start": 7141, - "end": 7142, + "start": 7167, + "end": 7168, "loc": { "start": { "line": 224, @@ -58843,8 +59158,8 @@ "binop": null, "updateContext": null }, - "start": 7142, - "end": 7143, + "start": 7168, + "end": 7169, "loc": { "start": { "line": 224, @@ -58869,8 +59184,8 @@ "binop": null }, "value": "isDown", - "start": 7143, - "end": 7149, + "start": 7169, + "end": 7175, "loc": { "start": { "line": 224, @@ -58894,8 +59209,8 @@ "postfix": false, "binop": null }, - "start": 7149, - "end": 7150, + "start": 7175, + "end": 7176, "loc": { "start": { "line": 224, @@ -58919,8 +59234,8 @@ "postfix": false, "binop": null }, - "start": 7151, - "end": 7152, + "start": 7177, + "end": 7178, "loc": { "start": { "line": 224, @@ -58945,8 +59260,8 @@ "binop": null }, "value": "player", - "start": 7156, - "end": 7162, + "start": 7182, + "end": 7188, "loc": { "start": { "line": 225, @@ -58971,8 +59286,8 @@ "binop": null, "updateContext": null }, - "start": 7162, - "end": 7163, + "start": 7188, + "end": 7189, "loc": { "start": { "line": 225, @@ -58997,8 +59312,8 @@ "binop": null }, "value": "vx", - "start": 7163, - "end": 7165, + "start": 7189, + "end": 7191, "loc": { "start": { "line": 225, @@ -59024,8 +59339,8 @@ "updateContext": null }, "value": "*=", - "start": 7166, - "end": 7168, + "start": 7192, + "end": 7194, "loc": { "start": { "line": 225, @@ -59050,8 +59365,8 @@ "binop": null }, "value": "GLOBAL", - "start": 7169, - "end": 7175, + "start": 7195, + "end": 7201, "loc": { "start": { "line": 225, @@ -59076,8 +59391,8 @@ "binop": null, "updateContext": null }, - "start": 7175, - "end": 7176, + "start": 7201, + "end": 7202, "loc": { "start": { "line": 225, @@ -59102,8 +59417,8 @@ "binop": null }, "value": "VELOCITY_STEP", - "start": 7176, - "end": 7189, + "start": 7202, + "end": 7215, "loc": { "start": { "line": 225, @@ -59127,8 +59442,8 @@ "postfix": false, "binop": null }, - "start": 7192, - "end": 7193, + "start": 7218, + "end": 7219, "loc": { "start": { "line": 226, @@ -59143,8 +59458,8 @@ { "type": "CommentLine", "value": " Shooting", - "start": 7197, - "end": 7208, + "start": 7223, + "end": 7234, "loc": { "start": { "line": 228, @@ -59169,8 +59484,8 @@ "binop": null }, "value": "space", - "start": 7211, - "end": 7216, + "start": 7237, + "end": 7242, "loc": { "start": { "line": 229, @@ -59195,8 +59510,8 @@ "binop": null, "updateContext": null }, - "start": 7216, - "end": 7217, + "start": 7242, + "end": 7243, "loc": { "start": { "line": 229, @@ -59221,8 +59536,8 @@ "binop": null }, "value": "press", - "start": 7217, - "end": 7222, + "start": 7243, + "end": 7248, "loc": { "start": { "line": 229, @@ -59248,8 +59563,8 @@ "updateContext": null }, "value": "=", - "start": 7223, - "end": 7224, + "start": 7249, + "end": 7250, "loc": { "start": { "line": 229, @@ -59273,8 +59588,8 @@ "postfix": false, "binop": null }, - "start": 7225, - "end": 7226, + "start": 7251, + "end": 7252, "loc": { "start": { "line": 229, @@ -59298,8 +59613,8 @@ "postfix": false, "binop": null }, - "start": 7226, - "end": 7227, + "start": 7252, + "end": 7253, "loc": { "start": { "line": 229, @@ -59324,8 +59639,8 @@ "binop": null, "updateContext": null }, - "start": 7228, - "end": 7230, + "start": 7254, + "end": 7256, "loc": { "start": { "line": 229, @@ -59349,8 +59664,8 @@ "postfix": false, "binop": null }, - "start": 7231, - "end": 7232, + "start": 7257, + "end": 7258, "loc": { "start": { "line": 229, @@ -59377,8 +59692,8 @@ "updateContext": null }, "value": "if", - "start": 7236, - "end": 7238, + "start": 7262, + "end": 7264, "loc": { "start": { "line": 230, @@ -59402,8 +59717,8 @@ "postfix": false, "binop": null }, - "start": 7239, - "end": 7240, + "start": 7265, + "end": 7266, "loc": { "start": { "line": 230, @@ -59428,8 +59743,8 @@ "binop": null }, "value": "selectedBlueprints", - "start": 7240, - "end": 7258, + "start": 7266, + "end": 7284, "loc": { "start": { "line": 230, @@ -59454,8 +59769,8 @@ "binop": null, "updateContext": null }, - "start": 7258, - "end": 7259, + "start": 7284, + "end": 7285, "loc": { "start": { "line": 230, @@ -59480,8 +59795,8 @@ "binop": null }, "value": "selectedCompound", - "start": 7259, - "end": 7275, + "start": 7285, + "end": 7301, "loc": { "start": { "line": 230, @@ -59506,8 +59821,8 @@ "binop": null, "updateContext": null }, - "start": 7275, - "end": 7276, + "start": 7301, + "end": 7302, "loc": { "start": { "line": 230, @@ -59532,8 +59847,8 @@ "binop": null, "updateContext": null }, - "start": 7276, - "end": 7277, + "start": 7302, + "end": 7303, "loc": { "start": { "line": 230, @@ -59558,8 +59873,8 @@ "binop": null }, "value": "type", - "start": 7277, - "end": 7281, + "start": 7303, + "end": 7307, "loc": { "start": { "line": 230, @@ -59585,8 +59900,8 @@ "updateContext": null }, "value": "!==", - "start": 7282, - "end": 7285, + "start": 7308, + "end": 7311, "loc": { "start": { "line": 230, @@ -59612,8 +59927,8 @@ "updateContext": null }, "value": "stream", - "start": 7286, - "end": 7294, + "start": 7312, + "end": 7320, "loc": { "start": { "line": 230, @@ -59637,8 +59952,8 @@ "postfix": false, "binop": null }, - "start": 7294, - "end": 7295, + "start": 7320, + "end": 7321, "loc": { "start": { "line": 230, @@ -59662,8 +59977,8 @@ "postfix": false, "binop": null }, - "start": 7296, - "end": 7297, + "start": 7322, + "end": 7323, "loc": { "start": { "line": 230, @@ -59688,8 +60003,8 @@ "binop": null }, "value": "shootHandler", - "start": 7302, - "end": 7314, + "start": 7328, + "end": 7340, "loc": { "start": { "line": 231, @@ -59713,8 +60028,8 @@ "postfix": false, "binop": null }, - "start": 7314, - "end": 7315, + "start": 7340, + "end": 7341, "loc": { "start": { "line": 231, @@ -59738,8 +60053,8 @@ "postfix": false, "binop": null }, - "start": 7315, - "end": 7316, + "start": 7341, + "end": 7342, "loc": { "start": { "line": 231, @@ -59764,8 +60079,8 @@ "binop": null }, "value": "clientX", - "start": 7317, - "end": 7324, + "start": 7343, + "end": 7350, "loc": { "start": { "line": 231, @@ -59790,8 +60105,8 @@ "binop": null, "updateContext": null }, - "start": 7324, - "end": 7325, + "start": 7350, + "end": 7351, "loc": { "start": { "line": 231, @@ -59816,8 +60131,8 @@ "binop": null }, "value": "mouseX", - "start": 7326, - "end": 7332, + "start": 7352, + "end": 7358, "loc": { "start": { "line": 231, @@ -59842,8 +60157,8 @@ "binop": null, "updateContext": null }, - "start": 7332, - "end": 7333, + "start": 7358, + "end": 7359, "loc": { "start": { "line": 231, @@ -59868,8 +60183,8 @@ "binop": null }, "value": "clientY", - "start": 7334, - "end": 7341, + "start": 7360, + "end": 7367, "loc": { "start": { "line": 231, @@ -59894,8 +60209,8 @@ "binop": null, "updateContext": null }, - "start": 7341, - "end": 7342, + "start": 7367, + "end": 7368, "loc": { "start": { "line": 231, @@ -59920,8 +60235,8 @@ "binop": null }, "value": "mouseY", - "start": 7343, - "end": 7349, + "start": 7369, + "end": 7375, "loc": { "start": { "line": 231, @@ -59945,8 +60260,8 @@ "postfix": false, "binop": null }, - "start": 7350, - "end": 7351, + "start": 7376, + "end": 7377, "loc": { "start": { "line": 231, @@ -59971,8 +60286,8 @@ "binop": null, "updateContext": null }, - "start": 7351, - "end": 7352, + "start": 7377, + "end": 7378, "loc": { "start": { "line": 231, @@ -59999,8 +60314,8 @@ "updateContext": null }, "value": "false", - "start": 7353, - "end": 7358, + "start": 7379, + "end": 7384, "loc": { "start": { "line": 231, @@ -60024,8 +60339,8 @@ "postfix": false, "binop": null }, - "start": 7358, - "end": 7359, + "start": 7384, + "end": 7385, "loc": { "start": { "line": 231, @@ -60049,8 +60364,8 @@ "postfix": false, "binop": null }, - "start": 7363, - "end": 7364, + "start": 7389, + "end": 7390, "loc": { "start": { "line": 232, @@ -60074,8 +60389,8 @@ "postfix": false, "binop": null }, - "start": 7367, - "end": 7368, + "start": 7393, + "end": 7394, "loc": { "start": { "line": 233, @@ -60090,8 +60405,8 @@ { "type": "CommentLine", "value": " Streams", - "start": 7372, - "end": 7382, + "start": 7398, + "end": 7408, "loc": { "start": { "line": 235, @@ -60118,8 +60433,8 @@ "updateContext": null }, "value": "if", - "start": 7385, - "end": 7387, + "start": 7411, + "end": 7413, "loc": { "start": { "line": 236, @@ -60143,8 +60458,8 @@ "postfix": false, "binop": null }, - "start": 7388, - "end": 7389, + "start": 7414, + "end": 7415, "loc": { "start": { "line": 236, @@ -60168,8 +60483,8 @@ "postfix": false, "binop": null }, - "start": 7389, - "end": 7390, + "start": 7415, + "end": 7416, "loc": { "start": { "line": 236, @@ -60194,8 +60509,8 @@ "binop": null }, "value": "space", - "start": 7390, - "end": 7395, + "start": 7416, + "end": 7421, "loc": { "start": { "line": 236, @@ -60220,8 +60535,8 @@ "binop": null, "updateContext": null }, - "start": 7395, - "end": 7396, + "start": 7421, + "end": 7422, "loc": { "start": { "line": 236, @@ -60246,8 +60561,8 @@ "binop": null }, "value": "isDown", - "start": 7396, - "end": 7402, + "start": 7422, + "end": 7428, "loc": { "start": { "line": 236, @@ -60273,8 +60588,8 @@ "updateContext": null }, "value": "||", - "start": 7403, - "end": 7405, + "start": 7429, + "end": 7431, "loc": { "start": { "line": 236, @@ -60299,8 +60614,8 @@ "binop": null }, "value": "mouseDown", - "start": 7406, - "end": 7415, + "start": 7432, + "end": 7441, "loc": { "start": { "line": 236, @@ -60324,8 +60639,8 @@ "postfix": false, "binop": null }, - "start": 7415, - "end": 7416, + "start": 7441, + "end": 7442, "loc": { "start": { "line": 236, @@ -60351,8 +60666,8 @@ "updateContext": null }, "value": "&&", - "start": 7417, - "end": 7419, + "start": 7443, + "end": 7445, "loc": { "start": { "line": 236, @@ -60377,8 +60692,8 @@ "binop": null }, "value": "selectedBlueprints", - "start": 7420, - "end": 7438, + "start": 7446, + "end": 7464, "loc": { "start": { "line": 236, @@ -60403,8 +60718,8 @@ "binop": null, "updateContext": null }, - "start": 7438, - "end": 7439, + "start": 7464, + "end": 7465, "loc": { "start": { "line": 236, @@ -60429,8 +60744,8 @@ "binop": null }, "value": "selectedCompound", - "start": 7439, - "end": 7455, + "start": 7465, + "end": 7481, "loc": { "start": { "line": 236, @@ -60455,8 +60770,8 @@ "binop": null, "updateContext": null }, - "start": 7455, - "end": 7456, + "start": 7481, + "end": 7482, "loc": { "start": { "line": 236, @@ -60481,8 +60796,8 @@ "binop": null, "updateContext": null }, - "start": 7456, - "end": 7457, + "start": 7482, + "end": 7483, "loc": { "start": { "line": 236, @@ -60507,8 +60822,8 @@ "binop": null }, "value": "type", - "start": 7457, - "end": 7461, + "start": 7483, + "end": 7487, "loc": { "start": { "line": 236, @@ -60534,8 +60849,8 @@ "updateContext": null }, "value": "===", - "start": 7462, - "end": 7465, + "start": 7488, + "end": 7491, "loc": { "start": { "line": 236, @@ -60561,8 +60876,8 @@ "updateContext": null }, "value": "stream", - "start": 7466, - "end": 7474, + "start": 7492, + "end": 7500, "loc": { "start": { "line": 236, @@ -60586,8 +60901,8 @@ "postfix": false, "binop": null }, - "start": 7474, - "end": 7475, + "start": 7500, + "end": 7501, "loc": { "start": { "line": 236, @@ -60611,8 +60926,8 @@ "postfix": false, "binop": null }, - "start": 7476, - "end": 7477, + "start": 7502, + "end": 7503, "loc": { "start": { "line": 236, @@ -60637,8 +60952,8 @@ "binop": null }, "value": "shootHandler", - "start": 7481, - "end": 7493, + "start": 7507, + "end": 7519, "loc": { "start": { "line": 237, @@ -60662,8 +60977,8 @@ "postfix": false, "binop": null }, - "start": 7493, - "end": 7494, + "start": 7519, + "end": 7520, "loc": { "start": { "line": 237, @@ -60687,8 +61002,8 @@ "postfix": false, "binop": null }, - "start": 7494, - "end": 7495, + "start": 7520, + "end": 7521, "loc": { "start": { "line": 237, @@ -60713,8 +61028,8 @@ "binop": null }, "value": "clientX", - "start": 7496, - "end": 7503, + "start": 7522, + "end": 7529, "loc": { "start": { "line": 237, @@ -60739,8 +61054,8 @@ "binop": null, "updateContext": null }, - "start": 7503, - "end": 7504, + "start": 7529, + "end": 7530, "loc": { "start": { "line": 237, @@ -60765,8 +61080,8 @@ "binop": null }, "value": "mouseX", - "start": 7505, - "end": 7511, + "start": 7531, + "end": 7537, "loc": { "start": { "line": 237, @@ -60791,8 +61106,8 @@ "binop": null, "updateContext": null }, - "start": 7511, - "end": 7512, + "start": 7537, + "end": 7538, "loc": { "start": { "line": 237, @@ -60817,8 +61132,8 @@ "binop": null }, "value": "clientY", - "start": 7513, - "end": 7520, + "start": 7539, + "end": 7546, "loc": { "start": { "line": 237, @@ -60843,8 +61158,8 @@ "binop": null, "updateContext": null }, - "start": 7520, - "end": 7521, + "start": 7546, + "end": 7547, "loc": { "start": { "line": 237, @@ -60869,8 +61184,8 @@ "binop": null }, "value": "mouseY", - "start": 7522, - "end": 7528, + "start": 7548, + "end": 7554, "loc": { "start": { "line": 237, @@ -60894,8 +61209,8 @@ "postfix": false, "binop": null }, - "start": 7529, - "end": 7530, + "start": 7555, + "end": 7556, "loc": { "start": { "line": 237, @@ -60920,8 +61235,8 @@ "binop": null, "updateContext": null }, - "start": 7530, - "end": 7531, + "start": 7556, + "end": 7557, "loc": { "start": { "line": 237, @@ -60948,8 +61263,8 @@ "updateContext": null }, "value": "true", - "start": 7532, - "end": 7536, + "start": 7558, + "end": 7562, "loc": { "start": { "line": 237, @@ -60973,8 +61288,8 @@ "postfix": false, "binop": null }, - "start": 7536, - "end": 7537, + "start": 7562, + "end": 7563, "loc": { "start": { "line": 237, @@ -60998,8 +61313,8 @@ "postfix": false, "binop": null }, - "start": 7540, - "end": 7541, + "start": 7566, + "end": 7567, "loc": { "start": { "line": 238, @@ -61014,8 +61329,8 @@ { "type": "CommentLine", "value": " Reset stream count when space key is released", - "start": 7545, - "end": 7593, + "start": 7571, + "end": 7619, "loc": { "start": { "line": 240, @@ -61040,8 +61355,8 @@ "binop": null }, "value": "space", - "start": 7596, - "end": 7601, + "start": 7622, + "end": 7627, "loc": { "start": { "line": 241, @@ -61066,8 +61381,8 @@ "binop": null, "updateContext": null }, - "start": 7601, - "end": 7602, + "start": 7627, + "end": 7628, "loc": { "start": { "line": 241, @@ -61092,8 +61407,8 @@ "binop": null }, "value": "release", - "start": 7602, - "end": 7609, + "start": 7628, + "end": 7635, "loc": { "start": { "line": 241, @@ -61119,8 +61434,8 @@ "updateContext": null }, "value": "=", - "start": 7610, - "end": 7611, + "start": 7636, + "end": 7637, "loc": { "start": { "line": 241, @@ -61144,8 +61459,8 @@ "postfix": false, "binop": null }, - "start": 7612, - "end": 7613, + "start": 7638, + "end": 7639, "loc": { "start": { "line": 241, @@ -61169,8 +61484,8 @@ "postfix": false, "binop": null }, - "start": 7613, - "end": 7614, + "start": 7639, + "end": 7640, "loc": { "start": { "line": 241, @@ -61195,8 +61510,8 @@ "binop": null, "updateContext": null }, - "start": 7615, - "end": 7617, + "start": 7641, + "end": 7643, "loc": { "start": { "line": 241, @@ -61220,8 +61535,8 @@ "postfix": false, "binop": null }, - "start": 7618, - "end": 7619, + "start": 7644, + "end": 7645, "loc": { "start": { "line": 241, @@ -61246,8 +61561,8 @@ "binop": null }, "value": "streamID", - "start": 7623, - "end": 7631, + "start": 7649, + "end": 7657, "loc": { "start": { "line": 242, @@ -61273,8 +61588,8 @@ "updateContext": null }, "value": "=", - "start": 7632, - "end": 7633, + "start": 7658, + "end": 7659, "loc": { "start": { "line": 242, @@ -61300,8 +61615,8 @@ "updateContext": null }, "value": 0, - "start": 7634, - "end": 7635, + "start": 7660, + "end": 7661, "loc": { "start": { "line": 242, @@ -61325,8 +61640,8 @@ "postfix": false, "binop": null }, - "start": 7638, - "end": 7639, + "start": 7664, + "end": 7665, "loc": { "start": { "line": 243, @@ -61341,8 +61656,8 @@ { "type": "CommentLine", "value": " Move player", - "start": 7643, - "end": 7657, + "start": 7669, + "end": 7683, "loc": { "start": { "line": 245, @@ -61367,8 +61682,8 @@ "binop": null }, "value": "player", - "start": 7660, - "end": 7666, + "start": 7686, + "end": 7692, "loc": { "start": { "line": 246, @@ -61393,8 +61708,8 @@ "binop": null, "updateContext": null }, - "start": 7666, - "end": 7667, + "start": 7692, + "end": 7693, "loc": { "start": { "line": 246, @@ -61419,8 +61734,8 @@ "binop": null }, "value": "tick", - "start": 7667, - "end": 7671, + "start": 7693, + "end": 7697, "loc": { "start": { "line": 246, @@ -61444,8 +61759,8 @@ "postfix": false, "binop": null }, - "start": 7671, - "end": 7672, + "start": 7697, + "end": 7698, "loc": { "start": { "line": 246, @@ -61469,8 +61784,8 @@ "postfix": false, "binop": null }, - "start": 7672, - "end": 7673, + "start": 7698, + "end": 7699, "loc": { "start": { "line": 246, @@ -61485,8 +61800,8 @@ { "type": "CommentLine", "value": " Send coordinates", - "start": 7677, - "end": 7696, + "start": 7703, + "end": 7722, "loc": { "start": { "line": 248, @@ -61511,8 +61826,8 @@ "binop": null }, "value": "socket", - "start": 7699, - "end": 7705, + "start": 7725, + "end": 7731, "loc": { "start": { "line": 249, @@ -61537,8 +61852,8 @@ "binop": null, "updateContext": null }, - "start": 7705, - "end": 7706, + "start": 7731, + "end": 7732, "loc": { "start": { "line": 249, @@ -61563,8 +61878,8 @@ "binop": null }, "value": "emit", - "start": 7706, - "end": 7710, + "start": 7732, + "end": 7736, "loc": { "start": { "line": 249, @@ -61588,8 +61903,8 @@ "postfix": false, "binop": null }, - "start": 7710, - "end": 7711, + "start": 7736, + "end": 7737, "loc": { "start": { "line": 249, @@ -61615,8 +61930,8 @@ "updateContext": null }, "value": "move", - "start": 7711, - "end": 7717, + "start": 7737, + "end": 7743, "loc": { "start": { "line": 249, @@ -61641,8 +61956,8 @@ "binop": null, "updateContext": null }, - "start": 7717, - "end": 7718, + "start": 7743, + "end": 7744, "loc": { "start": { "line": 249, @@ -61666,8 +61981,8 @@ "postfix": false, "binop": null }, - "start": 7719, - "end": 7720, + "start": 7745, + "end": 7746, "loc": { "start": { "line": 249, @@ -61692,8 +62007,8 @@ "binop": null }, "value": "type", - "start": 7724, - "end": 7728, + "start": 7750, + "end": 7754, "loc": { "start": { "line": 250, @@ -61718,8 +62033,8 @@ "binop": null, "updateContext": null }, - "start": 7728, - "end": 7729, + "start": 7754, + "end": 7755, "loc": { "start": { "line": 250, @@ -61745,8 +62060,8 @@ "updateContext": null }, "value": "players", - "start": 7730, - "end": 7739, + "start": 7756, + "end": 7765, "loc": { "start": { "line": 250, @@ -61771,8 +62086,8 @@ "binop": null, "updateContext": null }, - "start": 7739, - "end": 7740, + "start": 7765, + "end": 7766, "loc": { "start": { "line": 250, @@ -61797,8 +62112,8 @@ "binop": null }, "value": "id", - "start": 7744, - "end": 7746, + "start": 7770, + "end": 7772, "loc": { "start": { "line": 251, @@ -61823,8 +62138,8 @@ "binop": null, "updateContext": null }, - "start": 7746, - "end": 7747, + "start": 7772, + "end": 7773, "loc": { "start": { "line": 251, @@ -61849,8 +62164,8 @@ "binop": null }, "value": "player", - "start": 7748, - "end": 7754, + "start": 7774, + "end": 7780, "loc": { "start": { "line": 251, @@ -61875,8 +62190,8 @@ "binop": null, "updateContext": null }, - "start": 7754, - "end": 7755, + "start": 7780, + "end": 7781, "loc": { "start": { "line": 251, @@ -61901,8 +62216,8 @@ "binop": null }, "value": "id", - "start": 7755, - "end": 7757, + "start": 7781, + "end": 7783, "loc": { "start": { "line": 251, @@ -61927,8 +62242,8 @@ "binop": null, "updateContext": null }, - "start": 7757, - "end": 7758, + "start": 7783, + "end": 7784, "loc": { "start": { "line": 251, @@ -61953,8 +62268,8 @@ "binop": null }, "value": "posX", - "start": 7762, - "end": 7766, + "start": 7788, + "end": 7792, "loc": { "start": { "line": 252, @@ -61979,8 +62294,8 @@ "binop": null, "updateContext": null }, - "start": 7766, - "end": 7767, + "start": 7792, + "end": 7793, "loc": { "start": { "line": 252, @@ -62005,8 +62320,8 @@ "binop": null }, "value": "player", - "start": 7768, - "end": 7774, + "start": 7794, + "end": 7800, "loc": { "start": { "line": 252, @@ -62031,8 +62346,8 @@ "binop": null, "updateContext": null }, - "start": 7774, - "end": 7775, + "start": 7800, + "end": 7801, "loc": { "start": { "line": 252, @@ -62057,8 +62372,8 @@ "binop": null }, "value": "posX", - "start": 7775, - "end": 7779, + "start": 7801, + "end": 7805, "loc": { "start": { "line": 252, @@ -62083,8 +62398,8 @@ "binop": null, "updateContext": null }, - "start": 7779, - "end": 7780, + "start": 7805, + "end": 7806, "loc": { "start": { "line": 252, @@ -62109,8 +62424,8 @@ "binop": null }, "value": "posY", - "start": 7784, - "end": 7788, + "start": 7810, + "end": 7814, "loc": { "start": { "line": 253, @@ -62135,8 +62450,8 @@ "binop": null, "updateContext": null }, - "start": 7788, - "end": 7789, + "start": 7814, + "end": 7815, "loc": { "start": { "line": 253, @@ -62161,8 +62476,8 @@ "binop": null }, "value": "player", - "start": 7790, - "end": 7796, + "start": 7816, + "end": 7822, "loc": { "start": { "line": 253, @@ -62187,8 +62502,8 @@ "binop": null, "updateContext": null }, - "start": 7796, - "end": 7797, + "start": 7822, + "end": 7823, "loc": { "start": { "line": 253, @@ -62213,8 +62528,8 @@ "binop": null }, "value": "posY", - "start": 7797, - "end": 7801, + "start": 7823, + "end": 7827, "loc": { "start": { "line": 253, @@ -62239,8 +62554,8 @@ "binop": null, "updateContext": null }, - "start": 7801, - "end": 7802, + "start": 7827, + "end": 7828, "loc": { "start": { "line": 253, @@ -62265,8 +62580,8 @@ "binop": null }, "value": "vx", - "start": 7806, - "end": 7808, + "start": 7832, + "end": 7834, "loc": { "start": { "line": 254, @@ -62291,8 +62606,8 @@ "binop": null, "updateContext": null }, - "start": 7808, - "end": 7809, + "start": 7834, + "end": 7835, "loc": { "start": { "line": 254, @@ -62317,8 +62632,8 @@ "binop": null }, "value": "player", - "start": 7810, - "end": 7816, + "start": 7836, + "end": 7842, "loc": { "start": { "line": 254, @@ -62343,8 +62658,8 @@ "binop": null, "updateContext": null }, - "start": 7816, - "end": 7817, + "start": 7842, + "end": 7843, "loc": { "start": { "line": 254, @@ -62369,8 +62684,8 @@ "binop": null }, "value": "vx", - "start": 7817, - "end": 7819, + "start": 7843, + "end": 7845, "loc": { "start": { "line": 254, @@ -62395,8 +62710,8 @@ "binop": null, "updateContext": null }, - "start": 7819, - "end": 7820, + "start": 7845, + "end": 7846, "loc": { "start": { "line": 254, @@ -62421,8 +62736,8 @@ "binop": null }, "value": "vy", - "start": 7824, - "end": 7826, + "start": 7850, + "end": 7852, "loc": { "start": { "line": 255, @@ -62447,8 +62762,8 @@ "binop": null, "updateContext": null }, - "start": 7826, - "end": 7827, + "start": 7852, + "end": 7853, "loc": { "start": { "line": 255, @@ -62473,8 +62788,8 @@ "binop": null }, "value": "player", - "start": 7828, - "end": 7834, + "start": 7854, + "end": 7860, "loc": { "start": { "line": 255, @@ -62499,8 +62814,8 @@ "binop": null, "updateContext": null }, - "start": 7834, - "end": 7835, + "start": 7860, + "end": 7861, "loc": { "start": { "line": 255, @@ -62525,8 +62840,8 @@ "binop": null }, "value": "vy", - "start": 7835, - "end": 7837, + "start": 7861, + "end": 7863, "loc": { "start": { "line": 255, @@ -62550,8 +62865,8 @@ "postfix": false, "binop": null }, - "start": 7840, - "end": 7841, + "start": 7866, + "end": 7867, "loc": { "start": { "line": 256, @@ -62575,8 +62890,8 @@ "postfix": false, "binop": null }, - "start": 7841, - "end": 7842, + "start": 7867, + "end": 7868, "loc": { "start": { "line": 256, @@ -62600,8 +62915,8 @@ "postfix": false, "binop": null }, - "start": 7844, - "end": 7845, + "start": 7870, + "end": 7871, "loc": { "start": { "line": 257, @@ -62616,8 +62931,8 @@ { "type": "CommentLine", "value": " Handle objects except for this player", - "start": 7848, - "end": 7888, + "start": 7874, + "end": 7914, "loc": { "start": { "line": 259, @@ -62644,8 +62959,8 @@ "updateContext": null }, "value": "for", - "start": 7890, - "end": 7893, + "start": 7916, + "end": 7919, "loc": { "start": { "line": 260, @@ -62669,8 +62984,8 @@ "postfix": false, "binop": null }, - "start": 7894, - "end": 7895, + "start": 7920, + "end": 7921, "loc": { "start": { "line": 260, @@ -62697,8 +63012,8 @@ "updateContext": null }, "value": "let", - "start": 7895, - "end": 7898, + "start": 7921, + "end": 7924, "loc": { "start": { "line": 260, @@ -62723,8 +63038,8 @@ "binop": null }, "value": "objType", - "start": 7899, - "end": 7906, + "start": 7925, + "end": 7932, "loc": { "start": { "line": 260, @@ -62751,8 +63066,8 @@ "updateContext": null }, "value": "in", - "start": 7907, - "end": 7909, + "start": 7933, + "end": 7935, "loc": { "start": { "line": 260, @@ -62777,8 +63092,8 @@ "binop": null }, "value": "objects", - "start": 7910, - "end": 7917, + "start": 7936, + "end": 7943, "loc": { "start": { "line": 260, @@ -62802,8 +63117,8 @@ "postfix": false, "binop": null }, - "start": 7917, - "end": 7918, + "start": 7943, + "end": 7944, "loc": { "start": { "line": 260, @@ -62827,8 +63142,8 @@ "postfix": false, "binop": null }, - "start": 7919, - "end": 7920, + "start": 7945, + "end": 7946, "loc": { "start": { "line": 260, @@ -62855,8 +63170,8 @@ "updateContext": null }, "value": "for", - "start": 7923, - "end": 7926, + "start": 7949, + "end": 7952, "loc": { "start": { "line": 261, @@ -62880,8 +63195,8 @@ "postfix": false, "binop": null }, - "start": 7927, - "end": 7928, + "start": 7953, + "end": 7954, "loc": { "start": { "line": 261, @@ -62908,8 +63223,8 @@ "updateContext": null }, "value": "let", - "start": 7928, - "end": 7931, + "start": 7954, + "end": 7957, "loc": { "start": { "line": 261, @@ -62934,8 +63249,8 @@ "binop": null }, "value": "obj", - "start": 7932, - "end": 7935, + "start": 7958, + "end": 7961, "loc": { "start": { "line": 261, @@ -62962,8 +63277,8 @@ "updateContext": null }, "value": "in", - "start": 7936, - "end": 7938, + "start": 7962, + "end": 7964, "loc": { "start": { "line": 261, @@ -62988,8 +63303,8 @@ "binop": null }, "value": "objects", - "start": 7939, - "end": 7946, + "start": 7965, + "end": 7972, "loc": { "start": { "line": 261, @@ -63014,8 +63329,8 @@ "binop": null, "updateContext": null }, - "start": 7946, - "end": 7947, + "start": 7972, + "end": 7973, "loc": { "start": { "line": 261, @@ -63040,8 +63355,8 @@ "binop": null }, "value": "objType", - "start": 7947, - "end": 7954, + "start": 7973, + "end": 7980, "loc": { "start": { "line": 261, @@ -63066,8 +63381,8 @@ "binop": null, "updateContext": null }, - "start": 7954, - "end": 7955, + "start": 7980, + "end": 7981, "loc": { "start": { "line": 261, @@ -63091,8 +63406,8 @@ "postfix": false, "binop": null }, - "start": 7955, - "end": 7956, + "start": 7981, + "end": 7982, "loc": { "start": { "line": 261, @@ -63116,8 +63431,8 @@ "postfix": false, "binop": null }, - "start": 7957, - "end": 7958, + "start": 7983, + "end": 7984, "loc": { "start": { "line": 261, @@ -63144,8 +63459,8 @@ "updateContext": null }, "value": "if", - "start": 7962, - "end": 7964, + "start": 7988, + "end": 7990, "loc": { "start": { "line": 262, @@ -63169,8 +63484,8 @@ "postfix": false, "binop": null }, - "start": 7965, - "end": 7966, + "start": 7991, + "end": 7992, "loc": { "start": { "line": 262, @@ -63195,8 +63510,8 @@ "binop": null }, "value": "objType", - "start": 7966, - "end": 7973, + "start": 7992, + "end": 7999, "loc": { "start": { "line": 262, @@ -63222,8 +63537,8 @@ "updateContext": null }, "value": "!==", - "start": 7974, - "end": 7977, + "start": 8000, + "end": 8003, "loc": { "start": { "line": 262, @@ -63249,8 +63564,8 @@ "updateContext": null }, "value": "players", - "start": 7978, - "end": 7987, + "start": 8004, + "end": 8013, "loc": { "start": { "line": 262, @@ -63276,8 +63591,8 @@ "updateContext": null }, "value": "||", - "start": 7988, - "end": 7990, + "start": 8014, + "end": 8016, "loc": { "start": { "line": 262, @@ -63302,8 +63617,8 @@ "binop": null }, "value": "player", - "start": 7991, - "end": 7997, + "start": 8017, + "end": 8023, "loc": { "start": { "line": 262, @@ -63329,8 +63644,8 @@ "updateContext": null }, "value": "!==", - "start": 7998, - "end": 8001, + "start": 8024, + "end": 8027, "loc": { "start": { "line": 262, @@ -63355,8 +63670,8 @@ "binop": null }, "value": "objects", - "start": 8002, - "end": 8009, + "start": 8028, + "end": 8035, "loc": { "start": { "line": 262, @@ -63381,8 +63696,8 @@ "binop": null, "updateContext": null }, - "start": 8009, - "end": 8010, + "start": 8035, + "end": 8036, "loc": { "start": { "line": 262, @@ -63407,8 +63722,8 @@ "binop": null }, "value": "objType", - "start": 8010, - "end": 8017, + "start": 8036, + "end": 8043, "loc": { "start": { "line": 262, @@ -63433,8 +63748,8 @@ "binop": null, "updateContext": null }, - "start": 8017, - "end": 8018, + "start": 8043, + "end": 8044, "loc": { "start": { "line": 262, @@ -63459,8 +63774,8 @@ "binop": null, "updateContext": null }, - "start": 8018, - "end": 8019, + "start": 8044, + "end": 8045, "loc": { "start": { "line": 262, @@ -63485,8 +63800,8 @@ "binop": null }, "value": "obj", - "start": 8019, - "end": 8022, + "start": 8045, + "end": 8048, "loc": { "start": { "line": 262, @@ -63511,8 +63826,8 @@ "binop": null, "updateContext": null }, - "start": 8022, - "end": 8023, + "start": 8048, + "end": 8049, "loc": { "start": { "line": 262, @@ -63536,8 +63851,8 @@ "postfix": false, "binop": null }, - "start": 8023, - "end": 8024, + "start": 8049, + "end": 8050, "loc": { "start": { "line": 262, @@ -63561,8 +63876,8 @@ "postfix": false, "binop": null }, - "start": 8025, - "end": 8026, + "start": 8051, + "end": 8052, "loc": { "start": { "line": 262, @@ -63587,8 +63902,8 @@ "binop": null }, "value": "objects", - "start": 8031, - "end": 8038, + "start": 8057, + "end": 8064, "loc": { "start": { "line": 263, @@ -63613,8 +63928,8 @@ "binop": null, "updateContext": null }, - "start": 8038, - "end": 8039, + "start": 8064, + "end": 8065, "loc": { "start": { "line": 263, @@ -63639,8 +63954,8 @@ "binop": null }, "value": "objType", - "start": 8039, - "end": 8046, + "start": 8065, + "end": 8072, "loc": { "start": { "line": 263, @@ -63665,8 +63980,8 @@ "binop": null, "updateContext": null }, - "start": 8046, - "end": 8047, + "start": 8072, + "end": 8073, "loc": { "start": { "line": 263, @@ -63691,8 +64006,8 @@ "binop": null, "updateContext": null }, - "start": 8047, - "end": 8048, + "start": 8073, + "end": 8074, "loc": { "start": { "line": 263, @@ -63717,8 +64032,8 @@ "binop": null }, "value": "obj", - "start": 8048, - "end": 8051, + "start": 8074, + "end": 8077, "loc": { "start": { "line": 263, @@ -63743,8 +64058,8 @@ "binop": null, "updateContext": null }, - "start": 8051, - "end": 8052, + "start": 8077, + "end": 8078, "loc": { "start": { "line": 263, @@ -63769,8 +64084,8 @@ "binop": null, "updateContext": null }, - "start": 8052, - "end": 8053, + "start": 8078, + "end": 8079, "loc": { "start": { "line": 263, @@ -63795,8 +64110,8 @@ "binop": null }, "value": "tick", - "start": 8053, - "end": 8057, + "start": 8079, + "end": 8083, "loc": { "start": { "line": 263, @@ -63820,8 +64135,8 @@ "postfix": false, "binop": null }, - "start": 8057, - "end": 8058, + "start": 8083, + "end": 8084, "loc": { "start": { "line": 263, @@ -63845,8 +64160,8 @@ "postfix": false, "binop": null }, - "start": 8058, - "end": 8059, + "start": 8084, + "end": 8085, "loc": { "start": { "line": 263, @@ -63870,8 +64185,8 @@ "postfix": false, "binop": null }, - "start": 8063, - "end": 8064, + "start": 8089, + "end": 8090, "loc": { "start": { "line": 264, @@ -63895,8 +64210,8 @@ "postfix": false, "binop": null }, - "start": 8067, - "end": 8068, + "start": 8093, + "end": 8094, "loc": { "start": { "line": 265, @@ -63920,8 +64235,8 @@ "postfix": false, "binop": null }, - "start": 8070, - "end": 8071, + "start": 8096, + "end": 8097, "loc": { "start": { "line": 266, @@ -63945,8 +64260,8 @@ "postfix": false, "binop": null }, - "start": 8072, - "end": 8073, + "start": 8098, + "end": 8099, "loc": { "start": { "line": 267, @@ -63961,8 +64276,8 @@ { "type": "CommentBlock", "value": "*\n * Shows or hides the in-game menu box\n ", - "start": 8075, - "end": 8121, + "start": 8101, + "end": 8147, "loc": { "start": { "line": 269, @@ -63988,8 +64303,8 @@ "binop": null }, "value": "function", - "start": 8122, - "end": 8130, + "start": 8148, + "end": 8156, "loc": { "start": { "line": 272, @@ -64014,8 +64329,8 @@ "binop": null }, "value": "toggleMenu", - "start": 8131, - "end": 8141, + "start": 8157, + "end": 8167, "loc": { "start": { "line": 272, @@ -64039,8 +64354,8 @@ "postfix": false, "binop": null }, - "start": 8142, - "end": 8143, + "start": 8168, + "end": 8169, "loc": { "start": { "line": 272, @@ -64064,8 +64379,8 @@ "postfix": false, "binop": null }, - "start": 8143, - "end": 8144, + "start": 8169, + "end": 8170, "loc": { "start": { "line": 272, @@ -64089,8 +64404,8 @@ "postfix": false, "binop": null }, - "start": 8145, - "end": 8146, + "start": 8171, + "end": 8172, "loc": { "start": { "line": 272, @@ -64117,8 +64432,8 @@ "updateContext": null }, "value": "if", - "start": 8148, - "end": 8150, + "start": 8174, + "end": 8176, "loc": { "start": { "line": 273, @@ -64142,8 +64457,8 @@ "postfix": false, "binop": null }, - "start": 8151, - "end": 8152, + "start": 8177, + "end": 8178, "loc": { "start": { "line": 273, @@ -64168,8 +64483,8 @@ "binop": null }, "value": "document", - "start": 8152, - "end": 8160, + "start": 8178, + "end": 8186, "loc": { "start": { "line": 273, @@ -64194,8 +64509,8 @@ "binop": null, "updateContext": null }, - "start": 8160, - "end": 8161, + "start": 8186, + "end": 8187, "loc": { "start": { "line": 273, @@ -64220,8 +64535,8 @@ "binop": null }, "value": "getElementById", - "start": 8161, - "end": 8175, + "start": 8187, + "end": 8201, "loc": { "start": { "line": 273, @@ -64245,8 +64560,8 @@ "postfix": false, "binop": null }, - "start": 8175, - "end": 8176, + "start": 8201, + "end": 8202, "loc": { "start": { "line": 273, @@ -64272,8 +64587,8 @@ "updateContext": null }, "value": "menubox", - "start": 8176, - "end": 8185, + "start": 8202, + "end": 8211, "loc": { "start": { "line": 273, @@ -64297,8 +64612,8 @@ "postfix": false, "binop": null }, - "start": 8185, - "end": 8186, + "start": 8211, + "end": 8212, "loc": { "start": { "line": 273, @@ -64323,8 +64638,8 @@ "binop": null, "updateContext": null }, - "start": 8186, - "end": 8187, + "start": 8212, + "end": 8213, "loc": { "start": { "line": 273, @@ -64349,8 +64664,8 @@ "binop": null }, "value": "offsetParent", - "start": 8187, - "end": 8199, + "start": 8213, + "end": 8225, "loc": { "start": { "line": 273, @@ -64376,8 +64691,8 @@ "updateContext": null }, "value": "===", - "start": 8200, - "end": 8203, + "start": 8226, + "end": 8229, "loc": { "start": { "line": 273, @@ -64404,8 +64719,8 @@ "updateContext": null }, "value": "null", - "start": 8204, - "end": 8208, + "start": 8230, + "end": 8234, "loc": { "start": { "line": 273, @@ -64429,8 +64744,8 @@ "postfix": false, "binop": null }, - "start": 8208, - "end": 8209, + "start": 8234, + "end": 8235, "loc": { "start": { "line": 273, @@ -64454,8 +64769,8 @@ "postfix": false, "binop": null }, - "start": 8210, - "end": 8211, + "start": 8236, + "end": 8237, "loc": { "start": { "line": 273, @@ -64480,8 +64795,8 @@ "binop": null }, "value": "showElement", - "start": 8214, - "end": 8225, + "start": 8240, + "end": 8251, "loc": { "start": { "line": 274, @@ -64505,8 +64820,8 @@ "postfix": false, "binop": null }, - "start": 8225, - "end": 8226, + "start": 8251, + "end": 8252, "loc": { "start": { "line": 274, @@ -64532,8 +64847,8 @@ "updateContext": null }, "value": "menubox", - "start": 8226, - "end": 8235, + "start": 8252, + "end": 8261, "loc": { "start": { "line": 274, @@ -64557,8 +64872,8 @@ "postfix": false, "binop": null }, - "start": 8235, - "end": 8236, + "start": 8261, + "end": 8262, "loc": { "start": { "line": 274, @@ -64582,8 +64897,8 @@ "postfix": false, "binop": null }, - "start": 8238, - "end": 8239, + "start": 8264, + "end": 8265, "loc": { "start": { "line": 275, @@ -64610,8 +64925,8 @@ "updateContext": null }, "value": "else", - "start": 8241, - "end": 8245, + "start": 8267, + "end": 8271, "loc": { "start": { "line": 276, @@ -64635,8 +64950,8 @@ "postfix": false, "binop": null }, - "start": 8246, - "end": 8247, + "start": 8272, + "end": 8273, "loc": { "start": { "line": 276, @@ -64661,8 +64976,8 @@ "binop": null }, "value": "hideElement", - "start": 8250, - "end": 8261, + "start": 8276, + "end": 8287, "loc": { "start": { "line": 277, @@ -64686,8 +65001,8 @@ "postfix": false, "binop": null }, - "start": 8261, - "end": 8262, + "start": 8287, + "end": 8288, "loc": { "start": { "line": 277, @@ -64713,8 +65028,8 @@ "updateContext": null }, "value": "menubox", - "start": 8262, - "end": 8271, + "start": 8288, + "end": 8297, "loc": { "start": { "line": 277, @@ -64738,8 +65053,8 @@ "postfix": false, "binop": null }, - "start": 8271, - "end": 8272, + "start": 8297, + "end": 8298, "loc": { "start": { "line": 277, @@ -64763,8 +65078,8 @@ "postfix": false, "binop": null }, - "start": 8274, - "end": 8275, + "start": 8300, + "end": 8301, "loc": { "start": { "line": 278, @@ -64788,8 +65103,8 @@ "postfix": false, "binop": null }, - "start": 8276, - "end": 8277, + "start": 8302, + "end": 8303, "loc": { "start": { "line": 279, @@ -64804,8 +65119,8 @@ { "type": "CommentBlock", "value": "*\n * Remove all elements pre-rendered on stage.\n ", - "start": 8279, - "end": 8332, + "start": 8305, + "end": 8358, "loc": { "start": { "line": 281, @@ -64831,8 +65146,8 @@ "binop": null }, "value": "function", - "start": 8333, - "end": 8341, + "start": 8359, + "end": 8367, "loc": { "start": { "line": 284, @@ -64857,8 +65172,8 @@ "binop": null }, "value": "clearStage", - "start": 8342, - "end": 8352, + "start": 8368, + "end": 8378, "loc": { "start": { "line": 284, @@ -64882,8 +65197,8 @@ "postfix": false, "binop": null }, - "start": 8353, - "end": 8354, + "start": 8379, + "end": 8380, "loc": { "start": { "line": 284, @@ -64907,8 +65222,8 @@ "postfix": false, "binop": null }, - "start": 8354, - "end": 8355, + "start": 8380, + "end": 8381, "loc": { "start": { "line": 284, @@ -64932,8 +65247,8 @@ "postfix": false, "binop": null }, - "start": 8356, - "end": 8357, + "start": 8382, + "end": 8383, "loc": { "start": { "line": 284, @@ -64960,8 +65275,8 @@ "updateContext": null }, "value": "for", - "start": 8359, - "end": 8362, + "start": 8385, + "end": 8388, "loc": { "start": { "line": 285, @@ -64985,8 +65300,8 @@ "postfix": false, "binop": null }, - "start": 8363, - "end": 8364, + "start": 8389, + "end": 8390, "loc": { "start": { "line": 285, @@ -65013,8 +65328,8 @@ "updateContext": null }, "value": "var", - "start": 8364, - "end": 8367, + "start": 8390, + "end": 8393, "loc": { "start": { "line": 285, @@ -65039,8 +65354,8 @@ "binop": null }, "value": "i", - "start": 8368, - "end": 8369, + "start": 8394, + "end": 8395, "loc": { "start": { "line": 285, @@ -65066,8 +65381,8 @@ "updateContext": null }, "value": "=", - "start": 8370, - "end": 8371, + "start": 8396, + "end": 8397, "loc": { "start": { "line": 285, @@ -65092,8 +65407,8 @@ "binop": null }, "value": "app", - "start": 8372, - "end": 8375, + "start": 8398, + "end": 8401, "loc": { "start": { "line": 285, @@ -65118,8 +65433,8 @@ "binop": null, "updateContext": null }, - "start": 8375, - "end": 8376, + "start": 8401, + "end": 8402, "loc": { "start": { "line": 285, @@ -65144,8 +65459,8 @@ "binop": null }, "value": "stage", - "start": 8376, - "end": 8381, + "start": 8402, + "end": 8407, "loc": { "start": { "line": 285, @@ -65170,8 +65485,8 @@ "binop": null, "updateContext": null }, - "start": 8381, - "end": 8382, + "start": 8407, + "end": 8408, "loc": { "start": { "line": 285, @@ -65196,8 +65511,8 @@ "binop": null }, "value": "children", - "start": 8382, - "end": 8390, + "start": 8408, + "end": 8416, "loc": { "start": { "line": 285, @@ -65222,8 +65537,8 @@ "binop": null, "updateContext": null }, - "start": 8390, - "end": 8391, + "start": 8416, + "end": 8417, "loc": { "start": { "line": 285, @@ -65248,8 +65563,8 @@ "binop": null }, "value": "length", - "start": 8391, - "end": 8397, + "start": 8417, + "end": 8423, "loc": { "start": { "line": 285, @@ -65275,8 +65590,8 @@ "updateContext": null }, "value": "-", - "start": 8398, - "end": 8399, + "start": 8424, + "end": 8425, "loc": { "start": { "line": 285, @@ -65302,8 +65617,8 @@ "updateContext": null }, "value": 1, - "start": 8400, - "end": 8401, + "start": 8426, + "end": 8427, "loc": { "start": { "line": 285, @@ -65328,8 +65643,8 @@ "binop": null, "updateContext": null }, - "start": 8401, - "end": 8402, + "start": 8427, + "end": 8428, "loc": { "start": { "line": 285, @@ -65354,8 +65669,8 @@ "binop": null }, "value": "i", - "start": 8403, - "end": 8404, + "start": 8429, + "end": 8430, "loc": { "start": { "line": 285, @@ -65381,8 +65696,8 @@ "updateContext": null }, "value": ">=", - "start": 8405, - "end": 8407, + "start": 8431, + "end": 8433, "loc": { "start": { "line": 285, @@ -65408,8 +65723,8 @@ "updateContext": null }, "value": 0, - "start": 8408, - "end": 8409, + "start": 8434, + "end": 8435, "loc": { "start": { "line": 285, @@ -65434,8 +65749,8 @@ "binop": null, "updateContext": null }, - "start": 8409, - "end": 8410, + "start": 8435, + "end": 8436, "loc": { "start": { "line": 285, @@ -65460,8 +65775,8 @@ "binop": null }, "value": "i", - "start": 8411, - "end": 8412, + "start": 8437, + "end": 8438, "loc": { "start": { "line": 285, @@ -65486,8 +65801,8 @@ "binop": null }, "value": "--", - "start": 8412, - "end": 8414, + "start": 8438, + "end": 8440, "loc": { "start": { "line": 285, @@ -65511,8 +65826,8 @@ "postfix": false, "binop": null }, - "start": 8414, - "end": 8415, + "start": 8440, + "end": 8441, "loc": { "start": { "line": 285, @@ -65536,8 +65851,8 @@ "postfix": false, "binop": null }, - "start": 8416, - "end": 8417, + "start": 8442, + "end": 8443, "loc": { "start": { "line": 285, @@ -65562,8 +65877,8 @@ "binop": null }, "value": "app", - "start": 8420, - "end": 8423, + "start": 8446, + "end": 8449, "loc": { "start": { "line": 286, @@ -65588,8 +65903,8 @@ "binop": null, "updateContext": null }, - "start": 8423, - "end": 8424, + "start": 8449, + "end": 8450, "loc": { "start": { "line": 286, @@ -65614,8 +65929,8 @@ "binop": null }, "value": "stage", - "start": 8424, - "end": 8429, + "start": 8450, + "end": 8455, "loc": { "start": { "line": 286, @@ -65640,8 +65955,8 @@ "binop": null, "updateContext": null }, - "start": 8429, - "end": 8430, + "start": 8455, + "end": 8456, "loc": { "start": { "line": 286, @@ -65666,8 +65981,8 @@ "binop": null }, "value": "removeChild", - "start": 8430, - "end": 8441, + "start": 8456, + "end": 8467, "loc": { "start": { "line": 286, @@ -65691,8 +66006,8 @@ "postfix": false, "binop": null }, - "start": 8441, - "end": 8442, + "start": 8467, + "end": 8468, "loc": { "start": { "line": 286, @@ -65717,8 +66032,8 @@ "binop": null }, "value": "app", - "start": 8442, - "end": 8445, + "start": 8468, + "end": 8471, "loc": { "start": { "line": 286, @@ -65743,8 +66058,8 @@ "binop": null, "updateContext": null }, - "start": 8445, - "end": 8446, + "start": 8471, + "end": 8472, "loc": { "start": { "line": 286, @@ -65769,8 +66084,8 @@ "binop": null }, "value": "stage", - "start": 8446, - "end": 8451, + "start": 8472, + "end": 8477, "loc": { "start": { "line": 286, @@ -65795,8 +66110,8 @@ "binop": null, "updateContext": null }, - "start": 8451, - "end": 8452, + "start": 8477, + "end": 8478, "loc": { "start": { "line": 286, @@ -65821,8 +66136,8 @@ "binop": null }, "value": "children", - "start": 8452, - "end": 8460, + "start": 8478, + "end": 8486, "loc": { "start": { "line": 286, @@ -65847,8 +66162,8 @@ "binop": null, "updateContext": null }, - "start": 8460, - "end": 8461, + "start": 8486, + "end": 8487, "loc": { "start": { "line": 286, @@ -65873,8 +66188,8 @@ "binop": null }, "value": "i", - "start": 8461, - "end": 8462, + "start": 8487, + "end": 8488, "loc": { "start": { "line": 286, @@ -65899,8 +66214,8 @@ "binop": null, "updateContext": null }, - "start": 8462, - "end": 8463, + "start": 8488, + "end": 8489, "loc": { "start": { "line": 286, @@ -65924,8 +66239,8 @@ "postfix": false, "binop": null }, - "start": 8463, - "end": 8464, + "start": 8489, + "end": 8490, "loc": { "start": { "line": 286, @@ -65949,8 +66264,8 @@ "postfix": false, "binop": null }, - "start": 8466, - "end": 8467, + "start": 8492, + "end": 8493, "loc": { "start": { "line": 287, @@ -65974,8 +66289,8 @@ "postfix": false, "binop": null }, - "start": 8468, - "end": 8469, + "start": 8494, + "end": 8495, "loc": { "start": { "line": 288, @@ -65990,8 +66305,8 @@ { "type": "CommentBlock", "value": "*\n * Destroy everything in PIXI. DANGEROUS avoid!\n ", - "start": 8471, - "end": 8526, + "start": 8497, + "end": 8552, "loc": { "start": { "line": 290, @@ -66018,8 +66333,8 @@ "updateContext": null }, "value": "export", - "start": 8527, - "end": 8533, + "start": 8553, + "end": 8559, "loc": { "start": { "line": 293, @@ -66045,8 +66360,8 @@ "binop": null }, "value": "function", - "start": 8534, - "end": 8542, + "start": 8560, + "end": 8568, "loc": { "start": { "line": 293, @@ -66071,8 +66386,8 @@ "binop": null }, "value": "destroyPIXI", - "start": 8543, - "end": 8554, + "start": 8569, + "end": 8580, "loc": { "start": { "line": 293, @@ -66096,8 +66411,8 @@ "postfix": false, "binop": null }, - "start": 8555, - "end": 8556, + "start": 8581, + "end": 8582, "loc": { "start": { "line": 293, @@ -66121,8 +66436,8 @@ "postfix": false, "binop": null }, - "start": 8556, - "end": 8557, + "start": 8582, + "end": 8583, "loc": { "start": { "line": 293, @@ -66146,8 +66461,8 @@ "postfix": false, "binop": null }, - "start": 8558, - "end": 8559, + "start": 8584, + "end": 8585, "loc": { "start": { "line": 293, @@ -66172,8 +66487,8 @@ "binop": null }, "value": "app", - "start": 8561, - "end": 8564, + "start": 8587, + "end": 8590, "loc": { "start": { "line": 294, @@ -66198,8 +66513,8 @@ "binop": null, "updateContext": null }, - "start": 8564, - "end": 8565, + "start": 8590, + "end": 8591, "loc": { "start": { "line": 294, @@ -66224,8 +66539,8 @@ "binop": null }, "value": "destroy", - "start": 8565, - "end": 8572, + "start": 8591, + "end": 8598, "loc": { "start": { "line": 294, @@ -66249,8 +66564,8 @@ "postfix": false, "binop": null }, - "start": 8572, - "end": 8573, + "start": 8598, + "end": 8599, "loc": { "start": { "line": 294, @@ -66277,8 +66592,8 @@ "updateContext": null }, "value": "true", - "start": 8573, - "end": 8577, + "start": 8599, + "end": 8603, "loc": { "start": { "line": 294, @@ -66303,8 +66618,8 @@ "binop": null, "updateContext": null }, - "start": 8577, - "end": 8578, + "start": 8603, + "end": 8604, "loc": { "start": { "line": 294, @@ -66328,8 +66643,8 @@ "postfix": false, "binop": null }, - "start": 8579, - "end": 8580, + "start": 8605, + "end": 8606, "loc": { "start": { "line": 294, @@ -66354,8 +66669,8 @@ "binop": null }, "value": "children", - "start": 8583, - "end": 8591, + "start": 8609, + "end": 8617, "loc": { "start": { "line": 295, @@ -66380,8 +66695,8 @@ "binop": null, "updateContext": null }, - "start": 8591, - "end": 8592, + "start": 8617, + "end": 8618, "loc": { "start": { "line": 295, @@ -66408,8 +66723,8 @@ "updateContext": null }, "value": "true", - "start": 8593, - "end": 8597, + "start": 8619, + "end": 8623, "loc": { "start": { "line": 295, @@ -66434,8 +66749,8 @@ "binop": null, "updateContext": null }, - "start": 8597, - "end": 8598, + "start": 8623, + "end": 8624, "loc": { "start": { "line": 295, @@ -66460,8 +66775,8 @@ "binop": null }, "value": "texture", - "start": 8601, - "end": 8608, + "start": 8627, + "end": 8634, "loc": { "start": { "line": 296, @@ -66486,8 +66801,8 @@ "binop": null, "updateContext": null }, - "start": 8608, - "end": 8609, + "start": 8634, + "end": 8635, "loc": { "start": { "line": 296, @@ -66514,8 +66829,8 @@ "updateContext": null }, "value": "true", - "start": 8610, - "end": 8614, + "start": 8636, + "end": 8640, "loc": { "start": { "line": 296, @@ -66540,8 +66855,8 @@ "binop": null, "updateContext": null }, - "start": 8614, - "end": 8615, + "start": 8640, + "end": 8641, "loc": { "start": { "line": 296, @@ -66566,8 +66881,8 @@ "binop": null }, "value": "baseTexture", - "start": 8618, - "end": 8629, + "start": 8644, + "end": 8655, "loc": { "start": { "line": 297, @@ -66592,8 +66907,8 @@ "binop": null, "updateContext": null }, - "start": 8629, - "end": 8630, + "start": 8655, + "end": 8656, "loc": { "start": { "line": 297, @@ -66620,8 +66935,8 @@ "updateContext": null }, "value": "true", - "start": 8631, - "end": 8635, + "start": 8657, + "end": 8661, "loc": { "start": { "line": 297, @@ -66645,8 +66960,8 @@ "postfix": false, "binop": null }, - "start": 8637, - "end": 8638, + "start": 8663, + "end": 8664, "loc": { "start": { "line": 298, @@ -66670,8 +66985,8 @@ "postfix": false, "binop": null }, - "start": 8638, - "end": 8639, + "start": 8664, + "end": 8665, "loc": { "start": { "line": 298, @@ -66696,8 +67011,8 @@ "binop": null }, "value": "PIXI", - "start": 8641, - "end": 8645, + "start": 8667, + "end": 8671, "loc": { "start": { "line": 299, @@ -66722,8 +67037,8 @@ "binop": null, "updateContext": null }, - "start": 8645, - "end": 8646, + "start": 8671, + "end": 8672, "loc": { "start": { "line": 299, @@ -66748,8 +67063,8 @@ "binop": null }, "value": "loader", - "start": 8646, - "end": 8652, + "start": 8672, + "end": 8678, "loc": { "start": { "line": 299, @@ -66774,8 +67089,8 @@ "binop": null, "updateContext": null }, - "start": 8652, - "end": 8653, + "start": 8678, + "end": 8679, "loc": { "start": { "line": 299, @@ -66800,8 +67115,8 @@ "binop": null }, "value": "reset", - "start": 8653, - "end": 8658, + "start": 8679, + "end": 8684, "loc": { "start": { "line": 299, @@ -66825,8 +67140,8 @@ "postfix": false, "binop": null }, - "start": 8658, - "end": 8659, + "start": 8684, + "end": 8685, "loc": { "start": { "line": 299, @@ -66850,8 +67165,8 @@ "postfix": false, "binop": null }, - "start": 8659, - "end": 8660, + "start": 8685, + "end": 8686, "loc": { "start": { "line": 299, @@ -66876,8 +67191,8 @@ "binop": null }, "value": "isSetup", - "start": 8662, - "end": 8669, + "start": 8688, + "end": 8695, "loc": { "start": { "line": 300, @@ -66903,8 +67218,8 @@ "updateContext": null }, "value": "=", - "start": 8670, - "end": 8671, + "start": 8696, + "end": 8697, "loc": { "start": { "line": 300, @@ -66931,8 +67246,8 @@ "updateContext": null }, "value": "false", - "start": 8672, - "end": 8677, + "start": 8698, + "end": 8703, "loc": { "start": { "line": 300, @@ -66957,8 +67272,8 @@ "binop": null }, "value": "app", - "start": 8679, - "end": 8682, + "start": 8705, + "end": 8708, "loc": { "start": { "line": 301, @@ -66984,8 +67299,8 @@ "updateContext": null }, "value": "=", - "start": 8683, - "end": 8684, + "start": 8709, + "end": 8710, "loc": { "start": { "line": 301, @@ -67010,8 +67325,8 @@ "binop": null }, "value": "undefined", - "start": 8685, - "end": 8694, + "start": 8711, + "end": 8720, "loc": { "start": { "line": 301, @@ -67035,8 +67350,8 @@ "postfix": false, "binop": null }, - "start": 8695, - "end": 8696, + "start": 8721, + "end": 8722, "loc": { "start": { "line": 302, @@ -67051,8 +67366,8 @@ { "type": "CommentBlock", "value": "*\n * Call this function to hide loading div and show UI\n ", - "start": 8698, - "end": 8759, + "start": 8724, + "end": 8785, "loc": { "start": { "line": 304, @@ -67079,8 +67394,8 @@ "updateContext": null }, "value": "export", - "start": 8760, - "end": 8766, + "start": 8786, + "end": 8792, "loc": { "start": { "line": 307, @@ -67106,8 +67421,8 @@ "binop": null }, "value": "function", - "start": 8767, - "end": 8775, + "start": 8793, + "end": 8801, "loc": { "start": { "line": 307, @@ -67132,8 +67447,8 @@ "binop": null }, "value": "showGameUI", - "start": 8776, - "end": 8786, + "start": 8802, + "end": 8812, "loc": { "start": { "line": 307, @@ -67157,8 +67472,8 @@ "postfix": false, "binop": null }, - "start": 8787, - "end": 8788, + "start": 8813, + "end": 8814, "loc": { "start": { "line": 307, @@ -67182,8 +67497,8 @@ "postfix": false, "binop": null }, - "start": 8788, - "end": 8789, + "start": 8814, + "end": 8815, "loc": { "start": { "line": 307, @@ -67207,8 +67522,8 @@ "postfix": false, "binop": null }, - "start": 8790, - "end": 8791, + "start": 8816, + "end": 8817, "loc": { "start": { "line": 307, @@ -67223,8 +67538,8 @@ { "type": "CommentLine", "value": " Hide loading screen", - "start": 8793, - "end": 8815, + "start": 8819, + "end": 8841, "loc": { "start": { "line": 308, @@ -67249,8 +67564,8 @@ "binop": null }, "value": "hideElement", - "start": 8817, - "end": 8828, + "start": 8843, + "end": 8854, "loc": { "start": { "line": 309, @@ -67274,8 +67589,8 @@ "postfix": false, "binop": null }, - "start": 8828, - "end": 8829, + "start": 8854, + "end": 8855, "loc": { "start": { "line": 309, @@ -67301,8 +67616,8 @@ "updateContext": null }, "value": "loading", - "start": 8829, - "end": 8838, + "start": 8855, + "end": 8864, "loc": { "start": { "line": 309, @@ -67326,8 +67641,8 @@ "postfix": false, "binop": null }, - "start": 8838, - "end": 8839, + "start": 8864, + "end": 8865, "loc": { "start": { "line": 309, @@ -67354,8 +67669,8 @@ "updateContext": null }, "value": "if", - "start": 8841, - "end": 8843, + "start": 8867, + "end": 8869, "loc": { "start": { "line": 310, @@ -67379,8 +67694,8 @@ "postfix": false, "binop": null }, - "start": 8844, - "end": 8845, + "start": 8870, + "end": 8871, "loc": { "start": { "line": 310, @@ -67406,8 +67721,8 @@ "updateContext": null }, "value": "!", - "start": 8845, - "end": 8846, + "start": 8871, + "end": 8872, "loc": { "start": { "line": 310, @@ -67432,8 +67747,8 @@ "binop": null }, "value": "inGame", - "start": 8846, - "end": 8852, + "start": 8872, + "end": 8878, "loc": { "start": { "line": 310, @@ -67457,8 +67772,8 @@ "postfix": false, "binop": null }, - "start": 8852, - "end": 8853, + "start": 8878, + "end": 8879, "loc": { "start": { "line": 310, @@ -67482,8 +67797,8 @@ "postfix": false, "binop": null }, - "start": 8854, - "end": 8855, + "start": 8880, + "end": 8881, "loc": { "start": { "line": 310, @@ -67508,8 +67823,8 @@ "binop": null }, "value": "showElement", - "start": 8858, - "end": 8869, + "start": 8884, + "end": 8895, "loc": { "start": { "line": 311, @@ -67533,8 +67848,8 @@ "postfix": false, "binop": null }, - "start": 8869, - "end": 8870, + "start": 8895, + "end": 8896, "loc": { "start": { "line": 311, @@ -67560,8 +67875,8 @@ "updateContext": null }, "value": "lobby", - "start": 8870, - "end": 8877, + "start": 8896, + "end": 8903, "loc": { "start": { "line": 311, @@ -67585,8 +67900,8 @@ "postfix": false, "binop": null }, - "start": 8877, - "end": 8878, + "start": 8903, + "end": 8904, "loc": { "start": { "line": 311, @@ -67610,8 +67925,8 @@ "postfix": false, "binop": null }, - "start": 8880, - "end": 8881, + "start": 8906, + "end": 8907, "loc": { "start": { "line": 312, @@ -67635,8 +67950,8 @@ "postfix": false, "binop": null }, - "start": 8882, - "end": 8883, + "start": 8908, + "end": 8909, "loc": { "start": { "line": 313, @@ -67651,8 +67966,8 @@ { "type": "CommentBlock", "value": "*\n * Creates a Player instance once the stage is fully set up and ready.\n * @param {*} data Starting values to assign to the player. Generated from server\n * @returns {Player} The Player object that was created\n ", - "start": 8885, - "end": 9101, + "start": 8911, + "end": 9127, "loc": { "start": { "line": 315, @@ -67679,8 +67994,8 @@ "updateContext": null }, "value": "export", - "start": 9102, - "end": 9108, + "start": 9128, + "end": 9134, "loc": { "start": { "line": 320, @@ -67706,8 +68021,8 @@ "binop": null }, "value": "function", - "start": 9109, - "end": 9117, + "start": 9135, + "end": 9143, "loc": { "start": { "line": 320, @@ -67732,8 +68047,8 @@ "binop": null }, "value": "createPlayer", - "start": 9118, - "end": 9130, + "start": 9144, + "end": 9156, "loc": { "start": { "line": 320, @@ -67757,8 +68072,8 @@ "postfix": false, "binop": null }, - "start": 9131, - "end": 9132, + "start": 9157, + "end": 9158, "loc": { "start": { "line": 320, @@ -67783,8 +68098,8 @@ "binop": null }, "value": "data", - "start": 9132, - "end": 9136, + "start": 9158, + "end": 9162, "loc": { "start": { "line": 320, @@ -67808,8 +68123,8 @@ "postfix": false, "binop": null }, - "start": 9136, - "end": 9137, + "start": 9162, + "end": 9163, "loc": { "start": { "line": 320, @@ -67833,8 +68148,8 @@ "postfix": false, "binop": null }, - "start": 9138, - "end": 9139, + "start": 9164, + "end": 9165, "loc": { "start": { "line": 320, @@ -67861,8 +68176,8 @@ "updateContext": null }, "value": "if", - "start": 9141, - "end": 9143, + "start": 9167, + "end": 9169, "loc": { "start": { "line": 321, @@ -67886,8 +68201,8 @@ "postfix": false, "binop": null }, - "start": 9144, - "end": 9145, + "start": 9170, + "end": 9171, "loc": { "start": { "line": 321, @@ -67912,8 +68227,8 @@ "binop": null }, "value": "isSetup", - "start": 9145, - "end": 9152, + "start": 9171, + "end": 9178, "loc": { "start": { "line": 321, @@ -67937,8 +68252,8 @@ "postfix": false, "binop": null }, - "start": 9152, - "end": 9153, + "start": 9178, + "end": 9179, "loc": { "start": { "line": 321, @@ -67962,8 +68277,8 @@ "postfix": false, "binop": null }, - "start": 9154, - "end": 9155, + "start": 9180, + "end": 9181, "loc": { "start": { "line": 321, @@ -67988,8 +68303,8 @@ "binop": null }, "value": "console", - "start": 9158, - "end": 9165, + "start": 9184, + "end": 9191, "loc": { "start": { "line": 322, @@ -68014,8 +68329,8 @@ "binop": null, "updateContext": null }, - "start": 9165, - "end": 9166, + "start": 9191, + "end": 9192, "loc": { "start": { "line": 322, @@ -68040,8 +68355,8 @@ "binop": null }, "value": "log", - "start": 9166, - "end": 9169, + "start": 9192, + "end": 9195, "loc": { "start": { "line": 322, @@ -68065,8 +68380,8 @@ "postfix": false, "binop": null }, - "start": 9169, - "end": 9170, + "start": 9195, + "end": 9196, "loc": { "start": { "line": 322, @@ -68092,8 +68407,8 @@ "updateContext": null }, "value": "create player ", - "start": 9170, - "end": 9186, + "start": 9196, + "end": 9212, "loc": { "start": { "line": 322, @@ -68119,8 +68434,8 @@ "updateContext": null }, "value": "+", - "start": 9187, - "end": 9188, + "start": 9213, + "end": 9214, "loc": { "start": { "line": 322, @@ -68145,8 +68460,8 @@ "binop": null }, "value": "data", - "start": 9189, - "end": 9193, + "start": 9215, + "end": 9219, "loc": { "start": { "line": 322, @@ -68171,8 +68486,8 @@ "binop": null, "updateContext": null }, - "start": 9193, - "end": 9194, + "start": 9219, + "end": 9220, "loc": { "start": { "line": 322, @@ -68197,8 +68512,8 @@ "binop": null }, "value": "id", - "start": 9194, - "end": 9196, + "start": 9220, + "end": 9222, "loc": { "start": { "line": 322, @@ -68222,8 +68537,8 @@ "postfix": false, "binop": null }, - "start": 9196, - "end": 9197, + "start": 9222, + "end": 9223, "loc": { "start": { "line": 322, @@ -68248,8 +68563,8 @@ "binop": null }, "value": "console", - "start": 9200, - "end": 9207, + "start": 9226, + "end": 9233, "loc": { "start": { "line": 323, @@ -68274,8 +68589,8 @@ "binop": null, "updateContext": null }, - "start": 9207, - "end": 9208, + "start": 9233, + "end": 9234, "loc": { "start": { "line": 323, @@ -68300,8 +68615,8 @@ "binop": null }, "value": "log", - "start": 9208, - "end": 9211, + "start": 9234, + "end": 9237, "loc": { "start": { "line": 323, @@ -68325,8 +68640,8 @@ "postfix": false, "binop": null }, - "start": 9211, - "end": 9212, + "start": 9237, + "end": 9238, "loc": { "start": { "line": 323, @@ -68351,8 +68666,8 @@ "binop": null }, "value": "data", - "start": 9212, - "end": 9216, + "start": 9238, + "end": 9242, "loc": { "start": { "line": 323, @@ -68376,8 +68691,8 @@ "postfix": false, "binop": null }, - "start": 9216, - "end": 9217, + "start": 9242, + "end": 9243, "loc": { "start": { "line": 323, @@ -68404,8 +68719,8 @@ "updateContext": null }, "value": "let", - "start": 9220, - "end": 9223, + "start": 9246, + "end": 9249, "loc": { "start": { "line": 324, @@ -68430,8 +68745,8 @@ "binop": null }, "value": "newPlayer", - "start": 9224, - "end": 9233, + "start": 9250, + "end": 9259, "loc": { "start": { "line": 324, @@ -68457,8 +68772,8 @@ "updateContext": null }, "value": "=", - "start": 9234, - "end": 9235, + "start": 9260, + "end": 9261, "loc": { "start": { "line": 324, @@ -68485,8 +68800,8 @@ "updateContext": null }, "value": "new", - "start": 9236, - "end": 9239, + "start": 9262, + "end": 9265, "loc": { "start": { "line": 324, @@ -68511,8 +68826,8 @@ "binop": null }, "value": "Player", - "start": 9240, - "end": 9246, + "start": 9266, + "end": 9272, "loc": { "start": { "line": 324, @@ -68536,8 +68851,8 @@ "postfix": false, "binop": null }, - "start": 9246, - "end": 9247, + "start": 9272, + "end": 9273, "loc": { "start": { "line": 324, @@ -68562,8 +68877,8 @@ "binop": null }, "value": "spritesheet", - "start": 9247, - "end": 9258, + "start": 9273, + "end": 9284, "loc": { "start": { "line": 324, @@ -68588,8 +68903,8 @@ "binop": null, "updateContext": null }, - "start": 9258, - "end": 9259, + "start": 9284, + "end": 9285, "loc": { "start": { "line": 324, @@ -68614,8 +68929,8 @@ "binop": null }, "value": "textures", - "start": 9259, - "end": 9267, + "start": 9285, + "end": 9293, "loc": { "start": { "line": 324, @@ -68640,8 +68955,8 @@ "binop": null, "updateContext": null }, - "start": 9267, - "end": 9268, + "start": 9293, + "end": 9294, "loc": { "start": { "line": 324, @@ -68666,8 +68981,8 @@ "binop": null }, "value": "GLOBAL", - "start": 9268, - "end": 9274, + "start": 9294, + "end": 9300, "loc": { "start": { "line": 324, @@ -68692,8 +69007,8 @@ "binop": null, "updateContext": null }, - "start": 9274, - "end": 9275, + "start": 9300, + "end": 9301, "loc": { "start": { "line": 324, @@ -68718,8 +69033,8 @@ "binop": null }, "value": "PLAYER_SPRITES", - "start": 9275, - "end": 9289, + "start": 9301, + "end": 9315, "loc": { "start": { "line": 324, @@ -68744,8 +69059,8 @@ "binop": null, "updateContext": null }, - "start": 9289, - "end": 9290, + "start": 9315, + "end": 9316, "loc": { "start": { "line": 324, @@ -68771,8 +69086,8 @@ "updateContext": null }, "value": 0, - "start": 9290, - "end": 9291, + "start": 9316, + "end": 9317, "loc": { "start": { "line": 324, @@ -68797,8 +69112,8 @@ "binop": null, "updateContext": null }, - "start": 9291, - "end": 9292, + "start": 9317, + "end": 9318, "loc": { "start": { "line": 324, @@ -68823,8 +69138,8 @@ "binop": null, "updateContext": null }, - "start": 9292, - "end": 9293, + "start": 9318, + "end": 9319, "loc": { "start": { "line": 324, @@ -68849,8 +69164,8 @@ "binop": null, "updateContext": null }, - "start": 9293, - "end": 9294, + "start": 9319, + "end": 9320, "loc": { "start": { "line": 324, @@ -68875,8 +69190,8 @@ "binop": null }, "value": "data", - "start": 9295, - "end": 9299, + "start": 9321, + "end": 9325, "loc": { "start": { "line": 324, @@ -68901,8 +69216,8 @@ "binop": null, "updateContext": null }, - "start": 9299, - "end": 9300, + "start": 9325, + "end": 9326, "loc": { "start": { "line": 324, @@ -68927,8 +69242,8 @@ "binop": null }, "value": "id", - "start": 9300, - "end": 9302, + "start": 9326, + "end": 9328, "loc": { "start": { "line": 324, @@ -68953,8 +69268,8 @@ "binop": null, "updateContext": null }, - "start": 9302, - "end": 9303, + "start": 9328, + "end": 9329, "loc": { "start": { "line": 324, @@ -68979,8 +69294,8 @@ "binop": null }, "value": "data", - "start": 9304, - "end": 9308, + "start": 9330, + "end": 9334, "loc": { "start": { "line": 324, @@ -69005,8 +69320,8 @@ "binop": null, "updateContext": null }, - "start": 9308, - "end": 9309, + "start": 9334, + "end": 9335, "loc": { "start": { "line": 324, @@ -69031,8 +69346,8 @@ "binop": null }, "value": "name", - "start": 9309, - "end": 9313, + "start": 9335, + "end": 9339, "loc": { "start": { "line": 324, @@ -69057,8 +69372,8 @@ "binop": null, "updateContext": null }, - "start": 9313, - "end": 9314, + "start": 9339, + "end": 9340, "loc": { "start": { "line": 324, @@ -69083,8 +69398,8 @@ "binop": null }, "value": "data", - "start": 9315, - "end": 9319, + "start": 9341, + "end": 9345, "loc": { "start": { "line": 324, @@ -69109,8 +69424,8 @@ "binop": null, "updateContext": null }, - "start": 9319, - "end": 9320, + "start": 9345, + "end": 9346, "loc": { "start": { "line": 324, @@ -69135,8 +69450,8 @@ "binop": null }, "value": "room", - "start": 9320, - "end": 9324, + "start": 9346, + "end": 9350, "loc": { "start": { "line": 324, @@ -69161,8 +69476,8 @@ "binop": null, "updateContext": null }, - "start": 9324, - "end": 9325, + "start": 9350, + "end": 9351, "loc": { "start": { "line": 324, @@ -69187,8 +69502,8 @@ "binop": null }, "value": "data", - "start": 9326, - "end": 9330, + "start": 9352, + "end": 9356, "loc": { "start": { "line": 324, @@ -69213,8 +69528,8 @@ "binop": null, "updateContext": null }, - "start": 9330, - "end": 9331, + "start": 9356, + "end": 9357, "loc": { "start": { "line": 324, @@ -69239,8 +69554,8 @@ "binop": null }, "value": "team", - "start": 9331, - "end": 9335, + "start": 9357, + "end": 9361, "loc": { "start": { "line": 324, @@ -69265,8 +69580,8 @@ "binop": null, "updateContext": null }, - "start": 9335, - "end": 9336, + "start": 9361, + "end": 9362, "loc": { "start": { "line": 324, @@ -69291,8 +69606,8 @@ "binop": null }, "value": "data", - "start": 9337, - "end": 9341, + "start": 9363, + "end": 9367, "loc": { "start": { "line": 324, @@ -69317,8 +69632,8 @@ "binop": null, "updateContext": null }, - "start": 9341, - "end": 9342, + "start": 9367, + "end": 9368, "loc": { "start": { "line": 324, @@ -69343,8 +69658,8 @@ "binop": null }, "value": "health", - "start": 9342, - "end": 9348, + "start": 9368, + "end": 9374, "loc": { "start": { "line": 324, @@ -69369,8 +69684,8 @@ "binop": null, "updateContext": null }, - "start": 9348, - "end": 9349, + "start": 9374, + "end": 9375, "loc": { "start": { "line": 324, @@ -69395,8 +69710,8 @@ "binop": null }, "value": "data", - "start": 9350, - "end": 9354, + "start": 9376, + "end": 9380, "loc": { "start": { "line": 324, @@ -69421,8 +69736,8 @@ "binop": null, "updateContext": null }, - "start": 9354, - "end": 9355, + "start": 9380, + "end": 9381, "loc": { "start": { "line": 324, @@ -69447,8 +69762,8 @@ "binop": null }, "value": "posX", - "start": 9355, - "end": 9359, + "start": 9381, + "end": 9385, "loc": { "start": { "line": 324, @@ -69473,8 +69788,8 @@ "binop": null, "updateContext": null }, - "start": 9359, - "end": 9360, + "start": 9385, + "end": 9386, "loc": { "start": { "line": 324, @@ -69499,8 +69814,8 @@ "binop": null }, "value": "data", - "start": 9361, - "end": 9365, + "start": 9387, + "end": 9391, "loc": { "start": { "line": 324, @@ -69525,8 +69840,8 @@ "binop": null, "updateContext": null }, - "start": 9365, - "end": 9366, + "start": 9391, + "end": 9392, "loc": { "start": { "line": 324, @@ -69551,8 +69866,8 @@ "binop": null }, "value": "posY", - "start": 9366, - "end": 9370, + "start": 9392, + "end": 9396, "loc": { "start": { "line": 324, @@ -69577,8 +69892,8 @@ "binop": null, "updateContext": null }, - "start": 9370, - "end": 9371, + "start": 9396, + "end": 9397, "loc": { "start": { "line": 324, @@ -69603,8 +69918,8 @@ "binop": null }, "value": "data", - "start": 9372, - "end": 9376, + "start": 9398, + "end": 9402, "loc": { "start": { "line": 324, @@ -69629,8 +69944,8 @@ "binop": null, "updateContext": null }, - "start": 9376, - "end": 9377, + "start": 9402, + "end": 9403, "loc": { "start": { "line": 324, @@ -69655,8 +69970,8 @@ "binop": null }, "value": "vx", - "start": 9377, - "end": 9379, + "start": 9403, + "end": 9405, "loc": { "start": { "line": 324, @@ -69681,8 +69996,8 @@ "binop": null, "updateContext": null }, - "start": 9379, - "end": 9380, + "start": 9405, + "end": 9406, "loc": { "start": { "line": 324, @@ -69707,8 +70022,8 @@ "binop": null }, "value": "data", - "start": 9381, - "end": 9385, + "start": 9407, + "end": 9411, "loc": { "start": { "line": 324, @@ -69733,8 +70048,8 @@ "binop": null, "updateContext": null }, - "start": 9385, - "end": 9386, + "start": 9411, + "end": 9412, "loc": { "start": { "line": 324, @@ -69759,8 +70074,8 @@ "binop": null }, "value": "vy", - "start": 9386, - "end": 9388, + "start": 9412, + "end": 9414, "loc": { "start": { "line": 324, @@ -69784,8 +70099,8 @@ "postfix": false, "binop": null }, - "start": 9388, - "end": 9389, + "start": 9414, + "end": 9415, "loc": { "start": { "line": 324, @@ -69812,8 +70127,8 @@ "updateContext": null }, "value": "if", - "start": 9392, - "end": 9394, + "start": 9418, + "end": 9420, "loc": { "start": { "line": 325, @@ -69837,8 +70152,8 @@ "postfix": false, "binop": null }, - "start": 9395, - "end": 9396, + "start": 9421, + "end": 9422, "loc": { "start": { "line": 325, @@ -69863,8 +70178,8 @@ "binop": null }, "value": "data", - "start": 9396, - "end": 9400, + "start": 9422, + "end": 9426, "loc": { "start": { "line": 325, @@ -69889,8 +70204,8 @@ "binop": null, "updateContext": null }, - "start": 9400, - "end": 9401, + "start": 9426, + "end": 9427, "loc": { "start": { "line": 325, @@ -69915,8 +70230,8 @@ "binop": null }, "value": "id", - "start": 9401, - "end": 9403, + "start": 9427, + "end": 9429, "loc": { "start": { "line": 325, @@ -69942,8 +70257,8 @@ "updateContext": null }, "value": "===", - "start": 9404, - "end": 9407, + "start": 9430, + "end": 9433, "loc": { "start": { "line": 325, @@ -69968,8 +70283,8 @@ "binop": null }, "value": "socket", - "start": 9408, - "end": 9414, + "start": 9434, + "end": 9440, "loc": { "start": { "line": 325, @@ -69994,8 +70309,8 @@ "binop": null, "updateContext": null }, - "start": 9414, - "end": 9415, + "start": 9440, + "end": 9441, "loc": { "start": { "line": 325, @@ -70020,8 +70335,8 @@ "binop": null }, "value": "id", - "start": 9415, - "end": 9417, + "start": 9441, + "end": 9443, "loc": { "start": { "line": 325, @@ -70045,8 +70360,8 @@ "postfix": false, "binop": null }, - "start": 9417, - "end": 9418, + "start": 9443, + "end": 9444, "loc": { "start": { "line": 325, @@ -70070,8 +70385,8 @@ "postfix": false, "binop": null }, - "start": 9419, - "end": 9420, + "start": 9445, + "end": 9446, "loc": { "start": { "line": 325, @@ -70096,8 +70411,8 @@ "binop": null }, "value": "player", - "start": 9424, - "end": 9430, + "start": 9450, + "end": 9456, "loc": { "start": { "line": 326, @@ -70123,8 +70438,8 @@ "updateContext": null }, "value": "=", - "start": 9431, - "end": 9432, + "start": 9457, + "end": 9458, "loc": { "start": { "line": 326, @@ -70149,8 +70464,8 @@ "binop": null }, "value": "newPlayer", - "start": 9433, - "end": 9442, + "start": 9459, + "end": 9468, "loc": { "start": { "line": 326, @@ -70174,8 +70489,8 @@ "postfix": false, "binop": null }, - "start": 9445, - "end": 9446, + "start": 9471, + "end": 9472, "loc": { "start": { "line": 327, @@ -70202,8 +70517,8 @@ "updateContext": null }, "value": "return", - "start": 9450, - "end": 9456, + "start": 9476, + "end": 9482, "loc": { "start": { "line": 329, @@ -70228,8 +70543,8 @@ "binop": null }, "value": "newPlayer", - "start": 9457, - "end": 9466, + "start": 9483, + "end": 9492, "loc": { "start": { "line": 329, @@ -70253,8 +70568,8 @@ "postfix": false, "binop": null }, - "start": 9468, - "end": 9469, + "start": 9494, + "end": 9495, "loc": { "start": { "line": 330, @@ -70278,8 +70593,8 @@ "postfix": false, "binop": null }, - "start": 9470, - "end": 9471, + "start": 9496, + "end": 9497, "loc": { "start": { "line": 331, @@ -70294,8 +70609,8 @@ { "type": "CommentBlock", "value": "*\n * If the document is Focused return true otherwise false\n *", - "start": 9473, - "end": 9539, + "start": 9499, + "end": 9565, "loc": { "start": { "line": 333, @@ -70322,8 +70637,8 @@ "updateContext": null }, "value": "export", - "start": 9540, - "end": 9546, + "start": 9566, + "end": 9572, "loc": { "start": { "line": 336, @@ -70349,8 +70664,8 @@ "binop": null }, "value": "function", - "start": 9547, - "end": 9555, + "start": 9573, + "end": 9581, "loc": { "start": { "line": 336, @@ -70375,8 +70690,8 @@ "binop": null }, "value": "isFocused", - "start": 9556, - "end": 9565, + "start": 9582, + "end": 9591, "loc": { "start": { "line": 336, @@ -70400,8 +70715,8 @@ "postfix": false, "binop": null }, - "start": 9566, - "end": 9567, + "start": 9592, + "end": 9593, "loc": { "start": { "line": 336, @@ -70425,8 +70740,8 @@ "postfix": false, "binop": null }, - "start": 9567, - "end": 9568, + "start": 9593, + "end": 9594, "loc": { "start": { "line": 336, @@ -70450,8 +70765,8 @@ "postfix": false, "binop": null }, - "start": 9569, - "end": 9570, + "start": 9595, + "end": 9596, "loc": { "start": { "line": 336, @@ -70478,8 +70793,8 @@ "updateContext": null }, "value": "return", - "start": 9572, - "end": 9578, + "start": 9598, + "end": 9604, "loc": { "start": { "line": 337, @@ -70504,8 +70819,8 @@ "binop": null }, "value": "document", - "start": 9579, - "end": 9587, + "start": 9605, + "end": 9613, "loc": { "start": { "line": 337, @@ -70530,8 +70845,8 @@ "binop": null, "updateContext": null }, - "start": 9587, - "end": 9588, + "start": 9613, + "end": 9614, "loc": { "start": { "line": 337, @@ -70556,8 +70871,8 @@ "binop": null }, "value": "hasFocus", - "start": 9588, - "end": 9596, + "start": 9614, + "end": 9622, "loc": { "start": { "line": 337, @@ -70581,8 +70896,8 @@ "postfix": false, "binop": null }, - "start": 9596, - "end": 9597, + "start": 9622, + "end": 9623, "loc": { "start": { "line": 337, @@ -70606,8 +70921,8 @@ "postfix": false, "binop": null }, - "start": 9597, - "end": 9598, + "start": 9623, + "end": 9624, "loc": { "start": { "line": 337, @@ -70633,8 +70948,8 @@ "updateContext": null }, "value": "&&", - "start": 9599, - "end": 9601, + "start": 9625, + "end": 9627, "loc": { "start": { "line": 337, @@ -70659,8 +70974,8 @@ "binop": null }, "value": "document", - "start": 9602, - "end": 9610, + "start": 9628, + "end": 9636, "loc": { "start": { "line": 337, @@ -70685,8 +71000,8 @@ "binop": null, "updateContext": null }, - "start": 9610, - "end": 9611, + "start": 9636, + "end": 9637, "loc": { "start": { "line": 337, @@ -70711,8 +71026,8 @@ "binop": null }, "value": "activeElement", - "start": 9611, - "end": 9624, + "start": 9637, + "end": 9650, "loc": { "start": { "line": 337, @@ -70738,8 +71053,8 @@ "updateContext": null }, "value": "!==", - "start": 9625, - "end": 9628, + "start": 9651, + "end": 9654, "loc": { "start": { "line": 337, @@ -70764,8 +71079,8 @@ "binop": null }, "value": "document", - "start": 9629, - "end": 9637, + "start": 9655, + "end": 9663, "loc": { "start": { "line": 337, @@ -70790,8 +71105,8 @@ "binop": null, "updateContext": null }, - "start": 9637, - "end": 9638, + "start": 9663, + "end": 9664, "loc": { "start": { "line": 337, @@ -70816,8 +71131,8 @@ "binop": null }, "value": "getElementById", - "start": 9638, - "end": 9652, + "start": 9664, + "end": 9678, "loc": { "start": { "line": 337, @@ -70841,8 +71156,8 @@ "postfix": false, "binop": null }, - "start": 9652, - "end": 9653, + "start": 9678, + "end": 9679, "loc": { "start": { "line": 337, @@ -70868,8 +71183,8 @@ "updateContext": null }, "value": "chatInput", - "start": 9653, - "end": 9664, + "start": 9679, + "end": 9690, "loc": { "start": { "line": 337, @@ -70893,8 +71208,8 @@ "postfix": false, "binop": null }, - "start": 9664, - "end": 9665, + "start": 9690, + "end": 9691, "loc": { "start": { "line": 337, @@ -70918,8 +71233,8 @@ "postfix": false, "binop": null }, - "start": 9666, - "end": 9667, + "start": 9692, + "end": 9693, "loc": { "start": { "line": 338, @@ -70934,8 +71249,8 @@ { "type": "CommentBlock", "value": "*\n * Starts the game after lobby closes.\n * @param {boolean} emit True if this client should emit the event to the server.\n * @param {*} teams Array of teams on the scoreboard.\n ", - "start": 9669, - "end": 9851, + "start": 9695, + "end": 9877, "loc": { "start": { "line": 340, @@ -70962,8 +71277,8 @@ "updateContext": null }, "value": "export", - "start": 9852, - "end": 9858, + "start": 9878, + "end": 9884, "loc": { "start": { "line": 345, @@ -70989,8 +71304,8 @@ "binop": null }, "value": "function", - "start": 9859, - "end": 9867, + "start": 9885, + "end": 9893, "loc": { "start": { "line": 345, @@ -71015,8 +71330,8 @@ "binop": null }, "value": "startGame", - "start": 9868, - "end": 9877, + "start": 9894, + "end": 9903, "loc": { "start": { "line": 345, @@ -71040,8 +71355,8 @@ "postfix": false, "binop": null }, - "start": 9878, - "end": 9879, + "start": 9904, + "end": 9905, "loc": { "start": { "line": 345, @@ -71066,8 +71381,8 @@ "binop": null }, "value": "emit", - "start": 9879, - "end": 9883, + "start": 9905, + "end": 9909, "loc": { "start": { "line": 345, @@ -71092,8 +71407,8 @@ "binop": null, "updateContext": null }, - "start": 9883, - "end": 9884, + "start": 9909, + "end": 9910, "loc": { "start": { "line": 345, @@ -71118,8 +71433,8 @@ "binop": null }, "value": "teams", - "start": 9885, - "end": 9890, + "start": 9911, + "end": 9916, "loc": { "start": { "line": 345, @@ -71143,8 +71458,8 @@ "postfix": false, "binop": null }, - "start": 9890, - "end": 9891, + "start": 9916, + "end": 9917, "loc": { "start": { "line": 345, @@ -71168,8 +71483,8 @@ "postfix": false, "binop": null }, - "start": 9892, - "end": 9893, + "start": 9918, + "end": 9919, "loc": { "start": { "line": 345, @@ -71194,8 +71509,8 @@ "binop": null }, "value": "setIngame", - "start": 9895, - "end": 9904, + "start": 9921, + "end": 9930, "loc": { "start": { "line": 346, @@ -71219,8 +71534,8 @@ "postfix": false, "binop": null }, - "start": 9904, - "end": 9905, + "start": 9930, + "end": 9931, "loc": { "start": { "line": 346, @@ -71247,8 +71562,8 @@ "updateContext": null }, "value": "true", - "start": 9905, - "end": 9909, + "start": 9931, + "end": 9935, "loc": { "start": { "line": 346, @@ -71272,8 +71587,8 @@ "postfix": false, "binop": null }, - "start": 9909, - "end": 9910, + "start": 9935, + "end": 9936, "loc": { "start": { "line": 346, @@ -71298,8 +71613,8 @@ "binop": null }, "value": "hideElement", - "start": 9912, - "end": 9923, + "start": 9938, + "end": 9949, "loc": { "start": { "line": 347, @@ -71323,8 +71638,8 @@ "postfix": false, "binop": null }, - "start": 9923, - "end": 9924, + "start": 9949, + "end": 9950, "loc": { "start": { "line": 347, @@ -71350,8 +71665,8 @@ "updateContext": null }, "value": "lobby", - "start": 9924, - "end": 9931, + "start": 9950, + "end": 9957, "loc": { "start": { "line": 347, @@ -71375,8 +71690,8 @@ "postfix": false, "binop": null }, - "start": 9931, - "end": 9932, + "start": 9957, + "end": 9958, "loc": { "start": { "line": 347, @@ -71401,8 +71716,8 @@ "binop": null }, "value": "showElement", - "start": 9934, - "end": 9945, + "start": 9960, + "end": 9971, "loc": { "start": { "line": 348, @@ -71426,8 +71741,8 @@ "postfix": false, "binop": null }, - "start": 9945, - "end": 9946, + "start": 9971, + "end": 9972, "loc": { "start": { "line": 348, @@ -71453,8 +71768,8 @@ "updateContext": null }, "value": "hud", - "start": 9946, - "end": 9951, + "start": 9972, + "end": 9977, "loc": { "start": { "line": 348, @@ -71478,8 +71793,8 @@ "postfix": false, "binop": null }, - "start": 9951, - "end": 9952, + "start": 9977, + "end": 9978, "loc": { "start": { "line": 348, @@ -71506,8 +71821,8 @@ "updateContext": null }, "value": "if", - "start": 9954, - "end": 9956, + "start": 9980, + "end": 9982, "loc": { "start": { "line": 349, @@ -71531,8 +71846,8 @@ "postfix": false, "binop": null }, - "start": 9957, - "end": 9958, + "start": 9983, + "end": 9984, "loc": { "start": { "line": 349, @@ -71557,8 +71872,8 @@ "binop": null }, "value": "emit", - "start": 9958, - "end": 9962, + "start": 9984, + "end": 9988, "loc": { "start": { "line": 349, @@ -71582,8 +71897,8 @@ "postfix": false, "binop": null }, - "start": 9962, - "end": 9963, + "start": 9988, + "end": 9989, "loc": { "start": { "line": 349, @@ -71607,8 +71922,8 @@ "postfix": false, "binop": null }, - "start": 9964, - "end": 9965, + "start": 9990, + "end": 9991, "loc": { "start": { "line": 349, @@ -71633,8 +71948,8 @@ "binop": null }, "value": "socket", - "start": 9968, - "end": 9974, + "start": 9994, + "end": 10000, "loc": { "start": { "line": 350, @@ -71659,8 +71974,8 @@ "binop": null, "updateContext": null }, - "start": 9974, - "end": 9975, + "start": 10000, + "end": 10001, "loc": { "start": { "line": 350, @@ -71685,8 +72000,8 @@ "binop": null }, "value": "emit", - "start": 9975, - "end": 9979, + "start": 10001, + "end": 10005, "loc": { "start": { "line": 350, @@ -71710,8 +72025,8 @@ "postfix": false, "binop": null }, - "start": 9979, - "end": 9980, + "start": 10005, + "end": 10006, "loc": { "start": { "line": 350, @@ -71737,8 +72052,8 @@ "updateContext": null }, "value": "startGame", - "start": 9980, - "end": 9991, + "start": 10006, + "end": 10017, "loc": { "start": { "line": 350, @@ -71763,8 +72078,8 @@ "binop": null, "updateContext": null }, - "start": 9991, - "end": 9992, + "start": 10017, + "end": 10018, "loc": { "start": { "line": 350, @@ -71788,8 +72103,8 @@ "postfix": false, "binop": null }, - "start": 9993, - "end": 9994, + "start": 10019, + "end": 10020, "loc": { "start": { "line": 350, @@ -71814,8 +72129,8 @@ "binop": null }, "value": "start", - "start": 9998, - "end": 10003, + "start": 10024, + "end": 10029, "loc": { "start": { "line": 351, @@ -71840,8 +72155,8 @@ "binop": null, "updateContext": null }, - "start": 10003, - "end": 10004, + "start": 10029, + "end": 10030, "loc": { "start": { "line": 351, @@ -71868,8 +72183,8 @@ "updateContext": null }, "value": "true", - "start": 10005, - "end": 10009, + "start": 10031, + "end": 10035, "loc": { "start": { "line": 351, @@ -71893,8 +72208,8 @@ "postfix": false, "binop": null }, - "start": 10012, - "end": 10013, + "start": 10038, + "end": 10039, "loc": { "start": { "line": 352, @@ -71918,8 +72233,8 @@ "postfix": false, "binop": null }, - "start": 10013, - "end": 10014, + "start": 10039, + "end": 10040, "loc": { "start": { "line": 352, @@ -71943,8 +72258,8 @@ "postfix": false, "binop": null }, - "start": 10016, - "end": 10017, + "start": 10042, + "end": 10043, "loc": { "start": { "line": 353, @@ -71959,8 +72274,8 @@ { "type": "CommentLine", "value": " Init scoreboard", - "start": 10020, - "end": 10038, + "start": 10046, + "end": 10064, "loc": { "start": { "line": 355, @@ -71987,8 +72302,8 @@ "updateContext": null }, "value": "if", - "start": 10040, - "end": 10042, + "start": 10066, + "end": 10068, "loc": { "start": { "line": 356, @@ -72012,8 +72327,8 @@ "postfix": false, "binop": null }, - "start": 10043, - "end": 10044, + "start": 10069, + "end": 10070, "loc": { "start": { "line": 356, @@ -72038,8 +72353,8 @@ "binop": null }, "value": "teams", - "start": 10044, - "end": 10049, + "start": 10070, + "end": 10075, "loc": { "start": { "line": 356, @@ -72065,8 +72380,8 @@ "updateContext": null }, "value": "!==", - "start": 10050, - "end": 10053, + "start": 10076, + "end": 10079, "loc": { "start": { "line": 356, @@ -72091,8 +72406,8 @@ "binop": null }, "value": "undefined", - "start": 10054, - "end": 10063, + "start": 10080, + "end": 10089, "loc": { "start": { "line": 356, @@ -72116,8 +72431,8 @@ "postfix": false, "binop": null }, - "start": 10063, - "end": 10064, + "start": 10089, + "end": 10090, "loc": { "start": { "line": 356, @@ -72141,8 +72456,8 @@ "postfix": false, "binop": null }, - "start": 10065, - "end": 10066, + "start": 10091, + "end": 10092, "loc": { "start": { "line": 356, @@ -72157,8 +72472,8 @@ { "type": "CommentLine", "value": " Reset scoreboard from previous rounds", - "start": 10069, - "end": 10109, + "start": 10095, + "end": 10135, "loc": { "start": { "line": 357, @@ -72183,8 +72498,8 @@ "binop": null }, "value": "document", - "start": 10112, - "end": 10120, + "start": 10138, + "end": 10146, "loc": { "start": { "line": 358, @@ -72209,8 +72524,8 @@ "binop": null, "updateContext": null }, - "start": 10120, - "end": 10121, + "start": 10146, + "end": 10147, "loc": { "start": { "line": 358, @@ -72235,8 +72550,8 @@ "binop": null }, "value": "getElementById", - "start": 10121, - "end": 10135, + "start": 10147, + "end": 10161, "loc": { "start": { "line": 358, @@ -72260,8 +72575,8 @@ "postfix": false, "binop": null }, - "start": 10135, - "end": 10136, + "start": 10161, + "end": 10162, "loc": { "start": { "line": 358, @@ -72287,8 +72602,8 @@ "updateContext": null }, "value": "score", - "start": 10136, - "end": 10143, + "start": 10162, + "end": 10169, "loc": { "start": { "line": 358, @@ -72312,8 +72627,8 @@ "postfix": false, "binop": null }, - "start": 10143, - "end": 10144, + "start": 10169, + "end": 10170, "loc": { "start": { "line": 358, @@ -72338,8 +72653,8 @@ "binop": null, "updateContext": null }, - "start": 10144, - "end": 10145, + "start": 10170, + "end": 10171, "loc": { "start": { "line": 358, @@ -72364,8 +72679,8 @@ "binop": null }, "value": "innerHTML", - "start": 10145, - "end": 10154, + "start": 10171, + "end": 10180, "loc": { "start": { "line": 358, @@ -72391,8 +72706,8 @@ "updateContext": null }, "value": "=", - "start": 10155, - "end": 10156, + "start": 10181, + "end": 10182, "loc": { "start": { "line": 358, @@ -72418,8 +72733,8 @@ "updateContext": null }, "value": "", - "start": 10157, - "end": 10159, + "start": 10183, + "end": 10185, "loc": { "start": { "line": 358, @@ -72446,8 +72761,8 @@ "updateContext": null }, "value": "for", - "start": 10163, - "end": 10166, + "start": 10189, + "end": 10192, "loc": { "start": { "line": 360, @@ -72471,8 +72786,8 @@ "postfix": false, "binop": null }, - "start": 10167, - "end": 10168, + "start": 10193, + "end": 10194, "loc": { "start": { "line": 360, @@ -72499,8 +72814,8 @@ "updateContext": null }, "value": "let", - "start": 10168, - "end": 10171, + "start": 10194, + "end": 10197, "loc": { "start": { "line": 360, @@ -72525,8 +72840,8 @@ "binop": null }, "value": "i", - "start": 10172, - "end": 10173, + "start": 10198, + "end": 10199, "loc": { "start": { "line": 360, @@ -72552,8 +72867,8 @@ "updateContext": null }, "value": "=", - "start": 10174, - "end": 10175, + "start": 10200, + "end": 10201, "loc": { "start": { "line": 360, @@ -72579,8 +72894,8 @@ "updateContext": null }, "value": 0, - "start": 10176, - "end": 10177, + "start": 10202, + "end": 10203, "loc": { "start": { "line": 360, @@ -72605,8 +72920,8 @@ "binop": null, "updateContext": null }, - "start": 10177, - "end": 10178, + "start": 10203, + "end": 10204, "loc": { "start": { "line": 360, @@ -72631,8 +72946,8 @@ "binop": null }, "value": "i", - "start": 10179, - "end": 10180, + "start": 10205, + "end": 10206, "loc": { "start": { "line": 360, @@ -72658,8 +72973,8 @@ "updateContext": null }, "value": "<", - "start": 10181, - "end": 10182, + "start": 10207, + "end": 10208, "loc": { "start": { "line": 360, @@ -72684,8 +72999,8 @@ "binop": null }, "value": "teams", - "start": 10183, - "end": 10188, + "start": 10209, + "end": 10214, "loc": { "start": { "line": 360, @@ -72710,8 +73025,8 @@ "binop": null, "updateContext": null }, - "start": 10188, - "end": 10189, + "start": 10214, + "end": 10215, "loc": { "start": { "line": 360, @@ -72736,8 +73051,8 @@ "binop": null }, "value": "length", - "start": 10189, - "end": 10195, + "start": 10215, + "end": 10221, "loc": { "start": { "line": 360, @@ -72762,8 +73077,8 @@ "binop": null, "updateContext": null }, - "start": 10195, - "end": 10196, + "start": 10221, + "end": 10222, "loc": { "start": { "line": 360, @@ -72788,8 +73103,8 @@ "binop": null }, "value": "i", - "start": 10197, - "end": 10198, + "start": 10223, + "end": 10224, "loc": { "start": { "line": 360, @@ -72814,8 +73129,8 @@ "binop": null }, "value": "++", - "start": 10198, - "end": 10200, + "start": 10224, + "end": 10226, "loc": { "start": { "line": 360, @@ -72839,8 +73154,8 @@ "postfix": false, "binop": null }, - "start": 10200, - "end": 10201, + "start": 10226, + "end": 10227, "loc": { "start": { "line": 360, @@ -72864,8 +73179,8 @@ "postfix": false, "binop": null }, - "start": 10202, - "end": 10203, + "start": 10228, + "end": 10229, "loc": { "start": { "line": 360, @@ -72890,8 +73205,8 @@ "binop": null }, "value": "document", - "start": 10207, - "end": 10215, + "start": 10233, + "end": 10241, "loc": { "start": { "line": 361, @@ -72916,8 +73231,8 @@ "binop": null, "updateContext": null }, - "start": 10215, - "end": 10216, + "start": 10241, + "end": 10242, "loc": { "start": { "line": 361, @@ -72942,8 +73257,8 @@ "binop": null }, "value": "getElementById", - "start": 10216, - "end": 10230, + "start": 10242, + "end": 10256, "loc": { "start": { "line": 361, @@ -72967,8 +73282,8 @@ "postfix": false, "binop": null }, - "start": 10230, - "end": 10231, + "start": 10256, + "end": 10257, "loc": { "start": { "line": 361, @@ -72994,8 +73309,8 @@ "updateContext": null }, "value": "score", - "start": 10231, - "end": 10238, + "start": 10257, + "end": 10264, "loc": { "start": { "line": 361, @@ -73019,8 +73334,8 @@ "postfix": false, "binop": null }, - "start": 10238, - "end": 10239, + "start": 10264, + "end": 10265, "loc": { "start": { "line": 361, @@ -73045,8 +73360,8 @@ "binop": null, "updateContext": null }, - "start": 10239, - "end": 10240, + "start": 10265, + "end": 10266, "loc": { "start": { "line": 361, @@ -73071,8 +73386,8 @@ "binop": null }, "value": "innerHTML", - "start": 10240, - "end": 10249, + "start": 10266, + "end": 10275, "loc": { "start": { "line": 361, @@ -73098,8 +73413,8 @@ "updateContext": null }, "value": "+=", - "start": 10250, - "end": 10252, + "start": 10276, + "end": 10278, "loc": { "start": { "line": 361, @@ -73125,8 +73440,8 @@ "updateContext": null }, "value": "-0", - "start": 10284, - "end": 10296, + "start": 10310, + "end": 10322, "loc": { "start": { "line": 361, @@ -73258,8 +73573,8 @@ "binop": null }, "value": "document", - "start": 10300, - "end": 10308, + "start": 10326, + "end": 10334, "loc": { "start": { "line": 362, @@ -73284,8 +73599,8 @@ "binop": null, "updateContext": null }, - "start": 10308, - "end": 10309, + "start": 10334, + "end": 10335, "loc": { "start": { "line": 362, @@ -73310,8 +73625,8 @@ "binop": null }, "value": "getElementById", - "start": 10309, - "end": 10323, + "start": 10335, + "end": 10349, "loc": { "start": { "line": 362, @@ -73335,8 +73650,8 @@ "postfix": false, "binop": null }, - "start": 10323, - "end": 10324, + "start": 10349, + "end": 10350, "loc": { "start": { "line": 362, @@ -73362,8 +73677,8 @@ "updateContext": null }, "value": "team-score-", - "start": 10324, - "end": 10337, + "start": 10350, + "end": 10363, "loc": { "start": { "line": 362, @@ -73389,8 +73704,8 @@ "updateContext": null }, "value": "+", - "start": 10338, - "end": 10339, + "start": 10364, + "end": 10365, "loc": { "start": { "line": 362, @@ -73415,8 +73730,8 @@ "binop": null }, "value": "i", - "start": 10340, - "end": 10341, + "start": 10366, + "end": 10367, "loc": { "start": { "line": 362, @@ -73440,8 +73755,8 @@ "postfix": false, "binop": null }, - "start": 10341, - "end": 10342, + "start": 10367, + "end": 10368, "loc": { "start": { "line": 362, @@ -73466,8 +73781,8 @@ "binop": null, "updateContext": null }, - "start": 10342, - "end": 10343, + "start": 10368, + "end": 10369, "loc": { "start": { "line": 362, @@ -73492,8 +73807,8 @@ "binop": null }, "value": "style", - "start": 10343, - "end": 10348, + "start": 10369, + "end": 10374, "loc": { "start": { "line": 362, @@ -73518,8 +73833,8 @@ "binop": null, "updateContext": null }, - "start": 10348, - "end": 10349, + "start": 10374, + "end": 10375, "loc": { "start": { "line": 362, @@ -73544,8 +73859,8 @@ "binop": null }, "value": "color", - "start": 10349, - "end": 10354, + "start": 10375, + "end": 10380, "loc": { "start": { "line": 362, @@ -73571,8 +73886,8 @@ "updateContext": null }, "value": "=", - "start": 10355, - "end": 10356, + "start": 10381, + "end": 10382, "loc": { "start": { "line": 362, @@ -73598,8 +73913,8 @@ "updateContext": null }, "value": "#", - "start": 10357, - "end": 10360, + "start": 10383, + "end": 10386, "loc": { "start": { "line": 362, @@ -73625,8 +73940,8 @@ "updateContext": null }, "value": "+", - "start": 10361, - "end": 10362, + "start": 10387, + "end": 10388, "loc": { "start": { "line": 362, @@ -73651,8 +73966,8 @@ "binop": null }, "value": "GLOBAL", - "start": 10363, - "end": 10369, + "start": 10389, + "end": 10395, "loc": { "start": { "line": 362, @@ -73677,8 +73992,8 @@ "binop": null, "updateContext": null }, - "start": 10369, - "end": 10370, + "start": 10395, + "end": 10396, "loc": { "start": { "line": 362, @@ -73703,8 +74018,8 @@ "binop": null }, "value": "TEAM_COLORS", - "start": 10370, - "end": 10381, + "start": 10396, + "end": 10407, "loc": { "start": { "line": 362, @@ -73729,8 +74044,8 @@ "binop": null, "updateContext": null }, - "start": 10381, - "end": 10382, + "start": 10407, + "end": 10408, "loc": { "start": { "line": 362, @@ -73755,8 +74070,8 @@ "binop": null }, "value": "i", - "start": 10382, - "end": 10383, + "start": 10408, + "end": 10409, "loc": { "start": { "line": 362, @@ -73781,8 +74096,8 @@ "binop": null, "updateContext": null }, - "start": 10383, - "end": 10384, + "start": 10409, + "end": 10410, "loc": { "start": { "line": 362, @@ -73806,8 +74121,8 @@ "postfix": false, "binop": null }, - "start": 10387, - "end": 10388, + "start": 10413, + "end": 10414, "loc": { "start": { "line": 363, @@ -73832,8 +74147,8 @@ "binop": null }, "value": "document", - "start": 10391, - "end": 10399, + "start": 10417, + "end": 10425, "loc": { "start": { "line": 364, @@ -73858,8 +74173,8 @@ "binop": null, "updateContext": null }, - "start": 10399, - "end": 10400, + "start": 10425, + "end": 10426, "loc": { "start": { "line": 364, @@ -73884,8 +74199,8 @@ "binop": null }, "value": "getElementById", - "start": 10400, - "end": 10414, + "start": 10426, + "end": 10440, "loc": { "start": { "line": 364, @@ -73909,8 +74224,8 @@ "postfix": false, "binop": null }, - "start": 10414, - "end": 10415, + "start": 10440, + "end": 10441, "loc": { "start": { "line": 364, @@ -73936,8 +74251,8 @@ "updateContext": null }, "value": "score", - "start": 10415, - "end": 10422, + "start": 10441, + "end": 10448, "loc": { "start": { "line": 364, @@ -73961,8 +74276,8 @@ "postfix": false, "binop": null }, - "start": 10422, - "end": 10423, + "start": 10448, + "end": 10449, "loc": { "start": { "line": 364, @@ -73987,8 +74302,8 @@ "binop": null, "updateContext": null }, - "start": 10423, - "end": 10424, + "start": 10449, + "end": 10450, "loc": { "start": { "line": 364, @@ -74013,8 +74328,8 @@ "binop": null }, "value": "style", - "start": 10424, - "end": 10429, + "start": 10450, + "end": 10455, "loc": { "start": { "line": 364, @@ -74039,8 +74354,8 @@ "binop": null, "updateContext": null }, - "start": 10429, - "end": 10430, + "start": 10455, + "end": 10456, "loc": { "start": { "line": 364, @@ -74065,8 +74380,8 @@ "binop": null }, "value": "fontSize", - "start": 10430, - "end": 10438, + "start": 10456, + "end": 10464, "loc": { "start": { "line": 364, @@ -74092,8 +74407,8 @@ "updateContext": null }, "value": "=", - "start": 10439, - "end": 10440, + "start": 10465, + "end": 10466, "loc": { "start": { "line": 364, @@ -74119,8 +74434,8 @@ "updateContext": null }, "value": "3vw", - "start": 10441, - "end": 10446, + "start": 10467, + "end": 10472, "loc": { "start": { "line": 364, @@ -74145,8 +74460,8 @@ "binop": null }, "value": "document", - "start": 10449, - "end": 10457, + "start": 10475, + "end": 10483, "loc": { "start": { "line": 365, @@ -74171,8 +74486,8 @@ "binop": null, "updateContext": null }, - "start": 10457, - "end": 10458, + "start": 10483, + "end": 10484, "loc": { "start": { "line": 365, @@ -74197,8 +74512,8 @@ "binop": null }, "value": "getElementById", - "start": 10458, - "end": 10472, + "start": 10484, + "end": 10498, "loc": { "start": { "line": 365, @@ -74222,8 +74537,8 @@ "postfix": false, "binop": null }, - "start": 10472, - "end": 10473, + "start": 10498, + "end": 10499, "loc": { "start": { "line": 365, @@ -74249,8 +74564,8 @@ "updateContext": null }, "value": "score", - "start": 10473, - "end": 10480, + "start": 10499, + "end": 10506, "loc": { "start": { "line": 365, @@ -74274,8 +74589,8 @@ "postfix": false, "binop": null }, - "start": 10480, - "end": 10481, + "start": 10506, + "end": 10507, "loc": { "start": { "line": 365, @@ -74300,8 +74615,8 @@ "binop": null, "updateContext": null }, - "start": 10481, - "end": 10482, + "start": 10507, + "end": 10508, "loc": { "start": { "line": 365, @@ -74326,8 +74641,8 @@ "binop": null }, "value": "innerHTML", - "start": 10482, - "end": 10491, + "start": 10508, + "end": 10517, "loc": { "start": { "line": 365, @@ -74353,8 +74668,8 @@ "updateContext": null }, "value": "+=", - "start": 10492, - "end": 10494, + "start": 10518, + "end": 10520, "loc": { "start": { "line": 365, @@ -74380,8 +74695,8 @@ "updateContext": null }, "value": "-", - "start": 10495, - "end": 10498, + "start": 10521, + "end": 10524, "loc": { "start": { "line": 365, @@ -74405,8 +74720,8 @@ "postfix": false, "binop": null }, - "start": 10500, - "end": 10501, + "start": 10526, + "end": 10527, "loc": { "start": { "line": 366, @@ -74430,8 +74745,8 @@ "postfix": false, "binop": null }, - "start": 10502, - "end": 10503, + "start": 10528, + "end": 10529, "loc": { "start": { "line": 367, @@ -74446,8 +74761,8 @@ { "type": "CommentBlock", "value": "*\n * Sets the value of inGame\n * @param {boolean} newValue Value to set inGame to\n ", - "start": 10505, - "end": 10592, + "start": 10531, + "end": 10618, "loc": { "start": { "line": 369, @@ -74474,8 +74789,8 @@ "updateContext": null }, "value": "export", - "start": 10593, - "end": 10599, + "start": 10619, + "end": 10625, "loc": { "start": { "line": 373, @@ -74501,8 +74816,8 @@ "binop": null }, "value": "function", - "start": 10600, - "end": 10608, + "start": 10626, + "end": 10634, "loc": { "start": { "line": 373, @@ -74527,8 +74842,8 @@ "binop": null }, "value": "setIngame", - "start": 10609, - "end": 10618, + "start": 10635, + "end": 10644, "loc": { "start": { "line": 373, @@ -74552,8 +74867,8 @@ "postfix": false, "binop": null }, - "start": 10619, - "end": 10620, + "start": 10645, + "end": 10646, "loc": { "start": { "line": 373, @@ -74578,8 +74893,8 @@ "binop": null }, "value": "newValue", - "start": 10620, - "end": 10628, + "start": 10646, + "end": 10654, "loc": { "start": { "line": 373, @@ -74603,8 +74918,8 @@ "postfix": false, "binop": null }, - "start": 10628, - "end": 10629, + "start": 10654, + "end": 10655, "loc": { "start": { "line": 373, @@ -74628,8 +74943,8 @@ "postfix": false, "binop": null }, - "start": 10630, - "end": 10631, + "start": 10656, + "end": 10657, "loc": { "start": { "line": 373, @@ -74654,8 +74969,8 @@ "binop": null }, "value": "inGame", - "start": 10633, - "end": 10639, + "start": 10659, + "end": 10665, "loc": { "start": { "line": 374, @@ -74681,8 +74996,8 @@ "updateContext": null }, "value": "=", - "start": 10640, - "end": 10641, + "start": 10666, + "end": 10667, "loc": { "start": { "line": 374, @@ -74707,8 +75022,8 @@ "binop": null }, "value": "newValue", - "start": 10642, - "end": 10650, + "start": 10668, + "end": 10676, "loc": { "start": { "line": 374, @@ -74732,8 +75047,8 @@ "postfix": false, "binop": null }, - "start": 10651, - "end": 10652, + "start": 10677, + "end": 10678, "loc": { "start": { "line": 375, @@ -74748,8 +75063,8 @@ { "type": "CommentBlock", "value": "*\n * @returns {boolean} Returns inGame variable\n ", - "start": 10654, - "end": 10707, + "start": 10680, + "end": 10733, "loc": { "start": { "line": 377, @@ -74776,8 +75091,8 @@ "updateContext": null }, "value": "export", - "start": 10708, - "end": 10714, + "start": 10734, + "end": 10740, "loc": { "start": { "line": 380, @@ -74803,8 +75118,8 @@ "binop": null }, "value": "function", - "start": 10715, - "end": 10723, + "start": 10741, + "end": 10749, "loc": { "start": { "line": 380, @@ -74829,8 +75144,8 @@ "binop": null }, "value": "getIngame", - "start": 10724, - "end": 10733, + "start": 10750, + "end": 10759, "loc": { "start": { "line": 380, @@ -74854,8 +75169,8 @@ "postfix": false, "binop": null }, - "start": 10734, - "end": 10735, + "start": 10760, + "end": 10761, "loc": { "start": { "line": 380, @@ -74879,8 +75194,8 @@ "postfix": false, "binop": null }, - "start": 10735, - "end": 10736, + "start": 10761, + "end": 10762, "loc": { "start": { "line": 380, @@ -74904,8 +75219,8 @@ "postfix": false, "binop": null }, - "start": 10737, - "end": 10738, + "start": 10763, + "end": 10764, "loc": { "start": { "line": 380, @@ -74932,8 +75247,8 @@ "updateContext": null }, "value": "return", - "start": 10740, - "end": 10746, + "start": 10766, + "end": 10772, "loc": { "start": { "line": 381, @@ -74958,8 +75273,8 @@ "binop": null }, "value": "inGame", - "start": 10747, - "end": 10753, + "start": 10773, + "end": 10779, "loc": { "start": { "line": 381, @@ -74983,8 +75298,8 @@ "postfix": false, "binop": null }, - "start": 10754, - "end": 10755, + "start": 10780, + "end": 10781, "loc": { "start": { "line": 382, @@ -74999,8 +75314,8 @@ { "type": "CommentBlock", "value": "*\n * Called on mouse up from app.js\n * @param {*} e Click event\n ", - "start": 10757, - "end": 10826, + "start": 10783, + "end": 10852, "loc": { "start": { "line": 384, @@ -75027,8 +75342,8 @@ "updateContext": null }, "value": "export", - "start": 10827, - "end": 10833, + "start": 10853, + "end": 10859, "loc": { "start": { "line": 388, @@ -75054,8 +75369,8 @@ "binop": null }, "value": "function", - "start": 10834, - "end": 10842, + "start": 10860, + "end": 10868, "loc": { "start": { "line": 388, @@ -75080,8 +75395,8 @@ "binop": null }, "value": "mouseUpHandler", - "start": 10843, - "end": 10857, + "start": 10869, + "end": 10883, "loc": { "start": { "line": 388, @@ -75105,8 +75420,8 @@ "postfix": false, "binop": null }, - "start": 10858, - "end": 10859, + "start": 10884, + "end": 10885, "loc": { "start": { "line": 388, @@ -75131,8 +75446,8 @@ "binop": null }, "value": "e", - "start": 10859, - "end": 10860, + "start": 10885, + "end": 10886, "loc": { "start": { "line": 388, @@ -75156,8 +75471,8 @@ "postfix": false, "binop": null }, - "start": 10860, - "end": 10861, + "start": 10886, + "end": 10887, "loc": { "start": { "line": 388, @@ -75181,8 +75496,8 @@ "postfix": false, "binop": null }, - "start": 10862, - "end": 10863, + "start": 10888, + "end": 10889, "loc": { "start": { "line": 388, @@ -75207,8 +75522,8 @@ "binop": null }, "value": "mouseDown", - "start": 10865, - "end": 10874, + "start": 10891, + "end": 10900, "loc": { "start": { "line": 389, @@ -75234,8 +75549,8 @@ "updateContext": null }, "value": "=", - "start": 10875, - "end": 10876, + "start": 10901, + "end": 10902, "loc": { "start": { "line": 389, @@ -75262,8 +75577,8 @@ "updateContext": null }, "value": "true", - "start": 10877, - "end": 10881, + "start": 10903, + "end": 10907, "loc": { "start": { "line": 389, @@ -75290,8 +75605,8 @@ "updateContext": null }, "value": "if", - "start": 10883, - "end": 10885, + "start": 10909, + "end": 10911, "loc": { "start": { "line": 390, @@ -75315,8 +75630,8 @@ "postfix": false, "binop": null }, - "start": 10886, - "end": 10887, + "start": 10912, + "end": 10913, "loc": { "start": { "line": 390, @@ -75341,8 +75656,8 @@ "binop": null }, "value": "selectedBlueprints", - "start": 10887, - "end": 10905, + "start": 10913, + "end": 10931, "loc": { "start": { "line": 390, @@ -75367,8 +75682,8 @@ "binop": null, "updateContext": null }, - "start": 10905, - "end": 10906, + "start": 10931, + "end": 10932, "loc": { "start": { "line": 390, @@ -75393,8 +75708,8 @@ "binop": null }, "value": "selectedCompound", - "start": 10906, - "end": 10922, + "start": 10932, + "end": 10948, "loc": { "start": { "line": 390, @@ -75419,8 +75734,8 @@ "binop": null, "updateContext": null }, - "start": 10922, - "end": 10923, + "start": 10948, + "end": 10949, "loc": { "start": { "line": 390, @@ -75446,8 +75761,8 @@ "updateContext": null }, "value": "&&", - "start": 10924, - "end": 10926, + "start": 10950, + "end": 10952, "loc": { "start": { "line": 390, @@ -75472,8 +75787,8 @@ "binop": null }, "value": "selectedBlueprints", - "start": 10927, - "end": 10945, + "start": 10953, + "end": 10971, "loc": { "start": { "line": 390, @@ -75498,8 +75813,8 @@ "binop": null, "updateContext": null }, - "start": 10945, - "end": 10946, + "start": 10971, + "end": 10972, "loc": { "start": { "line": 390, @@ -75524,8 +75839,8 @@ "binop": null }, "value": "selectedCompound", - "start": 10946, - "end": 10962, + "start": 10972, + "end": 10988, "loc": { "start": { "line": 390, @@ -75550,8 +75865,8 @@ "binop": null, "updateContext": null }, - "start": 10962, - "end": 10963, + "start": 10988, + "end": 10989, "loc": { "start": { "line": 390, @@ -75576,8 +75891,8 @@ "binop": null, "updateContext": null }, - "start": 10963, - "end": 10964, + "start": 10989, + "end": 10990, "loc": { "start": { "line": 390, @@ -75602,8 +75917,8 @@ "binop": null }, "value": "type", - "start": 10964, - "end": 10968, + "start": 10990, + "end": 10994, "loc": { "start": { "line": 390, @@ -75629,8 +75944,8 @@ "updateContext": null }, "value": "!==", - "start": 10969, - "end": 10972, + "start": 10995, + "end": 10998, "loc": { "start": { "line": 390, @@ -75656,8 +75971,8 @@ "updateContext": null }, "value": "stream", - "start": 10973, - "end": 10981, + "start": 10999, + "end": 11007, "loc": { "start": { "line": 390, @@ -75681,8 +75996,8 @@ "postfix": false, "binop": null }, - "start": 10981, - "end": 10982, + "start": 11007, + "end": 11008, "loc": { "start": { "line": 390, @@ -75706,8 +76021,8 @@ "postfix": false, "binop": null }, - "start": 10983, - "end": 10984, + "start": 11009, + "end": 11010, "loc": { "start": { "line": 390, @@ -75732,8 +76047,8 @@ "binop": null }, "value": "shootHandler", - "start": 10987, - "end": 10999, + "start": 11013, + "end": 11025, "loc": { "start": { "line": 391, @@ -75757,8 +76072,8 @@ "postfix": false, "binop": null }, - "start": 10999, - "end": 11000, + "start": 11025, + "end": 11026, "loc": { "start": { "line": 391, @@ -75783,8 +76098,8 @@ "binop": null }, "value": "e", - "start": 11000, - "end": 11001, + "start": 11026, + "end": 11027, "loc": { "start": { "line": 391, @@ -75809,8 +76124,8 @@ "binop": null, "updateContext": null }, - "start": 11001, - "end": 11002, + "start": 11027, + "end": 11028, "loc": { "start": { "line": 391, @@ -75837,8 +76152,8 @@ "updateContext": null }, "value": "false", - "start": 11003, - "end": 11008, + "start": 11029, + "end": 11034, "loc": { "start": { "line": 391, @@ -75862,8 +76177,8 @@ "postfix": false, "binop": null }, - "start": 11008, - "end": 11009, + "start": 11034, + "end": 11035, "loc": { "start": { "line": 391, @@ -75887,8 +76202,8 @@ "postfix": false, "binop": null }, - "start": 11011, - "end": 11012, + "start": 11037, + "end": 11038, "loc": { "start": { "line": 392, @@ -75912,8 +76227,8 @@ "postfix": false, "binop": null }, - "start": 11013, - "end": 11014, + "start": 11039, + "end": 11040, "loc": { "start": { "line": 393, @@ -75928,8 +76243,8 @@ { "type": "CommentBlock", "value": "*\n * Called on mouse down from app.js\n * @param {*} e Click event\n ", - "start": 11015, - "end": 11086, + "start": 11041, + "end": 11112, "loc": { "start": { "line": 394, @@ -75956,8 +76271,8 @@ "updateContext": null }, "value": "export", - "start": 11087, - "end": 11093, + "start": 11113, + "end": 11119, "loc": { "start": { "line": 398, @@ -75983,8 +76298,8 @@ "binop": null }, "value": "function", - "start": 11094, - "end": 11102, + "start": 11120, + "end": 11128, "loc": { "start": { "line": 398, @@ -76009,8 +76324,8 @@ "binop": null }, "value": "mouseDownHandler", - "start": 11103, - "end": 11119, + "start": 11129, + "end": 11145, "loc": { "start": { "line": 398, @@ -76034,8 +76349,8 @@ "postfix": false, "binop": null }, - "start": 11120, - "end": 11121, + "start": 11146, + "end": 11147, "loc": { "start": { "line": 398, @@ -76060,8 +76375,8 @@ "binop": null }, "value": "e", - "start": 11121, - "end": 11122, + "start": 11147, + "end": 11148, "loc": { "start": { "line": 398, @@ -76085,8 +76400,8 @@ "postfix": false, "binop": null }, - "start": 11122, - "end": 11123, + "start": 11148, + "end": 11149, "loc": { "start": { "line": 398, @@ -76110,8 +76425,8 @@ "postfix": false, "binop": null }, - "start": 11124, - "end": 11125, + "start": 11150, + "end": 11151, "loc": { "start": { "line": 398, @@ -76136,8 +76451,8 @@ "binop": null }, "value": "mouseDown", - "start": 11127, - "end": 11136, + "start": 11153, + "end": 11162, "loc": { "start": { "line": 399, @@ -76163,8 +76478,8 @@ "updateContext": null }, "value": "=", - "start": 11137, - "end": 11138, + "start": 11163, + "end": 11164, "loc": { "start": { "line": 399, @@ -76191,8 +76506,8 @@ "updateContext": null }, "value": "false", - "start": 11139, - "end": 11144, + "start": 11165, + "end": 11170, "loc": { "start": { "line": 399, @@ -76217,8 +76532,8 @@ "binop": null }, "value": "streamID", - "start": 11146, - "end": 11154, + "start": 11172, + "end": 11180, "loc": { "start": { "line": 400, @@ -76244,8 +76559,8 @@ "updateContext": null }, "value": "=", - "start": 11155, - "end": 11156, + "start": 11181, + "end": 11182, "loc": { "start": { "line": 400, @@ -76271,8 +76586,8 @@ "updateContext": null }, "value": 0, - "start": 11157, - "end": 11158, + "start": 11183, + "end": 11184, "loc": { "start": { "line": 400, @@ -76296,8 +76611,8 @@ "postfix": false, "binop": null }, - "start": 11159, - "end": 11160, + "start": 11185, + "end": 11186, "loc": { "start": { "line": 401, @@ -76312,8 +76627,8 @@ { "type": "CommentBlock", "value": "*\n * Handles shooting mechanics on mouse/spacebar click/hold.\n * @param {*} e Click event\n * @param {boolean} stream True if sending a stream (such as water); false otherwise.\n ", - "start": 11162, - "end": 11343, + "start": 11188, + "end": 11369, "loc": { "start": { "line": 403, @@ -76339,8 +76654,8 @@ "binop": null }, "value": "function", - "start": 11344, - "end": 11352, + "start": 11370, + "end": 11378, "loc": { "start": { "line": 408, @@ -76365,8 +76680,8 @@ "binop": null }, "value": "shootHandler", - "start": 11353, - "end": 11365, + "start": 11379, + "end": 11391, "loc": { "start": { "line": 408, @@ -76390,8 +76705,8 @@ "postfix": false, "binop": null }, - "start": 11366, - "end": 11367, + "start": 11392, + "end": 11393, "loc": { "start": { "line": 408, @@ -76416,8 +76731,8 @@ "binop": null }, "value": "e", - "start": 11367, - "end": 11368, + "start": 11393, + "end": 11394, "loc": { "start": { "line": 408, @@ -76442,8 +76757,8 @@ "binop": null, "updateContext": null }, - "start": 11368, - "end": 11369, + "start": 11394, + "end": 11395, "loc": { "start": { "line": 408, @@ -76468,8 +76783,8 @@ "binop": null }, "value": "stream", - "start": 11370, - "end": 11376, + "start": 11396, + "end": 11402, "loc": { "start": { "line": 408, @@ -76493,8 +76808,8 @@ "postfix": false, "binop": null }, - "start": 11376, - "end": 11377, + "start": 11402, + "end": 11403, "loc": { "start": { "line": 408, @@ -76518,8 +76833,8 @@ "postfix": false, "binop": null }, - "start": 11378, - "end": 11379, + "start": 11404, + "end": 11405, "loc": { "start": { "line": 408, @@ -76546,8 +76861,8 @@ "updateContext": null }, "value": "if", - "start": 11381, - "end": 11383, + "start": 11407, + "end": 11409, "loc": { "start": { "line": 409, @@ -76571,8 +76886,8 @@ "postfix": false, "binop": null }, - "start": 11384, - "end": 11385, + "start": 11410, + "end": 11411, "loc": { "start": { "line": 409, @@ -76597,8 +76912,8 @@ "binop": null }, "value": "isFocused", - "start": 11385, - "end": 11394, + "start": 11411, + "end": 11420, "loc": { "start": { "line": 409, @@ -76622,8 +76937,8 @@ "postfix": false, "binop": null }, - "start": 11394, - "end": 11395, + "start": 11420, + "end": 11421, "loc": { "start": { "line": 409, @@ -76647,8 +76962,8 @@ "postfix": false, "binop": null }, - "start": 11395, - "end": 11396, + "start": 11421, + "end": 11422, "loc": { "start": { "line": 409, @@ -76674,8 +76989,8 @@ "updateContext": null }, "value": "&&", - "start": 11397, - "end": 11399, + "start": 11423, + "end": 11425, "loc": { "start": { "line": 409, @@ -76700,8 +77015,8 @@ "binop": null }, "value": "inGame", - "start": 11400, - "end": 11406, + "start": 11426, + "end": 11432, "loc": { "start": { "line": 409, @@ -76725,8 +77040,8 @@ "postfix": false, "binop": null }, - "start": 11406, - "end": 11407, + "start": 11432, + "end": 11433, "loc": { "start": { "line": 409, @@ -76750,8 +77065,8 @@ "postfix": false, "binop": null }, - "start": 11408, - "end": 11409, + "start": 11434, + "end": 11435, "loc": { "start": { "line": 409, @@ -76778,8 +77093,8 @@ "updateContext": null }, "value": "if", - "start": 11412, - "end": 11414, + "start": 11438, + "end": 11440, "loc": { "start": { "line": 410, @@ -76803,8 +77118,8 @@ "postfix": false, "binop": null }, - "start": 11415, - "end": 11416, + "start": 11441, + "end": 11442, "loc": { "start": { "line": 410, @@ -76829,8 +77144,8 @@ "binop": null }, "value": "stream", - "start": 11416, - "end": 11422, + "start": 11442, + "end": 11448, "loc": { "start": { "line": 410, @@ -76854,8 +77169,8 @@ "postfix": false, "binop": null }, - "start": 11422, - "end": 11423, + "start": 11448, + "end": 11449, "loc": { "start": { "line": 410, @@ -76879,8 +77194,8 @@ "postfix": false, "binop": null }, - "start": 11424, - "end": 11425, + "start": 11450, + "end": 11451, "loc": { "start": { "line": 410, @@ -76905,8 +77220,8 @@ "binop": null }, "value": "streamID", - "start": 11429, - "end": 11437, + "start": 11455, + "end": 11463, "loc": { "start": { "line": 411, @@ -76931,8 +77246,8 @@ "binop": null }, "value": "++", - "start": 11437, - "end": 11439, + "start": 11463, + "end": 11465, "loc": { "start": { "line": 411, @@ -76956,8 +77271,8 @@ "postfix": false, "binop": null }, - "start": 11442, - "end": 11443, + "start": 11468, + "end": 11469, "loc": { "start": { "line": 412, @@ -76982,8 +77297,8 @@ "binop": null }, "value": "requestCreateCompound", - "start": 11446, - "end": 11467, + "start": 11472, + "end": 11493, "loc": { "start": { "line": 413, @@ -77007,8 +77322,8 @@ "postfix": false, "binop": null }, - "start": 11467, - "end": 11468, + "start": 11493, + "end": 11494, "loc": { "start": { "line": 413, @@ -77033,8 +77348,8 @@ "binop": null }, "value": "selectedBlueprints", - "start": 11468, - "end": 11486, + "start": 11494, + "end": 11512, "loc": { "start": { "line": 413, @@ -77059,8 +77374,8 @@ "binop": null, "updateContext": null }, - "start": 11486, - "end": 11487, + "start": 11512, + "end": 11513, "loc": { "start": { "line": 413, @@ -77085,8 +77400,8 @@ "binop": null }, "value": "selectedCompound", - "start": 11487, - "end": 11503, + "start": 11513, + "end": 11529, "loc": { "start": { "line": 413, @@ -77111,8 +77426,8 @@ "binop": null, "updateContext": null }, - "start": 11503, - "end": 11504, + "start": 11529, + "end": 11530, "loc": { "start": { "line": 413, @@ -77137,8 +77452,8 @@ "binop": null, "updateContext": null }, - "start": 11504, - "end": 11505, + "start": 11530, + "end": 11531, "loc": { "start": { "line": 413, @@ -77163,8 +77478,8 @@ "binop": null }, "value": "e", - "start": 11506, - "end": 11507, + "start": 11532, + "end": 11533, "loc": { "start": { "line": 413, @@ -77189,8 +77504,8 @@ "binop": null, "updateContext": null }, - "start": 11507, - "end": 11508, + "start": 11533, + "end": 11534, "loc": { "start": { "line": 413, @@ -77215,8 +77530,8 @@ "binop": null }, "value": "clientX", - "start": 11508, - "end": 11515, + "start": 11534, + "end": 11541, "loc": { "start": { "line": 413, @@ -77241,8 +77556,8 @@ "binop": null, "updateContext": null }, - "start": 11515, - "end": 11516, + "start": 11541, + "end": 11542, "loc": { "start": { "line": 413, @@ -77267,8 +77582,8 @@ "binop": null }, "value": "e", - "start": 11517, - "end": 11518, + "start": 11543, + "end": 11544, "loc": { "start": { "line": 413, @@ -77293,8 +77608,8 @@ "binop": null, "updateContext": null }, - "start": 11518, - "end": 11519, + "start": 11544, + "end": 11545, "loc": { "start": { "line": 413, @@ -77319,8 +77634,8 @@ "binop": null }, "value": "clientY", - "start": 11519, - "end": 11526, + "start": 11545, + "end": 11552, "loc": { "start": { "line": 413, @@ -77345,8 +77660,8 @@ "binop": null, "updateContext": null }, - "start": 11526, - "end": 11527, + "start": 11552, + "end": 11553, "loc": { "start": { "line": 413, @@ -77371,8 +77686,8 @@ "binop": null }, "value": "streamID", - "start": 11528, - "end": 11536, + "start": 11554, + "end": 11562, "loc": { "start": { "line": 413, @@ -77396,8 +77711,8 @@ "postfix": false, "binop": null }, - "start": 11536, - "end": 11537, + "start": 11562, + "end": 11563, "loc": { "start": { "line": 413, @@ -77421,8 +77736,8 @@ "postfix": false, "binop": null }, - "start": 11539, - "end": 11540, + "start": 11565, + "end": 11566, "loc": { "start": { "line": 414, @@ -77446,8 +77761,8 @@ "postfix": false, "binop": null }, - "start": 11541, - "end": 11542, + "start": 11567, + "end": 11568, "loc": { "start": { "line": 415, @@ -77462,8 +77777,8 @@ { "type": "CommentLine", "value": " actually name this better bro", - "start": 11544, - "end": 11576, + "start": 11570, + "end": 11602, "loc": { "start": { "line": 417, @@ -77490,8 +77805,8 @@ "updateContext": null }, "value": "export", - "start": 11577, - "end": 11583, + "start": 11603, + "end": 11609, "loc": { "start": { "line": 418, @@ -77517,8 +77832,8 @@ "binop": null }, "value": "function", - "start": 11584, - "end": 11592, + "start": 11610, + "end": 11618, "loc": { "start": { "line": 418, @@ -77543,8 +77858,8 @@ "binop": null }, "value": "mobileMovement", - "start": 11593, - "end": 11607, + "start": 11619, + "end": 11633, "loc": { "start": { "line": 418, @@ -77568,8 +77883,8 @@ "postfix": false, "binop": null }, - "start": 11608, - "end": 11609, + "start": 11634, + "end": 11635, "loc": { "start": { "line": 418, @@ -77594,8 +77909,8 @@ "binop": null }, "value": "direction", - "start": 11609, - "end": 11618, + "start": 11635, + "end": 11644, "loc": { "start": { "line": 418, @@ -77619,8 +77934,8 @@ "postfix": false, "binop": null }, - "start": 11618, - "end": 11619, + "start": 11644, + "end": 11645, "loc": { "start": { "line": 418, @@ -77644,8 +77959,8 @@ "postfix": false, "binop": null }, - "start": 11620, - "end": 11621, + "start": 11646, + "end": 11647, "loc": { "start": { "line": 418, @@ -77672,8 +77987,8 @@ "updateContext": null }, "value": "if", - "start": 11623, - "end": 11625, + "start": 11649, + "end": 11651, "loc": { "start": { "line": 419, @@ -77697,8 +78012,8 @@ "postfix": false, "binop": null }, - "start": 11626, - "end": 11627, + "start": 11652, + "end": 11653, "loc": { "start": { "line": 419, @@ -77723,8 +78038,8 @@ "binop": null }, "value": "direction", - "start": 11627, - "end": 11636, + "start": 11653, + "end": 11662, "loc": { "start": { "line": 419, @@ -77750,8 +78065,8 @@ "updateContext": null }, "value": "===", - "start": 11637, - "end": 11640, + "start": 11663, + "end": 11666, "loc": { "start": { "line": 419, @@ -77777,8 +78092,8 @@ "updateContext": null }, "value": "up", - "start": 11641, - "end": 11645, + "start": 11667, + "end": 11671, "loc": { "start": { "line": 419, @@ -77802,8 +78117,8 @@ "postfix": false, "binop": null }, - "start": 11645, - "end": 11646, + "start": 11671, + "end": 11672, "loc": { "start": { "line": 419, @@ -77827,8 +78142,8 @@ "postfix": false, "binop": null }, - "start": 11647, - "end": 11648, + "start": 11673, + "end": 11674, "loc": { "start": { "line": 419, @@ -77853,8 +78168,8 @@ "binop": null }, "value": "player", - "start": 11651, - "end": 11657, + "start": 11677, + "end": 11683, "loc": { "start": { "line": 420, @@ -77879,8 +78194,8 @@ "binop": null, "updateContext": null }, - "start": 11657, - "end": 11658, + "start": 11683, + "end": 11684, "loc": { "start": { "line": 420, @@ -77905,8 +78220,8 @@ "binop": null }, "value": "vy", - "start": 11658, - "end": 11660, + "start": 11684, + "end": 11686, "loc": { "start": { "line": 420, @@ -77932,8 +78247,8 @@ "updateContext": null }, "value": "+=", - "start": 11661, - "end": 11663, + "start": 11687, + "end": 11689, "loc": { "start": { "line": 420, @@ -77958,8 +78273,8 @@ "binop": null }, "value": "GLOBAL", - "start": 11664, - "end": 11670, + "start": 11690, + "end": 11696, "loc": { "start": { "line": 420, @@ -77984,8 +78299,8 @@ "binop": null, "updateContext": null }, - "start": 11670, - "end": 11671, + "start": 11696, + "end": 11697, "loc": { "start": { "line": 420, @@ -78010,8 +78325,8 @@ "binop": null }, "value": "VELOCITY_STEP", - "start": 11671, - "end": 11684, + "start": 11697, + "end": 11710, "loc": { "start": { "line": 420, @@ -78037,8 +78352,8 @@ "updateContext": null }, "value": "*", - "start": 11685, - "end": 11686, + "start": 11711, + "end": 11712, "loc": { "start": { "line": 420, @@ -78063,8 +78378,8 @@ "binop": null }, "value": "player", - "start": 11687, - "end": 11693, + "start": 11713, + "end": 11719, "loc": { "start": { "line": 420, @@ -78089,8 +78404,8 @@ "binop": null, "updateContext": null }, - "start": 11693, - "end": 11694, + "start": 11719, + "end": 11720, "loc": { "start": { "line": 420, @@ -78115,8 +78430,8 @@ "binop": null }, "value": "speedMult", - "start": 11694, - "end": 11703, + "start": 11720, + "end": 11729, "loc": { "start": { "line": 420, @@ -78140,8 +78455,8 @@ "postfix": false, "binop": null }, - "start": 11705, - "end": 11706, + "start": 11731, + "end": 11732, "loc": { "start": { "line": 421, @@ -78168,8 +78483,8 @@ "updateContext": null }, "value": "if", - "start": 11708, - "end": 11710, + "start": 11734, + "end": 11736, "loc": { "start": { "line": 422, @@ -78193,8 +78508,8 @@ "postfix": false, "binop": null }, - "start": 11711, - "end": 11712, + "start": 11737, + "end": 11738, "loc": { "start": { "line": 422, @@ -78219,8 +78534,8 @@ "binop": null }, "value": "direction", - "start": 11712, - "end": 11721, + "start": 11738, + "end": 11747, "loc": { "start": { "line": 422, @@ -78246,8 +78561,8 @@ "updateContext": null }, "value": "===", - "start": 11722, - "end": 11725, + "start": 11748, + "end": 11751, "loc": { "start": { "line": 422, @@ -78273,8 +78588,8 @@ "updateContext": null }, "value": "down", - "start": 11726, - "end": 11732, + "start": 11752, + "end": 11758, "loc": { "start": { "line": 422, @@ -78298,8 +78613,8 @@ "postfix": false, "binop": null }, - "start": 11732, - "end": 11733, + "start": 11758, + "end": 11759, "loc": { "start": { "line": 422, @@ -78323,8 +78638,8 @@ "postfix": false, "binop": null }, - "start": 11734, - "end": 11735, + "start": 11760, + "end": 11761, "loc": { "start": { "line": 422, @@ -78349,8 +78664,8 @@ "binop": null }, "value": "player", - "start": 11738, - "end": 11744, + "start": 11764, + "end": 11770, "loc": { "start": { "line": 423, @@ -78375,8 +78690,8 @@ "binop": null, "updateContext": null }, - "start": 11744, - "end": 11745, + "start": 11770, + "end": 11771, "loc": { "start": { "line": 423, @@ -78401,8 +78716,8 @@ "binop": null }, "value": "vy", - "start": 11745, - "end": 11747, + "start": 11771, + "end": 11773, "loc": { "start": { "line": 423, @@ -78428,8 +78743,8 @@ "updateContext": null }, "value": "+=", - "start": 11748, - "end": 11750, + "start": 11774, + "end": 11776, "loc": { "start": { "line": 423, @@ -78455,8 +78770,8 @@ "updateContext": null }, "value": "-", - "start": 11751, - "end": 11752, + "start": 11777, + "end": 11778, "loc": { "start": { "line": 423, @@ -78481,8 +78796,8 @@ "binop": null }, "value": "GLOBAL", - "start": 11752, - "end": 11758, + "start": 11778, + "end": 11784, "loc": { "start": { "line": 423, @@ -78507,8 +78822,8 @@ "binop": null, "updateContext": null }, - "start": 11758, - "end": 11759, + "start": 11784, + "end": 11785, "loc": { "start": { "line": 423, @@ -78533,8 +78848,8 @@ "binop": null }, "value": "VELOCITY_STEP", - "start": 11759, - "end": 11772, + "start": 11785, + "end": 11798, "loc": { "start": { "line": 423, @@ -78560,8 +78875,8 @@ "updateContext": null }, "value": "*", - "start": 11773, - "end": 11774, + "start": 11799, + "end": 11800, "loc": { "start": { "line": 423, @@ -78586,8 +78901,8 @@ "binop": null }, "value": "player", - "start": 11775, - "end": 11781, + "start": 11801, + "end": 11807, "loc": { "start": { "line": 423, @@ -78612,8 +78927,8 @@ "binop": null, "updateContext": null }, - "start": 11781, - "end": 11782, + "start": 11807, + "end": 11808, "loc": { "start": { "line": 423, @@ -78638,8 +78953,8 @@ "binop": null }, "value": "speedMult", - "start": 11782, - "end": 11791, + "start": 11808, + "end": 11817, "loc": { "start": { "line": 423, @@ -78663,8 +78978,8 @@ "postfix": false, "binop": null }, - "start": 11793, - "end": 11794, + "start": 11819, + "end": 11820, "loc": { "start": { "line": 424, @@ -78691,8 +79006,8 @@ "updateContext": null }, "value": "if", - "start": 11796, - "end": 11798, + "start": 11822, + "end": 11824, "loc": { "start": { "line": 425, @@ -78716,8 +79031,8 @@ "postfix": false, "binop": null }, - "start": 11799, - "end": 11800, + "start": 11825, + "end": 11826, "loc": { "start": { "line": 425, @@ -78742,8 +79057,8 @@ "binop": null }, "value": "direction", - "start": 11800, - "end": 11809, + "start": 11826, + "end": 11835, "loc": { "start": { "line": 425, @@ -78769,8 +79084,8 @@ "updateContext": null }, "value": "===", - "start": 11810, - "end": 11813, + "start": 11836, + "end": 11839, "loc": { "start": { "line": 425, @@ -78796,8 +79111,8 @@ "updateContext": null }, "value": "right", - "start": 11814, - "end": 11821, + "start": 11840, + "end": 11847, "loc": { "start": { "line": 425, @@ -78821,8 +79136,8 @@ "postfix": false, "binop": null }, - "start": 11821, - "end": 11822, + "start": 11847, + "end": 11848, "loc": { "start": { "line": 425, @@ -78846,8 +79161,8 @@ "postfix": false, "binop": null }, - "start": 11823, - "end": 11824, + "start": 11849, + "end": 11850, "loc": { "start": { "line": 425, @@ -78872,8 +79187,8 @@ "binop": null }, "value": "player", - "start": 11827, - "end": 11833, + "start": 11853, + "end": 11859, "loc": { "start": { "line": 426, @@ -78898,8 +79213,8 @@ "binop": null, "updateContext": null }, - "start": 11833, - "end": 11834, + "start": 11859, + "end": 11860, "loc": { "start": { "line": 426, @@ -78924,8 +79239,8 @@ "binop": null }, "value": "vx", - "start": 11834, - "end": 11836, + "start": 11860, + "end": 11862, "loc": { "start": { "line": 426, @@ -78951,8 +79266,8 @@ "updateContext": null }, "value": "+=", - "start": 11837, - "end": 11839, + "start": 11863, + "end": 11865, "loc": { "start": { "line": 426, @@ -78977,8 +79292,8 @@ "binop": null }, "value": "GLOBAL", - "start": 11840, - "end": 11846, + "start": 11866, + "end": 11872, "loc": { "start": { "line": 426, @@ -79003,8 +79318,8 @@ "binop": null, "updateContext": null }, - "start": 11846, - "end": 11847, + "start": 11872, + "end": 11873, "loc": { "start": { "line": 426, @@ -79029,8 +79344,8 @@ "binop": null }, "value": "VELOCITY_STEP", - "start": 11847, - "end": 11860, + "start": 11873, + "end": 11886, "loc": { "start": { "line": 426, @@ -79056,8 +79371,8 @@ "updateContext": null }, "value": "*", - "start": 11861, - "end": 11862, + "start": 11887, + "end": 11888, "loc": { "start": { "line": 426, @@ -79082,8 +79397,8 @@ "binop": null }, "value": "player", - "start": 11863, - "end": 11869, + "start": 11889, + "end": 11895, "loc": { "start": { "line": 426, @@ -79108,8 +79423,8 @@ "binop": null, "updateContext": null }, - "start": 11869, - "end": 11870, + "start": 11895, + "end": 11896, "loc": { "start": { "line": 426, @@ -79134,8 +79449,8 @@ "binop": null }, "value": "speedMult", - "start": 11870, - "end": 11879, + "start": 11896, + "end": 11905, "loc": { "start": { "line": 426, @@ -79159,8 +79474,8 @@ "postfix": false, "binop": null }, - "start": 11881, - "end": 11882, + "start": 11907, + "end": 11908, "loc": { "start": { "line": 427, @@ -79187,8 +79502,8 @@ "updateContext": null }, "value": "if", - "start": 11884, - "end": 11886, + "start": 11910, + "end": 11912, "loc": { "start": { "line": 428, @@ -79212,8 +79527,8 @@ "postfix": false, "binop": null }, - "start": 11887, - "end": 11888, + "start": 11913, + "end": 11914, "loc": { "start": { "line": 428, @@ -79238,8 +79553,8 @@ "binop": null }, "value": "direction", - "start": 11888, - "end": 11897, + "start": 11914, + "end": 11923, "loc": { "start": { "line": 428, @@ -79265,8 +79580,8 @@ "updateContext": null }, "value": "===", - "start": 11898, - "end": 11901, + "start": 11924, + "end": 11927, "loc": { "start": { "line": 428, @@ -79292,8 +79607,8 @@ "updateContext": null }, "value": "left", - "start": 11902, - "end": 11908, + "start": 11928, + "end": 11934, "loc": { "start": { "line": 428, @@ -79317,8 +79632,8 @@ "postfix": false, "binop": null }, - "start": 11908, - "end": 11909, + "start": 11934, + "end": 11935, "loc": { "start": { "line": 428, @@ -79342,8 +79657,8 @@ "postfix": false, "binop": null }, - "start": 11910, - "end": 11911, + "start": 11936, + "end": 11937, "loc": { "start": { "line": 428, @@ -79368,8 +79683,8 @@ "binop": null }, "value": "player", - "start": 11914, - "end": 11920, + "start": 11940, + "end": 11946, "loc": { "start": { "line": 429, @@ -79394,8 +79709,8 @@ "binop": null, "updateContext": null }, - "start": 11920, - "end": 11921, + "start": 11946, + "end": 11947, "loc": { "start": { "line": 429, @@ -79420,8 +79735,8 @@ "binop": null }, "value": "vx", - "start": 11921, - "end": 11923, + "start": 11947, + "end": 11949, "loc": { "start": { "line": 429, @@ -79447,8 +79762,8 @@ "updateContext": null }, "value": "+=", - "start": 11924, - "end": 11926, + "start": 11950, + "end": 11952, "loc": { "start": { "line": 429, @@ -79474,8 +79789,8 @@ "updateContext": null }, "value": "-", - "start": 11927, - "end": 11928, + "start": 11953, + "end": 11954, "loc": { "start": { "line": 429, @@ -79500,8 +79815,8 @@ "binop": null }, "value": "GLOBAL", - "start": 11928, - "end": 11934, + "start": 11954, + "end": 11960, "loc": { "start": { "line": 429, @@ -79526,8 +79841,8 @@ "binop": null, "updateContext": null }, - "start": 11934, - "end": 11935, + "start": 11960, + "end": 11961, "loc": { "start": { "line": 429, @@ -79552,8 +79867,8 @@ "binop": null }, "value": "VELOCITY_STEP", - "start": 11935, - "end": 11948, + "start": 11961, + "end": 11974, "loc": { "start": { "line": 429, @@ -79579,8 +79894,8 @@ "updateContext": null }, "value": "*", - "start": 11949, - "end": 11950, + "start": 11975, + "end": 11976, "loc": { "start": { "line": 429, @@ -79605,8 +79920,8 @@ "binop": null }, "value": "player", - "start": 11951, - "end": 11957, + "start": 11977, + "end": 11983, "loc": { "start": { "line": 429, @@ -79631,8 +79946,8 @@ "binop": null, "updateContext": null }, - "start": 11957, - "end": 11958, + "start": 11983, + "end": 11984, "loc": { "start": { "line": 429, @@ -79657,8 +79972,8 @@ "binop": null }, "value": "speedMult", - "start": 11958, - "end": 11967, + "start": 11984, + "end": 11993, "loc": { "start": { "line": 429, @@ -79682,8 +79997,8 @@ "postfix": false, "binop": null }, - "start": 11969, - "end": 11970, + "start": 11995, + "end": 11996, "loc": { "start": { "line": 430, @@ -79707,8 +80022,8 @@ "postfix": false, "binop": null }, - "start": 11971, - "end": 11972, + "start": 11997, + "end": 11998, "loc": { "start": { "line": 431, @@ -79733,8 +80048,8 @@ "binop": null, "updateContext": null }, - "start": 11973, - "end": 11973, + "start": 11999, + "end": 11999, "loc": { "start": { "line": 432, diff --git a/docs/ast/source/client/js/socket.js.json b/docs/ast/source/client/js/socket.js.json index 17284ea..00ef8f9 100644 --- a/docs/ast/source/client/js/socket.js.json +++ b/docs/ast/source/client/js/socket.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 10565, + "end": 10943, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 374, + "line": 380, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 10565, + "end": 10943, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 374, + "line": 380, "column": 0 } }, @@ -566,7 +566,7 @@ { "type": "ImportDeclaration", "start": 195, - "end": 286, + "end": 299, "loc": { "start": { "line": 4, @@ -574,7 +574,7 @@ }, "end": { "line": 4, - "column": 91 + "column": 104 } }, "specifiers": [ @@ -871,20 +871,69 @@ }, "name": "setIngame" } + }, + { + "type": "ImportSpecifier", + "start": 268, + "end": 279, + "loc": { + "start": { + "line": 4, + "column": 73 + }, + "end": { + "line": 4, + "column": 84 + } + }, + "imported": { + "type": "Identifier", + "start": 268, + "end": 279, + "loc": { + "start": { + "line": 4, + "column": 73 + }, + "end": { + "line": 4, + "column": 84 + }, + "identifierName": "spritesheet" + }, + "name": "spritesheet" + }, + "local": { + "type": "Identifier", + "start": 268, + "end": 279, + "loc": { + "start": { + "line": 4, + "column": 73 + }, + "end": { + "line": 4, + "column": 84 + }, + "identifierName": "spritesheet" + }, + "name": "spritesheet" + } } ], "source": { "type": "StringLiteral", - "start": 274, - "end": 286, + "start": 287, + "end": 299, "loc": { "start": { "line": 4, - "column": 79 + "column": 92 }, "end": { "line": 4, - "column": 91 + "column": 104 } }, "extra": { @@ -896,8 +945,8 @@ }, { "type": "ImportDeclaration", - "start": 287, - "end": 356, + "start": 300, + "end": 369, "loc": { "start": { "line": 5, @@ -911,8 +960,8 @@ "specifiers": [ { "type": "ImportSpecifier", - "start": 296, - "end": 312, + "start": 309, + "end": 325, "loc": { "start": { "line": 5, @@ -925,8 +974,8 @@ }, "imported": { "type": "Identifier", - "start": 296, - "end": 312, + "start": 309, + "end": 325, "loc": { "start": { "line": 5, @@ -942,8 +991,8 @@ }, "local": { "type": "Identifier", - "start": 296, - "end": 312, + "start": 309, + "end": 325, "loc": { "start": { "line": 5, @@ -960,8 +1009,8 @@ }, { "type": "ImportSpecifier", - "start": 314, - "end": 334, + "start": 327, + "end": 347, "loc": { "start": { "line": 5, @@ -974,8 +1023,8 @@ }, "imported": { "type": "Identifier", - "start": 314, - "end": 334, + "start": 327, + "end": 347, "loc": { "start": { "line": 5, @@ -991,8 +1040,8 @@ }, "local": { "type": "Identifier", - "start": 314, - "end": 334, + "start": 327, + "end": 347, "loc": { "start": { "line": 5, @@ -1010,8 +1059,8 @@ ], "source": { "type": "StringLiteral", - "start": 342, - "end": 356, + "start": 355, + "end": 369, "loc": { "start": { "line": 5, @@ -1034,8 +1083,8 @@ { "type": "CommentBlock", "value": "*\n * Socket.js contains all of the clientside networking interface.\n * It contains all variables which are synced between client and server.\n ", - "start": 358, - "end": 504, + "start": 371, + "end": 517, "loc": { "start": { "line": 7, @@ -1050,8 +1099,8 @@ { "type": "CommentLine", "value": " Socket.io instance", - "start": 506, - "end": 527, + "start": 519, + "end": 540, "loc": { "start": { "line": 12, @@ -1067,8 +1116,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 528, - "end": 545, + "start": 541, + "end": 558, "loc": { "start": { "line": 13, @@ -1083,8 +1132,8 @@ "source": null, "declaration": { "type": "VariableDeclaration", - "start": 535, - "end": 545, + "start": 548, + "end": 558, "loc": { "start": { "line": 13, @@ -1098,8 +1147,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 539, - "end": 545, + "start": 552, + "end": 558, "loc": { "start": { "line": 13, @@ -1112,8 +1161,8 @@ }, "id": { "type": "Identifier", - "start": 539, - "end": 545, + "start": 552, + "end": 558, "loc": { "start": { "line": 13, @@ -1139,8 +1188,8 @@ { "type": "CommentBlock", "value": "*\n * Socket.js contains all of the clientside networking interface.\n * It contains all variables which are synced between client and server.\n ", - "start": 358, - "end": 504, + "start": 371, + "end": 517, "loc": { "start": { "line": 7, @@ -1155,8 +1204,8 @@ { "type": "CommentLine", "value": " Socket.io instance", - "start": 506, - "end": 527, + "start": 519, + "end": 540, "loc": { "start": { "line": 12, @@ -1173,8 +1222,8 @@ { "type": "CommentBlock", "value": " Object containing all synced objects. Contains nested objects, which correspond to different types\n * (for example, objects[atoms], objects[players], objects[compounds])\n ", - "start": 547, - "end": 723, + "start": 560, + "end": 736, "loc": { "start": { "line": 15, @@ -1192,8 +1241,8 @@ { "type": "CommentBlock", "value": "*\n * Socket.js contains all of the clientside networking interface.\n * It contains all variables which are synced between client and server.\n ", - "start": 358, - "end": 504, + "start": 371, + "end": 517, "loc": { "start": { "line": 7, @@ -1208,8 +1257,8 @@ { "type": "CommentLine", "value": " Socket.io instance", - "start": 506, - "end": 527, + "start": 519, + "end": 540, "loc": { "start": { "line": 12, @@ -1226,8 +1275,8 @@ { "type": "CommentBlock", "value": " Object containing all synced objects. Contains nested objects, which correspond to different types\n * (for example, objects[atoms], objects[players], objects[compounds])\n ", - "start": 547, - "end": 723, + "start": 560, + "end": 736, "loc": { "start": { "line": 15, @@ -1243,8 +1292,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 724, - "end": 801, + "start": 737, + "end": 814, "loc": { "start": { "line": 18, @@ -1259,8 +1308,8 @@ "source": null, "declaration": { "type": "VariableDeclaration", - "start": 731, - "end": 801, + "start": 744, + "end": 814, "loc": { "start": { "line": 18, @@ -1274,8 +1323,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 735, - "end": 801, + "start": 748, + "end": 814, "loc": { "start": { "line": 18, @@ -1288,8 +1337,8 @@ }, "id": { "type": "Identifier", - "start": 735, - "end": 742, + "start": 748, + "end": 755, "loc": { "start": { "line": 18, @@ -1306,8 +1355,8 @@ }, "init": { "type": "ObjectExpression", - "start": 745, - "end": 801, + "start": 758, + "end": 814, "loc": { "start": { "line": 18, @@ -1321,8 +1370,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 748, - "end": 759, + "start": 761, + "end": 772, "loc": { "start": { "line": 19, @@ -1338,8 +1387,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 748, - "end": 755, + "start": 761, + "end": 768, "loc": { "start": { "line": 19, @@ -1355,8 +1404,8 @@ }, "value": { "type": "ObjectExpression", - "start": 757, - "end": 759, + "start": 770, + "end": 772, "loc": { "start": { "line": 19, @@ -1372,8 +1421,8 @@ }, { "type": "ObjectProperty", - "start": 762, - "end": 771, + "start": 775, + "end": 784, "loc": { "start": { "line": 20, @@ -1389,8 +1438,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 762, - "end": 767, + "start": 775, + "end": 780, "loc": { "start": { "line": 20, @@ -1406,8 +1455,8 @@ }, "value": { "type": "ObjectExpression", - "start": 769, - "end": 771, + "start": 782, + "end": 784, "loc": { "start": { "line": 20, @@ -1423,8 +1472,8 @@ }, { "type": "ObjectProperty", - "start": 774, - "end": 787, + "start": 787, + "end": 800, "loc": { "start": { "line": 21, @@ -1440,8 +1489,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 774, - "end": 783, + "start": 787, + "end": 796, "loc": { "start": { "line": 21, @@ -1457,8 +1506,8 @@ }, "value": { "type": "ObjectExpression", - "start": 785, - "end": 787, + "start": 798, + "end": 800, "loc": { "start": { "line": 21, @@ -1474,8 +1523,8 @@ }, { "type": "ObjectProperty", - "start": 790, - "end": 799, + "start": 803, + "end": 812, "loc": { "start": { "line": 22, @@ -1491,8 +1540,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 790, - "end": 795, + "start": 803, + "end": 808, "loc": { "start": { "line": 22, @@ -1508,8 +1557,8 @@ }, "value": { "type": "ObjectExpression", - "start": 797, - "end": 799, + "start": 810, + "end": 812, "loc": { "start": { "line": 22, @@ -1526,8 +1575,8 @@ { "type": "CommentBlock", "value": "*\n * Team colors object. Number corresponds to index at GLOBAL.TEAM_COLORS.\n * Format: {\n * \tteamname1: 0,\n * \tteamname: color,\n * \t...\n * }\n ", - "start": 803, - "end": 949, + "start": 816, + "end": 962, "loc": { "start": { "line": 25, @@ -1553,8 +1602,8 @@ { "type": "CommentBlock", "value": " Object containing all synced objects. Contains nested objects, which correspond to different types\n * (for example, objects[atoms], objects[players], objects[compounds])\n ", - "start": 547, - "end": 723, + "start": 560, + "end": 736, "loc": { "start": { "line": 15, @@ -1571,8 +1620,8 @@ { "type": "CommentBlock", "value": "*\n * Team colors object. Number corresponds to index at GLOBAL.TEAM_COLORS.\n * Format: {\n * \tteamname1: 0,\n * \tteamname: color,\n * \t...\n * }\n ", - "start": 803, - "end": 949, + "start": 816, + "end": 962, "loc": { "start": { "line": 25, @@ -1590,8 +1639,8 @@ { "type": "CommentBlock", "value": " Object containing all synced objects. Contains nested objects, which correspond to different types\n * (for example, objects[atoms], objects[players], objects[compounds])\n ", - "start": 547, - "end": 723, + "start": 560, + "end": 736, "loc": { "start": { "line": 15, @@ -1608,8 +1657,8 @@ { "type": "CommentBlock", "value": "*\n * Team colors object. Number corresponds to index at GLOBAL.TEAM_COLORS.\n * Format: {\n * \tteamname1: 0,\n * \tteamname: color,\n * \t...\n * }\n ", - "start": 803, - "end": 949, + "start": 816, + "end": 962, "loc": { "start": { "line": 25, @@ -1625,8 +1674,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 950, - "end": 976, + "start": 963, + "end": 989, "loc": { "start": { "line": 33, @@ -1641,8 +1690,8 @@ "source": null, "declaration": { "type": "VariableDeclaration", - "start": 957, - "end": 976, + "start": 970, + "end": 989, "loc": { "start": { "line": 33, @@ -1656,8 +1705,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 961, - "end": 976, + "start": 974, + "end": 989, "loc": { "start": { "line": 33, @@ -1670,8 +1719,8 @@ }, "id": { "type": "Identifier", - "start": 961, - "end": 971, + "start": 974, + "end": 984, "loc": { "start": { "line": 33, @@ -1687,8 +1736,8 @@ }, "init": { "type": "ObjectExpression", - "start": 974, - "end": 976, + "start": 987, + "end": 989, "loc": { "start": { "line": 33, @@ -1711,8 +1760,8 @@ { "type": "CommentBlock", "value": "*\n * Attempts to connect to the server. Run on 'start game' press.\n * - Manages connecting to main server vs. devserver\n * - Sets up socket listeners\n * - Loads textures\n * - Loads pixi\n ", - "start": 978, - "end": 1173, + "start": 991, + "end": 1186, "loc": { "start": { "line": 35, @@ -1731,8 +1780,8 @@ { "type": "CommentBlock", "value": "*\n * Attempts to connect to the server. Run on 'start game' press.\n * - Manages connecting to main server vs. devserver\n * - Sets up socket listeners\n * - Loads textures\n * - Loads pixi\n ", - "start": 978, - "end": 1173, + "start": 991, + "end": 1186, "loc": { "start": { "line": 35, @@ -1748,8 +1797,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 1174, - "end": 2560, + "start": 1187, + "end": 2573, "loc": { "start": { "line": 42, @@ -1764,8 +1813,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 1181, - "end": 2560, + "start": 1194, + "end": 2573, "loc": { "start": { "line": 42, @@ -1778,8 +1827,8 @@ }, "id": { "type": "Identifier", - "start": 1190, - "end": 1205, + "start": 1203, + "end": 1218, "loc": { "start": { "line": 42, @@ -1800,8 +1849,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 1209, - "end": 2560, + "start": 1222, + "end": 2573, "loc": { "start": { "line": 42, @@ -1815,8 +1864,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 1257, - "end": 1357, + "start": 1270, + "end": 1370, "loc": { "start": { "line": 44, @@ -1830,8 +1879,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 1261, - "end": 1357, + "start": 1274, + "end": 1370, "loc": { "start": { "line": 44, @@ -1844,8 +1893,8 @@ }, "id": { "type": "Identifier", - "start": 1261, - "end": 1265, + "start": 1274, + "end": 1278, "loc": { "start": { "line": 44, @@ -1862,8 +1911,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 1269, - "end": 1356, + "start": 1282, + "end": 1369, "loc": { "start": { "line": 44, @@ -1876,8 +1925,8 @@ }, "test": { "type": "BinaryExpression", - "start": 1269, - "end": 1304, + "start": 1282, + "end": 1317, "loc": { "start": { "line": 44, @@ -1890,8 +1939,8 @@ }, "left": { "type": "MemberExpression", - "start": 1269, - "end": 1290, + "start": 1282, + "end": 1303, "loc": { "start": { "line": 44, @@ -1904,8 +1953,8 @@ }, "object": { "type": "MemberExpression", - "start": 1269, - "end": 1284, + "start": 1282, + "end": 1297, "loc": { "start": { "line": 44, @@ -1918,8 +1967,8 @@ }, "object": { "type": "Identifier", - "start": 1269, - "end": 1281, + "start": 1282, + "end": 1294, "loc": { "start": { "line": 44, @@ -1935,8 +1984,8 @@ }, "property": { "type": "NumericLiteral", - "start": 1282, - "end": 1283, + "start": 1295, + "end": 1296, "loc": { "start": { "line": 44, @@ -1957,8 +2006,8 @@ }, "property": { "type": "Identifier", - "start": 1285, - "end": 1290, + "start": 1298, + "end": 1303, "loc": { "start": { "line": 44, @@ -1977,8 +2026,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 1295, - "end": 1304, + "start": 1308, + "end": 1317, "loc": { "start": { "line": 44, @@ -1998,8 +2047,8 @@ }, "consequent": { "type": "MemberExpression", - "start": 1307, - "end": 1328, + "start": 1320, + "end": 1341, "loc": { "start": { "line": 44, @@ -2012,8 +2061,8 @@ }, "object": { "type": "MemberExpression", - "start": 1307, - "end": 1322, + "start": 1320, + "end": 1335, "loc": { "start": { "line": 44, @@ -2026,8 +2075,8 @@ }, "object": { "type": "Identifier", - "start": 1307, - "end": 1319, + "start": 1320, + "end": 1332, "loc": { "start": { "line": 44, @@ -2043,8 +2092,8 @@ }, "property": { "type": "NumericLiteral", - "start": 1320, - "end": 1321, + "start": 1333, + "end": 1334, "loc": { "start": { "line": 44, @@ -2065,8 +2114,8 @@ }, "property": { "type": "Identifier", - "start": 1323, - "end": 1328, + "start": 1336, + "end": 1341, "loc": { "start": { "line": 44, @@ -2084,8 +2133,8 @@ }, "alternate": { "type": "MemberExpression", - "start": 1331, - "end": 1356, + "start": 1344, + "end": 1369, "loc": { "start": { "line": 44, @@ -2098,8 +2147,8 @@ }, "object": { "type": "Identifier", - "start": 1331, - "end": 1337, + "start": 1344, + "end": 1350, "loc": { "start": { "line": 44, @@ -2115,8 +2164,8 @@ }, "property": { "type": "Identifier", - "start": 1338, - "end": 1356, + "start": 1351, + "end": 1369, "loc": { "start": { "line": 44, @@ -2134,7 +2183,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 1268 + "parenStart": 1281 } }, "leadingComments": null @@ -2145,8 +2194,8 @@ { "type": "CommentLine", "value": " Joins debug server if conditions are met", - "start": 1212, - "end": 1255, + "start": 1225, + "end": 1268, "loc": { "start": { "line": 43, @@ -2162,8 +2211,8 @@ }, { "type": "VariableDeclaration", - "start": 1359, - "end": 1508, + "start": 1372, + "end": 1521, "loc": { "start": { "line": 45, @@ -2177,8 +2226,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 1363, - "end": 1508, + "start": 1376, + "end": 1521, "loc": { "start": { "line": 45, @@ -2191,8 +2240,8 @@ }, "id": { "type": "Identifier", - "start": 1363, - "end": 1372, + "start": 1376, + "end": 1385, "loc": { "start": { "line": 45, @@ -2208,8 +2257,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 1375, - "end": 1508, + "start": 1388, + "end": 1521, "loc": { "start": { "line": 45, @@ -2222,8 +2271,8 @@ }, "test": { "type": "BinaryExpression", - "start": 1376, - "end": 1455, + "start": 1389, + "end": 1468, "loc": { "start": { "line": 45, @@ -2236,8 +2285,8 @@ }, "left": { "type": "MemberExpression", - "start": 1376, - "end": 1437, + "start": 1389, + "end": 1450, "loc": { "start": { "line": 45, @@ -2250,8 +2299,8 @@ }, "object": { "type": "CallExpression", - "start": 1376, - "end": 1434, + "start": 1389, + "end": 1447, "loc": { "start": { "line": 45, @@ -2264,8 +2313,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1376, - "end": 1398, + "start": 1389, + "end": 1411, "loc": { "start": { "line": 45, @@ -2278,8 +2327,8 @@ }, "object": { "type": "Identifier", - "start": 1376, - "end": 1384, + "start": 1389, + "end": 1397, "loc": { "start": { "line": 45, @@ -2295,8 +2344,8 @@ }, "property": { "type": "Identifier", - "start": 1385, - "end": 1398, + "start": 1398, + "end": 1411, "loc": { "start": { "line": 45, @@ -2315,8 +2364,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 1399, - "end": 1433, + "start": 1412, + "end": 1446, "loc": { "start": { "line": 45, @@ -2337,8 +2386,8 @@ }, "property": { "type": "Identifier", - "start": 1435, - "end": 1437, + "start": 1448, + "end": 1450, "loc": { "start": { "line": 45, @@ -2357,8 +2406,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 1442, - "end": 1455, + "start": 1455, + "end": 1468, "loc": { "start": { "line": 45, @@ -2377,13 +2426,13 @@ }, "extra": { "parenthesized": true, - "parenStart": 1375 + "parenStart": 1388 } }, "consequent": { "type": "MemberExpression", - "start": 1459, - "end": 1480, + "start": 1472, + "end": 1493, "loc": { "start": { "line": 45, @@ -2396,8 +2445,8 @@ }, "object": { "type": "MemberExpression", - "start": 1459, - "end": 1474, + "start": 1472, + "end": 1487, "loc": { "start": { "line": 45, @@ -2410,8 +2459,8 @@ }, "object": { "type": "Identifier", - "start": 1459, - "end": 1471, + "start": 1472, + "end": 1484, "loc": { "start": { "line": 45, @@ -2427,8 +2476,8 @@ }, "property": { "type": "NumericLiteral", - "start": 1472, - "end": 1473, + "start": 1485, + "end": 1486, "loc": { "start": { "line": 45, @@ -2449,8 +2498,8 @@ }, "property": { "type": "Identifier", - "start": 1475, - "end": 1480, + "start": 1488, + "end": 1493, "loc": { "start": { "line": 45, @@ -2468,8 +2517,8 @@ }, "alternate": { "type": "MemberExpression", - "start": 1483, - "end": 1508, + "start": 1496, + "end": 1521, "loc": { "start": { "line": 45, @@ -2482,8 +2531,8 @@ }, "object": { "type": "Identifier", - "start": 1483, - "end": 1489, + "start": 1496, + "end": 1502, "loc": { "start": { "line": 45, @@ -2499,8 +2548,8 @@ }, "property": { "type": "Identifier", - "start": 1490, - "end": 1508, + "start": 1503, + "end": 1521, "loc": { "start": { "line": 45, @@ -2523,8 +2572,8 @@ }, { "type": "IfStatement", - "start": 1511, - "end": 2420, + "start": 1524, + "end": 2433, "loc": { "start": { "line": 47, @@ -2537,8 +2586,8 @@ }, "test": { "type": "BinaryExpression", - "start": 1515, - "end": 1547, + "start": 1528, + "end": 1560, "loc": { "start": { "line": 47, @@ -2551,8 +2600,8 @@ }, "left": { "type": "MemberExpression", - "start": 1515, - "end": 1536, + "start": 1528, + "end": 1549, "loc": { "start": { "line": 47, @@ -2565,8 +2614,8 @@ }, "object": { "type": "MemberExpression", - "start": 1515, - "end": 1530, + "start": 1528, + "end": 1543, "loc": { "start": { "line": 47, @@ -2579,8 +2628,8 @@ }, "object": { "type": "Identifier", - "start": 1515, - "end": 1527, + "start": 1528, + "end": 1540, "loc": { "start": { "line": 47, @@ -2596,8 +2645,8 @@ }, "property": { "type": "NumericLiteral", - "start": 1528, - "end": 1529, + "start": 1541, + "end": 1542, "loc": { "start": { "line": 47, @@ -2618,8 +2667,8 @@ }, "property": { "type": "Identifier", - "start": 1531, - "end": 1536, + "start": 1544, + "end": 1549, "loc": { "start": { "line": 47, @@ -2638,8 +2687,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 1541, - "end": 1547, + "start": 1554, + "end": 1560, "loc": { "start": { "line": 47, @@ -2659,8 +2708,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 1549, - "end": 1839, + "start": 1562, + "end": 1852, "loc": { "start": { "line": 47, @@ -2674,8 +2723,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1553, - "end": 1601, + "start": 1566, + "end": 1614, "loc": { "start": { "line": 48, @@ -2688,8 +2737,8 @@ }, "expression": { "type": "CallExpression", - "start": 1553, - "end": 1601, + "start": 1566, + "end": 1614, "loc": { "start": { "line": 48, @@ -2702,8 +2751,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1553, - "end": 1565, + "start": 1566, + "end": 1578, "loc": { "start": { "line": 48, @@ -2716,8 +2765,8 @@ }, "object": { "type": "Identifier", - "start": 1553, - "end": 1560, + "start": 1566, + "end": 1573, "loc": { "start": { "line": 48, @@ -2733,8 +2782,8 @@ }, "property": { "type": "Identifier", - "start": 1561, - "end": 1565, + "start": 1574, + "end": 1578, "loc": { "start": { "line": 48, @@ -2753,8 +2802,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 1566, - "end": 1600, + "start": 1579, + "end": 1613, "loc": { "start": { "line": 48, @@ -2767,8 +2816,8 @@ }, "left": { "type": "StringLiteral", - "start": 1566, - "end": 1583, + "start": 1579, + "end": 1596, "loc": { "start": { "line": 48, @@ -2788,8 +2837,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 1586, - "end": 1600, + "start": 1599, + "end": 1613, "loc": { "start": { "line": 48, @@ -2802,8 +2851,8 @@ }, "object": { "type": "Identifier", - "start": 1586, - "end": 1592, + "start": 1599, + "end": 1605, "loc": { "start": { "line": 48, @@ -2819,8 +2868,8 @@ }, "property": { "type": "Identifier", - "start": 1593, - "end": 1600, + "start": 1606, + "end": 1613, "loc": { "start": { "line": 48, @@ -2844,8 +2893,8 @@ { "type": "CommentLine", "value": " DEVELOPMENT server - auto deploy from pixi branch", - "start": 1604, - "end": 1656, + "start": 1617, + "end": 1669, "loc": { "start": { "line": 49, @@ -2861,8 +2910,8 @@ }, { "type": "ExpressionStatement", - "start": 1659, - "end": 1836, + "start": 1672, + "end": 1849, "loc": { "start": { "line": 50, @@ -2875,8 +2924,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 1659, - "end": 1836, + "start": 1672, + "end": 1849, "loc": { "start": { "line": 50, @@ -2890,8 +2939,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 1659, - "end": 1665, + "start": 1672, + "end": 1678, "loc": { "start": { "line": 50, @@ -2908,8 +2957,8 @@ }, "right": { "type": "CallExpression", - "start": 1668, - "end": 1836, + "start": 1681, + "end": 1849, "loc": { "start": { "line": 50, @@ -2922,8 +2971,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1668, - "end": 1678, + "start": 1681, + "end": 1691, "loc": { "start": { "line": 50, @@ -2936,8 +2985,8 @@ }, "object": { "type": "Identifier", - "start": 1668, - "end": 1670, + "start": 1681, + "end": 1683, "loc": { "start": { "line": 50, @@ -2953,8 +3002,8 @@ }, "property": { "type": "Identifier", - "start": 1671, - "end": 1678, + "start": 1684, + "end": 1691, "loc": { "start": { "line": 50, @@ -2973,8 +3022,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 1679, - "end": 1693, + "start": 1692, + "end": 1706, "loc": { "start": { "line": 50, @@ -2987,8 +3036,8 @@ }, "object": { "type": "Identifier", - "start": 1679, - "end": 1685, + "start": 1692, + "end": 1698, "loc": { "start": { "line": 50, @@ -3004,8 +3053,8 @@ }, "property": { "type": "Identifier", - "start": 1686, - "end": 1693, + "start": 1699, + "end": 1706, "loc": { "start": { "line": 50, @@ -3023,8 +3072,8 @@ }, { "type": "ObjectExpression", - "start": 1695, - "end": 1835, + "start": 1708, + "end": 1848, "loc": { "start": { "line": 50, @@ -3038,8 +3087,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1700, - "end": 1803, + "start": 1713, + "end": 1816, "loc": { "start": { "line": 51, @@ -3055,8 +3104,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1700, - "end": 1705, + "start": 1713, + "end": 1718, "loc": { "start": { "line": 51, @@ -3072,8 +3121,8 @@ }, "value": { "type": "TemplateLiteral", - "start": 1707, - "end": 1803, + "start": 1720, + "end": 1816, "loc": { "start": { "line": 51, @@ -3087,8 +3136,8 @@ "expressions": [ { "type": "Identifier", - "start": 1715, - "end": 1719, + "start": 1728, + "end": 1732, "loc": { "start": { "line": 51, @@ -3104,8 +3153,8 @@ }, { "type": "MemberExpression", - "start": 1728, - "end": 1749, + "start": 1741, + "end": 1762, "loc": { "start": { "line": 51, @@ -3118,8 +3167,8 @@ }, "object": { "type": "MemberExpression", - "start": 1728, - "end": 1743, + "start": 1741, + "end": 1756, "loc": { "start": { "line": 51, @@ -3132,8 +3181,8 @@ }, "object": { "type": "Identifier", - "start": 1728, - "end": 1740, + "start": 1741, + "end": 1753, "loc": { "start": { "line": 51, @@ -3149,8 +3198,8 @@ }, "property": { "type": "NumericLiteral", - "start": 1741, - "end": 1742, + "start": 1754, + "end": 1755, "loc": { "start": { "line": 51, @@ -3171,8 +3220,8 @@ }, "property": { "type": "Identifier", - "start": 1744, - "end": 1749, + "start": 1757, + "end": 1762, "loc": { "start": { "line": 51, @@ -3190,8 +3239,8 @@ }, { "type": "Identifier", - "start": 1758, - "end": 1767, + "start": 1771, + "end": 1780, "loc": { "start": { "line": 51, @@ -3207,8 +3256,8 @@ }, { "type": "MemberExpression", - "start": 1780, - "end": 1801, + "start": 1793, + "end": 1814, "loc": { "start": { "line": 51, @@ -3221,8 +3270,8 @@ }, "object": { "type": "MemberExpression", - "start": 1780, - "end": 1795, + "start": 1793, + "end": 1808, "loc": { "start": { "line": 51, @@ -3235,8 +3284,8 @@ }, "object": { "type": "Identifier", - "start": 1780, - "end": 1792, + "start": 1793, + "end": 1805, "loc": { "start": { "line": 51, @@ -3252,8 +3301,8 @@ }, "property": { "type": "NumericLiteral", - "start": 1793, - "end": 1794, + "start": 1806, + "end": 1807, "loc": { "start": { "line": 51, @@ -3274,8 +3323,8 @@ }, "property": { "type": "Identifier", - "start": 1796, - "end": 1801, + "start": 1809, + "end": 1814, "loc": { "start": { "line": 51, @@ -3295,8 +3344,8 @@ "quasis": [ { "type": "TemplateElement", - "start": 1708, - "end": 1713, + "start": 1721, + "end": 1726, "loc": { "start": { "line": 51, @@ -3315,8 +3364,8 @@ }, { "type": "TemplateElement", - "start": 1720, - "end": 1726, + "start": 1733, + "end": 1739, "loc": { "start": { "line": 51, @@ -3335,8 +3384,8 @@ }, { "type": "TemplateElement", - "start": 1750, - "end": 1756, + "start": 1763, + "end": 1769, "loc": { "start": { "line": 51, @@ -3355,8 +3404,8 @@ }, { "type": "TemplateElement", - "start": 1768, - "end": 1778, + "start": 1781, + "end": 1791, "loc": { "start": { "line": 51, @@ -3375,8 +3424,8 @@ }, { "type": "TemplateElement", - "start": 1802, - "end": 1802, + "start": 1815, + "end": 1815, "loc": { "start": { "line": 51, @@ -3398,8 +3447,8 @@ }, { "type": "ObjectProperty", - "start": 1808, - "end": 1831, + "start": 1821, + "end": 1844, "loc": { "start": { "line": 52, @@ -3415,8 +3464,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1808, - "end": 1828, + "start": 1821, + "end": 1841, "loc": { "start": { "line": 52, @@ -3432,8 +3481,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1830, - "end": 1831, + "start": 1843, + "end": 1844, "loc": { "start": { "line": 52, @@ -3461,8 +3510,8 @@ { "type": "CommentLine", "value": " DEVELOPMENT server - auto deploy from pixi branch", - "start": 1604, - "end": 1656, + "start": 1617, + "end": 1669, "loc": { "start": { "line": 49, @@ -3481,8 +3530,8 @@ }, "alternate": { "type": "IfStatement", - "start": 1846, - "end": 2420, + "start": 1859, + "end": 2433, "loc": { "start": { "line": 55, @@ -3495,8 +3544,8 @@ }, "test": { "type": "BinaryExpression", - "start": 1850, - "end": 1889, + "start": 1863, + "end": 1902, "loc": { "start": { "line": 55, @@ -3509,8 +3558,8 @@ }, "left": { "type": "MemberExpression", - "start": 1850, - "end": 1871, + "start": 1863, + "end": 1884, "loc": { "start": { "line": 55, @@ -3523,8 +3572,8 @@ }, "object": { "type": "MemberExpression", - "start": 1850, - "end": 1865, + "start": 1863, + "end": 1878, "loc": { "start": { "line": 55, @@ -3537,8 +3586,8 @@ }, "object": { "type": "Identifier", - "start": 1850, - "end": 1862, + "start": 1863, + "end": 1875, "loc": { "start": { "line": 55, @@ -3554,8 +3603,8 @@ }, "property": { "type": "NumericLiteral", - "start": 1863, - "end": 1864, + "start": 1876, + "end": 1877, "loc": { "start": { "line": 55, @@ -3576,8 +3625,8 @@ }, "property": { "type": "Identifier", - "start": 1866, - "end": 1871, + "start": 1879, + "end": 1884, "loc": { "start": { "line": 55, @@ -3596,8 +3645,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 1876, - "end": 1889, + "start": 1889, + "end": 1902, "loc": { "start": { "line": 55, @@ -3617,8 +3666,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 1891, - "end": 2161, + "start": 1904, + "end": 2174, "loc": { "start": { "line": 55, @@ -3632,8 +3681,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1895, - "end": 1957, + "start": 1908, + "end": 1970, "loc": { "start": { "line": 56, @@ -3646,8 +3695,8 @@ }, "expression": { "type": "CallExpression", - "start": 1895, - "end": 1957, + "start": 1908, + "end": 1970, "loc": { "start": { "line": 56, @@ -3660,8 +3709,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1895, - "end": 1906, + "start": 1908, + "end": 1919, "loc": { "start": { "line": 56, @@ -3674,8 +3723,8 @@ }, "object": { "type": "Identifier", - "start": 1895, - "end": 1902, + "start": 1908, + "end": 1915, "loc": { "start": { "line": 56, @@ -3691,8 +3740,8 @@ }, "property": { "type": "Identifier", - "start": 1903, - "end": 1906, + "start": 1916, + "end": 1919, "loc": { "start": { "line": 56, @@ -3711,8 +3760,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 1907, - "end": 1956, + "start": 1920, + "end": 1969, "loc": { "start": { "line": 56, @@ -3736,8 +3785,8 @@ { "type": "CommentLine", "value": " Local server", - "start": 1960, - "end": 1975, + "start": 1973, + "end": 1988, "loc": { "start": { "line": 57, @@ -3753,8 +3802,8 @@ }, { "type": "ExpressionStatement", - "start": 1978, - "end": 2158, + "start": 1991, + "end": 2171, "loc": { "start": { "line": 58, @@ -3767,8 +3816,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 1978, - "end": 2158, + "start": 1991, + "end": 2171, "loc": { "start": { "line": 58, @@ -3782,8 +3831,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 1978, - "end": 1984, + "start": 1991, + "end": 1997, "loc": { "start": { "line": 58, @@ -3800,8 +3849,8 @@ }, "right": { "type": "CallExpression", - "start": 1987, - "end": 2158, + "start": 2000, + "end": 2171, "loc": { "start": { "line": 58, @@ -3814,8 +3863,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1987, - "end": 1997, + "start": 2000, + "end": 2010, "loc": { "start": { "line": 58, @@ -3828,8 +3877,8 @@ }, "object": { "type": "Identifier", - "start": 1987, - "end": 1989, + "start": 2000, + "end": 2002, "loc": { "start": { "line": 58, @@ -3845,8 +3894,8 @@ }, "property": { "type": "Identifier", - "start": 1990, - "end": 1997, + "start": 2003, + "end": 2010, "loc": { "start": { "line": 58, @@ -3865,8 +3914,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 1998, - "end": 2015, + "start": 2011, + "end": 2028, "loc": { "start": { "line": 58, @@ -3879,8 +3928,8 @@ }, "object": { "type": "Identifier", - "start": 1998, - "end": 2004, + "start": 2011, + "end": 2017, "loc": { "start": { "line": 58, @@ -3896,8 +3945,8 @@ }, "property": { "type": "Identifier", - "start": 2005, - "end": 2015, + "start": 2018, + "end": 2028, "loc": { "start": { "line": 58, @@ -3915,8 +3964,8 @@ }, { "type": "ObjectExpression", - "start": 2017, - "end": 2157, + "start": 2030, + "end": 2170, "loc": { "start": { "line": 58, @@ -3930,8 +3979,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2022, - "end": 2125, + "start": 2035, + "end": 2138, "loc": { "start": { "line": 59, @@ -3947,8 +3996,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2022, - "end": 2027, + "start": 2035, + "end": 2040, "loc": { "start": { "line": 59, @@ -3964,8 +4013,8 @@ }, "value": { "type": "TemplateLiteral", - "start": 2029, - "end": 2125, + "start": 2042, + "end": 2138, "loc": { "start": { "line": 59, @@ -3979,8 +4028,8 @@ "expressions": [ { "type": "Identifier", - "start": 2037, - "end": 2041, + "start": 2050, + "end": 2054, "loc": { "start": { "line": 59, @@ -3996,8 +4045,8 @@ }, { "type": "MemberExpression", - "start": 2050, - "end": 2071, + "start": 2063, + "end": 2084, "loc": { "start": { "line": 59, @@ -4010,8 +4059,8 @@ }, "object": { "type": "MemberExpression", - "start": 2050, - "end": 2065, + "start": 2063, + "end": 2078, "loc": { "start": { "line": 59, @@ -4024,8 +4073,8 @@ }, "object": { "type": "Identifier", - "start": 2050, - "end": 2062, + "start": 2063, + "end": 2075, "loc": { "start": { "line": 59, @@ -4041,8 +4090,8 @@ }, "property": { "type": "NumericLiteral", - "start": 2063, - "end": 2064, + "start": 2076, + "end": 2077, "loc": { "start": { "line": 59, @@ -4063,8 +4112,8 @@ }, "property": { "type": "Identifier", - "start": 2066, - "end": 2071, + "start": 2079, + "end": 2084, "loc": { "start": { "line": 59, @@ -4082,8 +4131,8 @@ }, { "type": "Identifier", - "start": 2080, - "end": 2089, + "start": 2093, + "end": 2102, "loc": { "start": { "line": 59, @@ -4099,8 +4148,8 @@ }, { "type": "MemberExpression", - "start": 2102, - "end": 2123, + "start": 2115, + "end": 2136, "loc": { "start": { "line": 59, @@ -4113,8 +4162,8 @@ }, "object": { "type": "MemberExpression", - "start": 2102, - "end": 2117, + "start": 2115, + "end": 2130, "loc": { "start": { "line": 59, @@ -4127,8 +4176,8 @@ }, "object": { "type": "Identifier", - "start": 2102, - "end": 2114, + "start": 2115, + "end": 2127, "loc": { "start": { "line": 59, @@ -4144,8 +4193,8 @@ }, "property": { "type": "NumericLiteral", - "start": 2115, - "end": 2116, + "start": 2128, + "end": 2129, "loc": { "start": { "line": 59, @@ -4166,8 +4215,8 @@ }, "property": { "type": "Identifier", - "start": 2118, - "end": 2123, + "start": 2131, + "end": 2136, "loc": { "start": { "line": 59, @@ -4187,8 +4236,8 @@ "quasis": [ { "type": "TemplateElement", - "start": 2030, - "end": 2035, + "start": 2043, + "end": 2048, "loc": { "start": { "line": 59, @@ -4207,8 +4256,8 @@ }, { "type": "TemplateElement", - "start": 2042, - "end": 2048, + "start": 2055, + "end": 2061, "loc": { "start": { "line": 59, @@ -4227,8 +4276,8 @@ }, { "type": "TemplateElement", - "start": 2072, - "end": 2078, + "start": 2085, + "end": 2091, "loc": { "start": { "line": 59, @@ -4247,8 +4296,8 @@ }, { "type": "TemplateElement", - "start": 2090, - "end": 2100, + "start": 2103, + "end": 2113, "loc": { "start": { "line": 59, @@ -4267,8 +4316,8 @@ }, { "type": "TemplateElement", - "start": 2124, - "end": 2124, + "start": 2137, + "end": 2137, "loc": { "start": { "line": 59, @@ -4290,8 +4339,8 @@ }, { "type": "ObjectProperty", - "start": 2130, - "end": 2153, + "start": 2143, + "end": 2166, "loc": { "start": { "line": 60, @@ -4307,8 +4356,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2130, - "end": 2150, + "start": 2143, + "end": 2163, "loc": { "start": { "line": 60, @@ -4324,8 +4373,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2152, - "end": 2153, + "start": 2165, + "end": 2166, "loc": { "start": { "line": 60, @@ -4353,8 +4402,8 @@ { "type": "CommentLine", "value": " Local server", - "start": 1960, - "end": 1975, + "start": 1973, + "end": 1988, "loc": { "start": { "line": 57, @@ -4373,8 +4422,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 2168, - "end": 2420, + "start": 2181, + "end": 2433, "loc": { "start": { "line": 63, @@ -4388,8 +4437,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2195, - "end": 2235, + "start": 2208, + "end": 2248, "loc": { "start": { "line": 65, @@ -4402,8 +4451,8 @@ }, "expression": { "type": "CallExpression", - "start": 2195, - "end": 2235, + "start": 2208, + "end": 2248, "loc": { "start": { "line": 65, @@ -4416,8 +4465,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2195, - "end": 2206, + "start": 2208, + "end": 2219, "loc": { "start": { "line": 65, @@ -4430,8 +4479,8 @@ }, "object": { "type": "Identifier", - "start": 2195, - "end": 2202, + "start": 2208, + "end": 2215, "loc": { "start": { "line": 65, @@ -4448,8 +4497,8 @@ }, "property": { "type": "Identifier", - "start": 2203, - "end": 2206, + "start": 2216, + "end": 2219, "loc": { "start": { "line": 65, @@ -4469,8 +4518,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2207, - "end": 2234, + "start": 2220, + "end": 2247, "loc": { "start": { "line": 65, @@ -4494,8 +4543,8 @@ { "type": "CommentLine", "value": " Production server", - "start": 2172, - "end": 2192, + "start": 2185, + "end": 2205, "loc": { "start": { "line": 64, @@ -4511,8 +4560,8 @@ }, { "type": "ExpressionStatement", - "start": 2238, - "end": 2417, + "start": 2251, + "end": 2430, "loc": { "start": { "line": 66, @@ -4525,8 +4574,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 2238, - "end": 2417, + "start": 2251, + "end": 2430, "loc": { "start": { "line": 66, @@ -4540,8 +4589,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 2238, - "end": 2244, + "start": 2251, + "end": 2257, "loc": { "start": { "line": 66, @@ -4557,8 +4606,8 @@ }, "right": { "type": "CallExpression", - "start": 2247, - "end": 2417, + "start": 2260, + "end": 2430, "loc": { "start": { "line": 66, @@ -4571,8 +4620,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2247, - "end": 2257, + "start": 2260, + "end": 2270, "loc": { "start": { "line": 66, @@ -4585,8 +4634,8 @@ }, "object": { "type": "Identifier", - "start": 2247, - "end": 2249, + "start": 2260, + "end": 2262, "loc": { "start": { "line": 66, @@ -4602,8 +4651,8 @@ }, "property": { "type": "Identifier", - "start": 2250, - "end": 2257, + "start": 2263, + "end": 2270, "loc": { "start": { "line": 66, @@ -4622,8 +4671,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 2258, - "end": 2274, + "start": 2271, + "end": 2287, "loc": { "start": { "line": 66, @@ -4636,8 +4685,8 @@ }, "object": { "type": "Identifier", - "start": 2258, - "end": 2264, + "start": 2271, + "end": 2277, "loc": { "start": { "line": 66, @@ -4653,8 +4702,8 @@ }, "property": { "type": "Identifier", - "start": 2265, - "end": 2274, + "start": 2278, + "end": 2287, "loc": { "start": { "line": 66, @@ -4672,8 +4721,8 @@ }, { "type": "ObjectExpression", - "start": 2276, - "end": 2416, + "start": 2289, + "end": 2429, "loc": { "start": { "line": 66, @@ -4687,8 +4736,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2281, - "end": 2384, + "start": 2294, + "end": 2397, "loc": { "start": { "line": 67, @@ -4704,8 +4753,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2281, - "end": 2286, + "start": 2294, + "end": 2299, "loc": { "start": { "line": 67, @@ -4721,8 +4770,8 @@ }, "value": { "type": "TemplateLiteral", - "start": 2288, - "end": 2384, + "start": 2301, + "end": 2397, "loc": { "start": { "line": 67, @@ -4736,8 +4785,8 @@ "expressions": [ { "type": "Identifier", - "start": 2296, - "end": 2300, + "start": 2309, + "end": 2313, "loc": { "start": { "line": 67, @@ -4753,8 +4802,8 @@ }, { "type": "MemberExpression", - "start": 2309, - "end": 2330, + "start": 2322, + "end": 2343, "loc": { "start": { "line": 67, @@ -4767,8 +4816,8 @@ }, "object": { "type": "MemberExpression", - "start": 2309, - "end": 2324, + "start": 2322, + "end": 2337, "loc": { "start": { "line": 67, @@ -4781,8 +4830,8 @@ }, "object": { "type": "Identifier", - "start": 2309, - "end": 2321, + "start": 2322, + "end": 2334, "loc": { "start": { "line": 67, @@ -4798,8 +4847,8 @@ }, "property": { "type": "NumericLiteral", - "start": 2322, - "end": 2323, + "start": 2335, + "end": 2336, "loc": { "start": { "line": 67, @@ -4820,8 +4869,8 @@ }, "property": { "type": "Identifier", - "start": 2325, - "end": 2330, + "start": 2338, + "end": 2343, "loc": { "start": { "line": 67, @@ -4839,8 +4888,8 @@ }, { "type": "Identifier", - "start": 2339, - "end": 2348, + "start": 2352, + "end": 2361, "loc": { "start": { "line": 67, @@ -4856,8 +4905,8 @@ }, { "type": "MemberExpression", - "start": 2361, - "end": 2382, + "start": 2374, + "end": 2395, "loc": { "start": { "line": 67, @@ -4870,8 +4919,8 @@ }, "object": { "type": "MemberExpression", - "start": 2361, - "end": 2376, + "start": 2374, + "end": 2389, "loc": { "start": { "line": 67, @@ -4884,8 +4933,8 @@ }, "object": { "type": "Identifier", - "start": 2361, - "end": 2373, + "start": 2374, + "end": 2386, "loc": { "start": { "line": 67, @@ -4901,8 +4950,8 @@ }, "property": { "type": "NumericLiteral", - "start": 2374, - "end": 2375, + "start": 2387, + "end": 2388, "loc": { "start": { "line": 67, @@ -4923,8 +4972,8 @@ }, "property": { "type": "Identifier", - "start": 2377, - "end": 2382, + "start": 2390, + "end": 2395, "loc": { "start": { "line": 67, @@ -4944,8 +4993,8 @@ "quasis": [ { "type": "TemplateElement", - "start": 2289, - "end": 2294, + "start": 2302, + "end": 2307, "loc": { "start": { "line": 67, @@ -4964,8 +5013,8 @@ }, { "type": "TemplateElement", - "start": 2301, - "end": 2307, + "start": 2314, + "end": 2320, "loc": { "start": { "line": 67, @@ -4984,8 +5033,8 @@ }, { "type": "TemplateElement", - "start": 2331, - "end": 2337, + "start": 2344, + "end": 2350, "loc": { "start": { "line": 67, @@ -5004,8 +5053,8 @@ }, { "type": "TemplateElement", - "start": 2349, - "end": 2359, + "start": 2362, + "end": 2372, "loc": { "start": { "line": 67, @@ -5024,8 +5073,8 @@ }, { "type": "TemplateElement", - "start": 2383, - "end": 2383, + "start": 2396, + "end": 2396, "loc": { "start": { "line": 67, @@ -5047,8 +5096,8 @@ }, { "type": "ObjectProperty", - "start": 2389, - "end": 2412, + "start": 2402, + "end": 2425, "loc": { "start": { "line": 68, @@ -5064,8 +5113,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2389, - "end": 2409, + "start": 2402, + "end": 2422, "loc": { "start": { "line": 68, @@ -5081,8 +5130,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2411, - "end": 2412, + "start": 2424, + "end": 2425, "loc": { "start": { "line": 68, @@ -5113,8 +5162,8 @@ }, { "type": "ExpressionStatement", - "start": 2423, - "end": 2558, + "start": 2436, + "end": 2571, "loc": { "start": { "line": 72, @@ -5127,8 +5176,8 @@ }, "expression": { "type": "CallExpression", - "start": 2423, - "end": 2558, + "start": 2436, + "end": 2571, "loc": { "start": { "line": 72, @@ -5141,8 +5190,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2423, - "end": 2432, + "start": 2436, + "end": 2445, "loc": { "start": { "line": 72, @@ -5155,8 +5204,8 @@ }, "object": { "type": "Identifier", - "start": 2423, - "end": 2429, + "start": 2436, + "end": 2442, "loc": { "start": { "line": 72, @@ -5172,8 +5221,8 @@ }, "property": { "type": "Identifier", - "start": 2430, - "end": 2432, + "start": 2443, + "end": 2445, "loc": { "start": { "line": 72, @@ -5192,8 +5241,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2433, - "end": 2442, + "start": 2446, + "end": 2455, "loc": { "start": { "line": 72, @@ -5212,8 +5261,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 2444, - "end": 2557, + "start": 2457, + "end": 2570, "loc": { "start": { "line": 72, @@ -5231,8 +5280,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 2450, - "end": 2557, + "start": 2463, + "end": 2570, "loc": { "start": { "line": 72, @@ -5246,8 +5295,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2454, - "end": 2467, + "start": 2467, + "end": 2480, "loc": { "start": { "line": 73, @@ -5260,8 +5309,8 @@ }, "expression": { "type": "CallExpression", - "start": 2454, - "end": 2467, + "start": 2467, + "end": 2480, "loc": { "start": { "line": 73, @@ -5274,8 +5323,8 @@ }, "callee": { "type": "Identifier", - "start": 2454, - "end": 2465, + "start": 2467, + "end": 2478, "loc": { "start": { "line": 73, @@ -5296,8 +5345,8 @@ { "type": "CommentLine", "value": " Init pixi", - "start": 2470, - "end": 2482, + "start": 2483, + "end": 2495, "loc": { "start": { "line": 74, @@ -5313,8 +5362,8 @@ }, { "type": "ExpressionStatement", - "start": 2485, - "end": 2499, + "start": 2498, + "end": 2512, "loc": { "start": { "line": 75, @@ -5327,8 +5376,8 @@ }, "expression": { "type": "CallExpression", - "start": 2485, - "end": 2499, + "start": 2498, + "end": 2512, "loc": { "start": { "line": 75, @@ -5341,8 +5390,8 @@ }, "callee": { "type": "Identifier", - "start": 2485, - "end": 2497, + "start": 2498, + "end": 2510, "loc": { "start": { "line": 75, @@ -5364,8 +5413,8 @@ { "type": "CommentLine", "value": " Init pixi", - "start": 2470, - "end": 2482, + "start": 2483, + "end": 2495, "loc": { "start": { "line": 74, @@ -5381,8 +5430,8 @@ }, { "type": "IfStatement", - "start": 2502, - "end": 2554, + "start": 2515, + "end": 2567, "loc": { "start": { "line": 76, @@ -5395,8 +5444,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2506, - "end": 2532, + "start": 2519, + "end": 2545, "loc": { "start": { "line": 76, @@ -5409,8 +5458,8 @@ }, "left": { "type": "UnaryExpression", - "start": 2506, - "end": 2516, + "start": 2519, + "end": 2529, "loc": { "start": { "line": 76, @@ -5425,8 +5474,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 2513, - "end": 2516, + "start": 2526, + "end": 2529, "loc": { "start": { "line": 76, @@ -5447,8 +5496,8 @@ "operator": "!==", "right": { "type": "StringLiteral", - "start": 2521, - "end": 2532, + "start": 2534, + "end": 2545, "loc": { "start": { "line": 76, @@ -5468,8 +5517,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2534, - "end": 2554, + "start": 2547, + "end": 2567, "loc": { "start": { "line": 76, @@ -5483,8 +5532,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2539, - "end": 2550, + "start": 2552, + "end": 2563, "loc": { "start": { "line": 77, @@ -5497,8 +5546,8 @@ }, "expression": { "type": "CallExpression", - "start": 2539, - "end": 2550, + "start": 2552, + "end": 2563, "loc": { "start": { "line": 77, @@ -5511,8 +5560,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2539, - "end": 2548, + "start": 2552, + "end": 2561, "loc": { "start": { "line": 77, @@ -5525,8 +5574,8 @@ }, "object": { "type": "Identifier", - "start": 2539, - "end": 2542, + "start": 2552, + "end": 2555, "loc": { "start": { "line": 77, @@ -5542,8 +5591,8 @@ }, "property": { "type": "Identifier", - "start": 2543, - "end": 2548, + "start": 2556, + "end": 2561, "loc": { "start": { "line": 77, @@ -5582,8 +5631,8 @@ { "type": "CommentBlock", "value": "*\n * Attempts to connect to the server. Run on 'start game' press.\n * - Manages connecting to main server vs. devserver\n * - Sets up socket listeners\n * - Loads textures\n * - Loads pixi\n ", - "start": 978, - "end": 1173, + "start": 991, + "end": 1186, "loc": { "start": { "line": 35, @@ -5600,8 +5649,8 @@ { "type": "CommentBlock", "value": "*\n * Run on disconnect to reset all server-based variables and connections\n ", - "start": 2562, - "end": 2642, + "start": 2575, + "end": 2655, "loc": { "start": { "line": 82, @@ -5619,8 +5668,8 @@ { "type": "CommentBlock", "value": "*\n * Attempts to connect to the server. Run on 'start game' press.\n * - Manages connecting to main server vs. devserver\n * - Sets up socket listeners\n * - Loads textures\n * - Loads pixi\n ", - "start": 978, - "end": 1173, + "start": 991, + "end": 1186, "loc": { "start": { "line": 35, @@ -5637,8 +5686,8 @@ { "type": "CommentBlock", "value": "*\n * Run on disconnect to reset all server-based variables and connections\n ", - "start": 2562, - "end": 2642, + "start": 2575, + "end": 2655, "loc": { "start": { "line": 82, @@ -5654,8 +5703,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 2643, - "end": 2791, + "start": 2656, + "end": 2804, "loc": { "start": { "line": 85, @@ -5670,8 +5719,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 2650, - "end": 2791, + "start": 2663, + "end": 2804, "loc": { "start": { "line": 85, @@ -5684,8 +5733,8 @@ }, "id": { "type": "Identifier", - "start": 2659, - "end": 2669, + "start": 2672, + "end": 2682, "loc": { "start": { "line": 85, @@ -5706,8 +5755,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 2673, - "end": 2791, + "start": 2686, + "end": 2804, "loc": { "start": { "line": 85, @@ -5721,8 +5770,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2676, - "end": 2686, + "start": 2689, + "end": 2699, "loc": { "start": { "line": 86, @@ -5735,8 +5784,8 @@ }, "expression": { "type": "CallExpression", - "start": 2676, - "end": 2686, + "start": 2689, + "end": 2699, "loc": { "start": { "line": 86, @@ -5749,8 +5798,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2676, - "end": 2684, + "start": 2689, + "end": 2697, "loc": { "start": { "line": 86, @@ -5763,8 +5812,8 @@ }, "object": { "type": "Identifier", - "start": 2676, - "end": 2679, + "start": 2689, + "end": 2692, "loc": { "start": { "line": 86, @@ -5780,8 +5829,8 @@ }, "property": { "type": "Identifier", - "start": 2680, - "end": 2684, + "start": 2693, + "end": 2697, "loc": { "start": { "line": 86, @@ -5802,8 +5851,8 @@ }, { "type": "ExpressionStatement", - "start": 2688, - "end": 2707, + "start": 2701, + "end": 2720, "loc": { "start": { "line": 87, @@ -5816,8 +5865,8 @@ }, "expression": { "type": "CallExpression", - "start": 2688, - "end": 2707, + "start": 2701, + "end": 2720, "loc": { "start": { "line": 87, @@ -5830,8 +5879,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2688, - "end": 2705, + "start": 2701, + "end": 2718, "loc": { "start": { "line": 87, @@ -5844,8 +5893,8 @@ }, "object": { "type": "Identifier", - "start": 2688, - "end": 2694, + "start": 2701, + "end": 2707, "loc": { "start": { "line": 87, @@ -5861,8 +5910,8 @@ }, "property": { "type": "Identifier", - "start": 2695, - "end": 2705, + "start": 2708, + "end": 2718, "loc": { "start": { "line": 87, @@ -5885,8 +5934,8 @@ { "type": "CommentLine", "value": " Wipe objects list", - "start": 2710, - "end": 2730, + "start": 2723, + "end": 2743, "loc": { "start": { "line": 89, @@ -5902,8 +5951,8 @@ }, { "type": "ForInStatement", - "start": 2732, - "end": 2789, + "start": 2745, + "end": 2802, "loc": { "start": { "line": 90, @@ -5916,8 +5965,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 2737, - "end": 2748, + "start": 2750, + "end": 2761, "loc": { "start": { "line": 90, @@ -5931,8 +5980,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2741, - "end": 2748, + "start": 2754, + "end": 2761, "loc": { "start": { "line": 90, @@ -5945,8 +5994,8 @@ }, "id": { "type": "Identifier", - "start": 2741, - "end": 2748, + "start": 2754, + "end": 2761, "loc": { "start": { "line": 90, @@ -5970,8 +6019,8 @@ }, "right": { "type": "Identifier", - "start": 2752, - "end": 2759, + "start": 2765, + "end": 2772, "loc": { "start": { "line": 90, @@ -5987,8 +6036,8 @@ }, "body": { "type": "BlockStatement", - "start": 2761, - "end": 2789, + "start": 2774, + "end": 2802, "loc": { "start": { "line": 90, @@ -6002,8 +6051,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2765, - "end": 2786, + "start": 2778, + "end": 2799, "loc": { "start": { "line": 91, @@ -6016,8 +6065,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 2765, - "end": 2786, + "start": 2778, + "end": 2799, "loc": { "start": { "line": 91, @@ -6031,8 +6080,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 2765, - "end": 2781, + "start": 2778, + "end": 2794, "loc": { "start": { "line": 91, @@ -6045,8 +6094,8 @@ }, "object": { "type": "Identifier", - "start": 2765, - "end": 2772, + "start": 2778, + "end": 2785, "loc": { "start": { "line": 91, @@ -6062,8 +6111,8 @@ }, "property": { "type": "Identifier", - "start": 2773, - "end": 2780, + "start": 2786, + "end": 2793, "loc": { "start": { "line": 91, @@ -6081,8 +6130,8 @@ }, "right": { "type": "ObjectExpression", - "start": 2784, - "end": 2786, + "start": 2797, + "end": 2799, "loc": { "start": { "line": 91, @@ -6104,8 +6153,8 @@ { "type": "CommentLine", "value": " Wipe objects list", - "start": 2710, - "end": 2730, + "start": 2723, + "end": 2743, "loc": { "start": { "line": 89, @@ -6127,8 +6176,8 @@ { "type": "CommentBlock", "value": "*\n * Run on disconnect to reset all server-based variables and connections\n ", - "start": 2562, - "end": 2642, + "start": 2575, + "end": 2655, "loc": { "start": { "line": 82, @@ -6145,8 +6194,8 @@ { "type": "CommentBlock", "value": "*\n * First time setup when connection starts. Run on connect event to ensure that the socket is connected first.\n ", - "start": 2793, - "end": 2911, + "start": 2806, + "end": 2924, "loc": { "start": { "line": 95, @@ -6164,8 +6213,8 @@ { "type": "CommentBlock", "value": "*\n * Run on disconnect to reset all server-based variables and connections\n ", - "start": 2562, - "end": 2642, + "start": 2575, + "end": 2655, "loc": { "start": { "line": 82, @@ -6182,8 +6231,8 @@ { "type": "CommentBlock", "value": "*\n * First time setup when connection starts. Run on connect event to ensure that the socket is connected first.\n ", - "start": 2793, - "end": 2911, + "start": 2806, + "end": 2924, "loc": { "start": { "line": 95, @@ -6199,8 +6248,8 @@ }, { "type": "FunctionDeclaration", - "start": 2912, - "end": 3399, + "start": 2925, + "end": 3412, "loc": { "start": { "line": 98, @@ -6213,8 +6262,8 @@ }, "id": { "type": "Identifier", - "start": 2921, - "end": 2932, + "start": 2934, + "end": 2945, "loc": { "start": { "line": 98, @@ -6235,8 +6284,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 2936, - "end": 3399, + "start": 2949, + "end": 3412, "loc": { "start": { "line": 98, @@ -6250,8 +6299,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2949, - "end": 2979, + "start": 2962, + "end": 2992, "loc": { "start": { "line": 100, @@ -6264,8 +6313,8 @@ }, "expression": { "type": "CallExpression", - "start": 2949, - "end": 2979, + "start": 2962, + "end": 2992, "loc": { "start": { "line": 100, @@ -6278,8 +6327,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2949, - "end": 2960, + "start": 2962, + "end": 2973, "loc": { "start": { "line": 100, @@ -6292,8 +6341,8 @@ }, "object": { "type": "Identifier", - "start": 2949, - "end": 2956, + "start": 2962, + "end": 2969, "loc": { "start": { "line": 100, @@ -6310,8 +6359,8 @@ }, "property": { "type": "Identifier", - "start": 2957, - "end": 2960, + "start": 2970, + "end": 2973, "loc": { "start": { "line": 100, @@ -6331,8 +6380,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2961, - "end": 2970, + "start": 2974, + "end": 2983, "loc": { "start": { "line": 100, @@ -6351,8 +6400,8 @@ }, { "type": "Identifier", - "start": 2972, - "end": 2978, + "start": 2985, + "end": 2991, "loc": { "start": { "line": 100, @@ -6374,8 +6423,8 @@ { "type": "CommentLine", "value": " Debug", - "start": 2939, - "end": 2947, + "start": 2952, + "end": 2960, "loc": { "start": { "line": 99, @@ -6392,8 +6441,8 @@ { "type": "CommentLine", "value": " Instantiate Chat System", - "start": 2982, - "end": 3008, + "start": 2995, + "end": 3021, "loc": { "start": { "line": 102, @@ -6409,8 +6458,8 @@ }, { "type": "VariableDeclaration", - "start": 3010, - "end": 3128, + "start": 3023, + "end": 3141, "loc": { "start": { "line": 103, @@ -6424,8 +6473,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 3014, - "end": 3128, + "start": 3027, + "end": 3141, "loc": { "start": { "line": 103, @@ -6438,8 +6487,8 @@ }, "id": { "type": "Identifier", - "start": 3014, - "end": 3018, + "start": 3027, + "end": 3031, "loc": { "start": { "line": 103, @@ -6456,8 +6505,8 @@ }, "init": { "type": "NewExpression", - "start": 3021, - "end": 3128, + "start": 3034, + "end": 3141, "loc": { "start": { "line": 103, @@ -6470,8 +6519,8 @@ }, "callee": { "type": "Identifier", - "start": 3025, - "end": 3035, + "start": 3038, + "end": 3048, "loc": { "start": { "line": 103, @@ -6488,8 +6537,8 @@ "arguments": [ { "type": "ObjectExpression", - "start": 3036, - "end": 3127, + "start": 3049, + "end": 3140, "loc": { "start": { "line": 103, @@ -6503,8 +6552,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3038, - "end": 3067, + "start": 3051, + "end": 3080, "loc": { "start": { "line": 103, @@ -6520,8 +6569,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3038, - "end": 3044, + "start": 3051, + "end": 3057, "loc": { "start": { "line": 103, @@ -6537,8 +6586,8 @@ }, "value": { "type": "MemberExpression", - "start": 3046, - "end": 3067, + "start": 3059, + "end": 3080, "loc": { "start": { "line": 103, @@ -6551,8 +6600,8 @@ }, "object": { "type": "MemberExpression", - "start": 3046, - "end": 3061, + "start": 3059, + "end": 3074, "loc": { "start": { "line": 103, @@ -6565,8 +6614,8 @@ }, "object": { "type": "Identifier", - "start": 3046, - "end": 3058, + "start": 3059, + "end": 3071, "loc": { "start": { "line": 103, @@ -6582,8 +6631,8 @@ }, "property": { "type": "NumericLiteral", - "start": 3059, - "end": 3060, + "start": 3072, + "end": 3073, "loc": { "start": { "line": 103, @@ -6604,8 +6653,8 @@ }, "property": { "type": "Identifier", - "start": 3062, - "end": 3067, + "start": 3075, + "end": 3080, "loc": { "start": { "line": 103, @@ -6624,8 +6673,8 @@ }, { "type": "ObjectProperty", - "start": 3069, - "end": 3096, + "start": 3082, + "end": 3109, "loc": { "start": { "line": 103, @@ -6641,8 +6690,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3069, - "end": 3073, + "start": 3082, + "end": 3086, "loc": { "start": { "line": 103, @@ -6658,8 +6707,8 @@ }, "value": { "type": "MemberExpression", - "start": 3075, - "end": 3096, + "start": 3088, + "end": 3109, "loc": { "start": { "line": 103, @@ -6672,8 +6721,8 @@ }, "object": { "type": "MemberExpression", - "start": 3075, - "end": 3090, + "start": 3088, + "end": 3103, "loc": { "start": { "line": 103, @@ -6686,8 +6735,8 @@ }, "object": { "type": "Identifier", - "start": 3075, - "end": 3087, + "start": 3088, + "end": 3100, "loc": { "start": { "line": 103, @@ -6703,8 +6752,8 @@ }, "property": { "type": "NumericLiteral", - "start": 3088, - "end": 3089, + "start": 3101, + "end": 3102, "loc": { "start": { "line": 103, @@ -6725,8 +6774,8 @@ }, "property": { "type": "Identifier", - "start": 3091, - "end": 3096, + "start": 3104, + "end": 3109, "loc": { "start": { "line": 103, @@ -6745,8 +6794,8 @@ }, { "type": "ObjectProperty", - "start": 3098, - "end": 3125, + "start": 3111, + "end": 3138, "loc": { "start": { "line": 103, @@ -6762,8 +6811,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3098, - "end": 3102, + "start": 3111, + "end": 3115, "loc": { "start": { "line": 103, @@ -6779,8 +6828,8 @@ }, "value": { "type": "MemberExpression", - "start": 3104, - "end": 3125, + "start": 3117, + "end": 3138, "loc": { "start": { "line": 103, @@ -6793,8 +6842,8 @@ }, "object": { "type": "MemberExpression", - "start": 3104, - "end": 3119, + "start": 3117, + "end": 3132, "loc": { "start": { "line": 103, @@ -6807,8 +6856,8 @@ }, "object": { "type": "Identifier", - "start": 3104, - "end": 3116, + "start": 3117, + "end": 3129, "loc": { "start": { "line": 103, @@ -6824,8 +6873,8 @@ }, "property": { "type": "NumericLiteral", - "start": 3117, - "end": 3118, + "start": 3130, + "end": 3131, "loc": { "start": { "line": 103, @@ -6846,8 +6895,8 @@ }, "property": { "type": "Identifier", - "start": 3120, - "end": 3125, + "start": 3133, + "end": 3138, "loc": { "start": { "line": 103, @@ -6876,8 +6925,8 @@ { "type": "CommentLine", "value": " Instantiate Chat System", - "start": 2982, - "end": 3008, + "start": 2995, + "end": 3021, "loc": { "start": { "line": 102, @@ -6893,8 +6942,8 @@ }, { "type": "ExpressionStatement", - "start": 3130, - "end": 3179, + "start": 3143, + "end": 3192, "loc": { "start": { "line": 104, @@ -6907,8 +6956,8 @@ }, "expression": { "type": "CallExpression", - "start": 3130, - "end": 3179, + "start": 3143, + "end": 3192, "loc": { "start": { "line": 104, @@ -6921,8 +6970,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3130, - "end": 3150, + "start": 3143, + "end": 3163, "loc": { "start": { "line": 104, @@ -6935,8 +6984,8 @@ }, "object": { "type": "Identifier", - "start": 3130, - "end": 3134, + "start": 3143, + "end": 3147, "loc": { "start": { "line": 104, @@ -6952,8 +7001,8 @@ }, "property": { "type": "Identifier", - "start": 3135, - "end": 3150, + "start": 3148, + "end": 3163, "loc": { "start": { "line": 104, @@ -6972,8 +7021,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 3151, - "end": 3172, + "start": 3164, + "end": 3185, "loc": { "start": { "line": 104, @@ -6986,8 +7035,8 @@ }, "object": { "type": "MemberExpression", - "start": 3151, - "end": 3166, + "start": 3164, + "end": 3179, "loc": { "start": { "line": 104, @@ -7000,8 +7049,8 @@ }, "object": { "type": "Identifier", - "start": 3151, - "end": 3163, + "start": 3164, + "end": 3176, "loc": { "start": { "line": 104, @@ -7017,8 +7066,8 @@ }, "property": { "type": "NumericLiteral", - "start": 3164, - "end": 3165, + "start": 3177, + "end": 3178, "loc": { "start": { "line": 104, @@ -7039,8 +7088,8 @@ }, "property": { "type": "Identifier", - "start": 3167, - "end": 3172, + "start": 3180, + "end": 3185, "loc": { "start": { "line": 104, @@ -7058,8 +7107,8 @@ }, { "type": "BooleanLiteral", - "start": 3174, - "end": 3178, + "start": 3187, + "end": 3191, "loc": { "start": { "line": 104, @@ -7077,8 +7126,8 @@ }, { "type": "ExpressionStatement", - "start": 3181, - "end": 3205, + "start": 3194, + "end": 3218, "loc": { "start": { "line": 105, @@ -7091,8 +7140,8 @@ }, "expression": { "type": "CallExpression", - "start": 3181, - "end": 3205, + "start": 3194, + "end": 3218, "loc": { "start": { "line": 105, @@ -7105,8 +7154,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3181, - "end": 3203, + "start": 3194, + "end": 3216, "loc": { "start": { "line": 105, @@ -7119,8 +7168,8 @@ }, "object": { "type": "Identifier", - "start": 3181, - "end": 3185, + "start": 3194, + "end": 3198, "loc": { "start": { "line": 105, @@ -7136,8 +7185,8 @@ }, "property": { "type": "Identifier", - "start": 3186, - "end": 3203, + "start": 3199, + "end": 3216, "loc": { "start": { "line": 105, @@ -7160,8 +7209,8 @@ { "type": "CommentLine", "value": " Setup listeners", - "start": 3208, - "end": 3226, + "start": 3221, + "end": 3239, "loc": { "start": { "line": 107, @@ -7177,8 +7226,8 @@ }, { "type": "ExpressionStatement", - "start": 3228, - "end": 3251, + "start": 3241, + "end": 3264, "loc": { "start": { "line": 108, @@ -7191,8 +7240,8 @@ }, "expression": { "type": "CallExpression", - "start": 3228, - "end": 3251, + "start": 3241, + "end": 3264, "loc": { "start": { "line": 108, @@ -7205,8 +7254,8 @@ }, "callee": { "type": "Identifier", - "start": 3228, - "end": 3249, + "start": 3241, + "end": 3262, "loc": { "start": { "line": 108, @@ -7228,8 +7277,8 @@ { "type": "CommentLine", "value": " Setup listeners", - "start": 3208, - "end": 3226, + "start": 3221, + "end": 3239, "loc": { "start": { "line": 107, @@ -7245,8 +7294,8 @@ }, { "type": "ExpressionStatement", - "start": 3253, - "end": 3274, + "start": 3266, + "end": 3287, "loc": { "start": { "line": 109, @@ -7259,8 +7308,8 @@ }, "expression": { "type": "CallExpression", - "start": 3253, - "end": 3274, + "start": 3266, + "end": 3287, "loc": { "start": { "line": 109, @@ -7273,8 +7322,8 @@ }, "callee": { "type": "Identifier", - "start": 3253, - "end": 3268, + "start": 3266, + "end": 3281, "loc": { "start": { "line": 109, @@ -7291,8 +7340,8 @@ "arguments": [ { "type": "Identifier", - "start": 3269, - "end": 3273, + "start": 3282, + "end": 3286, "loc": { "start": { "line": 109, @@ -7311,8 +7360,8 @@ }, { "type": "ExpressionStatement", - "start": 3276, - "end": 3304, + "start": 3289, + "end": 3317, "loc": { "start": { "line": 110, @@ -7325,8 +7374,8 @@ }, "expression": { "type": "CallExpression", - "start": 3276, - "end": 3304, + "start": 3289, + "end": 3317, "loc": { "start": { "line": 110, @@ -7339,8 +7388,8 @@ }, "callee": { "type": "Identifier", - "start": 3276, - "end": 3302, + "start": 3289, + "end": 3315, "loc": { "start": { "line": 110, @@ -7361,8 +7410,8 @@ { "type": "CommentLine", "value": " Emit join message,", - "start": 3307, - "end": 3328, + "start": 3320, + "end": 3341, "loc": { "start": { "line": 112, @@ -7378,8 +7427,8 @@ }, { "type": "ExpressionStatement", - "start": 3330, - "end": 3397, + "start": 3343, + "end": 3410, "loc": { "start": { "line": 113, @@ -7392,8 +7441,8 @@ }, "expression": { "type": "CallExpression", - "start": 3330, - "end": 3397, + "start": 3343, + "end": 3410, "loc": { "start": { "line": 113, @@ -7406,8 +7455,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3330, - "end": 3341, + "start": 3343, + "end": 3354, "loc": { "start": { "line": 113, @@ -7420,8 +7469,8 @@ }, "object": { "type": "Identifier", - "start": 3330, - "end": 3336, + "start": 3343, + "end": 3349, "loc": { "start": { "line": 113, @@ -7438,8 +7487,8 @@ }, "property": { "type": "Identifier", - "start": 3337, - "end": 3341, + "start": 3350, + "end": 3354, "loc": { "start": { "line": 113, @@ -7459,8 +7508,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 3342, - "end": 3354, + "start": 3355, + "end": 3367, "loc": { "start": { "line": 113, @@ -7479,8 +7528,8 @@ }, { "type": "ObjectExpression", - "start": 3356, - "end": 3396, + "start": 3369, + "end": 3409, "loc": { "start": { "line": 113, @@ -7494,8 +7543,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3358, - "end": 3377, + "start": 3371, + "end": 3390, "loc": { "start": { "line": 113, @@ -7511,8 +7560,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3358, - "end": 3364, + "start": 3371, + "end": 3377, "loc": { "start": { "line": 113, @@ -7528,8 +7577,8 @@ }, "value": { "type": "MemberExpression", - "start": 3366, - "end": 3377, + "start": 3379, + "end": 3390, "loc": { "start": { "line": 113, @@ -7542,8 +7591,8 @@ }, "object": { "type": "Identifier", - "start": 3366, - "end": 3370, + "start": 3379, + "end": 3383, "loc": { "start": { "line": 113, @@ -7559,8 +7608,8 @@ }, "property": { "type": "Identifier", - "start": 3371, - "end": 3377, + "start": 3384, + "end": 3390, "loc": { "start": { "line": 113, @@ -7579,8 +7628,8 @@ }, { "type": "ObjectProperty", - "start": 3379, - "end": 3394, + "start": 3392, + "end": 3407, "loc": { "start": { "line": 113, @@ -7596,8 +7645,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3379, - "end": 3383, + "start": 3392, + "end": 3396, "loc": { "start": { "line": 113, @@ -7613,8 +7662,8 @@ }, "value": { "type": "MemberExpression", - "start": 3385, - "end": 3394, + "start": 3398, + "end": 3407, "loc": { "start": { "line": 113, @@ -7627,8 +7676,8 @@ }, "object": { "type": "Identifier", - "start": 3385, - "end": 3389, + "start": 3398, + "end": 3402, "loc": { "start": { "line": 113, @@ -7644,8 +7693,8 @@ }, "property": { "type": "Identifier", - "start": 3390, - "end": 3394, + "start": 3403, + "end": 3407, "loc": { "start": { "line": 113, @@ -7671,8 +7720,8 @@ { "type": "CommentLine", "value": " Emit join message,", - "start": 3307, - "end": 3328, + "start": 3320, + "end": 3341, "loc": { "start": { "line": 112, @@ -7694,8 +7743,8 @@ { "type": "CommentBlock", "value": "*\n * First time setup when connection starts. Run on connect event to ensure that the socket is connected first.\n ", - "start": 2793, - "end": 2911, + "start": 2806, + "end": 2924, "loc": { "start": { "line": 95, @@ -7712,8 +7761,8 @@ { "type": "CommentBlock", "value": "*\n * Sets up socket object syncing.\n * Run in setupSocket().\n ", - "start": 3401, - "end": 3467, + "start": 3414, + "end": 3480, "loc": { "start": { "line": 116, @@ -7729,8 +7778,8 @@ }, { "type": "FunctionDeclaration", - "start": 3468, - "end": 7240, + "start": 3481, + "end": 7253, "loc": { "start": { "line": 120, @@ -7743,8 +7792,8 @@ }, "id": { "type": "Identifier", - "start": 3477, - "end": 3503, + "start": 3490, + "end": 3516, "loc": { "start": { "line": 120, @@ -7765,8 +7814,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 3507, - "end": 7240, + "start": 3520, + "end": 7253, "loc": { "start": { "line": 120, @@ -7780,8 +7829,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 3557, - "end": 5408, + "start": 3570, + "end": 5421, "loc": { "start": { "line": 122, @@ -7794,8 +7843,8 @@ }, "expression": { "type": "CallExpression", - "start": 3557, - "end": 5408, + "start": 3570, + "end": 5421, "loc": { "start": { "line": 122, @@ -7808,8 +7857,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3557, - "end": 3566, + "start": 3570, + "end": 3579, "loc": { "start": { "line": 122, @@ -7822,8 +7871,8 @@ }, "object": { "type": "Identifier", - "start": 3557, - "end": 3563, + "start": 3570, + "end": 3576, "loc": { "start": { "line": 122, @@ -7840,8 +7889,8 @@ }, "property": { "type": "Identifier", - "start": 3564, - "end": 3566, + "start": 3577, + "end": 3579, "loc": { "start": { "line": 122, @@ -7861,8 +7910,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 3567, - "end": 3579, + "start": 3580, + "end": 3592, "loc": { "start": { "line": 122, @@ -7881,8 +7930,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 3581, - "end": 5407, + "start": 3594, + "end": 5420, "loc": { "start": { "line": 122, @@ -7900,8 +7949,8 @@ "params": [ { "type": "Identifier", - "start": 3582, - "end": 3586, + "start": 3595, + "end": 3599, "loc": { "start": { "line": 122, @@ -7918,8 +7967,8 @@ ], "body": { "type": "BlockStatement", - "start": 3591, - "end": 5407, + "start": 3604, + "end": 5420, "loc": { "start": { "line": 122, @@ -7933,8 +7982,8 @@ "body": [ { "type": "ForInStatement", - "start": 3595, - "end": 5404, + "start": 3608, + "end": 5417, "loc": { "start": { "line": 123, @@ -7947,8 +7996,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 3600, - "end": 3611, + "start": 3613, + "end": 3624, "loc": { "start": { "line": 123, @@ -7962,8 +8011,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 3604, - "end": 3611, + "start": 3617, + "end": 3624, "loc": { "start": { "line": 123, @@ -7976,8 +8025,8 @@ }, "id": { "type": "Identifier", - "start": 3604, - "end": 3611, + "start": 3617, + "end": 3624, "loc": { "start": { "line": 123, @@ -7998,8 +8047,8 @@ }, "right": { "type": "Identifier", - "start": 3615, - "end": 3619, + "start": 3628, + "end": 3632, "loc": { "start": { "line": 123, @@ -8015,8 +8064,8 @@ }, "body": { "type": "BlockStatement", - "start": 3621, - "end": 5404, + "start": 3634, + "end": 5417, "loc": { "start": { "line": 123, @@ -8030,8 +8079,8 @@ "body": [ { "type": "IfStatement", - "start": 3626, - "end": 5015, + "start": 3639, + "end": 5028, "loc": { "start": { "line": 124, @@ -8044,8 +8093,8 @@ }, "test": { "type": "BinaryExpression", - "start": 3630, - "end": 3649, + "start": 3643, + "end": 3662, "loc": { "start": { "line": 124, @@ -8058,8 +8107,8 @@ }, "left": { "type": "Identifier", - "start": 3630, - "end": 3637, + "start": 3643, + "end": 3650, "loc": { "start": { "line": 124, @@ -8076,8 +8125,8 @@ "operator": "!==", "right": { "type": "StringLiteral", - "start": 3642, - "end": 3649, + "start": 3655, + "end": 3662, "loc": { "start": { "line": 124, @@ -8097,8 +8146,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 3651, - "end": 5015, + "start": 3664, + "end": 5028, "loc": { "start": { "line": 124, @@ -8112,8 +8161,8 @@ "body": [ { "type": "ForInStatement", - "start": 3657, - "end": 5010, + "start": 3670, + "end": 5023, "loc": { "start": { "line": 125, @@ -8126,8 +8175,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 3662, - "end": 3669, + "start": 3675, + "end": 3682, "loc": { "start": { "line": 125, @@ -8141,8 +8190,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 3666, - "end": 3669, + "start": 3679, + "end": 3682, "loc": { "start": { "line": 125, @@ -8155,8 +8204,8 @@ }, "id": { "type": "Identifier", - "start": 3666, - "end": 3669, + "start": 3679, + "end": 3682, "loc": { "start": { "line": 125, @@ -8177,8 +8226,8 @@ }, "right": { "type": "MemberExpression", - "start": 3673, - "end": 3686, + "start": 3686, + "end": 3699, "loc": { "start": { "line": 125, @@ -8191,8 +8240,8 @@ }, "object": { "type": "Identifier", - "start": 3673, - "end": 3677, + "start": 3686, + "end": 3690, "loc": { "start": { "line": 125, @@ -8208,8 +8257,8 @@ }, "property": { "type": "Identifier", - "start": 3678, - "end": 3685, + "start": 3691, + "end": 3698, "loc": { "start": { "line": 125, @@ -8227,8 +8276,8 @@ }, "body": { "type": "BlockStatement", - "start": 3688, - "end": 5010, + "start": 3701, + "end": 5023, "loc": { "start": { "line": 125, @@ -8242,8 +8291,8 @@ "body": [ { "type": "IfStatement", - "start": 3695, - "end": 5004, + "start": 3708, + "end": 5017, "loc": { "start": { "line": 126, @@ -8256,8 +8305,8 @@ }, "test": { "type": "BinaryExpression", - "start": 3699, - "end": 3726, + "start": 3712, + "end": 3739, "loc": { "start": { "line": 126, @@ -8270,8 +8319,8 @@ }, "left": { "type": "MemberExpression", - "start": 3699, - "end": 3717, + "start": 3712, + "end": 3730, "loc": { "start": { "line": 126, @@ -8284,8 +8333,8 @@ }, "object": { "type": "MemberExpression", - "start": 3699, - "end": 3712, + "start": 3712, + "end": 3725, "loc": { "start": { "line": 126, @@ -8298,8 +8347,8 @@ }, "object": { "type": "Identifier", - "start": 3699, - "end": 3703, + "start": 3712, + "end": 3716, "loc": { "start": { "line": 126, @@ -8315,8 +8364,8 @@ }, "property": { "type": "Identifier", - "start": 3704, - "end": 3711, + "start": 3717, + "end": 3724, "loc": { "start": { "line": 126, @@ -8334,8 +8383,8 @@ }, "property": { "type": "Identifier", - "start": 3713, - "end": 3716, + "start": 3726, + "end": 3729, "loc": { "start": { "line": 126, @@ -8354,8 +8403,8 @@ "operator": "!==", "right": { "type": "NullLiteral", - "start": 3722, - "end": 3726, + "start": 3735, + "end": 3739, "loc": { "start": { "line": 126, @@ -8370,8 +8419,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 3728, - "end": 5004, + "start": 3741, + "end": 5017, "loc": { "start": { "line": 126, @@ -8385,8 +8434,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 3736, - "end": 3767, + "start": 3749, + "end": 3780, "loc": { "start": { "line": 127, @@ -8400,8 +8449,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 3740, - "end": 3767, + "start": 3753, + "end": 3780, "loc": { "start": { "line": 127, @@ -8414,8 +8463,8 @@ }, "id": { "type": "Identifier", - "start": 3740, - "end": 3746, + "start": 3753, + "end": 3759, "loc": { "start": { "line": 127, @@ -8431,8 +8480,8 @@ }, "init": { "type": "MemberExpression", - "start": 3749, - "end": 3767, + "start": 3762, + "end": 3780, "loc": { "start": { "line": 127, @@ -8445,8 +8494,8 @@ }, "object": { "type": "MemberExpression", - "start": 3749, - "end": 3762, + "start": 3762, + "end": 3775, "loc": { "start": { "line": 127, @@ -8459,8 +8508,8 @@ }, "object": { "type": "Identifier", - "start": 3749, - "end": 3753, + "start": 3762, + "end": 3766, "loc": { "start": { "line": 127, @@ -8476,8 +8525,8 @@ }, "property": { "type": "Identifier", - "start": 3754, - "end": 3761, + "start": 3767, + "end": 3774, "loc": { "start": { "line": 127, @@ -8495,8 +8544,8 @@ }, "property": { "type": "Identifier", - "start": 3763, - "end": 3766, + "start": 3776, + "end": 3779, "loc": { "start": { "line": 127, @@ -8518,8 +8567,8 @@ }, { "type": "VariableDeclaration", - "start": 3774, - "end": 3811, + "start": 3787, + "end": 3824, "loc": { "start": { "line": 128, @@ -8533,8 +8582,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 3778, - "end": 3811, + "start": 3791, + "end": 3824, "loc": { "start": { "line": 128, @@ -8547,8 +8596,8 @@ }, "id": { "type": "Identifier", - "start": 3778, - "end": 3787, + "start": 3791, + "end": 3800, "loc": { "start": { "line": 128, @@ -8564,8 +8613,8 @@ }, "init": { "type": "MemberExpression", - "start": 3790, - "end": 3811, + "start": 3803, + "end": 3824, "loc": { "start": { "line": 128, @@ -8578,8 +8627,8 @@ }, "object": { "type": "MemberExpression", - "start": 3790, - "end": 3806, + "start": 3803, + "end": 3819, "loc": { "start": { "line": 128, @@ -8592,8 +8641,8 @@ }, "object": { "type": "Identifier", - "start": 3790, - "end": 3797, + "start": 3803, + "end": 3810, "loc": { "start": { "line": 128, @@ -8609,8 +8658,8 @@ }, "property": { "type": "Identifier", - "start": 3798, - "end": 3805, + "start": 3811, + "end": 3818, "loc": { "start": { "line": 128, @@ -8628,8 +8677,8 @@ }, "property": { "type": "Identifier", - "start": 3807, - "end": 3810, + "start": 3820, + "end": 3823, "loc": { "start": { "line": 128, @@ -8654,8 +8703,8 @@ { "type": "CommentLine", "value": " Already exists in database", - "start": 3818, - "end": 3847, + "start": 3831, + "end": 3860, "loc": { "start": { "line": 129, @@ -8671,8 +8720,8 @@ }, { "type": "IfStatement", - "start": 3854, - "end": 4997, + "start": 3867, + "end": 5010, "loc": { "start": { "line": 130, @@ -8685,8 +8734,8 @@ }, "test": { "type": "LogicalExpression", - "start": 3858, - "end": 3903, + "start": 3871, + "end": 3916, "loc": { "start": { "line": 130, @@ -8699,8 +8748,8 @@ }, "left": { "type": "BinaryExpression", - "start": 3858, - "end": 3881, + "start": 3871, + "end": 3894, "loc": { "start": { "line": 130, @@ -8713,8 +8762,8 @@ }, "left": { "type": "Identifier", - "start": 3858, - "end": 3867, + "start": 3871, + "end": 3880, "loc": { "start": { "line": 130, @@ -8732,8 +8781,8 @@ "operator": "!==", "right": { "type": "Identifier", - "start": 3872, - "end": 3881, + "start": 3885, + "end": 3894, "loc": { "start": { "line": 130, @@ -8752,8 +8801,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 3885, - "end": 3903, + "start": 3898, + "end": 3916, "loc": { "start": { "line": 130, @@ -8766,8 +8815,8 @@ }, "left": { "type": "Identifier", - "start": 3885, - "end": 3894, + "start": 3898, + "end": 3907, "loc": { "start": { "line": 130, @@ -8784,8 +8833,8 @@ "operator": "!==", "right": { "type": "NullLiteral", - "start": 3899, - "end": 3903, + "start": 3912, + "end": 3916, "loc": { "start": { "line": 130, @@ -8802,8 +8851,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 3905, - "end": 4583, + "start": 3918, + "end": 4596, "loc": { "start": { "line": 130, @@ -8817,8 +8866,8 @@ "body": [ { "type": "IfStatement", - "start": 3914, - "end": 4039, + "start": 3927, + "end": 4052, "loc": { "start": { "line": 131, @@ -8831,8 +8880,8 @@ }, "test": { "type": "BinaryExpression", - "start": 3918, - "end": 3941, + "start": 3931, + "end": 3954, "loc": { "start": { "line": 131, @@ -8845,8 +8894,8 @@ }, "left": { "type": "MemberExpression", - "start": 3918, - "end": 3927, + "start": 3931, + "end": 3940, "loc": { "start": { "line": 131, @@ -8859,8 +8908,8 @@ }, "object": { "type": "Identifier", - "start": 3918, - "end": 3924, + "start": 3931, + "end": 3937, "loc": { "start": { "line": 131, @@ -8876,8 +8925,8 @@ }, "property": { "type": "Identifier", - "start": 3925, - "end": 3927, + "start": 3938, + "end": 3940, "loc": { "start": { "line": 131, @@ -8896,8 +8945,8 @@ "operator": "!==", "right": { "type": "MemberExpression", - "start": 3932, - "end": 3941, + "start": 3945, + "end": 3954, "loc": { "start": { "line": 131, @@ -8910,8 +8959,8 @@ }, "object": { "type": "Identifier", - "start": 3932, - "end": 3938, + "start": 3945, + "end": 3951, "loc": { "start": { "line": 131, @@ -8927,8 +8976,8 @@ }, "property": { "type": "Identifier", - "start": 3939, - "end": 3941, + "start": 3952, + "end": 3954, "loc": { "start": { "line": 131, @@ -8947,8 +8996,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 3943, - "end": 4039, + "start": 3956, + "end": 4052, "loc": { "start": { "line": 131, @@ -8962,8 +9011,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 3953, - "end": 4030, + "start": 3966, + "end": 4043, "loc": { "start": { "line": 132, @@ -8976,8 +9025,8 @@ }, "expression": { "type": "CallExpression", - "start": 3953, - "end": 4030, + "start": 3966, + "end": 4043, "loc": { "start": { "line": 132, @@ -8990,8 +9039,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3953, - "end": 3982, + "start": 3966, + "end": 3995, "loc": { "start": { "line": 132, @@ -9004,8 +9053,8 @@ }, "object": { "type": "MemberExpression", - "start": 3953, - "end": 3974, + "start": 3966, + "end": 3987, "loc": { "start": { "line": 132, @@ -9018,8 +9067,8 @@ }, "object": { "type": "MemberExpression", - "start": 3953, - "end": 3969, + "start": 3966, + "end": 3982, "loc": { "start": { "line": 132, @@ -9032,8 +9081,8 @@ }, "object": { "type": "Identifier", - "start": 3953, - "end": 3960, + "start": 3966, + "end": 3973, "loc": { "start": { "line": 132, @@ -9049,8 +9098,8 @@ }, "property": { "type": "Identifier", - "start": 3961, - "end": 3968, + "start": 3974, + "end": 3981, "loc": { "start": { "line": 132, @@ -9068,8 +9117,8 @@ }, "property": { "type": "Identifier", - "start": 3970, - "end": 3973, + "start": 3983, + "end": 3986, "loc": { "start": { "line": 132, @@ -9087,8 +9136,8 @@ }, "property": { "type": "Identifier", - "start": 3975, - "end": 3982, + "start": 3988, + "end": 3995, "loc": { "start": { "line": 132, @@ -9107,8 +9156,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 3983, - "end": 3994, + "start": 3996, + "end": 4007, "loc": { "start": { "line": 132, @@ -9121,8 +9170,8 @@ }, "object": { "type": "Identifier", - "start": 3983, - "end": 3989, + "start": 3996, + "end": 4002, "loc": { "start": { "line": 132, @@ -9138,8 +9187,8 @@ }, "property": { "type": "Identifier", - "start": 3990, - "end": 3994, + "start": 4003, + "end": 4007, "loc": { "start": { "line": 132, @@ -9157,8 +9206,8 @@ }, { "type": "MemberExpression", - "start": 3996, - "end": 4007, + "start": 4009, + "end": 4020, "loc": { "start": { "line": 132, @@ -9171,8 +9220,8 @@ }, "object": { "type": "Identifier", - "start": 3996, - "end": 4002, + "start": 4009, + "end": 4015, "loc": { "start": { "line": 132, @@ -9188,8 +9237,8 @@ }, "property": { "type": "Identifier", - "start": 4003, - "end": 4007, + "start": 4016, + "end": 4020, "loc": { "start": { "line": 132, @@ -9207,8 +9256,8 @@ }, { "type": "MemberExpression", - "start": 4009, - "end": 4018, + "start": 4022, + "end": 4031, "loc": { "start": { "line": 132, @@ -9221,8 +9270,8 @@ }, "object": { "type": "Identifier", - "start": 4009, - "end": 4015, + "start": 4022, + "end": 4028, "loc": { "start": { "line": 132, @@ -9238,8 +9287,8 @@ }, "property": { "type": "Identifier", - "start": 4016, - "end": 4018, + "start": 4029, + "end": 4031, "loc": { "start": { "line": 132, @@ -9257,8 +9306,8 @@ }, { "type": "MemberExpression", - "start": 4020, - "end": 4029, + "start": 4033, + "end": 4042, "loc": { "start": { "line": 132, @@ -9271,8 +9320,8 @@ }, "object": { "type": "Identifier", - "start": 4020, - "end": 4026, + "start": 4033, + "end": 4039, "loc": { "start": { "line": 132, @@ -9288,8 +9337,8 @@ }, "property": { "type": "Identifier", - "start": 4027, - "end": 4029, + "start": 4040, + "end": 4042, "loc": { "start": { "line": 132, @@ -9315,8 +9364,8 @@ }, { "type": "IfStatement", - "start": 4047, - "end": 4455, + "start": 4060, + "end": 4468, "loc": { "start": { "line": 134, @@ -9329,8 +9378,8 @@ }, "test": { "type": "BinaryExpression", - "start": 4051, - "end": 4072, + "start": 4064, + "end": 4085, "loc": { "start": { "line": 134, @@ -9343,8 +9392,8 @@ }, "left": { "type": "Identifier", - "start": 4051, - "end": 4058, + "start": 4064, + "end": 4071, "loc": { "start": { "line": 134, @@ -9361,8 +9410,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 4063, - "end": 4072, + "start": 4076, + "end": 4085, "loc": { "start": { "line": 134, @@ -9382,8 +9431,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 4074, - "end": 4455, + "start": 4087, + "end": 4468, "loc": { "start": { "line": 134, @@ -9397,8 +9446,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 4084, - "end": 4128, + "start": 4097, + "end": 4141, "loc": { "start": { "line": 135, @@ -9411,8 +9460,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 4084, - "end": 4128, + "start": 4097, + "end": 4141, "loc": { "start": { "line": 135, @@ -9426,8 +9475,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 4084, - "end": 4112, + "start": 4097, + "end": 4125, "loc": { "start": { "line": 135, @@ -9440,8 +9489,8 @@ }, "object": { "type": "MemberExpression", - "start": 4084, - "end": 4105, + "start": 4097, + "end": 4118, "loc": { "start": { "line": 135, @@ -9454,8 +9503,8 @@ }, "object": { "type": "MemberExpression", - "start": 4084, - "end": 4100, + "start": 4097, + "end": 4113, "loc": { "start": { "line": 135, @@ -9468,8 +9517,8 @@ }, "object": { "type": "Identifier", - "start": 4084, - "end": 4091, + "start": 4097, + "end": 4104, "loc": { "start": { "line": 135, @@ -9485,8 +9534,8 @@ }, "property": { "type": "Identifier", - "start": 4092, - "end": 4099, + "start": 4105, + "end": 4112, "loc": { "start": { "line": 135, @@ -9504,8 +9553,8 @@ }, "property": { "type": "Identifier", - "start": 4101, - "end": 4104, + "start": 4114, + "end": 4117, "loc": { "start": { "line": 135, @@ -9523,8 +9572,8 @@ }, "property": { "type": "Identifier", - "start": 4106, - "end": 4112, + "start": 4119, + "end": 4125, "loc": { "start": { "line": 135, @@ -9542,8 +9591,8 @@ }, "right": { "type": "MemberExpression", - "start": 4115, - "end": 4128, + "start": 4128, + "end": 4141, "loc": { "start": { "line": 135, @@ -9556,8 +9605,8 @@ }, "object": { "type": "Identifier", - "start": 4115, - "end": 4121, + "start": 4128, + "end": 4134, "loc": { "start": { "line": 135, @@ -9573,8 +9622,8 @@ }, "property": { "type": "Identifier", - "start": 4122, - "end": 4128, + "start": 4135, + "end": 4141, "loc": { "start": { "line": 135, @@ -9594,8 +9643,8 @@ }, { "type": "ExpressionStatement", - "start": 4137, - "end": 4187, + "start": 4150, + "end": 4200, "loc": { "start": { "line": 136, @@ -9608,8 +9657,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 4137, - "end": 4187, + "start": 4150, + "end": 4200, "loc": { "start": { "line": 136, @@ -9623,8 +9672,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 4137, - "end": 4168, + "start": 4150, + "end": 4181, "loc": { "start": { "line": 136, @@ -9637,8 +9686,8 @@ }, "object": { "type": "MemberExpression", - "start": 4137, - "end": 4158, + "start": 4150, + "end": 4171, "loc": { "start": { "line": 136, @@ -9651,8 +9700,8 @@ }, "object": { "type": "MemberExpression", - "start": 4137, - "end": 4153, + "start": 4150, + "end": 4166, "loc": { "start": { "line": 136, @@ -9665,8 +9714,8 @@ }, "object": { "type": "Identifier", - "start": 4137, - "end": 4144, + "start": 4150, + "end": 4157, "loc": { "start": { "line": 136, @@ -9682,8 +9731,8 @@ }, "property": { "type": "Identifier", - "start": 4145, - "end": 4152, + "start": 4158, + "end": 4165, "loc": { "start": { "line": 136, @@ -9701,8 +9750,8 @@ }, "property": { "type": "Identifier", - "start": 4154, - "end": 4157, + "start": 4167, + "end": 4170, "loc": { "start": { "line": 136, @@ -9720,8 +9769,8 @@ }, "property": { "type": "Identifier", - "start": 4159, - "end": 4168, + "start": 4172, + "end": 4181, "loc": { "start": { "line": 136, @@ -9739,8 +9788,8 @@ }, "right": { "type": "MemberExpression", - "start": 4171, - "end": 4187, + "start": 4184, + "end": 4200, "loc": { "start": { "line": 136, @@ -9753,8 +9802,8 @@ }, "object": { "type": "Identifier", - "start": 4171, - "end": 4177, + "start": 4184, + "end": 4190, "loc": { "start": { "line": 136, @@ -9770,8 +9819,8 @@ }, "property": { "type": "Identifier", - "start": 4178, - "end": 4187, + "start": 4191, + "end": 4200, "loc": { "start": { "line": 136, @@ -9791,8 +9840,8 @@ }, { "type": "ExpressionStatement", - "start": 4196, - "end": 4244, + "start": 4209, + "end": 4257, "loc": { "start": { "line": 137, @@ -9805,8 +9854,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 4196, - "end": 4244, + "start": 4209, + "end": 4257, "loc": { "start": { "line": 137, @@ -9820,8 +9869,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 4196, - "end": 4226, + "start": 4209, + "end": 4239, "loc": { "start": { "line": 137, @@ -9834,8 +9883,8 @@ }, "object": { "type": "MemberExpression", - "start": 4196, - "end": 4217, + "start": 4209, + "end": 4230, "loc": { "start": { "line": 137, @@ -9848,8 +9897,8 @@ }, "object": { "type": "MemberExpression", - "start": 4196, - "end": 4212, + "start": 4209, + "end": 4225, "loc": { "start": { "line": 137, @@ -9862,8 +9911,8 @@ }, "object": { "type": "Identifier", - "start": 4196, - "end": 4203, + "start": 4209, + "end": 4216, "loc": { "start": { "line": 137, @@ -9879,8 +9928,8 @@ }, "property": { "type": "Identifier", - "start": 4204, - "end": 4211, + "start": 4217, + "end": 4224, "loc": { "start": { "line": 137, @@ -9898,8 +9947,8 @@ }, "property": { "type": "Identifier", - "start": 4213, - "end": 4216, + "start": 4226, + "end": 4229, "loc": { "start": { "line": 137, @@ -9917,8 +9966,8 @@ }, "property": { "type": "Identifier", - "start": 4218, - "end": 4226, + "start": 4231, + "end": 4239, "loc": { "start": { "line": 137, @@ -9936,8 +9985,8 @@ }, "right": { "type": "MemberExpression", - "start": 4229, - "end": 4244, + "start": 4242, + "end": 4257, "loc": { "start": { "line": 137, @@ -9950,8 +9999,8 @@ }, "object": { "type": "Identifier", - "start": 4229, - "end": 4235, + "start": 4242, + "end": 4248, "loc": { "start": { "line": 137, @@ -9967,8 +10016,8 @@ }, "property": { "type": "Identifier", - "start": 4236, - "end": 4244, + "start": 4249, + "end": 4257, "loc": { "start": { "line": 137, @@ -9988,8 +10037,8 @@ }, { "type": "ExpressionStatement", - "start": 4253, - "end": 4303, + "start": 4266, + "end": 4316, "loc": { "start": { "line": 138, @@ -10002,8 +10051,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 4253, - "end": 4303, + "start": 4266, + "end": 4316, "loc": { "start": { "line": 138, @@ -10017,8 +10066,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 4253, - "end": 4284, + "start": 4266, + "end": 4297, "loc": { "start": { "line": 138, @@ -10031,8 +10080,8 @@ }, "object": { "type": "MemberExpression", - "start": 4253, - "end": 4274, + "start": 4266, + "end": 4287, "loc": { "start": { "line": 138, @@ -10045,8 +10094,8 @@ }, "object": { "type": "MemberExpression", - "start": 4253, - "end": 4269, + "start": 4266, + "end": 4282, "loc": { "start": { "line": 138, @@ -10059,8 +10108,8 @@ }, "object": { "type": "Identifier", - "start": 4253, - "end": 4260, + "start": 4266, + "end": 4273, "loc": { "start": { "line": 138, @@ -10076,8 +10125,8 @@ }, "property": { "type": "Identifier", - "start": 4261, - "end": 4268, + "start": 4274, + "end": 4281, "loc": { "start": { "line": 138, @@ -10095,8 +10144,8 @@ }, "property": { "type": "Identifier", - "start": 4270, - "end": 4273, + "start": 4283, + "end": 4286, "loc": { "start": { "line": 138, @@ -10114,8 +10163,8 @@ }, "property": { "type": "Identifier", - "start": 4275, - "end": 4284, + "start": 4288, + "end": 4297, "loc": { "start": { "line": 138, @@ -10133,8 +10182,8 @@ }, "right": { "type": "MemberExpression", - "start": 4287, - "end": 4303, + "start": 4300, + "end": 4316, "loc": { "start": { "line": 138, @@ -10147,8 +10196,8 @@ }, "object": { "type": "Identifier", - "start": 4287, - "end": 4293, + "start": 4300, + "end": 4306, "loc": { "start": { "line": 138, @@ -10164,8 +10213,8 @@ }, "property": { "type": "Identifier", - "start": 4294, - "end": 4303, + "start": 4307, + "end": 4316, "loc": { "start": { "line": 138, @@ -10185,8 +10234,8 @@ }, { "type": "ExpressionStatement", - "start": 4312, - "end": 4362, + "start": 4325, + "end": 4375, "loc": { "start": { "line": 139, @@ -10199,8 +10248,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 4312, - "end": 4362, + "start": 4325, + "end": 4375, "loc": { "start": { "line": 139, @@ -10214,8 +10263,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 4312, - "end": 4343, + "start": 4325, + "end": 4356, "loc": { "start": { "line": 139, @@ -10228,8 +10277,8 @@ }, "object": { "type": "MemberExpression", - "start": 4312, - "end": 4333, + "start": 4325, + "end": 4346, "loc": { "start": { "line": 139, @@ -10242,8 +10291,8 @@ }, "object": { "type": "MemberExpression", - "start": 4312, - "end": 4328, + "start": 4325, + "end": 4341, "loc": { "start": { "line": 139, @@ -10256,8 +10305,8 @@ }, "object": { "type": "Identifier", - "start": 4312, - "end": 4319, + "start": 4325, + "end": 4332, "loc": { "start": { "line": 139, @@ -10273,8 +10322,8 @@ }, "property": { "type": "Identifier", - "start": 4320, - "end": 4327, + "start": 4333, + "end": 4340, "loc": { "start": { "line": 139, @@ -10292,8 +10341,8 @@ }, "property": { "type": "Identifier", - "start": 4329, - "end": 4332, + "start": 4342, + "end": 4345, "loc": { "start": { "line": 139, @@ -10311,8 +10360,8 @@ }, "property": { "type": "Identifier", - "start": 4334, - "end": 4343, + "start": 4347, + "end": 4356, "loc": { "start": { "line": 139, @@ -10330,8 +10379,8 @@ }, "right": { "type": "MemberExpression", - "start": 4346, - "end": 4362, + "start": 4359, + "end": 4375, "loc": { "start": { "line": 139, @@ -10344,8 +10393,8 @@ }, "object": { "type": "Identifier", - "start": 4346, - "end": 4352, + "start": 4359, + "end": 4365, "loc": { "start": { "line": 139, @@ -10361,8 +10410,8 @@ }, "property": { "type": "Identifier", - "start": 4353, - "end": 4362, + "start": 4366, + "end": 4375, "loc": { "start": { "line": 139, @@ -10382,8 +10431,8 @@ }, { "type": "ForInStatement", - "start": 4371, - "end": 4446, + "start": 4384, + "end": 4459, "loc": { "start": { "line": 140, @@ -10396,8 +10445,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 4376, - "end": 4384, + "start": 4389, + "end": 4397, "loc": { "start": { "line": 140, @@ -10411,8 +10460,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4380, - "end": 4384, + "start": 4393, + "end": 4397, "loc": { "start": { "line": 140, @@ -10425,8 +10474,8 @@ }, "id": { "type": "Identifier", - "start": 4380, - "end": 4384, + "start": 4393, + "end": 4397, "loc": { "start": { "line": 140, @@ -10447,8 +10496,8 @@ }, "right": { "type": "MemberExpression", - "start": 4388, - "end": 4403, + "start": 4401, + "end": 4416, "loc": { "start": { "line": 140, @@ -10461,8 +10510,8 @@ }, "object": { "type": "Identifier", - "start": 4388, - "end": 4394, + "start": 4401, + "end": 4407, "loc": { "start": { "line": 140, @@ -10478,8 +10527,8 @@ }, "property": { "type": "Identifier", - "start": 4395, - "end": 4403, + "start": 4408, + "end": 4416, "loc": { "start": { "line": 140, @@ -10497,8 +10546,8 @@ }, "body": { "type": "BlockStatement", - "start": 4405, - "end": 4446, + "start": 4418, + "end": 4459, "loc": { "start": { "line": 140, @@ -10512,8 +10561,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 4416, - "end": 4436, + "start": 4429, + "end": 4449, "loc": { "start": { "line": 141, @@ -10526,8 +10575,8 @@ }, "expression": { "type": "CallExpression", - "start": 4416, - "end": 4436, + "start": 4429, + "end": 4449, "loc": { "start": { "line": 141, @@ -10540,8 +10589,8 @@ }, "callee": { "type": "Identifier", - "start": 4416, - "end": 4430, + "start": 4429, + "end": 4443, "loc": { "start": { "line": 141, @@ -10558,8 +10607,8 @@ "arguments": [ { "type": "Identifier", - "start": 4431, - "end": 4435, + "start": 4444, + "end": 4448, "loc": { "start": { "line": 141, @@ -10587,8 +10636,8 @@ }, { "type": "IfStatement", - "start": 4463, - "end": 4575, + "start": 4476, + "end": 4588, "loc": { "start": { "line": 144, @@ -10601,8 +10650,8 @@ }, "test": { "type": "LogicalExpression", - "start": 4467, - "end": 4508, + "start": 4480, + "end": 4521, "loc": { "start": { "line": 144, @@ -10615,8 +10664,8 @@ }, "left": { "type": "BinaryExpression", - "start": 4467, - "end": 4490, + "start": 4480, + "end": 4503, "loc": { "start": { "line": 144, @@ -10629,8 +10678,8 @@ }, "left": { "type": "Identifier", - "start": 4467, - "end": 4474, + "start": 4480, + "end": 4487, "loc": { "start": { "line": 144, @@ -10647,8 +10696,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 4479, - "end": 4490, + "start": 4492, + "end": 4503, "loc": { "start": { "line": 144, @@ -10669,8 +10718,8 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 4494, - "end": 4508, + "start": 4507, + "end": 4521, "loc": { "start": { "line": 144, @@ -10683,8 +10732,8 @@ }, "object": { "type": "Identifier", - "start": 4494, - "end": 4500, + "start": 4507, + "end": 4513, "loc": { "start": { "line": 144, @@ -10700,8 +10749,8 @@ }, "property": { "type": "Identifier", - "start": 4501, - "end": 4508, + "start": 4514, + "end": 4521, "loc": { "start": { "line": 144, @@ -10720,8 +10769,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 4510, - "end": 4575, + "start": 4523, + "end": 4588, "loc": { "start": { "line": 144, @@ -10735,8 +10784,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 4520, - "end": 4566, + "start": 4533, + "end": 4579, "loc": { "start": { "line": 145, @@ -10749,8 +10798,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 4520, - "end": 4566, + "start": 4533, + "end": 4579, "loc": { "start": { "line": 145, @@ -10764,8 +10813,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 4520, - "end": 4549, + "start": 4533, + "end": 4562, "loc": { "start": { "line": 145, @@ -10778,8 +10827,8 @@ }, "object": { "type": "MemberExpression", - "start": 4520, - "end": 4541, + "start": 4533, + "end": 4554, "loc": { "start": { "line": 145, @@ -10792,8 +10841,8 @@ }, "object": { "type": "MemberExpression", - "start": 4520, - "end": 4536, + "start": 4533, + "end": 4549, "loc": { "start": { "line": 145, @@ -10806,8 +10855,8 @@ }, "object": { "type": "Identifier", - "start": 4520, - "end": 4527, + "start": 4533, + "end": 4540, "loc": { "start": { "line": 145, @@ -10823,8 +10872,8 @@ }, "property": { "type": "Identifier", - "start": 4528, - "end": 4535, + "start": 4541, + "end": 4548, "loc": { "start": { "line": 145, @@ -10842,8 +10891,8 @@ }, "property": { "type": "Identifier", - "start": 4537, - "end": 4540, + "start": 4550, + "end": 4553, "loc": { "start": { "line": 145, @@ -10861,8 +10910,8 @@ }, "property": { "type": "Identifier", - "start": 4542, - "end": 4549, + "start": 4555, + "end": 4562, "loc": { "start": { "line": 145, @@ -10880,8 +10929,8 @@ }, "right": { "type": "MemberExpression", - "start": 4552, - "end": 4566, + "start": 4565, + "end": 4579, "loc": { "start": { "line": 145, @@ -10894,8 +10943,8 @@ }, "object": { "type": "Identifier", - "start": 4552, - "end": 4558, + "start": 4565, + "end": 4571, "loc": { "start": { "line": 145, @@ -10911,8 +10960,8 @@ }, "property": { "type": "Identifier", - "start": 4559, - "end": 4566, + "start": 4572, + "end": 4579, "loc": { "start": { "line": 145, @@ -10941,8 +10990,8 @@ { "type": "CommentLine", "value": " Does not exist - need to clone to clientside", - "start": 4590, - "end": 4637, + "start": 4603, + "end": 4650, "loc": { "start": { "line": 148, @@ -10958,8 +11007,8 @@ }, "alternate": { "type": "IfStatement", - "start": 4649, - "end": 4997, + "start": 4662, + "end": 5010, "loc": { "start": { "line": 149, @@ -10972,8 +11021,8 @@ }, "test": { "type": "Identifier", - "start": 4653, - "end": 4660, + "start": 4666, + "end": 4673, "loc": { "start": { "line": 149, @@ -10990,8 +11039,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 4662, - "end": 4997, + "start": 4675, + "end": 5010, "loc": { "start": { "line": 149, @@ -11005,8 +11054,8 @@ "body": [ { "type": "SwitchStatement", - "start": 4671, - "end": 4989, + "start": 4684, + "end": 5002, "loc": { "start": { "line": 150, @@ -11019,8 +11068,8 @@ }, "discriminant": { "type": "Identifier", - "start": 4679, - "end": 4686, + "start": 4692, + "end": 4699, "loc": { "start": { "line": 150, @@ -11037,8 +11086,8 @@ "cases": [ { "type": "SwitchCase", - "start": 4698, - "end": 4782, + "start": 4711, + "end": 4795, "loc": { "start": { "line": 151, @@ -11052,8 +11101,8 @@ "consequent": [ { "type": "ExpressionStatement", - "start": 4723, - "end": 4767, + "start": 4736, + "end": 4780, "loc": { "start": { "line": 152, @@ -11066,8 +11115,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 4723, - "end": 4767, + "start": 4736, + "end": 4780, "loc": { "start": { "line": 152, @@ -11081,8 +11130,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 4723, - "end": 4744, + "start": 4736, + "end": 4757, "loc": { "start": { "line": 152, @@ -11095,8 +11144,8 @@ }, "object": { "type": "MemberExpression", - "start": 4723, - "end": 4739, + "start": 4736, + "end": 4752, "loc": { "start": { "line": 152, @@ -11109,8 +11158,8 @@ }, "object": { "type": "Identifier", - "start": 4723, - "end": 4730, + "start": 4736, + "end": 4743, "loc": { "start": { "line": 152, @@ -11126,8 +11175,8 @@ }, "property": { "type": "Identifier", - "start": 4731, - "end": 4738, + "start": 4744, + "end": 4751, "loc": { "start": { "line": 152, @@ -11145,8 +11194,8 @@ }, "property": { "type": "Identifier", - "start": 4740, - "end": 4743, + "start": 4753, + "end": 4756, "loc": { "start": { "line": 152, @@ -11164,8 +11213,8 @@ }, "right": { "type": "CallExpression", - "start": 4747, - "end": 4767, + "start": 4760, + "end": 4780, "loc": { "start": { "line": 152, @@ -11178,8 +11227,8 @@ }, "callee": { "type": "Identifier", - "start": 4747, - "end": 4759, + "start": 4760, + "end": 4772, "loc": { "start": { "line": 152, @@ -11196,8 +11245,8 @@ "arguments": [ { "type": "Identifier", - "start": 4760, - "end": 4766, + "start": 4773, + "end": 4779, "loc": { "start": { "line": 152, @@ -11217,8 +11266,8 @@ }, { "type": "BreakStatement", - "start": 4777, - "end": 4782, + "start": 4790, + "end": 4795, "loc": { "start": { "line": 153, @@ -11234,8 +11283,8 @@ ], "test": { "type": "StringLiteral", - "start": 4703, - "end": 4712, + "start": 4716, + "end": 4725, "loc": { "start": { "line": 151, @@ -11255,8 +11304,8 @@ }, { "type": "SwitchCase", - "start": 4791, - "end": 4877, + "start": 4804, + "end": 4890, "loc": { "start": { "line": 154, @@ -11270,8 +11319,8 @@ "consequent": [ { "type": "ExpressionStatement", - "start": 4814, - "end": 4862, + "start": 4827, + "end": 4875, "loc": { "start": { "line": 155, @@ -11284,8 +11333,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 4814, - "end": 4862, + "start": 4827, + "end": 4875, "loc": { "start": { "line": 155, @@ -11299,8 +11348,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 4814, - "end": 4835, + "start": 4827, + "end": 4848, "loc": { "start": { "line": 155, @@ -11313,8 +11362,8 @@ }, "object": { "type": "MemberExpression", - "start": 4814, - "end": 4830, + "start": 4827, + "end": 4843, "loc": { "start": { "line": 155, @@ -11327,8 +11376,8 @@ }, "object": { "type": "Identifier", - "start": 4814, - "end": 4821, + "start": 4827, + "end": 4834, "loc": { "start": { "line": 155, @@ -11344,8 +11393,8 @@ }, "property": { "type": "Identifier", - "start": 4822, - "end": 4829, + "start": 4835, + "end": 4842, "loc": { "start": { "line": 155, @@ -11363,8 +11412,8 @@ }, "property": { "type": "Identifier", - "start": 4831, - "end": 4834, + "start": 4844, + "end": 4847, "loc": { "start": { "line": 155, @@ -11382,8 +11431,8 @@ }, "right": { "type": "CallExpression", - "start": 4838, - "end": 4862, + "start": 4851, + "end": 4875, "loc": { "start": { "line": 155, @@ -11396,8 +11445,8 @@ }, "callee": { "type": "Identifier", - "start": 4838, - "end": 4854, + "start": 4851, + "end": 4867, "loc": { "start": { "line": 155, @@ -11414,8 +11463,8 @@ "arguments": [ { "type": "Identifier", - "start": 4855, - "end": 4861, + "start": 4868, + "end": 4874, "loc": { "start": { "line": 155, @@ -11435,8 +11484,8 @@ }, { "type": "BreakStatement", - "start": 4872, - "end": 4877, + "start": 4885, + "end": 4890, "loc": { "start": { "line": 156, @@ -11452,8 +11501,8 @@ ], "test": { "type": "StringLiteral", - "start": 4796, - "end": 4803, + "start": 4809, + "end": 4816, "loc": { "start": { "line": 154, @@ -11473,8 +11522,8 @@ }, { "type": "SwitchCase", - "start": 4886, - "end": 4980, + "start": 4899, + "end": 4993, "loc": { "start": { "line": 157, @@ -11488,8 +11537,8 @@ "consequent": [ { "type": "ExpressionStatement", - "start": 4913, - "end": 4965, + "start": 4926, + "end": 4978, "loc": { "start": { "line": 158, @@ -11502,8 +11551,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 4913, - "end": 4965, + "start": 4926, + "end": 4978, "loc": { "start": { "line": 158, @@ -11517,8 +11566,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 4913, - "end": 4934, + "start": 4926, + "end": 4947, "loc": { "start": { "line": 158, @@ -11531,8 +11580,8 @@ }, "object": { "type": "MemberExpression", - "start": 4913, - "end": 4929, + "start": 4926, + "end": 4942, "loc": { "start": { "line": 158, @@ -11545,8 +11594,8 @@ }, "object": { "type": "Identifier", - "start": 4913, - "end": 4920, + "start": 4926, + "end": 4933, "loc": { "start": { "line": 158, @@ -11562,8 +11611,8 @@ }, "property": { "type": "Identifier", - "start": 4921, - "end": 4928, + "start": 4934, + "end": 4941, "loc": { "start": { "line": 158, @@ -11581,8 +11630,8 @@ }, "property": { "type": "Identifier", - "start": 4930, - "end": 4933, + "start": 4943, + "end": 4946, "loc": { "start": { "line": 158, @@ -11600,8 +11649,8 @@ }, "right": { "type": "CallExpression", - "start": 4937, - "end": 4965, + "start": 4950, + "end": 4978, "loc": { "start": { "line": 158, @@ -11614,8 +11663,8 @@ }, "callee": { "type": "Identifier", - "start": 4937, - "end": 4957, + "start": 4950, + "end": 4970, "loc": { "start": { "line": 158, @@ -11632,8 +11681,8 @@ "arguments": [ { "type": "Identifier", - "start": 4958, - "end": 4964, + "start": 4971, + "end": 4977, "loc": { "start": { "line": 158, @@ -11653,8 +11702,8 @@ }, { "type": "BreakStatement", - "start": 4975, - "end": 4980, + "start": 4988, + "end": 4993, "loc": { "start": { "line": 159, @@ -11670,8 +11719,8 @@ ], "test": { "type": "StringLiteral", - "start": 4891, - "end": 4902, + "start": 4904, + "end": 4915, "loc": { "start": { "line": 157, @@ -11699,8 +11748,8 @@ { "type": "CommentLine", "value": " Does not exist - need to clone to clientside", - "start": 4590, - "end": 4637, + "start": 4603, + "end": 4650, "loc": { "start": { "line": 148, @@ -11718,8 +11767,8 @@ { "type": "CommentLine", "value": " Already exists in database", - "start": 3818, - "end": 3847, + "start": 3831, + "end": 3860, "loc": { "start": { "line": 129, @@ -11751,8 +11800,8 @@ { "type": "CommentLine", "value": " else { //Tile drawing", - "start": 5019, - "end": 5043, + "start": 5032, + "end": 5056, "loc": { "start": { "line": 165, @@ -11767,8 +11816,8 @@ { "type": "CommentLine", "value": " for (let tile of data.tiles) {", - "start": 5047, - "end": 5084, + "start": 5060, + "end": 5097, "loc": { "start": { "line": 166, @@ -11783,8 +11832,8 @@ { "type": "CommentLine", "value": " let tileName = 'tile_' + tile.col + '_' + tile.row;", - "start": 5089, - "end": 5151, + "start": 5102, + "end": 5164, "loc": { "start": { "line": 168, @@ -11799,8 +11848,8 @@ { "type": "CommentLine", "value": " if (objects.tiles[tileName] === undefined) {", - "start": 5155, - "end": 5210, + "start": 5168, + "end": 5223, "loc": { "start": { "line": 169, @@ -11815,8 +11864,8 @@ { "type": "CommentLine", "value": " // console.log(tileName);", - "start": 5214, - "end": 5254, + "start": 5227, + "end": 5267, "loc": { "start": { "line": 170, @@ -11831,8 +11880,8 @@ { "type": "CommentLine", "value": " objects.tiles[tileName] = new MapTile(MAP_LAYOUT[tile.row][tile.col], tile.col, tile.row);", - "start": 5258, - "end": 5363, + "start": 5271, + "end": 5376, "loc": { "start": { "line": 171, @@ -11847,8 +11896,8 @@ { "type": "CommentLine", "value": " }", - "start": 5367, - "end": 5379, + "start": 5380, + "end": 5392, "loc": { "start": { "line": 172, @@ -11863,8 +11912,8 @@ { "type": "CommentLine", "value": " }", - "start": 5384, - "end": 5392, + "start": 5397, + "end": 5405, "loc": { "start": { "line": 174, @@ -11879,8 +11928,8 @@ { "type": "CommentLine", "value": " }", - "start": 5396, - "end": 5400, + "start": 5409, + "end": 5413, "loc": { "start": { "line": 175, @@ -11910,8 +11959,8 @@ { "type": "CommentLine", "value": " Syncs all objects from server once a frame", - "start": 3510, - "end": 3555, + "start": 3523, + "end": 3568, "loc": { "start": { "line": 121, @@ -11928,8 +11977,8 @@ { "type": "CommentLine", "value": " Sync objects when they are deleted or move out of view. ONLY call after objectSync to avoid issue", - "start": 5411, - "end": 5511, + "start": 5424, + "end": 5524, "loc": { "start": { "line": 179, @@ -11945,8 +11994,8 @@ }, { "type": "ExpressionStatement", - "start": 5513, - "end": 7238, + "start": 5526, + "end": 7251, "loc": { "start": { "line": 180, @@ -11959,8 +12008,8 @@ }, "expression": { "type": "CallExpression", - "start": 5513, - "end": 7238, + "start": 5526, + "end": 7251, "loc": { "start": { "line": 180, @@ -11973,8 +12022,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5513, - "end": 5522, + "start": 5526, + "end": 5535, "loc": { "start": { "line": 180, @@ -11987,8 +12036,8 @@ }, "object": { "type": "Identifier", - "start": 5513, - "end": 5519, + "start": 5526, + "end": 5532, "loc": { "start": { "line": 180, @@ -12005,8 +12054,8 @@ }, "property": { "type": "Identifier", - "start": 5520, - "end": 5522, + "start": 5533, + "end": 5535, "loc": { "start": { "line": 180, @@ -12026,8 +12075,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5523, - "end": 5548, + "start": 5536, + "end": 5561, "loc": { "start": { "line": 180, @@ -12046,8 +12095,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 5550, - "end": 7237, + "start": 5563, + "end": 7250, "loc": { "start": { "line": 180, @@ -12065,8 +12114,8 @@ "params": [ { "type": "Identifier", - "start": 5551, - "end": 5555, + "start": 5564, + "end": 5568, "loc": { "start": { "line": 180, @@ -12083,8 +12132,8 @@ ], "body": { "type": "BlockStatement", - "start": 5560, - "end": 7237, + "start": 5573, + "end": 7250, "loc": { "start": { "line": 180, @@ -12098,8 +12147,8 @@ "body": [ { "type": "IfStatement", - "start": 5564, - "end": 5745, + "start": 5577, + "end": 5758, "loc": { "start": { "line": 181, @@ -12112,8 +12161,8 @@ }, "test": { "type": "MemberExpression", - "start": 5568, - "end": 5589, + "start": 5581, + "end": 5602, "loc": { "start": { "line": 181, @@ -12126,8 +12175,8 @@ }, "object": { "type": "Identifier", - "start": 5568, - "end": 5574, + "start": 5581, + "end": 5587, "loc": { "start": { "line": 181, @@ -12143,8 +12192,8 @@ }, "property": { "type": "Identifier", - "start": 5575, - "end": 5589, + "start": 5588, + "end": 5602, "loc": { "start": { "line": 181, @@ -12162,8 +12211,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5591, - "end": 5745, + "start": 5604, + "end": 5758, "loc": { "start": { "line": 181, @@ -12177,8 +12226,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5596, - "end": 5649, + "start": 5609, + "end": 5662, "loc": { "start": { "line": 182, @@ -12191,8 +12240,8 @@ }, "expression": { "type": "CallExpression", - "start": 5596, - "end": 5649, + "start": 5609, + "end": 5662, "loc": { "start": { "line": 182, @@ -12205,8 +12254,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5596, - "end": 5608, + "start": 5609, + "end": 5621, "loc": { "start": { "line": 182, @@ -12219,8 +12268,8 @@ }, "object": { "type": "Identifier", - "start": 5596, - "end": 5603, + "start": 5609, + "end": 5616, "loc": { "start": { "line": 182, @@ -12236,8 +12285,8 @@ }, "property": { "type": "Identifier", - "start": 5604, - "end": 5608, + "start": 5617, + "end": 5621, "loc": { "start": { "line": 182, @@ -12256,8 +12305,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5609, - "end": 5648, + "start": 5622, + "end": 5661, "loc": { "start": { "line": 182, @@ -12279,8 +12328,8 @@ }, { "type": "ExpressionStatement", - "start": 5653, - "end": 5671, + "start": 5666, + "end": 5684, "loc": { "start": { "line": 183, @@ -12293,8 +12342,8 @@ }, "expression": { "type": "CallExpression", - "start": 5653, - "end": 5671, + "start": 5666, + "end": 5684, "loc": { "start": { "line": 183, @@ -12307,8 +12356,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5653, - "end": 5665, + "start": 5666, + "end": 5678, "loc": { "start": { "line": 183, @@ -12321,8 +12370,8 @@ }, "object": { "type": "Identifier", - "start": 5653, - "end": 5660, + "start": 5666, + "end": 5673, "loc": { "start": { "line": 183, @@ -12338,8 +12387,8 @@ }, "property": { "type": "Identifier", - "start": 5661, - "end": 5665, + "start": 5674, + "end": 5678, "loc": { "start": { "line": 183, @@ -12358,8 +12407,8 @@ "arguments": [ { "type": "Identifier", - "start": 5666, - "end": 5670, + "start": 5679, + "end": 5683, "loc": { "start": { "line": 183, @@ -12378,8 +12427,8 @@ }, { "type": "ExpressionStatement", - "start": 5675, - "end": 5716, + "start": 5688, + "end": 5729, "loc": { "start": { "line": 184, @@ -12392,8 +12441,8 @@ }, "expression": { "type": "CallExpression", - "start": 5675, - "end": 5716, + "start": 5688, + "end": 5729, "loc": { "start": { "line": 184, @@ -12406,8 +12455,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5675, - "end": 5687, + "start": 5688, + "end": 5700, "loc": { "start": { "line": 184, @@ -12420,8 +12469,8 @@ }, "object": { "type": "Identifier", - "start": 5675, - "end": 5682, + "start": 5688, + "end": 5695, "loc": { "start": { "line": 184, @@ -12437,8 +12486,8 @@ }, "property": { "type": "Identifier", - "start": 5683, - "end": 5687, + "start": 5696, + "end": 5700, "loc": { "start": { "line": 184, @@ -12457,8 +12506,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 5688, - "end": 5715, + "start": 5701, + "end": 5728, "loc": { "start": { "line": 184, @@ -12471,8 +12520,8 @@ }, "object": { "type": "MemberExpression", - "start": 5688, - "end": 5706, + "start": 5701, + "end": 5719, "loc": { "start": { "line": 184, @@ -12485,8 +12534,8 @@ }, "object": { "type": "Identifier", - "start": 5688, - "end": 5695, + "start": 5701, + "end": 5708, "loc": { "start": { "line": 184, @@ -12502,8 +12551,8 @@ }, "property": { "type": "MemberExpression", - "start": 5696, - "end": 5705, + "start": 5709, + "end": 5718, "loc": { "start": { "line": 184, @@ -12516,8 +12565,8 @@ }, "object": { "type": "Identifier", - "start": 5696, - "end": 5700, + "start": 5709, + "end": 5713, "loc": { "start": { "line": 184, @@ -12533,8 +12582,8 @@ }, "property": { "type": "Identifier", - "start": 5701, - "end": 5705, + "start": 5714, + "end": 5718, "loc": { "start": { "line": 184, @@ -12554,8 +12603,8 @@ }, "property": { "type": "MemberExpression", - "start": 5707, - "end": 5714, + "start": 5720, + "end": 5727, "loc": { "start": { "line": 184, @@ -12568,8 +12617,8 @@ }, "object": { "type": "Identifier", - "start": 5707, - "end": 5711, + "start": 5720, + "end": 5724, "loc": { "start": { "line": 184, @@ -12585,8 +12634,8 @@ }, "property": { "type": "Identifier", - "start": 5712, - "end": 5714, + "start": 5725, + "end": 5727, "loc": { "start": { "line": 184, @@ -12609,8 +12658,8 @@ }, { "type": "ExpressionStatement", - "start": 5720, - "end": 5741, + "start": 5733, + "end": 5754, "loc": { "start": { "line": 185, @@ -12623,8 +12672,8 @@ }, "expression": { "type": "CallExpression", - "start": 5720, - "end": 5741, + "start": 5733, + "end": 5754, "loc": { "start": { "line": 185, @@ -12637,8 +12686,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5720, - "end": 5732, + "start": 5733, + "end": 5745, "loc": { "start": { "line": 185, @@ -12651,8 +12700,8 @@ }, "object": { "type": "Identifier", - "start": 5720, - "end": 5727, + "start": 5733, + "end": 5740, "loc": { "start": { "line": 185, @@ -12668,8 +12717,8 @@ }, "property": { "type": "Identifier", - "start": 5728, - "end": 5732, + "start": 5741, + "end": 5745, "loc": { "start": { "line": 185, @@ -12688,8 +12737,8 @@ "arguments": [ { "type": "Identifier", - "start": 5733, - "end": 5740, + "start": 5746, + "end": 5753, "loc": { "start": { "line": 185, @@ -12713,8 +12762,8 @@ }, { "type": "IfStatement", - "start": 5748, - "end": 6792, + "start": 5761, + "end": 6805, "loc": { "start": { "line": 187, @@ -12727,8 +12776,8 @@ }, "test": { "type": "LogicalExpression", - "start": 5752, - "end": 5833, + "start": 5765, + "end": 5846, "loc": { "start": { "line": 187, @@ -12741,8 +12790,8 @@ }, "left": { "type": "BinaryExpression", - "start": 5752, - "end": 5793, + "start": 5765, + "end": 5806, "loc": { "start": { "line": 187, @@ -12755,8 +12804,8 @@ }, "left": { "type": "MemberExpression", - "start": 5752, - "end": 5779, + "start": 5765, + "end": 5792, "loc": { "start": { "line": 187, @@ -12769,8 +12818,8 @@ }, "object": { "type": "MemberExpression", - "start": 5752, - "end": 5770, + "start": 5765, + "end": 5783, "loc": { "start": { "line": 187, @@ -12783,8 +12832,8 @@ }, "object": { "type": "Identifier", - "start": 5752, - "end": 5759, + "start": 5765, + "end": 5772, "loc": { "start": { "line": 187, @@ -12800,8 +12849,8 @@ }, "property": { "type": "MemberExpression", - "start": 5760, - "end": 5769, + "start": 5773, + "end": 5782, "loc": { "start": { "line": 187, @@ -12814,8 +12863,8 @@ }, "object": { "type": "Identifier", - "start": 5760, - "end": 5764, + "start": 5773, + "end": 5777, "loc": { "start": { "line": 187, @@ -12831,8 +12880,8 @@ }, "property": { "type": "Identifier", - "start": 5765, - "end": 5769, + "start": 5778, + "end": 5782, "loc": { "start": { "line": 187, @@ -12852,8 +12901,8 @@ }, "property": { "type": "MemberExpression", - "start": 5771, - "end": 5778, + "start": 5784, + "end": 5791, "loc": { "start": { "line": 187, @@ -12866,8 +12915,8 @@ }, "object": { "type": "Identifier", - "start": 5771, - "end": 5775, + "start": 5784, + "end": 5788, "loc": { "start": { "line": 187, @@ -12883,8 +12932,8 @@ }, "property": { "type": "Identifier", - "start": 5776, - "end": 5778, + "start": 5789, + "end": 5791, "loc": { "start": { "line": 187, @@ -12905,8 +12954,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 5784, - "end": 5793, + "start": 5797, + "end": 5806, "loc": { "start": { "line": 187, @@ -12924,8 +12973,8 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 5797, - "end": 5833, + "start": 5810, + "end": 5846, "loc": { "start": { "line": 187, @@ -12938,8 +12987,8 @@ }, "left": { "type": "MemberExpression", - "start": 5797, - "end": 5824, + "start": 5810, + "end": 5837, "loc": { "start": { "line": 187, @@ -12952,8 +13001,8 @@ }, "object": { "type": "MemberExpression", - "start": 5797, - "end": 5815, + "start": 5810, + "end": 5828, "loc": { "start": { "line": 187, @@ -12966,8 +13015,8 @@ }, "object": { "type": "Identifier", - "start": 5797, - "end": 5804, + "start": 5810, + "end": 5817, "loc": { "start": { "line": 187, @@ -12983,8 +13032,8 @@ }, "property": { "type": "MemberExpression", - "start": 5805, - "end": 5814, + "start": 5818, + "end": 5827, "loc": { "start": { "line": 187, @@ -12997,8 +13046,8 @@ }, "object": { "type": "Identifier", - "start": 5805, - "end": 5809, + "start": 5818, + "end": 5822, "loc": { "start": { "line": 187, @@ -13014,8 +13063,8 @@ }, "property": { "type": "Identifier", - "start": 5810, - "end": 5814, + "start": 5823, + "end": 5827, "loc": { "start": { "line": 187, @@ -13035,8 +13084,8 @@ }, "property": { "type": "MemberExpression", - "start": 5816, - "end": 5823, + "start": 5829, + "end": 5836, "loc": { "start": { "line": 187, @@ -13049,8 +13098,8 @@ }, "object": { "type": "Identifier", - "start": 5816, - "end": 5820, + "start": 5829, + "end": 5833, "loc": { "start": { "line": 187, @@ -13066,8 +13115,8 @@ }, "property": { "type": "Identifier", - "start": 5821, - "end": 5823, + "start": 5834, + "end": 5836, "loc": { "start": { "line": 187, @@ -13088,8 +13137,8 @@ "operator": "===", "right": { "type": "NullLiteral", - "start": 5829, - "end": 5833, + "start": 5842, + "end": 5846, "loc": { "start": { "line": 187, @@ -13105,8 +13154,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5835, - "end": 6447, + "start": 5848, + "end": 6460, "loc": { "start": { "line": 187, @@ -13120,8 +13169,8 @@ "body": [ { "type": "IfStatement", - "start": 5840, - "end": 5958, + "start": 5853, + "end": 5971, "loc": { "start": { "line": 188, @@ -13134,8 +13183,8 @@ }, "test": { "type": "MemberExpression", - "start": 5844, - "end": 5865, + "start": 5857, + "end": 5878, "loc": { "start": { "line": 188, @@ -13148,8 +13197,8 @@ }, "object": { "type": "Identifier", - "start": 5844, - "end": 5850, + "start": 5857, + "end": 5863, "loc": { "start": { "line": 188, @@ -13165,8 +13214,8 @@ }, "property": { "type": "Identifier", - "start": 5851, - "end": 5865, + "start": 5864, + "end": 5878, "loc": { "start": { "line": 188, @@ -13184,8 +13233,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5867, - "end": 5958, + "start": 5880, + "end": 5971, "loc": { "start": { "line": 188, @@ -13199,8 +13248,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5873, - "end": 5953, + "start": 5886, + "end": 5966, "loc": { "start": { "line": 189, @@ -13213,8 +13262,8 @@ }, "expression": { "type": "CallExpression", - "start": 5873, - "end": 5953, + "start": 5886, + "end": 5966, "loc": { "start": { "line": 189, @@ -13227,8 +13276,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5873, - "end": 5885, + "start": 5886, + "end": 5898, "loc": { "start": { "line": 189, @@ -13241,8 +13290,8 @@ }, "object": { "type": "Identifier", - "start": 5873, - "end": 5880, + "start": 5886, + "end": 5893, "loc": { "start": { "line": 189, @@ -13258,8 +13307,8 @@ }, "property": { "type": "Identifier", - "start": 5881, - "end": 5885, + "start": 5894, + "end": 5898, "loc": { "start": { "line": 189, @@ -13278,8 +13327,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5886, - "end": 5946, + "start": 5899, + "end": 5959, "loc": { "start": { "line": 189, @@ -13298,8 +13347,8 @@ }, { "type": "Identifier", - "start": 5948, - "end": 5952, + "start": 5961, + "end": 5965, "loc": { "start": { "line": 189, @@ -13323,8 +13372,8 @@ }, { "type": "ExpressionStatement", - "start": 5962, - "end": 6428, + "start": 5975, + "end": 6441, "loc": { "start": { "line": 191, @@ -13337,8 +13386,8 @@ }, "expression": { "type": "CallExpression", - "start": 5962, - "end": 6428, + "start": 5975, + "end": 6441, "loc": { "start": { "line": 191, @@ -13351,8 +13400,8 @@ }, "callee": { "type": "Identifier", - "start": 5962, - "end": 5972, + "start": 5975, + "end": 5985, "loc": { "start": { "line": 191, @@ -13369,8 +13418,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 5973, - "end": 6416, + "start": 5986, + "end": 6429, "loc": { "start": { "line": 191, @@ -13388,8 +13437,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 5979, - "end": 6416, + "start": 5992, + "end": 6429, "loc": { "start": { "line": 191, @@ -13403,8 +13452,8 @@ "body": [ { "type": "TryStatement", - "start": 5985, - "end": 6384, + "start": 5998, + "end": 6397, "loc": { "start": { "line": 192, @@ -13417,8 +13466,8 @@ }, "block": { "type": "BlockStatement", - "start": 5989, - "end": 6224, + "start": 6002, + "end": 6237, "loc": { "start": { "line": 192, @@ -13432,8 +13481,8 @@ "body": [ { "type": "IfStatement", - "start": 5996, - "end": 6218, + "start": 6009, + "end": 6231, "loc": { "start": { "line": 193, @@ -13446,8 +13495,8 @@ }, "test": { "type": "CallExpression", - "start": 6000, - "end": 6018, + "start": 6013, + "end": 6031, "loc": { "start": { "line": 193, @@ -13460,8 +13509,8 @@ }, "callee": { "type": "Identifier", - "start": 6000, - "end": 6012, + "start": 6013, + "end": 6025, "loc": { "start": { "line": 193, @@ -13478,8 +13527,8 @@ "arguments": [ { "type": "Identifier", - "start": 6013, - "end": 6017, + "start": 6026, + "end": 6030, "loc": { "start": { "line": 193, @@ -13497,8 +13546,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6020, - "end": 6218, + "start": 6033, + "end": 6231, "loc": { "start": { "line": 193, @@ -13512,8 +13561,8 @@ "body": [ { "type": "IfStatement", - "start": 6028, - "end": 6196, + "start": 6041, + "end": 6209, "loc": { "start": { "line": 194, @@ -13526,8 +13575,8 @@ }, "test": { "type": "MemberExpression", - "start": 6032, - "end": 6053, + "start": 6045, + "end": 6066, "loc": { "start": { "line": 194, @@ -13540,8 +13589,8 @@ }, "object": { "type": "Identifier", - "start": 6032, - "end": 6038, + "start": 6045, + "end": 6051, "loc": { "start": { "line": 194, @@ -13557,8 +13606,8 @@ }, "property": { "type": "Identifier", - "start": 6039, - "end": 6053, + "start": 6052, + "end": 6066, "loc": { "start": { "line": 194, @@ -13576,8 +13625,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6055, - "end": 6196, + "start": 6068, + "end": 6209, "loc": { "start": { "line": 194, @@ -13591,8 +13640,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6064, - "end": 6188, + "start": 6077, + "end": 6201, "loc": { "start": { "line": 195, @@ -13605,8 +13654,8 @@ }, "expression": { "type": "CallExpression", - "start": 6064, - "end": 6188, + "start": 6077, + "end": 6201, "loc": { "start": { "line": 195, @@ -13619,8 +13668,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6064, - "end": 6076, + "start": 6077, + "end": 6089, "loc": { "start": { "line": 195, @@ -13633,8 +13682,8 @@ }, "object": { "type": "Identifier", - "start": 6064, - "end": 6071, + "start": 6077, + "end": 6084, "loc": { "start": { "line": 195, @@ -13650,8 +13699,8 @@ }, "property": { "type": "Identifier", - "start": 6072, - "end": 6076, + "start": 6085, + "end": 6089, "loc": { "start": { "line": 195, @@ -13670,8 +13719,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 6077, - "end": 6187, + "start": 6090, + "end": 6200, "loc": { "start": { "line": 195, @@ -13698,8 +13747,8 @@ }, { "type": "ReturnStatement", - "start": 6203, - "end": 6211, + "start": 6216, + "end": 6224, "loc": { "start": { "line": 197, @@ -13712,8 +13761,8 @@ }, "argument": { "type": "NumericLiteral", - "start": 6210, - "end": 6211, + "start": 6223, + "end": 6224, "loc": { "start": { "line": 197, @@ -13741,8 +13790,8 @@ }, "handler": { "type": "CatchClause", - "start": 6229, - "end": 6384, + "start": 6242, + "end": 6397, "loc": { "start": { "line": 200, @@ -13755,8 +13804,8 @@ }, "param": { "type": "Identifier", - "start": 6236, - "end": 6239, + "start": 6249, + "end": 6252, "loc": { "start": { "line": 200, @@ -13772,8 +13821,8 @@ }, "body": { "type": "BlockStatement", - "start": 6241, - "end": 6384, + "start": 6254, + "end": 6397, "loc": { "start": { "line": 200, @@ -13787,8 +13836,8 @@ "body": [ { "type": "IfStatement", - "start": 6248, - "end": 6364, + "start": 6261, + "end": 6377, "loc": { "start": { "line": 201, @@ -13801,8 +13850,8 @@ }, "test": { "type": "MemberExpression", - "start": 6252, - "end": 6273, + "start": 6265, + "end": 6286, "loc": { "start": { "line": 201, @@ -13815,8 +13864,8 @@ }, "object": { "type": "Identifier", - "start": 6252, - "end": 6258, + "start": 6265, + "end": 6271, "loc": { "start": { "line": 201, @@ -13832,8 +13881,8 @@ }, "property": { "type": "Identifier", - "start": 6259, - "end": 6273, + "start": 6272, + "end": 6286, "loc": { "start": { "line": 201, @@ -13851,8 +13900,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6275, - "end": 6364, + "start": 6288, + "end": 6377, "loc": { "start": { "line": 201, @@ -13866,8 +13915,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6283, - "end": 6357, + "start": 6296, + "end": 6370, "loc": { "start": { "line": 202, @@ -13880,8 +13929,8 @@ }, "expression": { "type": "CallExpression", - "start": 6283, - "end": 6357, + "start": 6296, + "end": 6370, "loc": { "start": { "line": 202, @@ -13894,8 +13943,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6283, - "end": 6296, + "start": 6296, + "end": 6309, "loc": { "start": { "line": 202, @@ -13908,8 +13957,8 @@ }, "object": { "type": "Identifier", - "start": 6283, - "end": 6290, + "start": 6296, + "end": 6303, "loc": { "start": { "line": 202, @@ -13925,8 +13974,8 @@ }, "property": { "type": "Identifier", - "start": 6291, - "end": 6296, + "start": 6304, + "end": 6309, "loc": { "start": { "line": 202, @@ -13945,8 +13994,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 6297, - "end": 6356, + "start": 6310, + "end": 6369, "loc": { "start": { "line": 202, @@ -13973,8 +14022,8 @@ }, { "type": "ReturnStatement", - "start": 6370, - "end": 6378, + "start": 6383, + "end": 6391, "loc": { "start": { "line": 204, @@ -13987,8 +14036,8 @@ }, "argument": { "type": "NumericLiteral", - "start": 6377, - "end": 6378, + "start": 6390, + "end": 6391, "loc": { "start": { "line": 204, @@ -14018,8 +14067,8 @@ { "type": "CommentLine", "value": " removeObject(data);", - "start": 6389, - "end": 6411, + "start": 6402, + "end": 6424, "loc": { "start": { "line": 206, @@ -14039,8 +14088,8 @@ }, { "type": "BinaryExpression", - "start": 6418, - "end": 6427, + "start": 6431, + "end": 6440, "loc": { "start": { "line": 207, @@ -14053,8 +14102,8 @@ }, "left": { "type": "NumericLiteral", - "start": 6418, - "end": 6422, + "start": 6431, + "end": 6435, "loc": { "start": { "line": 207, @@ -14074,8 +14123,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 6425, - "end": 6427, + "start": 6438, + "end": 6440, "loc": { "start": { "line": 207, @@ -14100,8 +14149,8 @@ { "type": "CommentLine", "value": " return 1", - "start": 6432, - "end": 6443, + "start": 6445, + "end": 6456, "loc": { "start": { "line": 208, @@ -14120,8 +14169,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 6455, - "end": 6792, + "start": 6468, + "end": 6805, "loc": { "start": { "line": 210, @@ -14135,8 +14184,8 @@ "body": [ { "type": "IfStatement", - "start": 6545, - "end": 6788, + "start": 6558, + "end": 6801, "loc": { "start": { "line": 213, @@ -14149,8 +14198,8 @@ }, "test": { "type": "UnaryExpression", - "start": 6549, - "end": 6587, + "start": 6562, + "end": 6600, "loc": { "start": { "line": 213, @@ -14165,8 +14214,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 6550, - "end": 6587, + "start": 6563, + "end": 6600, "loc": { "start": { "line": 213, @@ -14179,8 +14228,8 @@ }, "object": { "type": "MemberExpression", - "start": 6550, - "end": 6577, + "start": 6563, + "end": 6590, "loc": { "start": { "line": 213, @@ -14193,8 +14242,8 @@ }, "object": { "type": "MemberExpression", - "start": 6550, - "end": 6568, + "start": 6563, + "end": 6581, "loc": { "start": { "line": 213, @@ -14207,8 +14256,8 @@ }, "object": { "type": "Identifier", - "start": 6550, - "end": 6557, + "start": 6563, + "end": 6570, "loc": { "start": { "line": 213, @@ -14225,8 +14274,8 @@ }, "property": { "type": "MemberExpression", - "start": 6558, - "end": 6567, + "start": 6571, + "end": 6580, "loc": { "start": { "line": 213, @@ -14239,8 +14288,8 @@ }, "object": { "type": "Identifier", - "start": 6558, - "end": 6562, + "start": 6571, + "end": 6575, "loc": { "start": { "line": 213, @@ -14256,8 +14305,8 @@ }, "property": { "type": "Identifier", - "start": 6563, - "end": 6567, + "start": 6576, + "end": 6580, "loc": { "start": { "line": 213, @@ -14278,8 +14327,8 @@ }, "property": { "type": "MemberExpression", - "start": 6569, - "end": 6576, + "start": 6582, + "end": 6589, "loc": { "start": { "line": 213, @@ -14292,8 +14341,8 @@ }, "object": { "type": "Identifier", - "start": 6569, - "end": 6573, + "start": 6582, + "end": 6586, "loc": { "start": { "line": 213, @@ -14309,8 +14358,8 @@ }, "property": { "type": "Identifier", - "start": 6574, - "end": 6576, + "start": 6587, + "end": 6589, "loc": { "start": { "line": 213, @@ -14331,8 +14380,8 @@ }, "property": { "type": "Identifier", - "start": 6578, - "end": 6587, + "start": 6591, + "end": 6600, "loc": { "start": { "line": 213, @@ -14356,8 +14405,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6589, - "end": 6648, + "start": 6602, + "end": 6661, "loc": { "start": { "line": 213, @@ -14371,8 +14420,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6625, - "end": 6643, + "start": 6638, + "end": 6656, "loc": { "start": { "line": 214, @@ -14385,8 +14434,8 @@ }, "expression": { "type": "CallExpression", - "start": 6625, - "end": 6643, + "start": 6638, + "end": 6656, "loc": { "start": { "line": 214, @@ -14399,8 +14448,8 @@ }, "callee": { "type": "Identifier", - "start": 6625, - "end": 6637, + "start": 6638, + "end": 6650, "loc": { "start": { "line": 214, @@ -14418,8 +14467,8 @@ "arguments": [ { "type": "Identifier", - "start": 6638, - "end": 6642, + "start": 6651, + "end": 6655, "loc": { "start": { "line": 214, @@ -14440,8 +14489,8 @@ { "type": "CommentLine", "value": " Only remove if not already", - "start": 6591, - "end": 6620, + "start": 6604, + "end": 6633, "loc": { "start": { "line": 213, @@ -14460,8 +14509,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 6657, - "end": 6788, + "start": 6670, + "end": 6801, "loc": { "start": { "line": 216, @@ -14475,8 +14524,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6663, - "end": 6754, + "start": 6676, + "end": 6767, "loc": { "start": { "line": 217, @@ -14489,8 +14538,8 @@ }, "expression": { "type": "CallExpression", - "start": 6663, - "end": 6754, + "start": 6676, + "end": 6767, "loc": { "start": { "line": 217, @@ -14503,8 +14552,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6663, - "end": 6675, + "start": 6676, + "end": 6688, "loc": { "start": { "line": 217, @@ -14517,8 +14566,8 @@ }, "object": { "type": "Identifier", - "start": 6663, - "end": 6670, + "start": 6676, + "end": 6683, "loc": { "start": { "line": 217, @@ -14534,8 +14583,8 @@ }, "property": { "type": "Identifier", - "start": 6671, - "end": 6675, + "start": 6684, + "end": 6688, "loc": { "start": { "line": 217, @@ -14554,8 +14603,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 6676, - "end": 6753, + "start": 6689, + "end": 6766, "loc": { "start": { "line": 217, @@ -14579,8 +14628,8 @@ { "type": "CommentLine", "value": " Sanity check", - "start": 6755, - "end": 6770, + "start": 6768, + "end": 6783, "loc": { "start": { "line": 217, @@ -14596,8 +14645,8 @@ }, { "type": "ReturnStatement", - "start": 6775, - "end": 6783, + "start": 6788, + "end": 6796, "loc": { "start": { "line": 218, @@ -14610,8 +14659,8 @@ }, "argument": { "type": "NumericLiteral", - "start": 6782, - "end": 6783, + "start": 6795, + "end": 6796, "loc": { "start": { "line": 218, @@ -14633,8 +14682,8 @@ { "type": "CommentLine", "value": " Sanity check", - "start": 6755, - "end": 6770, + "start": 6768, + "end": 6783, "loc": { "start": { "line": 217, @@ -14655,8 +14704,8 @@ { "type": "CommentLine", "value": " console.log(objects[data.type][data.id].destroyed);", - "start": 6460, - "end": 6514, + "start": 6473, + "end": 6527, "loc": { "start": { "line": 211, @@ -14671,8 +14720,8 @@ { "type": "CommentLine", "value": " An object was removed", - "start": 6517, - "end": 6541, + "start": 6530, + "end": 6554, "loc": { "start": { "line": 212, @@ -14694,8 +14743,8 @@ { "type": "CommentLine", "value": " Must keep checking if the object was not created at time of destruction.", - "start": 6796, - "end": 6871, + "start": 6809, + "end": 6884, "loc": { "start": { "line": 222, @@ -14710,8 +14759,8 @@ { "type": "CommentLine", "value": " One example of this needing to be run is when a player instantly collects an atom on spawn.", - "start": 6874, - "end": 6968, + "start": 6887, + "end": 6981, "loc": { "start": { "line": 223, @@ -14726,8 +14775,8 @@ { "type": "CommentLine", "value": " if (objects[data.type][data.id] === undefined) {", - "start": 6971, - "end": 7022, + "start": 6984, + "end": 7035, "loc": { "start": { "line": 224, @@ -14742,8 +14791,8 @@ { "type": "CommentLine", "value": " \tlet thisInterval = setTimeout(() => {", - "start": 7025, - "end": 7066, + "start": 7038, + "end": 7079, "loc": { "start": { "line": 225, @@ -14758,8 +14807,8 @@ { "type": "CommentLine", "value": " \t\tif (objects[data.type][data.id].destroyed) {", - "start": 7069, - "end": 7118, + "start": 7082, + "end": 7131, "loc": { "start": { "line": 226, @@ -14774,8 +14823,8 @@ { "type": "CommentLine", "value": " \t\t\tclearInterval(thisInterval)", - "start": 7121, - "end": 7154, + "start": 7134, + "end": 7167, "loc": { "start": { "line": 227, @@ -14790,8 +14839,8 @@ { "type": "CommentLine", "value": " \t\t}", - "start": 7157, - "end": 7163, + "start": 7170, + "end": 7176, "loc": { "start": { "line": 228, @@ -14806,8 +14855,8 @@ { "type": "CommentLine", "value": " \t\telse {", - "start": 7166, - "end": 7177, + "start": 7179, + "end": 7190, "loc": { "start": { "line": 229, @@ -14822,8 +14871,8 @@ { "type": "CommentLine", "value": " \t\t\tremoveObject(data)", - "start": 7180, - "end": 7204, + "start": 7193, + "end": 7217, "loc": { "start": { "line": 230, @@ -14838,8 +14887,8 @@ { "type": "CommentLine", "value": " \t\t}", - "start": 7207, - "end": 7213, + "start": 7220, + "end": 7226, "loc": { "start": { "line": 231, @@ -14854,8 +14903,8 @@ { "type": "CommentLine", "value": " \t}, 200)", - "start": 7216, - "end": 7227, + "start": 7229, + "end": 7240, "loc": { "start": { "line": 232, @@ -14870,8 +14919,8 @@ { "type": "CommentLine", "value": " }", - "start": 7230, - "end": 7234, + "start": 7243, + "end": 7247, "loc": { "start": { "line": 233, @@ -14892,8 +14941,8 @@ { "type": "CommentLine", "value": " Must keep checking if the object was not created at time of destruction.", - "start": 6796, - "end": 6871, + "start": 6809, + "end": 6884, "loc": { "start": { "line": 222, @@ -14908,8 +14957,8 @@ { "type": "CommentLine", "value": " One example of this needing to be run is when a player instantly collects an atom on spawn.", - "start": 6874, - "end": 6968, + "start": 6887, + "end": 6981, "loc": { "start": { "line": 223, @@ -14924,8 +14973,8 @@ { "type": "CommentLine", "value": " if (objects[data.type][data.id] === undefined) {", - "start": 6971, - "end": 7022, + "start": 6984, + "end": 7035, "loc": { "start": { "line": 224, @@ -14940,8 +14989,8 @@ { "type": "CommentLine", "value": " \tlet thisInterval = setTimeout(() => {", - "start": 7025, - "end": 7066, + "start": 7038, + "end": 7079, "loc": { "start": { "line": 225, @@ -14956,8 +15005,8 @@ { "type": "CommentLine", "value": " \t\tif (objects[data.type][data.id].destroyed) {", - "start": 7069, - "end": 7118, + "start": 7082, + "end": 7131, "loc": { "start": { "line": 226, @@ -14972,8 +15021,8 @@ { "type": "CommentLine", "value": " \t\t\tclearInterval(thisInterval)", - "start": 7121, - "end": 7154, + "start": 7134, + "end": 7167, "loc": { "start": { "line": 227, @@ -14988,8 +15037,8 @@ { "type": "CommentLine", "value": " \t\t}", - "start": 7157, - "end": 7163, + "start": 7170, + "end": 7176, "loc": { "start": { "line": 228, @@ -15004,8 +15053,8 @@ { "type": "CommentLine", "value": " \t\telse {", - "start": 7166, - "end": 7177, + "start": 7179, + "end": 7190, "loc": { "start": { "line": 229, @@ -15020,8 +15069,8 @@ { "type": "CommentLine", "value": " \t\t\tremoveObject(data)", - "start": 7180, - "end": 7204, + "start": 7193, + "end": 7217, "loc": { "start": { "line": 230, @@ -15036,8 +15085,8 @@ { "type": "CommentLine", "value": " \t\t}", - "start": 7207, - "end": 7213, + "start": 7220, + "end": 7226, "loc": { "start": { "line": 231, @@ -15052,8 +15101,8 @@ { "type": "CommentLine", "value": " \t}, 200)", - "start": 7216, - "end": 7227, + "start": 7229, + "end": 7240, "loc": { "start": { "line": 232, @@ -15068,8 +15117,8 @@ { "type": "CommentLine", "value": " }", - "start": 7230, - "end": 7234, + "start": 7243, + "end": 7247, "loc": { "start": { "line": 233, @@ -15090,8 +15139,8 @@ { "type": "CommentLine", "value": " Sync objects when they are deleted or move out of view. ONLY call after objectSync to avoid issue", - "start": 5411, - "end": 5511, + "start": 5424, + "end": 5524, "loc": { "start": { "line": 179, @@ -15113,8 +15162,8 @@ { "type": "CommentBlock", "value": "*\n * Sets up socket object syncing.\n * Run in setupSocket().\n ", - "start": 3401, - "end": 3467, + "start": 3414, + "end": 3480, "loc": { "start": { "line": 116, @@ -15131,8 +15180,8 @@ { "type": "CommentBlock", "value": "*\n * Sets up socket connection listeners.\n * Run in setupSocket().\n ", - "start": 7242, - "end": 7314, + "start": 7255, + "end": 7327, "loc": { "start": { "line": 237, @@ -15148,8 +15197,8 @@ }, { "type": "FunctionDeclaration", - "start": 7315, - "end": 8351, + "start": 7328, + "end": 8364, "loc": { "start": { "line": 241, @@ -15162,8 +15211,8 @@ }, "id": { "type": "Identifier", - "start": 7324, - "end": 7345, + "start": 7337, + "end": 7358, "loc": { "start": { "line": 241, @@ -15184,8 +15233,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 7349, - "end": 8351, + "start": 7362, + "end": 8364, "loc": { "start": { "line": 241, @@ -15199,8 +15248,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7378, - "end": 7470, + "start": 7391, + "end": 7483, "loc": { "start": { "line": 243, @@ -15213,8 +15262,8 @@ }, "expression": { "type": "CallExpression", - "start": 7378, - "end": 7470, + "start": 7391, + "end": 7483, "loc": { "start": { "line": 243, @@ -15227,8 +15276,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7378, - "end": 7387, + "start": 7391, + "end": 7400, "loc": { "start": { "line": 243, @@ -15241,8 +15290,8 @@ }, "object": { "type": "Identifier", - "start": 7378, - "end": 7384, + "start": 7391, + "end": 7397, "loc": { "start": { "line": 243, @@ -15259,8 +15308,8 @@ }, "property": { "type": "Identifier", - "start": 7385, - "end": 7387, + "start": 7398, + "end": 7400, "loc": { "start": { "line": 243, @@ -15280,8 +15329,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7388, - "end": 7406, + "start": 7401, + "end": 7419, "loc": { "start": { "line": 243, @@ -15300,8 +15349,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 7408, - "end": 7469, + "start": 7421, + "end": 7482, "loc": { "start": { "line": 243, @@ -15319,8 +15368,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 7414, - "end": 7469, + "start": 7427, + "end": 7482, "loc": { "start": { "line": 243, @@ -15334,8 +15383,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7418, - "end": 7466, + "start": 7431, + "end": 7479, "loc": { "start": { "line": 244, @@ -15348,8 +15397,8 @@ }, "expression": { "type": "CallExpression", - "start": 7418, - "end": 7466, + "start": 7431, + "end": 7479, "loc": { "start": { "line": 244, @@ -15362,8 +15411,8 @@ }, "callee": { "type": "Identifier", - "start": 7418, - "end": 7423, + "start": 7431, + "end": 7436, "loc": { "start": { "line": 244, @@ -15380,8 +15429,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7424, - "end": 7465, + "start": 7437, + "end": 7478, "loc": { "start": { "line": 244, @@ -15412,8 +15461,8 @@ { "type": "CommentLine", "value": " On Connection Failure", - "start": 7352, - "end": 7376, + "start": 7365, + "end": 7389, "loc": { "start": { "line": 242, @@ -15429,8 +15478,8 @@ }, { "type": "ExpressionStatement", - "start": 7473, - "end": 7627, + "start": 7486, + "end": 7640, "loc": { "start": { "line": 247, @@ -15443,8 +15492,8 @@ }, "expression": { "type": "CallExpression", - "start": 7473, - "end": 7627, + "start": 7486, + "end": 7640, "loc": { "start": { "line": 247, @@ -15457,8 +15506,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7473, - "end": 7482, + "start": 7486, + "end": 7495, "loc": { "start": { "line": 247, @@ -15471,8 +15520,8 @@ }, "object": { "type": "Identifier", - "start": 7473, - "end": 7479, + "start": 7486, + "end": 7492, "loc": { "start": { "line": 247, @@ -15488,8 +15537,8 @@ }, "property": { "type": "Identifier", - "start": 7480, - "end": 7482, + "start": 7493, + "end": 7495, "loc": { "start": { "line": 247, @@ -15508,8 +15557,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7483, - "end": 7497, + "start": 7496, + "end": 7510, "loc": { "start": { "line": 247, @@ -15528,8 +15577,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 7499, - "end": 7626, + "start": 7512, + "end": 7639, "loc": { "start": { "line": 247, @@ -15547,8 +15596,8 @@ "params": [ { "type": "Identifier", - "start": 7500, - "end": 7507, + "start": 7513, + "end": 7520, "loc": { "start": { "line": 247, @@ -15565,8 +15614,8 @@ ], "body": { "type": "BlockStatement", - "start": 7512, - "end": 7626, + "start": 7525, + "end": 7639, "loc": { "start": { "line": 247, @@ -15580,8 +15629,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7516, - "end": 7583, + "start": 7529, + "end": 7596, "loc": { "start": { "line": 248, @@ -15594,8 +15643,8 @@ }, "expression": { "type": "CallExpression", - "start": 7516, - "end": 7583, + "start": 7529, + "end": 7596, "loc": { "start": { "line": 248, @@ -15608,8 +15657,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7516, - "end": 7527, + "start": 7529, + "end": 7540, "loc": { "start": { "line": 248, @@ -15622,8 +15671,8 @@ }, "object": { "type": "Identifier", - "start": 7516, - "end": 7523, + "start": 7529, + "end": 7536, "loc": { "start": { "line": 248, @@ -15639,8 +15688,8 @@ }, "property": { "type": "Identifier", - "start": 7524, - "end": 7527, + "start": 7537, + "end": 7540, "loc": { "start": { "line": 248, @@ -15659,8 +15708,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 7528, - "end": 7582, + "start": 7541, + "end": 7595, "loc": { "start": { "line": 248, @@ -15673,8 +15722,8 @@ }, "left": { "type": "StringLiteral", - "start": 7528, - "end": 7572, + "start": 7541, + "end": 7585, "loc": { "start": { "line": 248, @@ -15694,8 +15743,8 @@ "operator": "+", "right": { "type": "Identifier", - "start": 7575, - "end": 7582, + "start": 7588, + "end": 7595, "loc": { "start": { "line": 248, @@ -15715,8 +15764,8 @@ }, { "type": "ExpressionStatement", - "start": 7586, - "end": 7623, + "start": 7599, + "end": 7636, "loc": { "start": { "line": 249, @@ -15729,8 +15778,8 @@ }, "expression": { "type": "CallExpression", - "start": 7586, - "end": 7623, + "start": 7599, + "end": 7636, "loc": { "start": { "line": 249, @@ -15743,8 +15792,8 @@ }, "callee": { "type": "Identifier", - "start": 7586, - "end": 7594, + "start": 7599, + "end": 7607, "loc": { "start": { "line": 249, @@ -15761,8 +15810,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7595, - "end": 7622, + "start": 7608, + "end": 7635, "loc": { "start": { "line": 249, @@ -15791,8 +15840,8 @@ }, { "type": "ExpressionStatement", - "start": 7630, - "end": 7725, + "start": 7643, + "end": 7738, "loc": { "start": { "line": 252, @@ -15805,8 +15854,8 @@ }, "expression": { "type": "CallExpression", - "start": 7630, - "end": 7725, + "start": 7643, + "end": 7738, "loc": { "start": { "line": 252, @@ -15819,8 +15868,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7630, - "end": 7639, + "start": 7643, + "end": 7652, "loc": { "start": { "line": 252, @@ -15833,8 +15882,8 @@ }, "object": { "type": "Identifier", - "start": 7630, - "end": 7636, + "start": 7643, + "end": 7649, "loc": { "start": { "line": 252, @@ -15850,8 +15899,8 @@ }, "property": { "type": "Identifier", - "start": 7637, - "end": 7639, + "start": 7650, + "end": 7652, "loc": { "start": { "line": 252, @@ -15870,8 +15919,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7640, - "end": 7657, + "start": 7653, + "end": 7670, "loc": { "start": { "line": 252, @@ -15890,8 +15939,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 7659, - "end": 7724, + "start": 7672, + "end": 7737, "loc": { "start": { "line": 252, @@ -15909,8 +15958,8 @@ "params": [ { "type": "Identifier", - "start": 7660, - "end": 7663, + "start": 7673, + "end": 7676, "loc": { "start": { "line": 252, @@ -15927,8 +15976,8 @@ ], "body": { "type": "BlockStatement", - "start": 7668, - "end": 7724, + "start": 7681, + "end": 7737, "loc": { "start": { "line": 252, @@ -15942,8 +15991,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7672, - "end": 7721, + "start": 7685, + "end": 7734, "loc": { "start": { "line": 253, @@ -15956,8 +16005,8 @@ }, "expression": { "type": "CallExpression", - "start": 7672, - "end": 7721, + "start": 7685, + "end": 7734, "loc": { "start": { "line": 253, @@ -15970,8 +16019,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7672, - "end": 7683, + "start": 7685, + "end": 7696, "loc": { "start": { "line": 253, @@ -15984,8 +16033,8 @@ }, "object": { "type": "Identifier", - "start": 7672, - "end": 7679, + "start": 7685, + "end": 7692, "loc": { "start": { "line": 253, @@ -16001,8 +16050,8 @@ }, "property": { "type": "Identifier", - "start": 7680, - "end": 7683, + "start": 7693, + "end": 7696, "loc": { "start": { "line": 253, @@ -16021,8 +16070,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 7684, - "end": 7720, + "start": 7697, + "end": 7733, "loc": { "start": { "line": 253, @@ -16035,8 +16084,8 @@ }, "left": { "type": "StringLiteral", - "start": 7684, - "end": 7714, + "start": 7697, + "end": 7727, "loc": { "start": { "line": 253, @@ -16056,8 +16105,8 @@ "operator": "+", "right": { "type": "Identifier", - "start": 7717, - "end": 7720, + "start": 7730, + "end": 7733, "loc": { "start": { "line": 253, @@ -16084,8 +16133,8 @@ }, { "type": "ExpressionStatement", - "start": 7728, - "end": 7800, + "start": 7741, + "end": 7813, "loc": { "start": { "line": 256, @@ -16098,8 +16147,8 @@ }, "expression": { "type": "CallExpression", - "start": 7728, - "end": 7800, + "start": 7741, + "end": 7813, "loc": { "start": { "line": 256, @@ -16112,8 +16161,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7728, - "end": 7737, + "start": 7741, + "end": 7750, "loc": { "start": { "line": 256, @@ -16126,8 +16175,8 @@ }, "object": { "type": "Identifier", - "start": 7728, - "end": 7734, + "start": 7741, + "end": 7747, "loc": { "start": { "line": 256, @@ -16143,8 +16192,8 @@ }, "property": { "type": "Identifier", - "start": 7735, - "end": 7737, + "start": 7748, + "end": 7750, "loc": { "start": { "line": 256, @@ -16163,8 +16212,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7738, - "end": 7744, + "start": 7751, + "end": 7757, "loc": { "start": { "line": 256, @@ -16183,8 +16232,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 7746, - "end": 7799, + "start": 7759, + "end": 7812, "loc": { "start": { "line": 256, @@ -16202,8 +16251,8 @@ "params": [ { "type": "Identifier", - "start": 7747, - "end": 7751, + "start": 7760, + "end": 7764, "loc": { "start": { "line": 256, @@ -16220,8 +16269,8 @@ ], "body": { "type": "BlockStatement", - "start": 7756, - "end": 7799, + "start": 7769, + "end": 7812, "loc": { "start": { "line": 256, @@ -16235,8 +16284,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7760, - "end": 7796, + "start": 7773, + "end": 7809, "loc": { "start": { "line": 257, @@ -16249,8 +16298,8 @@ }, "expression": { "type": "CallExpression", - "start": 7760, - "end": 7796, + "start": 7773, + "end": 7809, "loc": { "start": { "line": 257, @@ -16263,8 +16312,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7760, - "end": 7771, + "start": 7773, + "end": 7784, "loc": { "start": { "line": 257, @@ -16277,8 +16326,8 @@ }, "object": { "type": "Identifier", - "start": 7760, - "end": 7767, + "start": 7773, + "end": 7780, "loc": { "start": { "line": 257, @@ -16294,8 +16343,8 @@ }, "property": { "type": "Identifier", - "start": 7768, - "end": 7771, + "start": 7781, + "end": 7784, "loc": { "start": { "line": 257, @@ -16314,8 +16363,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 7772, - "end": 7795, + "start": 7785, + "end": 7808, "loc": { "start": { "line": 257, @@ -16328,8 +16377,8 @@ }, "left": { "type": "StringLiteral", - "start": 7772, - "end": 7788, + "start": 7785, + "end": 7801, "loc": { "start": { "line": 257, @@ -16349,8 +16398,8 @@ "operator": "+", "right": { "type": "Identifier", - "start": 7791, - "end": 7795, + "start": 7804, + "end": 7808, "loc": { "start": { "line": 257, @@ -16377,8 +16426,8 @@ }, { "type": "ExpressionStatement", - "start": 7803, - "end": 8115, + "start": 7816, + "end": 8128, "loc": { "start": { "line": 260, @@ -16391,8 +16440,8 @@ }, "expression": { "type": "CallExpression", - "start": 7803, - "end": 8115, + "start": 7816, + "end": 8128, "loc": { "start": { "line": 260, @@ -16405,8 +16454,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7803, - "end": 7812, + "start": 7816, + "end": 7825, "loc": { "start": { "line": 260, @@ -16419,8 +16468,8 @@ }, "object": { "type": "Identifier", - "start": 7803, - "end": 7809, + "start": 7816, + "end": 7822, "loc": { "start": { "line": 260, @@ -16436,8 +16485,8 @@ }, "property": { "type": "Identifier", - "start": 7810, - "end": 7812, + "start": 7823, + "end": 7825, "loc": { "start": { "line": 260, @@ -16456,8 +16505,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7813, - "end": 7833, + "start": 7826, + "end": 7846, "loc": { "start": { "line": 260, @@ -16476,8 +16525,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 7835, - "end": 8114, + "start": 7848, + "end": 8127, "loc": { "start": { "line": 260, @@ -16495,8 +16544,8 @@ "params": [ { "type": "Identifier", - "start": 7836, - "end": 7840, + "start": 7849, + "end": 7853, "loc": { "start": { "line": 260, @@ -16513,8 +16562,8 @@ ], "body": { "type": "BlockStatement", - "start": 7845, - "end": 8114, + "start": 7858, + "end": 8127, "loc": { "start": { "line": 260, @@ -16528,8 +16577,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7849, - "end": 7903, + "start": 7862, + "end": 7916, "loc": { "start": { "line": 261, @@ -16542,8 +16591,8 @@ }, "expression": { "type": "CallExpression", - "start": 7849, - "end": 7903, + "start": 7862, + "end": 7916, "loc": { "start": { "line": 261, @@ -16556,8 +16605,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7849, - "end": 7860, + "start": 7862, + "end": 7873, "loc": { "start": { "line": 261, @@ -16570,8 +16619,8 @@ }, "object": { "type": "Identifier", - "start": 7849, - "end": 7856, + "start": 7862, + "end": 7869, "loc": { "start": { "line": 261, @@ -16587,8 +16636,8 @@ }, "property": { "type": "Identifier", - "start": 7857, - "end": 7860, + "start": 7870, + "end": 7873, "loc": { "start": { "line": 261, @@ -16607,8 +16656,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 7861, - "end": 7902, + "start": 7874, + "end": 7915, "loc": { "start": { "line": 261, @@ -16621,8 +16670,8 @@ }, "left": { "type": "BinaryExpression", - "start": 7861, - "end": 7880, + "start": 7874, + "end": 7893, "loc": { "start": { "line": 261, @@ -16635,8 +16684,8 @@ }, "left": { "type": "StringLiteral", - "start": 7861, - "end": 7870, + "start": 7874, + "end": 7883, "loc": { "start": { "line": 261, @@ -16656,8 +16705,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 7873, - "end": 7880, + "start": 7886, + "end": 7893, "loc": { "start": { "line": 261, @@ -16670,8 +16719,8 @@ }, "object": { "type": "Identifier", - "start": 7873, - "end": 7877, + "start": 7886, + "end": 7890, "loc": { "start": { "line": 261, @@ -16687,8 +16736,8 @@ }, "property": { "type": "Identifier", - "start": 7878, - "end": 7880, + "start": 7891, + "end": 7893, "loc": { "start": { "line": 261, @@ -16708,8 +16757,8 @@ "operator": "+", "right": { "type": "StringLiteral", - "start": 7883, - "end": 7902, + "start": 7896, + "end": 7915, "loc": { "start": { "line": 261, @@ -16732,8 +16781,8 @@ }, { "type": "ExpressionStatement", - "start": 7906, - "end": 7989, + "start": 7919, + "end": 8002, "loc": { "start": { "line": 262, @@ -16746,8 +16795,8 @@ }, "expression": { "type": "CallExpression", - "start": 7906, - "end": 7989, + "start": 7919, + "end": 8002, "loc": { "start": { "line": 262, @@ -16760,8 +16809,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7906, - "end": 7924, + "start": 7919, + "end": 7937, "loc": { "start": { "line": 262, @@ -16774,8 +16823,8 @@ }, "object": { "type": "Identifier", - "start": 7906, - "end": 7910, + "start": 7919, + "end": 7923, "loc": { "start": { "line": 262, @@ -16791,8 +16840,8 @@ }, "property": { "type": "Identifier", - "start": 7911, - "end": 7924, + "start": 7924, + "end": 7937, "loc": { "start": { "line": 262, @@ -16811,8 +16860,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 7925, - "end": 7988, + "start": 7938, + "end": 8001, "loc": { "start": { "line": 262, @@ -16825,8 +16874,8 @@ }, "left": { "type": "BinaryExpression", - "start": 7925, - "end": 7966, + "start": 7938, + "end": 7979, "loc": { "start": { "line": 262, @@ -16839,8 +16888,8 @@ }, "left": { "type": "StringLiteral", - "start": 7925, - "end": 7934, + "start": 7938, + "end": 7947, "loc": { "start": { "line": 262, @@ -16860,8 +16909,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 7937, - "end": 7966, + "start": 7950, + "end": 7979, "loc": { "start": { "line": 262, @@ -16874,8 +16923,8 @@ }, "object": { "type": "MemberExpression", - "start": 7937, - "end": 7961, + "start": 7950, + "end": 7974, "loc": { "start": { "line": 262, @@ -16888,8 +16937,8 @@ }, "object": { "type": "MemberExpression", - "start": 7937, - "end": 7952, + "start": 7950, + "end": 7965, "loc": { "start": { "line": 262, @@ -16902,8 +16951,8 @@ }, "object": { "type": "Identifier", - "start": 7937, - "end": 7944, + "start": 7950, + "end": 7957, "loc": { "start": { "line": 262, @@ -16919,8 +16968,8 @@ }, "property": { "type": "Identifier", - "start": 7945, - "end": 7952, + "start": 7958, + "end": 7965, "loc": { "start": { "line": 262, @@ -16938,8 +16987,8 @@ }, "property": { "type": "MemberExpression", - "start": 7953, - "end": 7960, + "start": 7966, + "end": 7973, "loc": { "start": { "line": 262, @@ -16952,8 +17001,8 @@ }, "object": { "type": "Identifier", - "start": 7953, - "end": 7957, + "start": 7966, + "end": 7970, "loc": { "start": { "line": 262, @@ -16969,8 +17018,8 @@ }, "property": { "type": "Identifier", - "start": 7958, - "end": 7960, + "start": 7971, + "end": 7973, "loc": { "start": { "line": 262, @@ -16990,8 +17039,8 @@ }, "property": { "type": "Identifier", - "start": 7962, - "end": 7966, + "start": 7975, + "end": 7979, "loc": { "start": { "line": 262, @@ -17011,8 +17060,8 @@ "operator": "+", "right": { "type": "StringLiteral", - "start": 7969, - "end": 7988, + "start": 7982, + "end": 8001, "loc": { "start": { "line": 262, @@ -17035,8 +17084,8 @@ }, { "type": "IfStatement", - "start": 7992, - "end": 8111, + "start": 8005, + "end": 8124, "loc": { "start": { "line": 263, @@ -17049,8 +17098,8 @@ }, "test": { "type": "BinaryExpression", - "start": 7996, - "end": 8034, + "start": 8009, + "end": 8047, "loc": { "start": { "line": 263, @@ -17063,8 +17112,8 @@ }, "left": { "type": "MemberExpression", - "start": 7996, - "end": 8020, + "start": 8009, + "end": 8033, "loc": { "start": { "line": 263, @@ -17077,8 +17126,8 @@ }, "object": { "type": "MemberExpression", - "start": 7996, - "end": 8011, + "start": 8009, + "end": 8024, "loc": { "start": { "line": 263, @@ -17091,8 +17140,8 @@ }, "object": { "type": "Identifier", - "start": 7996, - "end": 8003, + "start": 8009, + "end": 8016, "loc": { "start": { "line": 263, @@ -17108,8 +17157,8 @@ }, "property": { "type": "Identifier", - "start": 8004, - "end": 8011, + "start": 8017, + "end": 8024, "loc": { "start": { "line": 263, @@ -17127,8 +17176,8 @@ }, "property": { "type": "MemberExpression", - "start": 8012, - "end": 8019, + "start": 8025, + "end": 8032, "loc": { "start": { "line": 263, @@ -17141,8 +17190,8 @@ }, "object": { "type": "Identifier", - "start": 8012, - "end": 8016, + "start": 8025, + "end": 8029, "loc": { "start": { "line": 263, @@ -17158,8 +17207,8 @@ }, "property": { "type": "Identifier", - "start": 8017, - "end": 8019, + "start": 8030, + "end": 8032, "loc": { "start": { "line": 263, @@ -17180,8 +17229,8 @@ "operator": "!==", "right": { "type": "Identifier", - "start": 8025, - "end": 8034, + "start": 8038, + "end": 8047, "loc": { "start": { "line": 263, @@ -17198,8 +17247,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8036, - "end": 8111, + "start": 8049, + "end": 8124, "loc": { "start": { "line": 263, @@ -17213,8 +17262,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8041, - "end": 8072, + "start": 8054, + "end": 8085, "loc": { "start": { "line": 264, @@ -17227,8 +17276,8 @@ }, "expression": { "type": "CallExpression", - "start": 8041, - "end": 8072, + "start": 8054, + "end": 8085, "loc": { "start": { "line": 264, @@ -17241,8 +17290,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8041, - "end": 8070, + "start": 8054, + "end": 8083, "loc": { "start": { "line": 264, @@ -17255,8 +17304,8 @@ }, "object": { "type": "MemberExpression", - "start": 8041, - "end": 8065, + "start": 8054, + "end": 8078, "loc": { "start": { "line": 264, @@ -17269,8 +17318,8 @@ }, "object": { "type": "MemberExpression", - "start": 8041, - "end": 8056, + "start": 8054, + "end": 8069, "loc": { "start": { "line": 264, @@ -17283,8 +17332,8 @@ }, "object": { "type": "Identifier", - "start": 8041, - "end": 8048, + "start": 8054, + "end": 8061, "loc": { "start": { "line": 264, @@ -17300,8 +17349,8 @@ }, "property": { "type": "Identifier", - "start": 8049, - "end": 8056, + "start": 8062, + "end": 8069, "loc": { "start": { "line": 264, @@ -17319,8 +17368,8 @@ }, "property": { "type": "MemberExpression", - "start": 8057, - "end": 8064, + "start": 8070, + "end": 8077, "loc": { "start": { "line": 264, @@ -17333,8 +17382,8 @@ }, "object": { "type": "Identifier", - "start": 8057, - "end": 8061, + "start": 8070, + "end": 8074, "loc": { "start": { "line": 264, @@ -17350,8 +17399,8 @@ }, "property": { "type": "Identifier", - "start": 8062, - "end": 8064, + "start": 8075, + "end": 8077, "loc": { "start": { "line": 264, @@ -17371,8 +17420,8 @@ }, "property": { "type": "Identifier", - "start": 8066, - "end": 8070, + "start": 8079, + "end": 8083, "loc": { "start": { "line": 264, @@ -17393,8 +17442,8 @@ }, { "type": "ExpressionStatement", - "start": 8076, - "end": 8107, + "start": 8089, + "end": 8120, "loc": { "start": { "line": 265, @@ -17407,8 +17456,8 @@ }, "expression": { "type": "UnaryExpression", - "start": 8076, - "end": 8107, + "start": 8089, + "end": 8120, "loc": { "start": { "line": 265, @@ -17423,8 +17472,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8083, - "end": 8107, + "start": 8096, + "end": 8120, "loc": { "start": { "line": 265, @@ -17437,8 +17486,8 @@ }, "object": { "type": "MemberExpression", - "start": 8083, - "end": 8098, + "start": 8096, + "end": 8111, "loc": { "start": { "line": 265, @@ -17451,8 +17500,8 @@ }, "object": { "type": "Identifier", - "start": 8083, - "end": 8090, + "start": 8096, + "end": 8103, "loc": { "start": { "line": 265, @@ -17468,8 +17517,8 @@ }, "property": { "type": "Identifier", - "start": 8091, - "end": 8098, + "start": 8104, + "end": 8111, "loc": { "start": { "line": 265, @@ -17487,8 +17536,8 @@ }, "property": { "type": "MemberExpression", - "start": 8099, - "end": 8106, + "start": 8112, + "end": 8119, "loc": { "start": { "line": 265, @@ -17501,8 +17550,8 @@ }, "object": { "type": "Identifier", - "start": 8099, - "end": 8103, + "start": 8112, + "end": 8116, "loc": { "start": { "line": 265, @@ -17518,8 +17567,8 @@ }, "property": { "type": "Identifier", - "start": 8104, - "end": 8106, + "start": 8117, + "end": 8119, "loc": { "start": { "line": 265, @@ -17556,8 +17605,8 @@ }, { "type": "ExpressionStatement", - "start": 8118, - "end": 8234, + "start": 8131, + "end": 8247, "loc": { "start": { "line": 269, @@ -17570,8 +17619,8 @@ }, "expression": { "type": "CallExpression", - "start": 8118, - "end": 8234, + "start": 8131, + "end": 8247, "loc": { "start": { "line": 269, @@ -17584,8 +17633,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8118, - "end": 8127, + "start": 8131, + "end": 8140, "loc": { "start": { "line": 269, @@ -17598,8 +17647,8 @@ }, "object": { "type": "Identifier", - "start": 8118, - "end": 8124, + "start": 8131, + "end": 8137, "loc": { "start": { "line": 269, @@ -17615,8 +17664,8 @@ }, "property": { "type": "Identifier", - "start": 8125, - "end": 8127, + "start": 8138, + "end": 8140, "loc": { "start": { "line": 269, @@ -17635,8 +17684,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8128, - "end": 8150, + "start": 8141, + "end": 8163, "loc": { "start": { "line": 269, @@ -17655,8 +17704,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 8152, - "end": 8233, + "start": 8165, + "end": 8246, "loc": { "start": { "line": 269, @@ -17674,8 +17723,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 8158, - "end": 8233, + "start": 8171, + "end": 8246, "loc": { "start": { "line": 269, @@ -17689,8 +17738,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8162, - "end": 8200, + "start": 8175, + "end": 8213, "loc": { "start": { "line": 270, @@ -17703,8 +17752,8 @@ }, "expression": { "type": "CallExpression", - "start": 8162, - "end": 8200, + "start": 8175, + "end": 8213, "loc": { "start": { "line": 270, @@ -17717,8 +17766,8 @@ }, "callee": { "type": "Identifier", - "start": 8162, - "end": 8170, + "start": 8175, + "end": 8183, "loc": { "start": { "line": 270, @@ -17735,8 +17784,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8171, - "end": 8192, + "start": 8184, + "end": 8205, "loc": { "start": { "line": 270, @@ -17755,8 +17804,8 @@ }, { "type": "BooleanLiteral", - "start": 8194, - "end": 8199, + "start": 8207, + "end": 8212, "loc": { "start": { "line": 270, @@ -17774,8 +17823,8 @@ }, { "type": "ExpressionStatement", - "start": 8203, - "end": 8230, + "start": 8216, + "end": 8243, "loc": { "start": { "line": 271, @@ -17788,8 +17837,8 @@ }, "expression": { "type": "CallExpression", - "start": 8203, - "end": 8230, + "start": 8216, + "end": 8243, "loc": { "start": { "line": 271, @@ -17802,8 +17851,8 @@ }, "callee": { "type": "Identifier", - "start": 8203, - "end": 8214, + "start": 8216, + "end": 8227, "loc": { "start": { "line": 271, @@ -17820,8 +17869,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8215, - "end": 8229, + "start": 8228, + "end": 8242, "loc": { "start": { "line": 271, @@ -17852,8 +17901,8 @@ { "type": "CommentLine", "value": " Errors on join", - "start": 8237, - "end": 8254, + "start": 8250, + "end": 8267, "loc": { "start": { "line": 274, @@ -17869,8 +17918,8 @@ }, { "type": "ExpressionStatement", - "start": 8256, - "end": 8349, + "start": 8269, + "end": 8362, "loc": { "start": { "line": 275, @@ -17883,8 +17932,8 @@ }, "expression": { "type": "CallExpression", - "start": 8256, - "end": 8349, + "start": 8269, + "end": 8362, "loc": { "start": { "line": 275, @@ -17897,8 +17946,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8256, - "end": 8265, + "start": 8269, + "end": 8278, "loc": { "start": { "line": 275, @@ -17911,8 +17960,8 @@ }, "object": { "type": "Identifier", - "start": 8256, - "end": 8262, + "start": 8269, + "end": 8275, "loc": { "start": { "line": 275, @@ -17929,8 +17978,8 @@ }, "property": { "type": "Identifier", - "start": 8263, - "end": 8265, + "start": 8276, + "end": 8278, "loc": { "start": { "line": 275, @@ -17950,8 +17999,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8266, - "end": 8283, + "start": 8279, + "end": 8296, "loc": { "start": { "line": 275, @@ -17970,8 +18019,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 8285, - "end": 8348, + "start": 8298, + "end": 8361, "loc": { "start": { "line": 275, @@ -17989,8 +18038,8 @@ "params": [ { "type": "Identifier", - "start": 8286, - "end": 8290, + "start": 8299, + "end": 8303, "loc": { "start": { "line": 275, @@ -18007,8 +18056,8 @@ ], "body": { "type": "BlockStatement", - "start": 8295, - "end": 8348, + "start": 8308, + "end": 8361, "loc": { "start": { "line": 275, @@ -18022,8 +18071,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8299, - "end": 8318, + "start": 8312, + "end": 8331, "loc": { "start": { "line": 276, @@ -18036,8 +18085,8 @@ }, "expression": { "type": "CallExpression", - "start": 8299, - "end": 8318, + "start": 8312, + "end": 8331, "loc": { "start": { "line": 276, @@ -18050,8 +18099,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8299, - "end": 8316, + "start": 8312, + "end": 8329, "loc": { "start": { "line": 276, @@ -18064,8 +18113,8 @@ }, "object": { "type": "Identifier", - "start": 8299, - "end": 8305, + "start": 8312, + "end": 8318, "loc": { "start": { "line": 276, @@ -18081,8 +18130,8 @@ }, "property": { "type": "Identifier", - "start": 8306, - "end": 8316, + "start": 8319, + "end": 8329, "loc": { "start": { "line": 276, @@ -18103,8 +18152,8 @@ }, { "type": "ExpressionStatement", - "start": 8321, - "end": 8345, + "start": 8334, + "end": 8358, "loc": { "start": { "line": 277, @@ -18117,8 +18166,8 @@ }, "expression": { "type": "CallExpression", - "start": 8321, - "end": 8345, + "start": 8334, + "end": 8358, "loc": { "start": { "line": 277, @@ -18131,8 +18180,8 @@ }, "callee": { "type": "Identifier", - "start": 8321, - "end": 8329, + "start": 8334, + "end": 8342, "loc": { "start": { "line": 277, @@ -18149,8 +18198,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 8330, - "end": 8338, + "start": 8343, + "end": 8351, "loc": { "start": { "line": 277, @@ -18163,8 +18212,8 @@ }, "object": { "type": "Identifier", - "start": 8330, - "end": 8334, + "start": 8343, + "end": 8347, "loc": { "start": { "line": 277, @@ -18180,8 +18229,8 @@ }, "property": { "type": "Identifier", - "start": 8335, - "end": 8338, + "start": 8348, + "end": 8351, "loc": { "start": { "line": 277, @@ -18199,8 +18248,8 @@ }, { "type": "BooleanLiteral", - "start": 8340, - "end": 8344, + "start": 8353, + "end": 8357, "loc": { "start": { "line": 277, @@ -18227,8 +18276,8 @@ { "type": "CommentLine", "value": " Errors on join", - "start": 8237, - "end": 8254, + "start": 8250, + "end": 8267, "loc": { "start": { "line": 274, @@ -18250,8 +18299,8 @@ { "type": "CommentBlock", "value": "*\n * Sets up socket connection listeners.\n * Run in setupSocket().\n ", - "start": 7242, - "end": 7314, + "start": 7255, + "end": 7327, "loc": { "start": { "line": 237, @@ -18268,8 +18317,8 @@ { "type": "CommentBlock", "value": "*\n * Sets up socket information transfer listeners.\n * Run in setupSocket().\n * @param {*} chat The chat client instance to be used for notifications\n ", - "start": 8353, - "end": 8508, + "start": 8366, + "end": 8521, "loc": { "start": { "line": 281, @@ -18285,22 +18334,22 @@ }, { "type": "FunctionDeclaration", - "start": 8509, - "end": 10158, + "start": 8522, + "end": 10536, "loc": { "start": { "line": 286, "column": 0 }, "end": { - "line": 354, + "line": 360, "column": 1 } }, "id": { "type": "Identifier", - "start": 8518, - "end": 8533, + "start": 8531, + "end": 8546, "loc": { "start": { "line": 286, @@ -18321,8 +18370,8 @@ "params": [ { "type": "Identifier", - "start": 8535, - "end": 8539, + "start": 8548, + "end": 8552, "loc": { "start": { "line": 286, @@ -18339,23 +18388,23 @@ ], "body": { "type": "BlockStatement", - "start": 8541, - "end": 10158, + "start": 8554, + "end": 10536, "loc": { "start": { "line": 286, "column": 32 }, "end": { - "line": 354, + "line": 360, "column": 1 } }, "body": [ { "type": "ExpressionStatement", - "start": 8569, - "end": 8632, + "start": 8582, + "end": 8645, "loc": { "start": { "line": 288, @@ -18368,8 +18417,8 @@ }, "expression": { "type": "CallExpression", - "start": 8569, - "end": 8632, + "start": 8582, + "end": 8645, "loc": { "start": { "line": 288, @@ -18382,8 +18431,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8569, - "end": 8578, + "start": 8582, + "end": 8591, "loc": { "start": { "line": 288, @@ -18396,8 +18445,8 @@ }, "object": { "type": "Identifier", - "start": 8569, - "end": 8575, + "start": 8582, + "end": 8588, "loc": { "start": { "line": 288, @@ -18414,8 +18463,8 @@ }, "property": { "type": "Identifier", - "start": 8576, - "end": 8578, + "start": 8589, + "end": 8591, "loc": { "start": { "line": 288, @@ -18435,8 +18484,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8579, - "end": 8590, + "start": 8592, + "end": 8603, "loc": { "start": { "line": 288, @@ -18455,8 +18504,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 8592, - "end": 8631, + "start": 8605, + "end": 8644, "loc": { "start": { "line": 288, @@ -18474,8 +18523,8 @@ "params": [ { "type": "Identifier", - "start": 8592, - "end": 8596, + "start": 8605, + "end": 8609, "loc": { "start": { "line": 288, @@ -18492,8 +18541,8 @@ ], "body": { "type": "BlockStatement", - "start": 8600, - "end": 8631, + "start": 8613, + "end": 8644, "loc": { "start": { "line": 288, @@ -18507,8 +18556,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8604, - "end": 8628, + "start": 8617, + "end": 8641, "loc": { "start": { "line": 289, @@ -18521,8 +18570,8 @@ }, "expression": { "type": "CallExpression", - "start": 8604, - "end": 8628, + "start": 8617, + "end": 8641, "loc": { "start": { "line": 289, @@ -18535,8 +18584,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8604, - "end": 8622, + "start": 8617, + "end": 8635, "loc": { "start": { "line": 289, @@ -18549,8 +18598,8 @@ }, "object": { "type": "Identifier", - "start": 8604, - "end": 8608, + "start": 8617, + "end": 8621, "loc": { "start": { "line": 289, @@ -18566,8 +18615,8 @@ }, "property": { "type": "Identifier", - "start": 8609, - "end": 8622, + "start": 8622, + "end": 8635, "loc": { "start": { "line": 289, @@ -18586,8 +18635,8 @@ "arguments": [ { "type": "Identifier", - "start": 8623, - "end": 8627, + "start": 8636, + "end": 8640, "loc": { "start": { "line": 289, @@ -18615,8 +18664,8 @@ { "type": "CommentLine", "value": " Chat system receiver", - "start": 8544, - "end": 8567, + "start": 8557, + "end": 8580, "loc": { "start": { "line": 287, @@ -18632,8 +18681,8 @@ }, { "type": "ExpressionStatement", - "start": 8635, - "end": 8735, + "start": 8648, + "end": 8748, "loc": { "start": { "line": 292, @@ -18646,8 +18695,8 @@ }, "expression": { "type": "CallExpression", - "start": 8635, - "end": 8735, + "start": 8648, + "end": 8748, "loc": { "start": { "line": 292, @@ -18660,8 +18709,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8635, - "end": 8644, + "start": 8648, + "end": 8657, "loc": { "start": { "line": 292, @@ -18674,8 +18723,8 @@ }, "object": { "type": "Identifier", - "start": 8635, - "end": 8641, + "start": 8648, + "end": 8654, "loc": { "start": { "line": 292, @@ -18691,8 +18740,8 @@ }, "property": { "type": "Identifier", - "start": 8642, - "end": 8644, + "start": 8655, + "end": 8657, "loc": { "start": { "line": 292, @@ -18711,8 +18760,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8645, - "end": 8667, + "start": 8658, + "end": 8680, "loc": { "start": { "line": 292, @@ -18731,8 +18780,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 8669, - "end": 8734, + "start": 8682, + "end": 8747, "loc": { "start": { "line": 292, @@ -18750,8 +18799,8 @@ "params": [ { "type": "Identifier", - "start": 8669, - "end": 8673, + "start": 8682, + "end": 8686, "loc": { "start": { "line": 292, @@ -18768,8 +18817,8 @@ ], "body": { "type": "BlockStatement", - "start": 8677, - "end": 8734, + "start": 8690, + "end": 8747, "loc": { "start": { "line": 292, @@ -18783,8 +18832,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8681, - "end": 8731, + "start": 8694, + "end": 8744, "loc": { "start": { "line": 293, @@ -18797,8 +18846,8 @@ }, "expression": { "type": "CallExpression", - "start": 8681, - "end": 8731, + "start": 8694, + "end": 8744, "loc": { "start": { "line": 293, @@ -18811,8 +18860,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8681, - "end": 8697, + "start": 8694, + "end": 8710, "loc": { "start": { "line": 293, @@ -18825,8 +18874,8 @@ }, "object": { "type": "Identifier", - "start": 8681, - "end": 8685, + "start": 8694, + "end": 8698, "loc": { "start": { "line": 293, @@ -18842,8 +18891,8 @@ }, "property": { "type": "Identifier", - "start": 8686, - "end": 8697, + "start": 8699, + "end": 8710, "loc": { "start": { "line": 293, @@ -18862,8 +18911,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 8698, - "end": 8709, + "start": 8711, + "end": 8722, "loc": { "start": { "line": 293, @@ -18876,8 +18925,8 @@ }, "object": { "type": "Identifier", - "start": 8698, - "end": 8702, + "start": 8711, + "end": 8715, "loc": { "start": { "line": 293, @@ -18893,8 +18942,8 @@ }, "property": { "type": "Identifier", - "start": 8703, - "end": 8709, + "start": 8716, + "end": 8722, "loc": { "start": { "line": 293, @@ -18912,8 +18961,8 @@ }, { "type": "MemberExpression", - "start": 8711, - "end": 8723, + "start": 8724, + "end": 8736, "loc": { "start": { "line": 293, @@ -18926,8 +18975,8 @@ }, "object": { "type": "Identifier", - "start": 8711, - "end": 8715, + "start": 8724, + "end": 8728, "loc": { "start": { "line": 293, @@ -18943,8 +18992,8 @@ }, "property": { "type": "Identifier", - "start": 8716, - "end": 8723, + "start": 8729, + "end": 8736, "loc": { "start": { "line": 293, @@ -18962,8 +19011,8 @@ }, { "type": "BooleanLiteral", - "start": 8725, - "end": 8730, + "start": 8738, + "end": 8743, "loc": { "start": { "line": 293, @@ -18988,8 +19037,8 @@ }, { "type": "ExpressionStatement", - "start": 8738, - "end": 8830, + "start": 8751, + "end": 8843, "loc": { "start": { "line": 296, @@ -19002,8 +19051,8 @@ }, "expression": { "type": "CallExpression", - "start": 8738, - "end": 8830, + "start": 8751, + "end": 8843, "loc": { "start": { "line": 296, @@ -19016,8 +19065,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8738, - "end": 8747, + "start": 8751, + "end": 8760, "loc": { "start": { "line": 296, @@ -19030,8 +19079,8 @@ }, "object": { "type": "Identifier", - "start": 8738, - "end": 8744, + "start": 8751, + "end": 8757, "loc": { "start": { "line": 296, @@ -19047,8 +19096,8 @@ }, "property": { "type": "Identifier", - "start": 8745, - "end": 8747, + "start": 8758, + "end": 8760, "loc": { "start": { "line": 296, @@ -19067,8 +19116,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8748, - "end": 8772, + "start": 8761, + "end": 8785, "loc": { "start": { "line": 296, @@ -19087,8 +19136,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 8774, - "end": 8829, + "start": 8787, + "end": 8842, "loc": { "start": { "line": 296, @@ -19106,8 +19155,8 @@ "params": [ { "type": "Identifier", - "start": 8774, - "end": 8778, + "start": 8787, + "end": 8791, "loc": { "start": { "line": 296, @@ -19124,8 +19173,8 @@ ], "body": { "type": "BlockStatement", - "start": 8782, - "end": 8829, + "start": 8795, + "end": 8842, "loc": { "start": { "line": 296, @@ -19139,8 +19188,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8786, - "end": 8826, + "start": 8799, + "end": 8839, "loc": { "start": { "line": 297, @@ -19153,8 +19202,8 @@ }, "expression": { "type": "CallExpression", - "start": 8786, - "end": 8826, + "start": 8799, + "end": 8839, "loc": { "start": { "line": 297, @@ -19167,8 +19216,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8786, - "end": 8806, + "start": 8799, + "end": 8819, "loc": { "start": { "line": 297, @@ -19181,8 +19230,8 @@ }, "object": { "type": "Identifier", - "start": 8786, - "end": 8790, + "start": 8799, + "end": 8803, "loc": { "start": { "line": 297, @@ -19198,8 +19247,8 @@ }, "property": { "type": "Identifier", - "start": 8791, - "end": 8806, + "start": 8804, + "end": 8819, "loc": { "start": { "line": 297, @@ -19218,8 +19267,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 8807, - "end": 8818, + "start": 8820, + "end": 8831, "loc": { "start": { "line": 297, @@ -19232,8 +19281,8 @@ }, "object": { "type": "Identifier", - "start": 8807, - "end": 8811, + "start": 8820, + "end": 8824, "loc": { "start": { "line": 297, @@ -19249,8 +19298,8 @@ }, "property": { "type": "Identifier", - "start": 8812, - "end": 8818, + "start": 8825, + "end": 8831, "loc": { "start": { "line": 297, @@ -19268,8 +19317,8 @@ }, { "type": "BooleanLiteral", - "start": 8820, - "end": 8825, + "start": 8833, + "end": 8838, "loc": { "start": { "line": 297, @@ -19296,8 +19345,8 @@ { "type": "CommentLine", "value": " Receive information about room players", - "start": 8833, - "end": 8874, + "start": 8846, + "end": 8887, "loc": { "start": { "line": 300, @@ -19313,8 +19362,8 @@ }, { "type": "ExpressionStatement", - "start": 8876, - "end": 9041, + "start": 8889, + "end": 9054, "loc": { "start": { "line": 301, @@ -19327,8 +19376,8 @@ }, "expression": { "type": "CallExpression", - "start": 8876, - "end": 9041, + "start": 8889, + "end": 9054, "loc": { "start": { "line": 301, @@ -19341,8 +19390,8 @@ }, "callee": { "type": "MemberExpression", - "start": 8876, - "end": 8885, + "start": 8889, + "end": 8898, "loc": { "start": { "line": 301, @@ -19355,8 +19404,8 @@ }, "object": { "type": "Identifier", - "start": 8876, - "end": 8882, + "start": 8889, + "end": 8895, "loc": { "start": { "line": 301, @@ -19373,8 +19422,8 @@ }, "property": { "type": "Identifier", - "start": 8883, - "end": 8885, + "start": 8896, + "end": 8898, "loc": { "start": { "line": 301, @@ -19394,8 +19443,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 8886, - "end": 8896, + "start": 8899, + "end": 8909, "loc": { "start": { "line": 301, @@ -19414,8 +19463,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 8898, - "end": 9040, + "start": 8911, + "end": 9053, "loc": { "start": { "line": 301, @@ -19433,8 +19482,8 @@ "params": [ { "type": "Identifier", - "start": 8899, - "end": 8903, + "start": 8912, + "end": 8916, "loc": { "start": { "line": 301, @@ -19451,8 +19500,8 @@ ], "body": { "type": "BlockStatement", - "start": 8908, - "end": 9040, + "start": 8921, + "end": 9053, "loc": { "start": { "line": 301, @@ -19466,8 +19515,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8951, - "end": 8968, + "start": 8964, + "end": 8981, "loc": { "start": { "line": 303, @@ -19480,8 +19529,8 @@ }, "expression": { "type": "CallExpression", - "start": 8951, - "end": 8968, + "start": 8964, + "end": 8981, "loc": { "start": { "line": 303, @@ -19494,8 +19543,8 @@ }, "callee": { "type": "Identifier", - "start": 8951, - "end": 8962, + "start": 8964, + "end": 8975, "loc": { "start": { "line": 303, @@ -19513,8 +19562,8 @@ "arguments": [ { "type": "Identifier", - "start": 8963, - "end": 8967, + "start": 8976, + "end": 8980, "loc": { "start": { "line": 303, @@ -19536,8 +19585,8 @@ { "type": "CommentLine", "value": " Update lobby info. Pass to app.js", - "start": 8912, - "end": 8948, + "start": 8925, + "end": 8961, "loc": { "start": { "line": 302, @@ -19554,8 +19603,8 @@ { "type": "CommentLine", "value": " if(GLOBAL.DEBUG) {", - "start": 8972, - "end": 8993, + "start": 8985, + "end": 9006, "loc": { "start": { "line": 305, @@ -19570,8 +19619,8 @@ { "type": "CommentLine", "value": " console.log(\"rcvd: \",data);", - "start": 8996, - "end": 9030, + "start": 9009, + "end": 9043, "loc": { "start": { "line": 306, @@ -19586,8 +19635,8 @@ { "type": "CommentLine", "value": " }", - "start": 9033, - "end": 9037, + "start": 9046, + "end": 9050, "loc": { "start": { "line": 307, @@ -19608,8 +19657,8 @@ { "type": "CommentLine", "value": " if(GLOBAL.DEBUG) {", - "start": 8972, - "end": 8993, + "start": 8985, + "end": 9006, "loc": { "start": { "line": 305, @@ -19624,8 +19673,8 @@ { "type": "CommentLine", "value": " console.log(\"rcvd: \",data);", - "start": 8996, - "end": 9030, + "start": 9009, + "end": 9043, "loc": { "start": { "line": 306, @@ -19640,8 +19689,8 @@ { "type": "CommentLine", "value": " }", - "start": 9033, - "end": 9037, + "start": 9046, + "end": 9050, "loc": { "start": { "line": 307, @@ -19662,8 +19711,8 @@ { "type": "CommentLine", "value": " Receive information about room players", - "start": 8833, - "end": 8874, + "start": 8846, + "end": 8887, "loc": { "start": { "line": 300, @@ -19679,8 +19728,8 @@ }, { "type": "ExpressionStatement", - "start": 9044, - "end": 9157, + "start": 9057, + "end": 9170, "loc": { "start": { "line": 310, @@ -19693,8 +19742,8 @@ }, "expression": { "type": "CallExpression", - "start": 9044, - "end": 9157, + "start": 9057, + "end": 9170, "loc": { "start": { "line": 310, @@ -19707,8 +19756,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9044, - "end": 9053, + "start": 9057, + "end": 9066, "loc": { "start": { "line": 310, @@ -19721,8 +19770,8 @@ }, "object": { "type": "Identifier", - "start": 9044, - "end": 9050, + "start": 9057, + "end": 9063, "loc": { "start": { "line": 310, @@ -19738,8 +19787,8 @@ }, "property": { "type": "Identifier", - "start": 9051, - "end": 9053, + "start": 9064, + "end": 9066, "loc": { "start": { "line": 310, @@ -19758,8 +19807,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9054, - "end": 9075, + "start": 9067, + "end": 9088, "loc": { "start": { "line": 310, @@ -19778,8 +19827,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 9077, - "end": 9156, + "start": 9090, + "end": 9169, "loc": { "start": { "line": 310, @@ -19797,8 +19846,8 @@ "params": [ { "type": "Identifier", - "start": 9078, - "end": 9082, + "start": 9091, + "end": 9095, "loc": { "start": { "line": 310, @@ -19815,8 +19864,8 @@ ], "body": { "type": "BlockStatement", - "start": 9087, - "end": 9156, + "start": 9100, + "end": 9169, "loc": { "start": { "line": 310, @@ -19830,8 +19879,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9091, - "end": 9122, + "start": 9104, + "end": 9135, "loc": { "start": { "line": 311, @@ -19844,8 +19893,8 @@ }, "expression": { "type": "CallExpression", - "start": 9091, - "end": 9122, + "start": 9104, + "end": 9135, "loc": { "start": { "line": 311, @@ -19858,8 +19907,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9091, - "end": 9102, + "start": 9104, + "end": 9115, "loc": { "start": { "line": 311, @@ -19872,8 +19921,8 @@ }, "object": { "type": "Identifier", - "start": 9091, - "end": 9098, + "start": 9104, + "end": 9111, "loc": { "start": { "line": 311, @@ -19889,8 +19938,8 @@ }, "property": { "type": "Identifier", - "start": 9099, - "end": 9102, + "start": 9112, + "end": 9115, "loc": { "start": { "line": 311, @@ -19909,8 +19958,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9103, - "end": 9121, + "start": 9116, + "end": 9134, "loc": { "start": { "line": 311, @@ -19932,8 +19981,8 @@ }, { "type": "ExpressionStatement", - "start": 9125, - "end": 9153, + "start": 9138, + "end": 9166, "loc": { "start": { "line": 312, @@ -19946,8 +19995,8 @@ }, "expression": { "type": "CallExpression", - "start": 9125, - "end": 9153, + "start": 9138, + "end": 9166, "loc": { "start": { "line": 312, @@ -19960,8 +20009,8 @@ }, "callee": { "type": "Identifier", - "start": 9125, - "end": 9134, + "start": 9138, + "end": 9147, "loc": { "start": { "line": 312, @@ -19978,8 +20027,8 @@ "arguments": [ { "type": "BooleanLiteral", - "start": 9135, - "end": 9140, + "start": 9148, + "end": 9153, "loc": { "start": { "line": 312, @@ -19994,8 +20043,8 @@ }, { "type": "MemberExpression", - "start": 9142, - "end": 9152, + "start": 9155, + "end": 9165, "loc": { "start": { "line": 312, @@ -20008,8 +20057,8 @@ }, "object": { "type": "Identifier", - "start": 9142, - "end": 9146, + "start": 9155, + "end": 9159, "loc": { "start": { "line": 312, @@ -20025,8 +20074,8 @@ }, "property": { "type": "Identifier", - "start": 9147, - "end": 9152, + "start": 9160, + "end": 9165, "loc": { "start": { "line": 312, @@ -20054,8 +20103,8 @@ }, { "type": "ExpressionStatement", - "start": 9160, - "end": 9253, + "start": 9173, + "end": 9266, "loc": { "start": { "line": 315, @@ -20068,8 +20117,8 @@ }, "expression": { "type": "CallExpression", - "start": 9160, - "end": 9253, + "start": 9173, + "end": 9266, "loc": { "start": { "line": 315, @@ -20082,8 +20131,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9160, - "end": 9169, + "start": 9173, + "end": 9182, "loc": { "start": { "line": 315, @@ -20096,8 +20145,8 @@ }, "object": { "type": "Identifier", - "start": 9160, - "end": 9166, + "start": 9173, + "end": 9179, "loc": { "start": { "line": 315, @@ -20113,8 +20162,8 @@ }, "property": { "type": "Identifier", - "start": 9167, - "end": 9169, + "start": 9180, + "end": 9182, "loc": { "start": { "line": 315, @@ -20133,8 +20182,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9170, - "end": 9179, + "start": 9183, + "end": 9192, "loc": { "start": { "line": 315, @@ -20153,8 +20202,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 9181, - "end": 9252, + "start": 9194, + "end": 9265, "loc": { "start": { "line": 315, @@ -20172,8 +20221,8 @@ "params": [ { "type": "Identifier", - "start": 9182, - "end": 9186, + "start": 9195, + "end": 9199, "loc": { "start": { "line": 315, @@ -20190,8 +20239,8 @@ ], "body": { "type": "BlockStatement", - "start": 9191, - "end": 9252, + "start": 9204, + "end": 9265, "loc": { "start": { "line": 315, @@ -20205,8 +20254,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9195, - "end": 9249, + "start": 9208, + "end": 9262, "loc": { "start": { "line": 316, @@ -20219,8 +20268,8 @@ }, "expression": { "type": "CallExpression", - "start": 9195, - "end": 9249, + "start": 9208, + "end": 9262, "loc": { "start": { "line": 316, @@ -20233,8 +20282,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9195, - "end": 9206, + "start": 9208, + "end": 9219, "loc": { "start": { "line": 316, @@ -20247,8 +20296,8 @@ }, "object": { "type": "Identifier", - "start": 9195, - "end": 9202, + "start": 9208, + "end": 9215, "loc": { "start": { "line": 316, @@ -20264,8 +20313,8 @@ }, "property": { "type": "Identifier", - "start": 9203, - "end": 9206, + "start": 9216, + "end": 9219, "loc": { "start": { "line": 316, @@ -20284,8 +20333,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 9207, - "end": 9248, + "start": 9220, + "end": 9261, "loc": { "start": { "line": 316, @@ -20298,8 +20347,8 @@ }, "left": { "type": "StringLiteral", - "start": 9207, - "end": 9232, + "start": 9220, + "end": 9245, "loc": { "start": { "line": 316, @@ -20319,8 +20368,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 9235, - "end": 9248, + "start": 9248, + "end": 9261, "loc": { "start": { "line": 316, @@ -20333,8 +20382,8 @@ }, "object": { "type": "Identifier", - "start": 9235, - "end": 9239, + "start": 9248, + "end": 9252, "loc": { "start": { "line": 316, @@ -20350,8 +20399,8 @@ }, "property": { "type": "Identifier", - "start": 9240, - "end": 9248, + "start": 9253, + "end": 9261, "loc": { "start": { "line": 316, @@ -20382,8 +20431,8 @@ { "type": "CommentLine", "value": " Respawn", - "start": 9256, - "end": 9266, + "start": 9269, + "end": 9279, "loc": { "start": { "line": 319, @@ -20399,8 +20448,8 @@ }, { "type": "ExpressionStatement", - "start": 9268, - "end": 9537, + "start": 9281, + "end": 9550, "loc": { "start": { "line": 320, @@ -20413,8 +20462,8 @@ }, "expression": { "type": "CallExpression", - "start": 9268, - "end": 9537, + "start": 9281, + "end": 9550, "loc": { "start": { "line": 320, @@ -20427,8 +20476,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9268, - "end": 9277, + "start": 9281, + "end": 9290, "loc": { "start": { "line": 320, @@ -20441,8 +20490,8 @@ }, "object": { "type": "Identifier", - "start": 9268, - "end": 9274, + "start": 9281, + "end": 9287, "loc": { "start": { "line": 320, @@ -20459,8 +20508,8 @@ }, "property": { "type": "Identifier", - "start": 9275, - "end": 9277, + "start": 9288, + "end": 9290, "loc": { "start": { "line": 320, @@ -20480,8 +20529,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9278, - "end": 9301, + "start": 9291, + "end": 9314, "loc": { "start": { "line": 320, @@ -20500,8 +20549,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 9303, - "end": 9536, + "start": 9316, + "end": 9549, "loc": { "start": { "line": 320, @@ -20519,8 +20568,8 @@ "params": [ { "type": "Identifier", - "start": 9304, - "end": 9308, + "start": 9317, + "end": 9321, "loc": { "start": { "line": 320, @@ -20537,8 +20586,8 @@ ], "body": { "type": "BlockStatement", - "start": 9313, - "end": 9536, + "start": 9326, + "end": 9549, "loc": { "start": { "line": 320, @@ -20552,8 +20601,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9317, - "end": 9341, + "start": 9330, + "end": 9354, "loc": { "start": { "line": 321, @@ -20566,8 +20615,8 @@ }, "expression": { "type": "CallExpression", - "start": 9317, - "end": 9341, + "start": 9330, + "end": 9354, "loc": { "start": { "line": 321, @@ -20580,8 +20629,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9317, - "end": 9328, + "start": 9330, + "end": 9341, "loc": { "start": { "line": 321, @@ -20594,8 +20643,8 @@ }, "object": { "type": "Identifier", - "start": 9317, - "end": 9324, + "start": 9330, + "end": 9337, "loc": { "start": { "line": 321, @@ -20611,8 +20660,8 @@ }, "property": { "type": "Identifier", - "start": 9325, - "end": 9328, + "start": 9338, + "end": 9341, "loc": { "start": { "line": 321, @@ -20631,8 +20680,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9329, - "end": 9340, + "start": 9342, + "end": 9353, "loc": { "start": { "line": 321, @@ -20654,8 +20703,8 @@ }, { "type": "ExpressionStatement", - "start": 9344, - "end": 9418, + "start": 9357, + "end": 9431, "loc": { "start": { "line": 322, @@ -20668,8 +20717,8 @@ }, "expression": { "type": "CallExpression", - "start": 9344, - "end": 9418, + "start": 9357, + "end": 9431, "loc": { "start": { "line": 322, @@ -20682,8 +20731,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9344, - "end": 9378, + "start": 9357, + "end": 9391, "loc": { "start": { "line": 322, @@ -20696,8 +20745,8 @@ }, "object": { "type": "MemberExpression", - "start": 9344, - "end": 9370, + "start": 9357, + "end": 9383, "loc": { "start": { "line": 322, @@ -20710,8 +20759,8 @@ }, "object": { "type": "MemberExpression", - "start": 9344, - "end": 9359, + "start": 9357, + "end": 9372, "loc": { "start": { "line": 322, @@ -20724,8 +20773,8 @@ }, "object": { "type": "Identifier", - "start": 9344, - "end": 9351, + "start": 9357, + "end": 9364, "loc": { "start": { "line": 322, @@ -20741,8 +20790,8 @@ }, "property": { "type": "Identifier", - "start": 9352, - "end": 9359, + "start": 9365, + "end": 9372, "loc": { "start": { "line": 322, @@ -20760,8 +20809,8 @@ }, "property": { "type": "MemberExpression", - "start": 9360, - "end": 9369, + "start": 9373, + "end": 9382, "loc": { "start": { "line": 322, @@ -20774,8 +20823,8 @@ }, "object": { "type": "Identifier", - "start": 9360, - "end": 9366, + "start": 9373, + "end": 9379, "loc": { "start": { "line": 322, @@ -20791,8 +20840,8 @@ }, "property": { "type": "Identifier", - "start": 9367, - "end": 9369, + "start": 9380, + "end": 9382, "loc": { "start": { "line": 322, @@ -20812,8 +20861,8 @@ }, "property": { "type": "Identifier", - "start": 9371, - "end": 9378, + "start": 9384, + "end": 9391, "loc": { "start": { "line": 322, @@ -20832,8 +20881,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 9379, - "end": 9388, + "start": 9392, + "end": 9401, "loc": { "start": { "line": 322, @@ -20846,8 +20895,8 @@ }, "object": { "type": "Identifier", - "start": 9379, - "end": 9383, + "start": 9392, + "end": 9396, "loc": { "start": { "line": 322, @@ -20863,8 +20912,8 @@ }, "property": { "type": "Identifier", - "start": 9384, - "end": 9388, + "start": 9397, + "end": 9401, "loc": { "start": { "line": 322, @@ -20882,8 +20931,8 @@ }, { "type": "MemberExpression", - "start": 9390, - "end": 9399, + "start": 9403, + "end": 9412, "loc": { "start": { "line": 322, @@ -20896,8 +20945,8 @@ }, "object": { "type": "Identifier", - "start": 9390, - "end": 9394, + "start": 9403, + "end": 9407, "loc": { "start": { "line": 322, @@ -20913,8 +20962,8 @@ }, "property": { "type": "Identifier", - "start": 9395, - "end": 9399, + "start": 9408, + "end": 9412, "loc": { "start": { "line": 322, @@ -20932,8 +20981,8 @@ }, { "type": "MemberExpression", - "start": 9401, - "end": 9408, + "start": 9414, + "end": 9421, "loc": { "start": { "line": 322, @@ -20946,8 +20995,8 @@ }, "object": { "type": "Identifier", - "start": 9401, - "end": 9405, + "start": 9414, + "end": 9418, "loc": { "start": { "line": 322, @@ -20963,8 +21012,8 @@ }, "property": { "type": "Identifier", - "start": 9406, - "end": 9408, + "start": 9419, + "end": 9421, "loc": { "start": { "line": 322, @@ -20982,8 +21031,8 @@ }, { "type": "MemberExpression", - "start": 9410, - "end": 9417, + "start": 9423, + "end": 9430, "loc": { "start": { "line": 322, @@ -20996,8 +21045,8 @@ }, "object": { "type": "Identifier", - "start": 9410, - "end": 9414, + "start": 9423, + "end": 9427, "loc": { "start": { "line": 322, @@ -21013,8 +21062,8 @@ }, "property": { "type": "Identifier", - "start": 9415, - "end": 9417, + "start": 9428, + "end": 9430, "loc": { "start": { "line": 322, @@ -21035,8 +21084,8 @@ }, { "type": "ExpressionStatement", - "start": 9421, - "end": 9472, + "start": 9434, + "end": 9485, "loc": { "start": { "line": 323, @@ -21049,8 +21098,8 @@ }, "expression": { "type": "CallExpression", - "start": 9421, - "end": 9472, + "start": 9434, + "end": 9485, "loc": { "start": { "line": 323, @@ -21063,8 +21112,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9421, - "end": 9432, + "start": 9434, + "end": 9445, "loc": { "start": { "line": 323, @@ -21077,8 +21126,8 @@ }, "object": { "type": "Identifier", - "start": 9421, - "end": 9427, + "start": 9434, + "end": 9440, "loc": { "start": { "line": 323, @@ -21094,8 +21143,8 @@ }, "property": { "type": "Identifier", - "start": 9428, - "end": 9432, + "start": 9441, + "end": 9445, "loc": { "start": { "line": 323, @@ -21114,8 +21163,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9433, - "end": 9452, + "start": 9446, + "end": 9465, "loc": { "start": { "line": 323, @@ -21134,8 +21183,8 @@ }, { "type": "ObjectExpression", - "start": 9454, - "end": 9471, + "start": 9467, + "end": 9484, "loc": { "start": { "line": 323, @@ -21149,8 +21198,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 9456, - "end": 9469, + "start": 9469, + "end": 9482, "loc": { "start": { "line": 323, @@ -21166,8 +21215,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 9456, - "end": 9458, + "start": 9469, + "end": 9471, "loc": { "start": { "line": 323, @@ -21183,8 +21232,8 @@ }, "value": { "type": "MemberExpression", - "start": 9460, - "end": 9469, + "start": 9473, + "end": 9482, "loc": { "start": { "line": 323, @@ -21197,8 +21246,8 @@ }, "object": { "type": "Identifier", - "start": 9460, - "end": 9466, + "start": 9473, + "end": 9479, "loc": { "start": { "line": 323, @@ -21214,8 +21263,8 @@ }, "property": { "type": "Identifier", - "start": 9467, - "end": 9469, + "start": 9480, + "end": 9482, "loc": { "start": { "line": 323, @@ -21239,8 +21288,8 @@ }, { "type": "ExpressionStatement", - "start": 9475, - "end": 9514, + "start": 9488, + "end": 9527, "loc": { "start": { "line": 324, @@ -21253,8 +21302,8 @@ }, "expression": { "type": "CallExpression", - "start": 9475, - "end": 9514, + "start": 9488, + "end": 9527, "loc": { "start": { "line": 324, @@ -21267,8 +21316,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9475, - "end": 9486, + "start": 9488, + "end": 9499, "loc": { "start": { "line": 324, @@ -21281,8 +21330,8 @@ }, "object": { "type": "Identifier", - "start": 9475, - "end": 9482, + "start": 9488, + "end": 9495, "loc": { "start": { "line": 324, @@ -21298,8 +21347,8 @@ }, "property": { "type": "Identifier", - "start": 9483, - "end": 9486, + "start": 9496, + "end": 9499, "loc": { "start": { "line": 324, @@ -21318,8 +21367,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 9487, - "end": 9513, + "start": 9500, + "end": 9526, "loc": { "start": { "line": 324, @@ -21332,8 +21381,8 @@ }, "object": { "type": "MemberExpression", - "start": 9487, - "end": 9502, + "start": 9500, + "end": 9515, "loc": { "start": { "line": 324, @@ -21346,8 +21395,8 @@ }, "object": { "type": "Identifier", - "start": 9487, - "end": 9494, + "start": 9500, + "end": 9507, "loc": { "start": { "line": 324, @@ -21363,8 +21412,8 @@ }, "property": { "type": "Identifier", - "start": 9495, - "end": 9502, + "start": 9508, + "end": 9515, "loc": { "start": { "line": 324, @@ -21382,8 +21431,8 @@ }, "property": { "type": "MemberExpression", - "start": 9503, - "end": 9512, + "start": 9516, + "end": 9525, "loc": { "start": { "line": 324, @@ -21396,8 +21445,8 @@ }, "object": { "type": "Identifier", - "start": 9503, - "end": 9509, + "start": 9516, + "end": 9522, "loc": { "start": { "line": 324, @@ -21413,8 +21462,8 @@ }, "property": { "type": "Identifier", - "start": 9510, - "end": 9512, + "start": 9523, + "end": 9525, "loc": { "start": { "line": 324, @@ -21437,8 +21486,8 @@ }, { "type": "ExpressionStatement", - "start": 9517, - "end": 9533, + "start": 9530, + "end": 9546, "loc": { "start": { "line": 325, @@ -21451,8 +21500,8 @@ }, "expression": { "type": "CallExpression", - "start": 9517, - "end": 9533, + "start": 9530, + "end": 9546, "loc": { "start": { "line": 325, @@ -21465,8 +21514,8 @@ }, "callee": { "type": "Identifier", - "start": 9517, - "end": 9531, + "start": 9530, + "end": 9544, "loc": { "start": { "line": 325, @@ -21495,8 +21544,8 @@ { "type": "CommentLine", "value": " Respawn", - "start": 9256, - "end": 9266, + "start": 9269, + "end": 9279, "loc": { "start": { "line": 319, @@ -21513,8 +21562,8 @@ { "type": "CommentLine", "value": " Another player died", - "start": 9540, - "end": 9562, + "start": 9553, + "end": 9575, "loc": { "start": { "line": 328, @@ -21530,8 +21579,8 @@ }, { "type": "ExpressionStatement", - "start": 9564, - "end": 9645, + "start": 9577, + "end": 9658, "loc": { "start": { "line": 329, @@ -21544,8 +21593,8 @@ }, "expression": { "type": "CallExpression", - "start": 9564, - "end": 9645, + "start": 9577, + "end": 9658, "loc": { "start": { "line": 329, @@ -21558,8 +21607,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9564, - "end": 9573, + "start": 9577, + "end": 9586, "loc": { "start": { "line": 329, @@ -21572,8 +21621,8 @@ }, "object": { "type": "Identifier", - "start": 9564, - "end": 9570, + "start": 9577, + "end": 9583, "loc": { "start": { "line": 329, @@ -21590,8 +21639,8 @@ }, "property": { "type": "Identifier", - "start": 9571, - "end": 9573, + "start": 9584, + "end": 9586, "loc": { "start": { "line": 329, @@ -21611,8 +21660,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9574, - "end": 9603, + "start": 9587, + "end": 9616, "loc": { "start": { "line": 329, @@ -21631,8 +21680,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 9605, - "end": 9644, + "start": 9618, + "end": 9657, "loc": { "start": { "line": 329, @@ -21650,8 +21699,8 @@ "params": [ { "type": "Identifier", - "start": 9606, - "end": 9610, + "start": 9619, + "end": 9623, "loc": { "start": { "line": 329, @@ -21668,8 +21717,8 @@ ], "body": { "type": "BlockStatement", - "start": 9615, - "end": 9644, + "start": 9628, + "end": 9657, "loc": { "start": { "line": 329, @@ -21687,8 +21736,8 @@ { "type": "CommentLine", "value": " Append to chat TODO", - "start": 9619, - "end": 9641, + "start": 9632, + "end": 9654, "loc": { "start": { "line": 330, @@ -21711,8 +21760,8 @@ { "type": "CommentLine", "value": " Another player died", - "start": 9540, - "end": 9562, + "start": 9553, + "end": 9575, "loc": { "start": { "line": 328, @@ -21729,8 +21778,8 @@ { "type": "CommentLine", "value": " Update timer", - "start": 9648, - "end": 9663, + "start": 9661, + "end": 9676, "loc": { "start": { "line": 333, @@ -21746,8 +21795,8 @@ }, { "type": "ExpressionStatement", - "start": 9665, - "end": 9772, + "start": 9678, + "end": 9785, "loc": { "start": { "line": 334, @@ -21760,8 +21809,8 @@ }, "expression": { "type": "CallExpression", - "start": 9665, - "end": 9772, + "start": 9678, + "end": 9785, "loc": { "start": { "line": 334, @@ -21774,8 +21823,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9665, - "end": 9674, + "start": 9678, + "end": 9687, "loc": { "start": { "line": 334, @@ -21788,8 +21837,8 @@ }, "object": { "type": "Identifier", - "start": 9665, - "end": 9671, + "start": 9678, + "end": 9684, "loc": { "start": { "line": 334, @@ -21806,8 +21855,8 @@ }, "property": { "type": "Identifier", - "start": 9672, - "end": 9674, + "start": 9685, + "end": 9687, "loc": { "start": { "line": 334, @@ -21827,8 +21876,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9675, - "end": 9681, + "start": 9688, + "end": 9694, "loc": { "start": { "line": 334, @@ -21847,8 +21896,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 9683, - "end": 9771, + "start": 9696, + "end": 9784, "loc": { "start": { "line": 334, @@ -21866,8 +21915,8 @@ "params": [ { "type": "Identifier", - "start": 9684, - "end": 9688, + "start": 9697, + "end": 9701, "loc": { "start": { "line": 334, @@ -21884,8 +21933,8 @@ ], "body": { "type": "BlockStatement", - "start": 9693, - "end": 9771, + "start": 9706, + "end": 9784, "loc": { "start": { "line": 334, @@ -21899,8 +21948,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9697, - "end": 9768, + "start": 9710, + "end": 9781, "loc": { "start": { "line": 335, @@ -21913,8 +21962,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 9697, - "end": 9768, + "start": 9710, + "end": 9781, "loc": { "start": { "line": 335, @@ -21928,8 +21977,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 9697, - "end": 9739, + "start": 9710, + "end": 9752, "loc": { "start": { "line": 335, @@ -21942,8 +21991,8 @@ }, "object": { "type": "CallExpression", - "start": 9697, - "end": 9729, + "start": 9710, + "end": 9742, "loc": { "start": { "line": 335, @@ -21956,8 +22005,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9697, - "end": 9720, + "start": 9710, + "end": 9733, "loc": { "start": { "line": 335, @@ -21970,8 +22019,8 @@ }, "object": { "type": "Identifier", - "start": 9697, - "end": 9705, + "start": 9710, + "end": 9718, "loc": { "start": { "line": 335, @@ -21987,8 +22036,8 @@ }, "property": { "type": "Identifier", - "start": 9706, - "end": 9720, + "start": 9719, + "end": 9733, "loc": { "start": { "line": 335, @@ -22007,8 +22056,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9721, - "end": 9728, + "start": 9734, + "end": 9741, "loc": { "start": { "line": 335, @@ -22029,8 +22078,8 @@ }, "property": { "type": "Identifier", - "start": 9730, - "end": 9739, + "start": 9743, + "end": 9752, "loc": { "start": { "line": 335, @@ -22048,8 +22097,8 @@ }, "right": { "type": "BinaryExpression", - "start": 9742, - "end": 9768, + "start": 9755, + "end": 9781, "loc": { "start": { "line": 335, @@ -22062,8 +22111,8 @@ }, "left": { "type": "BinaryExpression", - "start": 9742, - "end": 9759, + "start": 9755, + "end": 9772, "loc": { "start": { "line": 335, @@ -22076,8 +22125,8 @@ }, "left": { "type": "StringLiteral", - "start": 9742, - "end": 9747, + "start": 9755, + "end": 9760, "loc": { "start": { "line": 335, @@ -22097,8 +22146,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 9750, - "end": 9759, + "start": 9763, + "end": 9772, "loc": { "start": { "line": 335, @@ -22111,8 +22160,8 @@ }, "object": { "type": "Identifier", - "start": 9750, - "end": 9754, + "start": 9763, + "end": 9767, "loc": { "start": { "line": 335, @@ -22128,8 +22177,8 @@ }, "property": { "type": "Identifier", - "start": 9755, - "end": 9759, + "start": 9768, + "end": 9772, "loc": { "start": { "line": 335, @@ -22149,8 +22198,8 @@ "operator": "+", "right": { "type": "StringLiteral", - "start": 9762, - "end": 9768, + "start": 9775, + "end": 9781, "loc": { "start": { "line": 335, @@ -22182,8 +22231,8 @@ { "type": "CommentLine", "value": " Update timer", - "start": 9648, - "end": 9663, + "start": 9661, + "end": 9676, "loc": { "start": { "line": 333, @@ -22200,8 +22249,8 @@ { "type": "CommentLine", "value": " Update scores", - "start": 9775, - "end": 9791, + "start": 9788, + "end": 9804, "loc": { "start": { "line": 338, @@ -22217,8 +22266,8 @@ }, { "type": "ExpressionStatement", - "start": 9793, - "end": 9889, + "start": 9806, + "end": 9902, "loc": { "start": { "line": 339, @@ -22231,8 +22280,8 @@ }, "expression": { "type": "CallExpression", - "start": 9793, - "end": 9889, + "start": 9806, + "end": 9902, "loc": { "start": { "line": 339, @@ -22245,8 +22294,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9793, - "end": 9802, + "start": 9806, + "end": 9815, "loc": { "start": { "line": 339, @@ -22259,8 +22308,8 @@ }, "object": { "type": "Identifier", - "start": 9793, - "end": 9799, + "start": 9806, + "end": 9812, "loc": { "start": { "line": 339, @@ -22277,8 +22326,8 @@ }, "property": { "type": "Identifier", - "start": 9800, - "end": 9802, + "start": 9813, + "end": 9815, "loc": { "start": { "line": 339, @@ -22298,8 +22347,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9803, - "end": 9826, + "start": 9816, + "end": 9839, "loc": { "start": { "line": 339, @@ -22318,8 +22367,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 9828, - "end": 9888, + "start": 9841, + "end": 9901, "loc": { "start": { "line": 339, @@ -22337,8 +22386,8 @@ "params": [ { "type": "Identifier", - "start": 9829, - "end": 9833, + "start": 9842, + "end": 9846, "loc": { "start": { "line": 339, @@ -22355,8 +22404,8 @@ ], "body": { "type": "BlockStatement", - "start": 9838, - "end": 9888, + "start": 9851, + "end": 9901, "loc": { "start": { "line": 339, @@ -22370,8 +22419,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9842, - "end": 9885, + "start": 9855, + "end": 9898, "loc": { "start": { "line": 340, @@ -22384,8 +22433,8 @@ }, "expression": { "type": "CallExpression", - "start": 9842, - "end": 9885, + "start": 9855, + "end": 9898, "loc": { "start": { "line": 340, @@ -22398,8 +22447,8 @@ }, "callee": { "type": "Identifier", - "start": 9842, - "end": 9854, + "start": 9855, + "end": 9867, "loc": { "start": { "line": 340, @@ -22416,8 +22465,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 9855, - "end": 9868, + "start": 9868, + "end": 9881, "loc": { "start": { "line": 340, @@ -22430,8 +22479,8 @@ }, "object": { "type": "Identifier", - "start": 9855, - "end": 9859, + "start": 9868, + "end": 9872, "loc": { "start": { "line": 340, @@ -22447,8 +22496,8 @@ }, "property": { "type": "Identifier", - "start": 9860, - "end": 9868, + "start": 9873, + "end": 9881, "loc": { "start": { "line": 340, @@ -22466,8 +22515,8 @@ }, { "type": "MemberExpression", - "start": 9870, - "end": 9884, + "start": 9883, + "end": 9897, "loc": { "start": { "line": 340, @@ -22480,8 +22529,8 @@ }, "object": { "type": "Identifier", - "start": 9870, - "end": 9874, + "start": 9883, + "end": 9887, "loc": { "start": { "line": 340, @@ -22497,8 +22546,8 @@ }, "property": { "type": "Identifier", - "start": 9875, - "end": 9884, + "start": 9888, + "end": 9897, "loc": { "start": { "line": 340, @@ -22529,8 +22578,8 @@ { "type": "CommentLine", "value": " Update scores", - "start": 9775, - "end": 9791, + "start": 9788, + "end": 9804, "loc": { "start": { "line": 338, @@ -22547,8 +22596,8 @@ { "type": "CommentLine", "value": " A player has won", - "start": 9892, - "end": 9911, + "start": 9905, + "end": 9924, "loc": { "start": { "line": 343, @@ -22564,8 +22613,8 @@ }, { "type": "ExpressionStatement", - "start": 9913, - "end": 10042, + "start": 9926, + "end": 10055, "loc": { "start": { "line": 344, @@ -22578,8 +22627,8 @@ }, "expression": { "type": "CallExpression", - "start": 9913, - "end": 10042, + "start": 9926, + "end": 10055, "loc": { "start": { "line": 344, @@ -22592,8 +22641,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9913, - "end": 9922, + "start": 9926, + "end": 9935, "loc": { "start": { "line": 344, @@ -22606,8 +22655,8 @@ }, "object": { "type": "Identifier", - "start": 9913, - "end": 9919, + "start": 9926, + "end": 9932, "loc": { "start": { "line": 344, @@ -22624,8 +22673,8 @@ }, "property": { "type": "Identifier", - "start": 9920, - "end": 9922, + "start": 9933, + "end": 9935, "loc": { "start": { "line": 344, @@ -22645,8 +22694,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9923, - "end": 9941, + "start": 9936, + "end": 9954, "loc": { "start": { "line": 344, @@ -22665,8 +22714,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 9943, - "end": 10041, + "start": 9956, + "end": 10054, "loc": { "start": { "line": 344, @@ -22684,8 +22733,8 @@ "params": [ { "type": "Identifier", - "start": 9944, - "end": 9948, + "start": 9957, + "end": 9961, "loc": { "start": { "line": 344, @@ -22702,8 +22751,8 @@ ], "body": { "type": "BlockStatement", - "start": 9953, - "end": 10041, + "start": 9966, + "end": 10054, "loc": { "start": { "line": 344, @@ -22717,8 +22766,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9957, - "end": 9973, + "start": 9970, + "end": 9986, "loc": { "start": { "line": 345, @@ -22731,8 +22780,8 @@ }, "expression": { "type": "CallExpression", - "start": 9957, - "end": 9973, + "start": 9970, + "end": 9986, "loc": { "start": { "line": 345, @@ -22745,8 +22794,8 @@ }, "callee": { "type": "Identifier", - "start": 9957, - "end": 9966, + "start": 9970, + "end": 9979, "loc": { "start": { "line": 345, @@ -22763,8 +22812,8 @@ "arguments": [ { "type": "BooleanLiteral", - "start": 9967, - "end": 9972, + "start": 9980, + "end": 9985, "loc": { "start": { "line": 345, @@ -22784,8 +22833,8 @@ { "type": "CommentLine", "value": " Disable keyboard controls and rendering", - "start": 9974, - "end": 10016, + "start": 9987, + "end": 10029, "loc": { "start": { "line": 345, @@ -22801,8 +22850,8 @@ }, { "type": "ExpressionStatement", - "start": 10019, - "end": 10038, + "start": 10032, + "end": 10051, "loc": { "start": { "line": 346, @@ -22815,8 +22864,8 @@ }, "expression": { "type": "CallExpression", - "start": 10019, - "end": 10038, + "start": 10032, + "end": 10051, "loc": { "start": { "line": 346, @@ -22829,8 +22878,8 @@ }, "callee": { "type": "Identifier", - "start": 10019, - "end": 10032, + "start": 10032, + "end": 10045, "loc": { "start": { "line": 346, @@ -22848,8 +22897,8 @@ "arguments": [ { "type": "Identifier", - "start": 10033, - "end": 10037, + "start": 10046, + "end": 10050, "loc": { "start": { "line": 346, @@ -22870,8 +22919,8 @@ { "type": "CommentLine", "value": " Disable keyboard controls and rendering", - "start": 9974, - "end": 10016, + "start": 9987, + "end": 10029, "loc": { "start": { "line": 345, @@ -22897,8 +22946,8 @@ { "type": "CommentLine", "value": " A player has won", - "start": 9892, - "end": 9911, + "start": 9905, + "end": 9924, "loc": { "start": { "line": 343, @@ -22914,9 +22963,9 @@ "trailingComments": [ { "type": "CommentLine", - "value": " Team colors", - "start": 10045, - "end": 10059, + "value": " Sync team colors", + "start": 10058, + "end": 10077, "loc": { "start": { "line": 349, @@ -22924,7 +22973,7 @@ }, "end": { "line": 349, - "column": 15 + "column": 20 } } } @@ -22932,8 +22981,8 @@ }, { "type": "ExpressionStatement", - "start": 10061, - "end": 10156, + "start": 10079, + "end": 10174, "loc": { "start": { "line": 350, @@ -22946,8 +22995,8 @@ }, "expression": { "type": "CallExpression", - "start": 10061, - "end": 10156, + "start": 10079, + "end": 10174, "loc": { "start": { "line": 350, @@ -22960,8 +23009,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10061, - "end": 10070, + "start": 10079, + "end": 10088, "loc": { "start": { "line": 350, @@ -22974,8 +23023,8 @@ }, "object": { "type": "Identifier", - "start": 10061, - "end": 10067, + "start": 10079, + "end": 10085, "loc": { "start": { "line": 350, @@ -22992,8 +23041,8 @@ }, "property": { "type": "Identifier", - "start": 10068, - "end": 10070, + "start": 10086, + "end": 10088, "loc": { "start": { "line": 350, @@ -23013,8 +23062,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 10071, - "end": 10093, + "start": 10089, + "end": 10111, "loc": { "start": { "line": 350, @@ -23033,8 +23082,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 10095, - "end": 10155, + "start": 10113, + "end": 10173, "loc": { "start": { "line": 350, @@ -23052,8 +23101,8 @@ "params": [ { "type": "Identifier", - "start": 10096, - "end": 10100, + "start": 10114, + "end": 10118, "loc": { "start": { "line": 350, @@ -23070,8 +23119,8 @@ ], "body": { "type": "BlockStatement", - "start": 10105, - "end": 10155, + "start": 10123, + "end": 10173, "loc": { "start": { "line": 350, @@ -23085,8 +23134,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 10109, - "end": 10126, + "start": 10127, + "end": 10144, "loc": { "start": { "line": 351, @@ -23099,8 +23148,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10109, - "end": 10126, + "start": 10127, + "end": 10144, "loc": { "start": { "line": 351, @@ -23114,8 +23163,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 10109, - "end": 10119, + "start": 10127, + "end": 10137, "loc": { "start": { "line": 351, @@ -23131,8 +23180,8 @@ }, "right": { "type": "Identifier", - "start": 10122, - "end": 10126, + "start": 10140, + "end": 10144, "loc": { "start": { "line": 351, @@ -23150,8 +23199,8 @@ }, { "type": "ExpressionStatement", - "start": 10129, - "end": 10152, + "start": 10147, + "end": 10170, "loc": { "start": { "line": 352, @@ -23164,8 +23213,8 @@ }, "expression": { "type": "CallExpression", - "start": 10129, - "end": 10152, + "start": 10147, + "end": 10170, "loc": { "start": { "line": 352, @@ -23178,8 +23227,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10129, - "end": 10140, + "start": 10147, + "end": 10158, "loc": { "start": { "line": 352, @@ -23192,8 +23241,8 @@ }, "object": { "type": "Identifier", - "start": 10129, - "end": 10136, + "start": 10147, + "end": 10154, "loc": { "start": { "line": 352, @@ -23209,8 +23258,8 @@ }, "property": { "type": "Identifier", - "start": 10137, - "end": 10140, + "start": 10155, + "end": 10158, "loc": { "start": { "line": 352, @@ -23229,8 +23278,8 @@ "arguments": [ { "type": "Identifier", - "start": 10141, - "end": 10151, + "start": 10159, + "end": 10169, "loc": { "start": { "line": 352, @@ -23252,14 +23301,15 @@ } } ], - "leadingComments": null + "leadingComments": null, + "trailingComments": null }, "leadingComments": [ { "type": "CommentLine", - "value": " Team colors", - "start": 10045, - "end": 10059, + "value": " Sync team colors", + "start": 10058, + "end": 10077, "loc": { "start": { "line": 349, @@ -23267,1109 +23317,1055 @@ }, "end": { "line": 349, - "column": 15 + "column": 20 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " Change texture when a tile has been captured", + "start": 10177, + "end": 10224, + "loc": { + "start": { + "line": 355, + "column": 1 + }, + "end": { + "line": 355, + "column": 48 } } } ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Sets up socket information transfer listeners.\n * Run in setupSocket().\n * @param {*} chat The chat client instance to be used for notifications\n ", - "start": 8353, - "end": 8508, - "loc": { - "start": { - "line": 281, - "column": 0 - }, - "end": { - "line": 285, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "\n ********************\n * Helper Functions *\n ********************\n ", - "start": 10160, - "end": 10232, - "loc": { - "start": { - "line": 356, - "column": 0 - }, - "end": { - "line": 360, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Helper function for serverSendObjectRemoval", - "start": 10234, - "end": 10280, - "loc": { - "start": { - "line": 362, - "column": 0 - }, - "end": { - "line": 362, - "column": 46 - } - } - } - ] - }, - { - "type": "FunctionDeclaration", - "start": 10281, - "end": 10564, - "loc": { - "start": { - "line": 363, - "column": 0 - }, - "end": { - "line": 373, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 10290, - "end": 10302, - "loc": { - "start": { - "line": 363, - "column": 9 - }, - "end": { - "line": 363, - "column": 21 - }, - "identifierName": "removeObject" - }, - "name": "removeObject", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 10304, - "end": 10308, - "loc": { - "start": { - "line": 363, - "column": 23 - }, - "end": { - "line": 363, - "column": 27 - }, - "identifierName": "data" }, - "name": "data" - } - ], - "body": { - "type": "BlockStatement", - "start": 10310, - "end": 10564, - "loc": { - "start": { - "line": 363, - "column": 29 - }, - "end": { - "line": 373, - "column": 1 - } - }, - "body": [ { - "type": "IfStatement", - "start": 10313, - "end": 10562, + "type": "ExpressionStatement", + "start": 10226, + "end": 10534, "loc": { "start": { - "line": 364, + "line": 356, "column": 1 }, "end": { - "line": 372, - "column": 2 + "line": 359, + "column": 3 } }, - "test": { - "type": "LogicalExpression", - "start": 10317, - "end": 10398, + "expression": { + "type": "CallExpression", + "start": 10226, + "end": 10534, "loc": { "start": { - "line": 364, - "column": 5 + "line": 356, + "column": 1 }, "end": { - "line": 364, - "column": 86 + "line": 359, + "column": 3 } }, - "left": { - "type": "BinaryExpression", - "start": 10317, - "end": 10358, + "callee": { + "type": "MemberExpression", + "start": 10226, + "end": 10235, "loc": { "start": { - "line": 364, - "column": 5 + "line": 356, + "column": 1 }, "end": { - "line": 364, - "column": 46 + "line": 356, + "column": 10 } }, - "left": { - "type": "MemberExpression", - "start": 10317, - "end": 10344, + "object": { + "type": "Identifier", + "start": 10226, + "end": 10232, "loc": { "start": { - "line": 364, - "column": 5 + "line": 356, + "column": 1 }, "end": { - "line": 364, - "column": 32 - } - }, - "object": { - "type": "MemberExpression", - "start": 10317, - "end": 10335, - "loc": { - "start": { - "line": 364, - "column": 5 - }, - "end": { - "line": 364, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 10317, - "end": 10324, - "loc": { - "start": { - "line": 364, - "column": 5 - }, - "end": { - "line": 364, - "column": 12 - }, - "identifierName": "objects" - }, - "name": "objects" - }, - "property": { - "type": "MemberExpression", - "start": 10325, - "end": 10334, - "loc": { - "start": { - "line": 364, - "column": 13 - }, - "end": { - "line": 364, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 10325, - "end": 10329, - "loc": { - "start": { - "line": 364, - "column": 13 - }, - "end": { - "line": 364, - "column": 17 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 10330, - "end": 10334, - "loc": { - "start": { - "line": 364, - "column": 18 - }, - "end": { - "line": 364, - "column": 22 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - "computed": true - }, - "property": { - "type": "MemberExpression", - "start": 10336, - "end": 10343, - "loc": { - "start": { - "line": 364, - "column": 24 - }, - "end": { - "line": 364, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 10336, - "end": 10340, - "loc": { - "start": { - "line": 364, - "column": 24 - }, - "end": { - "line": 364, - "column": 28 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 10341, - "end": 10343, - "loc": { - "start": { - "line": 364, - "column": 29 - }, - "end": { - "line": 364, - "column": 31 - }, - "identifierName": "id" - }, - "name": "id" + "line": 356, + "column": 7 }, - "computed": false + "identifierName": "socket" }, - "computed": true + "name": "socket", + "leadingComments": null }, - "operator": "!==", - "right": { + "property": { "type": "Identifier", - "start": 10349, - "end": 10358, + "start": 10233, + "end": 10235, "loc": { "start": { - "line": 364, - "column": 37 + "line": 356, + "column": 8 }, "end": { - "line": 364, - "column": 46 + "line": 356, + "column": 10 }, - "identifierName": "undefined" + "identifierName": "on" }, - "name": "undefined" - } + "name": "on" + }, + "computed": false, + "leadingComments": null }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 10362, - "end": 10398, - "loc": { - "start": { - "line": 364, - "column": 50 + "arguments": [ + { + "type": "StringLiteral", + "start": 10236, + "end": 10259, + "loc": { + "start": { + "line": 356, + "column": 11 + }, + "end": { + "line": 356, + "column": 34 + } }, - "end": { - "line": 364, - "column": 86 - } + "extra": { + "rawValue": "serverSendTileCapture", + "raw": "'serverSendTileCapture'" + }, + "value": "serverSendTileCapture" }, - "left": { - "type": "MemberExpression", - "start": 10362, - "end": 10389, + { + "type": "ArrowFunctionExpression", + "start": 10261, + "end": 10533, "loc": { "start": { - "line": 364, - "column": 50 + "line": 356, + "column": 36 }, "end": { - "line": 364, - "column": 77 + "line": 359, + "column": 2 } }, - "object": { - "type": "MemberExpression", - "start": 10362, - "end": 10380, - "loc": { - "start": { - "line": 364, - "column": 50 - }, - "end": { - "line": 364, - "column": 68 - } - }, - "object": { - "type": "Identifier", - "start": 10362, - "end": 10369, - "loc": { - "start": { - "line": 364, - "column": 50 - }, - "end": { - "line": 364, - "column": 57 - }, - "identifierName": "objects" - }, - "name": "objects" - }, - "property": { - "type": "MemberExpression", - "start": 10370, - "end": 10379, - "loc": { - "start": { - "line": 364, - "column": 58 - }, - "end": { - "line": 364, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 10370, - "end": 10374, - "loc": { - "start": { - "line": 364, - "column": 58 - }, - "end": { - "line": 364, - "column": 62 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 10375, - "end": 10379, - "loc": { - "start": { - "line": 364, - "column": 63 - }, - "end": { - "line": 364, - "column": 67 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - "computed": true - }, - "property": { - "type": "MemberExpression", - "start": 10381, - "end": 10388, - "loc": { - "start": { - "line": 364, - "column": 69 - }, - "end": { - "line": 364, - "column": 76 - } - }, - "object": { + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { "type": "Identifier", - "start": 10381, - "end": 10385, + "start": 10262, + "end": 10266, "loc": { "start": { - "line": 364, - "column": 69 + "line": 356, + "column": 37 }, "end": { - "line": 364, - "column": 73 + "line": 356, + "column": 41 }, "identifierName": "data" }, "name": "data" - }, - "property": { - "type": "Identifier", - "start": 10386, - "end": 10388, - "loc": { - "start": { - "line": 364, - "column": 74 - }, - "end": { - "line": 364, - "column": 76 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "computed": true - }, - "operator": "!==", - "right": { - "type": "NullLiteral", - "start": 10394, - "end": 10398, - "loc": { - "start": { - "line": 364, - "column": 82 - }, - "end": { - "line": 364, - "column": 86 - } - } - } - } - }, - "consequent": { - "type": "BlockStatement", - "start": 10400, - "end": 10536, - "loc": { - "start": { - "line": 364, - "column": 88 - }, - "end": { - "line": 369, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 10404, - "end": 10438, - "loc": { - "start": { - "line": 365, - "column": 2 - }, - "end": { - "line": 365, - "column": 36 } - }, - "expression": { - "type": "CallExpression", - "start": 10404, - "end": 10438, + ], + "body": { + "type": "BlockStatement", + "start": 10271, + "end": 10533, "loc": { "start": { - "line": 365, - "column": 2 + "line": 356, + "column": 46 }, "end": { - "line": 365, - "column": 36 + "line": 359, + "column": 2 } }, - "callee": { - "type": "MemberExpression", - "start": 10404, - "end": 10436, - "loc": { - "start": { - "line": 365, - "column": 2 - }, - "end": { - "line": 365, - "column": 34 - } - }, - "object": { - "type": "MemberExpression", - "start": 10404, - "end": 10431, + "body": [ + { + "type": "ExpressionStatement", + "start": 10275, + "end": 10449, "loc": { "start": { - "line": 365, + "line": 357, "column": 2 }, "end": { - "line": 365, - "column": 29 + "line": 357, + "column": 176 } }, - "object": { - "type": "MemberExpression", - "start": 10404, - "end": 10422, + "expression": { + "type": "AssignmentExpression", + "start": 10275, + "end": 10449, "loc": { "start": { - "line": 365, + "line": 357, "column": 2 }, "end": { - "line": 365, - "column": 20 + "line": 357, + "column": 176 } }, - "object": { - "type": "Identifier", - "start": 10404, - "end": 10411, - "loc": { - "start": { - "line": 365, - "column": 2 - }, - "end": { - "line": 365, - "column": 9 - }, - "identifierName": "objects" - }, - "name": "objects" - }, - "property": { + "operator": "=", + "left": { "type": "MemberExpression", - "start": 10412, - "end": 10421, + "start": 10275, + "end": 10337, "loc": { "start": { - "line": 365, - "column": 10 + "line": 357, + "column": 2 }, "end": { - "line": 365, - "column": 19 + "line": 357, + "column": 64 } }, "object": { - "type": "Identifier", - "start": 10412, - "end": 10416, + "type": "MemberExpression", + "start": 10275, + "end": 10329, "loc": { "start": { - "line": 365, - "column": 10 + "line": 357, + "column": 2 }, "end": { - "line": 365, - "column": 14 + "line": 357, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 10275, + "end": 10288, + "loc": { + "start": { + "line": 357, + "column": 2 + }, + "end": { + "line": 357, + "column": 15 + } }, - "identifierName": "data" + "object": { + "type": "Identifier", + "start": 10275, + "end": 10282, + "loc": { + "start": { + "line": 357, + "column": 2 + }, + "end": { + "line": 357, + "column": 9 + }, + "identifierName": "objects" + }, + "name": "objects" + }, + "property": { + "type": "Identifier", + "start": 10283, + "end": 10288, + "loc": { + "start": { + "line": 357, + "column": 10 + }, + "end": { + "line": 357, + "column": 15 + }, + "identifierName": "tiles" + }, + "name": "tiles" + }, + "computed": false }, - "name": "data" + "property": { + "type": "BinaryExpression", + "start": 10289, + "end": 10328, + "loc": { + "start": { + "line": 357, + "column": 16 + }, + "end": { + "line": 357, + "column": 55 + } + }, + "left": { + "type": "BinaryExpression", + "start": 10289, + "end": 10315, + "loc": { + "start": { + "line": 357, + "column": 16 + }, + "end": { + "line": 357, + "column": 42 + } + }, + "left": { + "type": "BinaryExpression", + "start": 10289, + "end": 10309, + "loc": { + "start": { + "line": 357, + "column": 16 + }, + "end": { + "line": 357, + "column": 36 + } + }, + "left": { + "type": "StringLiteral", + "start": 10289, + "end": 10296, + "loc": { + "start": { + "line": 357, + "column": 16 + }, + "end": { + "line": 357, + "column": 23 + } + }, + "extra": { + "rawValue": "tile_", + "raw": "'tile_'" + }, + "value": "tile_" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 10299, + "end": 10309, + "loc": { + "start": { + "line": 357, + "column": 26 + }, + "end": { + "line": 357, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 10299, + "end": 10303, + "loc": { + "start": { + "line": 357, + "column": 26 + }, + "end": { + "line": 357, + "column": 30 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10304, + "end": 10309, + "loc": { + "start": { + "line": 357, + "column": 31 + }, + "end": { + "line": 357, + "column": 36 + }, + "identifierName": "tileY" + }, + "name": "tileY" + }, + "computed": false + } + }, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 10312, + "end": 10315, + "loc": { + "start": { + "line": 357, + "column": 39 + }, + "end": { + "line": 357, + "column": 42 + } + }, + "extra": { + "rawValue": "_", + "raw": "'_'" + }, + "value": "_" + } + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 10318, + "end": 10328, + "loc": { + "start": { + "line": 357, + "column": 45 + }, + "end": { + "line": 357, + "column": 55 + } + }, + "object": { + "type": "Identifier", + "start": 10318, + "end": 10322, + "loc": { + "start": { + "line": 357, + "column": 45 + }, + "end": { + "line": 357, + "column": 49 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10323, + "end": 10328, + "loc": { + "start": { + "line": 357, + "column": 50 + }, + "end": { + "line": 357, + "column": 55 + }, + "identifierName": "tileX" + }, + "name": "tileX" + }, + "computed": false + } + }, + "computed": true }, "property": { "type": "Identifier", - "start": 10417, - "end": 10421, + "start": 10330, + "end": 10337, "loc": { "start": { - "line": 365, - "column": 15 + "line": 357, + "column": 57 }, "end": { - "line": 365, - "column": 19 + "line": 357, + "column": 64 }, - "identifierName": "type" + "identifierName": "texture" }, - "name": "type" + "name": "texture" }, "computed": false }, - "computed": true - }, - "property": { - "type": "MemberExpression", - "start": 10423, - "end": 10430, - "loc": { - "start": { - "line": 365, - "column": 21 - }, - "end": { - "line": 365, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 10423, - "end": 10427, - "loc": { - "start": { - "line": 365, - "column": 21 - }, - "end": { - "line": 365, - "column": 25 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 10428, - "end": 10430, - "loc": { - "start": { - "line": 365, - "column": 26 - }, - "end": { - "line": 365, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 10432, - "end": 10436, - "loc": { - "start": { - "line": 365, - "column": 30 - }, - "end": { - "line": 365, - "column": 34 - }, - "identifierName": "hide" - }, - "name": "hide" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ExpressionStatement", - "start": 10441, - "end": 10478, - "loc": { - "start": { - "line": 366, - "column": 2 - }, - "end": { - "line": 366, - "column": 39 - } - }, - "expression": { - "type": "CallExpression", - "start": 10441, - "end": 10478, - "loc": { - "start": { - "line": 366, - "column": 2 - }, - "end": { - "line": 366, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10441, - "end": 10476, - "loc": { - "start": { - "line": 366, - "column": 2 - }, - "end": { - "line": 366, - "column": 37 - } - }, - "object": { - "type": "MemberExpression", - "start": 10441, - "end": 10468, - "loc": { - "start": { - "line": 366, - "column": 2 - }, - "end": { - "line": 366, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 10441, - "end": 10459, - "loc": { - "start": { - "line": 366, - "column": 2 - }, - "end": { - "line": 366, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 10441, - "end": 10448, - "loc": { - "start": { - "line": 366, - "column": 2 - }, - "end": { - "line": 366, - "column": 9 - }, - "identifierName": "objects" - }, - "name": "objects" - }, - "property": { + "right": { "type": "MemberExpression", - "start": 10449, - "end": 10458, + "start": 10341, + "end": 10448, "loc": { "start": { - "line": 366, - "column": 10 + "line": 357, + "column": 68 }, "end": { - "line": 366, - "column": 19 + "line": 357, + "column": 175 } }, "object": { - "type": "Identifier", - "start": 10449, - "end": 10453, + "type": "MemberExpression", + "start": 10341, + "end": 10361, "loc": { "start": { - "line": 366, - "column": 10 + "line": 357, + "column": 68 }, "end": { - "line": 366, - "column": 14 + "line": 357, + "column": 88 + } + }, + "object": { + "type": "Identifier", + "start": 10341, + "end": 10352, + "loc": { + "start": { + "line": 357, + "column": 68 + }, + "end": { + "line": 357, + "column": 79 + }, + "identifierName": "spritesheet" }, - "identifierName": "data" + "name": "spritesheet" }, - "name": "data" + "property": { + "type": "Identifier", + "start": 10353, + "end": 10361, + "loc": { + "start": { + "line": 357, + "column": 80 + }, + "end": { + "line": 357, + "column": 88 + }, + "identifierName": "textures" + }, + "name": "textures" + }, + "computed": false }, "property": { - "type": "Identifier", - "start": 10454, - "end": 10458, + "type": "BinaryExpression", + "start": 10362, + "end": 10447, "loc": { "start": { - "line": 366, - "column": 15 + "line": 357, + "column": 89 }, "end": { - "line": 366, - "column": 19 - }, - "identifierName": "type" + "line": 357, + "column": 174 + } }, - "name": "type" - }, - "computed": false - }, - "computed": true - }, - "property": { - "type": "MemberExpression", - "start": 10460, - "end": 10467, - "loc": { - "start": { - "line": 366, - "column": 21 - }, - "end": { - "line": 366, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 10460, - "end": 10464, - "loc": { - "start": { - "line": 366, - "column": 21 - }, - "end": { - "line": 366, - "column": 25 + "left": { + "type": "MemberExpression", + "start": 10362, + "end": 10377, + "loc": { + "start": { + "line": 357, + "column": 89 + }, + "end": { + "line": 357, + "column": 104 + } + }, + "object": { + "type": "Identifier", + "start": 10362, + "end": 10366, + "loc": { + "start": { + "line": 357, + "column": 89 + }, + "end": { + "line": 357, + "column": 93 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10367, + "end": 10377, + "loc": { + "start": { + "line": 357, + "column": 94 + }, + "end": { + "line": 357, + "column": 104 + }, + "identifierName": "teamNumber" + }, + "name": "teamNumber" + }, + "computed": false }, - "identifierName": "data" + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 10380, + "end": 10447, + "loc": { + "start": { + "line": 357, + "column": 107 + }, + "end": { + "line": 357, + "column": 174 + } + }, + "object": { + "type": "MemberExpression", + "start": 10380, + "end": 10439, + "loc": { + "start": { + "line": 357, + "column": 107 + }, + "end": { + "line": 357, + "column": 166 + } + }, + "object": { + "type": "MemberExpression", + "start": 10380, + "end": 10434, + "loc": { + "start": { + "line": 357, + "column": 107 + }, + "end": { + "line": 357, + "column": 161 + } + }, + "object": { + "type": "MemberExpression", + "start": 10380, + "end": 10393, + "loc": { + "start": { + "line": 357, + "column": 107 + }, + "end": { + "line": 357, + "column": 120 + } + }, + "object": { + "type": "Identifier", + "start": 10380, + "end": 10387, + "loc": { + "start": { + "line": 357, + "column": 107 + }, + "end": { + "line": 357, + "column": 114 + }, + "identifierName": "objects" + }, + "name": "objects" + }, + "property": { + "type": "Identifier", + "start": 10388, + "end": 10393, + "loc": { + "start": { + "line": 357, + "column": 115 + }, + "end": { + "line": 357, + "column": 120 + }, + "identifierName": "tiles" + }, + "name": "tiles" + }, + "computed": false + }, + "property": { + "type": "BinaryExpression", + "start": 10394, + "end": 10433, + "loc": { + "start": { + "line": 357, + "column": 121 + }, + "end": { + "line": 357, + "column": 160 + } + }, + "left": { + "type": "BinaryExpression", + "start": 10394, + "end": 10420, + "loc": { + "start": { + "line": 357, + "column": 121 + }, + "end": { + "line": 357, + "column": 147 + } + }, + "left": { + "type": "BinaryExpression", + "start": 10394, + "end": 10414, + "loc": { + "start": { + "line": 357, + "column": 121 + }, + "end": { + "line": 357, + "column": 141 + } + }, + "left": { + "type": "StringLiteral", + "start": 10394, + "end": 10401, + "loc": { + "start": { + "line": 357, + "column": 121 + }, + "end": { + "line": 357, + "column": 128 + } + }, + "extra": { + "rawValue": "tile_", + "raw": "'tile_'" + }, + "value": "tile_" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 10404, + "end": 10414, + "loc": { + "start": { + "line": 357, + "column": 131 + }, + "end": { + "line": 357, + "column": 141 + } + }, + "object": { + "type": "Identifier", + "start": 10404, + "end": 10408, + "loc": { + "start": { + "line": 357, + "column": 131 + }, + "end": { + "line": 357, + "column": 135 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10409, + "end": 10414, + "loc": { + "start": { + "line": 357, + "column": 136 + }, + "end": { + "line": 357, + "column": 141 + }, + "identifierName": "tileY" + }, + "name": "tileY" + }, + "computed": false + } + }, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 10417, + "end": 10420, + "loc": { + "start": { + "line": 357, + "column": 144 + }, + "end": { + "line": 357, + "column": 147 + } + }, + "extra": { + "rawValue": "_", + "raw": "'_'" + }, + "value": "_" + } + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 10423, + "end": 10433, + "loc": { + "start": { + "line": 357, + "column": 150 + }, + "end": { + "line": 357, + "column": 160 + } + }, + "object": { + "type": "Identifier", + "start": 10423, + "end": 10427, + "loc": { + "start": { + "line": 357, + "column": 150 + }, + "end": { + "line": 357, + "column": 154 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10428, + "end": 10433, + "loc": { + "start": { + "line": 357, + "column": 155 + }, + "end": { + "line": 357, + "column": 160 + }, + "identifierName": "tileX" + }, + "name": "tileX" + }, + "computed": false + } + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 10435, + "end": 10439, + "loc": { + "start": { + "line": 357, + "column": 162 + }, + "end": { + "line": 357, + "column": 166 + }, + "identifierName": "tile" + }, + "name": "tile" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 10440, + "end": 10447, + "loc": { + "start": { + "line": 357, + "column": 167 + }, + "end": { + "line": 357, + "column": 174 + }, + "identifierName": "texture" + }, + "name": "texture" + }, + "computed": false + } }, - "name": "data" + "computed": true, + "extra": { + "parenthesized": true, + "parenStart": 10340 + } }, - "property": { - "type": "Identifier", - "start": 10465, - "end": 10467, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " console.log(objects.tiles['tile_' + data.tileY + '_' + data.tileX].texture)", + "start": 10452, + "end": 10530, "loc": { "start": { - "line": 366, - "column": 26 + "line": 358, + "column": 2 }, "end": { - "line": 366, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 10469, - "end": 10476, - "loc": { - "start": { - "line": 366, - "column": 30 - }, - "end": { - "line": 366, - "column": 37 - }, - "identifierName": "destroy" - }, - "name": "destroy" - }, - "computed": false - }, - "arguments": [], - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " delete objects[data.type][data.id];", - "start": 10481, - "end": 10519, - "loc": { - "start": { - "line": 367, - "column": 2 - }, - "end": { - "line": 367, - "column": 40 - } - } - } - ] - }, - { - "type": "ReturnStatement", - "start": 10522, - "end": 10533, - "loc": { - "start": { - "line": 368, - "column": 2 - }, - "end": { - "line": 368, - "column": 13 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 10529, - "end": 10533, - "loc": { - "start": { - "line": 368, - "column": 9 - }, - "end": { - "line": 368, - "column": 13 + "line": 358, + "column": 80 + } + } + } + ] } - }, - "value": true, - "leadingComments": null + ], + "directives": [] }, - "leadingComments": [ + "trailingComments": [ { "type": "CommentLine", - "value": " delete objects[data.type][data.id];", - "start": 10481, - "end": 10519, + "value": " console.log(objects.tiles['tile_' + data.tileY + '_' + data.tileX].texture)", + "start": 10452, + "end": 10530, "loc": { "start": { - "line": 367, + "line": 358, "column": 2 }, "end": { - "line": 367, - "column": 40 + "line": 358, + "column": 80 } } } ] } ], - "directives": [] + "leadingComments": null }, - "alternate": { - "type": "BlockStatement", - "start": 10543, - "end": 10562, - "loc": { - "start": { - "line": 370, - "column": 6 - }, - "end": { - "line": 372, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 10547, - "end": 10559, - "loc": { - "start": { - "line": 371, - "column": 2 - }, - "end": { - "line": 371, - "column": 14 - } + "leadingComments": [ + { + "type": "CommentLine", + "value": " Change texture when a tile has been captured", + "start": 10177, + "end": 10224, + "loc": { + "start": { + "line": 355, + "column": 1 }, - "argument": { - "type": "BooleanLiteral", - "start": 10554, - "end": 10559, - "loc": { - "start": { - "line": 371, - "column": 9 - }, - "end": { - "line": 371, - "column": 14 - } - }, - "value": false + "end": { + "line": 355, + "column": 48 } } - ], - "directives": [] - } + } + ] } ], - "directives": [] + "directives": [], + "trailingComments": null }, "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Sets up socket information transfer listeners.\n * Run in setupSocket().\n * @param {*} chat The chat client instance to be used for notifications\n ", + "start": 8366, + "end": 8521, + "loc": { + "start": { + "line": 281, + "column": 0 + }, + "end": { + "line": 285, + "column": 3 + } + } + } + ], + "trailingComments": [ { "type": "CommentBlock", "value": "\n ********************\n * Helper Functions *\n ********************\n ", - "start": 10160, - "end": 10232, + "start": 10538, + "end": 10610, "loc": { "start": { - "line": 356, + "line": 362, "column": 0 }, "end": { - "line": 360, + "line": 366, "column": 3 } } @@ -24377,1153 +24373,4151 @@ { "type": "CommentLine", "value": " Helper function for serverSendObjectRemoval", - "start": 10234, - "end": 10280, + "start": 10612, + "end": 10658, "loc": { "start": { - "line": 362, + "line": 368, "column": 0 }, "end": { - "line": 362, + "line": 368, "column": 46 } } } ] - } - ], - "directives": [] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Socket.js contains all of the clientside networking interface.\n * It contains all variables which are synced between client and server.\n ", - "start": 358, - "end": 504, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Socket.io instance", - "start": 506, - "end": 527, - "loc": { - "start": { - "line": 12, - "column": 0 + }, + { + "type": "FunctionDeclaration", + "start": 10659, + "end": 10942, + "loc": { + "start": { + "line": 369, + "column": 0 + }, + "end": { + "line": 379, + "column": 1 + } }, - "end": { - "line": 12, - "column": 21 - } - } - }, - { - "type": "CommentBlock", - "value": " Object containing all synced objects. Contains nested objects, which correspond to different types\n * (for example, objects[atoms], objects[players], objects[compounds])\n ", - "start": 547, - "end": 723, - "loc": { - "start": { - "line": 15, - "column": 0 + "id": { + "type": "Identifier", + "start": 10668, + "end": 10680, + "loc": { + "start": { + "line": 369, + "column": 9 + }, + "end": { + "line": 369, + "column": 21 + }, + "identifierName": "removeObject" + }, + "name": "removeObject", + "leadingComments": null }, - "end": { - "line": 17, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Team colors object. Number corresponds to index at GLOBAL.TEAM_COLORS.\n * Format: {\n * \tteamname1: 0,\n * \tteamname: color,\n * \t...\n * }\n ", - "start": 803, - "end": 949, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10682, + "end": 10686, + "loc": { + "start": { + "line": 369, + "column": 23 + }, + "end": { + "line": 369, + "column": 27 + }, + "identifierName": "data" + }, + "name": "data" + } + ], + "body": { + "type": "BlockStatement", + "start": 10688, + "end": 10942, + "loc": { + "start": { + "line": 369, + "column": 29 + }, + "end": { + "line": 379, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 10691, + "end": 10940, + "loc": { + "start": { + "line": 370, + "column": 1 + }, + "end": { + "line": 378, + "column": 2 + } + }, + "test": { + "type": "LogicalExpression", + "start": 10695, + "end": 10776, + "loc": { + "start": { + "line": 370, + "column": 5 + }, + "end": { + "line": 370, + "column": 86 + } + }, + "left": { + "type": "BinaryExpression", + "start": 10695, + "end": 10736, + "loc": { + "start": { + "line": 370, + "column": 5 + }, + "end": { + "line": 370, + "column": 46 + } + }, + "left": { + "type": "MemberExpression", + "start": 10695, + "end": 10722, + "loc": { + "start": { + "line": 370, + "column": 5 + }, + "end": { + "line": 370, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 10695, + "end": 10713, + "loc": { + "start": { + "line": 370, + "column": 5 + }, + "end": { + "line": 370, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 10695, + "end": 10702, + "loc": { + "start": { + "line": 370, + "column": 5 + }, + "end": { + "line": 370, + "column": 12 + }, + "identifierName": "objects" + }, + "name": "objects" + }, + "property": { + "type": "MemberExpression", + "start": 10703, + "end": 10712, + "loc": { + "start": { + "line": 370, + "column": 13 + }, + "end": { + "line": 370, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 10703, + "end": 10707, + "loc": { + "start": { + "line": 370, + "column": 13 + }, + "end": { + "line": 370, + "column": 17 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10708, + "end": 10712, + "loc": { + "start": { + "line": 370, + "column": 18 + }, + "end": { + "line": 370, + "column": 22 + }, + "identifierName": "type" + }, + "name": "type" + }, + "computed": false + }, + "computed": true + }, + "property": { + "type": "MemberExpression", + "start": 10714, + "end": 10721, + "loc": { + "start": { + "line": 370, + "column": 24 + }, + "end": { + "line": 370, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 10714, + "end": 10718, + "loc": { + "start": { + "line": 370, + "column": 24 + }, + "end": { + "line": 370, + "column": 28 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10719, + "end": 10721, + "loc": { + "start": { + "line": 370, + "column": 29 + }, + "end": { + "line": 370, + "column": 31 + }, + "identifierName": "id" + }, + "name": "id" + }, + "computed": false + }, + "computed": true + }, + "operator": "!==", + "right": { + "type": "Identifier", + "start": 10727, + "end": 10736, + "loc": { + "start": { + "line": 370, + "column": 37 + }, + "end": { + "line": 370, + "column": 46 + }, + "identifierName": "undefined" + }, + "name": "undefined" + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 10740, + "end": 10776, + "loc": { + "start": { + "line": 370, + "column": 50 + }, + "end": { + "line": 370, + "column": 86 + } + }, + "left": { + "type": "MemberExpression", + "start": 10740, + "end": 10767, + "loc": { + "start": { + "line": 370, + "column": 50 + }, + "end": { + "line": 370, + "column": 77 + } + }, + "object": { + "type": "MemberExpression", + "start": 10740, + "end": 10758, + "loc": { + "start": { + "line": 370, + "column": 50 + }, + "end": { + "line": 370, + "column": 68 + } + }, + "object": { + "type": "Identifier", + "start": 10740, + "end": 10747, + "loc": { + "start": { + "line": 370, + "column": 50 + }, + "end": { + "line": 370, + "column": 57 + }, + "identifierName": "objects" + }, + "name": "objects" + }, + "property": { + "type": "MemberExpression", + "start": 10748, + "end": 10757, + "loc": { + "start": { + "line": 370, + "column": 58 + }, + "end": { + "line": 370, + "column": 67 + } + }, + "object": { + "type": "Identifier", + "start": 10748, + "end": 10752, + "loc": { + "start": { + "line": 370, + "column": 58 + }, + "end": { + "line": 370, + "column": 62 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10753, + "end": 10757, + "loc": { + "start": { + "line": 370, + "column": 63 + }, + "end": { + "line": 370, + "column": 67 + }, + "identifierName": "type" + }, + "name": "type" + }, + "computed": false + }, + "computed": true + }, + "property": { + "type": "MemberExpression", + "start": 10759, + "end": 10766, + "loc": { + "start": { + "line": 370, + "column": 69 + }, + "end": { + "line": 370, + "column": 76 + } + }, + "object": { + "type": "Identifier", + "start": 10759, + "end": 10763, + "loc": { + "start": { + "line": 370, + "column": 69 + }, + "end": { + "line": 370, + "column": 73 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10764, + "end": 10766, + "loc": { + "start": { + "line": 370, + "column": 74 + }, + "end": { + "line": 370, + "column": 76 + }, + "identifierName": "id" + }, + "name": "id" + }, + "computed": false + }, + "computed": true + }, + "operator": "!==", + "right": { + "type": "NullLiteral", + "start": 10772, + "end": 10776, + "loc": { + "start": { + "line": 370, + "column": 82 + }, + "end": { + "line": 370, + "column": 86 + } + } + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 10778, + "end": 10914, + "loc": { + "start": { + "line": 370, + "column": 88 + }, + "end": { + "line": 375, + "column": 2 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 10782, + "end": 10816, + "loc": { + "start": { + "line": 371, + "column": 2 + }, + "end": { + "line": 371, + "column": 36 + } + }, + "expression": { + "type": "CallExpression", + "start": 10782, + "end": 10816, + "loc": { + "start": { + "line": 371, + "column": 2 + }, + "end": { + "line": 371, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10782, + "end": 10814, + "loc": { + "start": { + "line": 371, + "column": 2 + }, + "end": { + "line": 371, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 10782, + "end": 10809, + "loc": { + "start": { + "line": 371, + "column": 2 + }, + "end": { + "line": 371, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 10782, + "end": 10800, + "loc": { + "start": { + "line": 371, + "column": 2 + }, + "end": { + "line": 371, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 10782, + "end": 10789, + "loc": { + "start": { + "line": 371, + "column": 2 + }, + "end": { + "line": 371, + "column": 9 + }, + "identifierName": "objects" + }, + "name": "objects" + }, + "property": { + "type": "MemberExpression", + "start": 10790, + "end": 10799, + "loc": { + "start": { + "line": 371, + "column": 10 + }, + "end": { + "line": 371, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 10790, + "end": 10794, + "loc": { + "start": { + "line": 371, + "column": 10 + }, + "end": { + "line": 371, + "column": 14 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10795, + "end": 10799, + "loc": { + "start": { + "line": 371, + "column": 15 + }, + "end": { + "line": 371, + "column": 19 + }, + "identifierName": "type" + }, + "name": "type" + }, + "computed": false + }, + "computed": true + }, + "property": { + "type": "MemberExpression", + "start": 10801, + "end": 10808, + "loc": { + "start": { + "line": 371, + "column": 21 + }, + "end": { + "line": 371, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 10801, + "end": 10805, + "loc": { + "start": { + "line": 371, + "column": 21 + }, + "end": { + "line": 371, + "column": 25 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10806, + "end": 10808, + "loc": { + "start": { + "line": 371, + "column": 26 + }, + "end": { + "line": 371, + "column": 28 + }, + "identifierName": "id" + }, + "name": "id" + }, + "computed": false + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 10810, + "end": 10814, + "loc": { + "start": { + "line": 371, + "column": 30 + }, + "end": { + "line": 371, + "column": 34 + }, + "identifierName": "hide" + }, + "name": "hide" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 10819, + "end": 10856, + "loc": { + "start": { + "line": 372, + "column": 2 + }, + "end": { + "line": 372, + "column": 39 + } + }, + "expression": { + "type": "CallExpression", + "start": 10819, + "end": 10856, + "loc": { + "start": { + "line": 372, + "column": 2 + }, + "end": { + "line": 372, + "column": 39 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10819, + "end": 10854, + "loc": { + "start": { + "line": 372, + "column": 2 + }, + "end": { + "line": 372, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 10819, + "end": 10846, + "loc": { + "start": { + "line": 372, + "column": 2 + }, + "end": { + "line": 372, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 10819, + "end": 10837, + "loc": { + "start": { + "line": 372, + "column": 2 + }, + "end": { + "line": 372, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 10819, + "end": 10826, + "loc": { + "start": { + "line": 372, + "column": 2 + }, + "end": { + "line": 372, + "column": 9 + }, + "identifierName": "objects" + }, + "name": "objects" + }, + "property": { + "type": "MemberExpression", + "start": 10827, + "end": 10836, + "loc": { + "start": { + "line": 372, + "column": 10 + }, + "end": { + "line": 372, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 10827, + "end": 10831, + "loc": { + "start": { + "line": 372, + "column": 10 + }, + "end": { + "line": 372, + "column": 14 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10832, + "end": 10836, + "loc": { + "start": { + "line": 372, + "column": 15 + }, + "end": { + "line": 372, + "column": 19 + }, + "identifierName": "type" + }, + "name": "type" + }, + "computed": false + }, + "computed": true + }, + "property": { + "type": "MemberExpression", + "start": 10838, + "end": 10845, + "loc": { + "start": { + "line": 372, + "column": 21 + }, + "end": { + "line": 372, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 10838, + "end": 10842, + "loc": { + "start": { + "line": 372, + "column": 21 + }, + "end": { + "line": 372, + "column": 25 + }, + "identifierName": "data" + }, + "name": "data" + }, + "property": { + "type": "Identifier", + "start": 10843, + "end": 10845, + "loc": { + "start": { + "line": 372, + "column": 26 + }, + "end": { + "line": 372, + "column": 28 + }, + "identifierName": "id" + }, + "name": "id" + }, + "computed": false + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 10847, + "end": 10854, + "loc": { + "start": { + "line": 372, + "column": 30 + }, + "end": { + "line": 372, + "column": 37 + }, + "identifierName": "destroy" + }, + "name": "destroy" + }, + "computed": false + }, + "arguments": [], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " delete objects[data.type][data.id];", + "start": 10859, + "end": 10897, + "loc": { + "start": { + "line": 373, + "column": 2 + }, + "end": { + "line": 373, + "column": 40 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 10900, + "end": 10911, + "loc": { + "start": { + "line": 374, + "column": 2 + }, + "end": { + "line": 374, + "column": 13 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 10907, + "end": 10911, + "loc": { + "start": { + "line": 374, + "column": 9 + }, + "end": { + "line": 374, + "column": 13 + } + }, + "value": true, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " delete objects[data.type][data.id];", + "start": 10859, + "end": 10897, + "loc": { + "start": { + "line": 373, + "column": 2 + }, + "end": { + "line": 373, + "column": 40 + } + } + } + ] + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 10921, + "end": 10940, + "loc": { + "start": { + "line": 376, + "column": 6 + }, + "end": { + "line": 378, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 10925, + "end": 10937, + "loc": { + "start": { + "line": 377, + "column": 2 + }, + "end": { + "line": 377, + "column": 14 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 10932, + "end": 10937, + "loc": { + "start": { + "line": 377, + "column": 9 + }, + "end": { + "line": 377, + "column": 14 + } + }, + "value": false + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "\n ********************\n * Helper Functions *\n ********************\n ", + "start": 10538, + "end": 10610, + "loc": { + "start": { + "line": 362, + "column": 0 + }, + "end": { + "line": 366, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Helper function for serverSendObjectRemoval", + "start": 10612, + "end": 10658, + "loc": { + "start": { + "line": 368, + "column": 0 + }, + "end": { + "line": 368, + "column": 46 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Socket.js contains all of the clientside networking interface.\n * It contains all variables which are synced between client and server.\n ", + "start": 371, + "end": 517, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Socket.io instance", + "start": 519, + "end": 540, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 21 + } + } + }, + { + "type": "CommentBlock", + "value": " Object containing all synced objects. Contains nested objects, which correspond to different types\n * (for example, objects[atoms], objects[players], objects[compounds])\n ", + "start": 560, + "end": 736, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 17, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Team colors object. Number corresponds to index at GLOBAL.TEAM_COLORS.\n * Format: {\n * \tteamname1: 0,\n * \tteamname: color,\n * \t...\n * }\n ", + "start": 816, + "end": 962, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Attempts to connect to the server. Run on 'start game' press.\n * - Manages connecting to main server vs. devserver\n * - Sets up socket listeners\n * - Loads textures\n * - Loads pixi\n ", + "start": 991, + "end": 1186, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 41, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Joins debug server if conditions are met", + "start": 1225, + "end": 1268, + "loc": { + "start": { + "line": 43, + "column": 1 + }, + "end": { + "line": 43, + "column": 44 + } + } + }, + { + "type": "CommentLine", + "value": " DEVELOPMENT server - auto deploy from pixi branch", + "start": 1617, + "end": 1669, + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 49, + "column": 54 + } + } + }, + { + "type": "CommentLine", + "value": " Local server", + "start": 1973, + "end": 1988, + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 57, + "column": 17 + } + } + }, + { + "type": "CommentLine", + "value": " Production server", + "start": 2185, + "end": 2205, + "loc": { + "start": { + "line": 64, + "column": 2 + }, + "end": { + "line": 64, + "column": 22 + } + } + }, + { + "type": "CommentLine", + "value": " Init pixi", + "start": 2483, + "end": 2495, + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 74, + "column": 14 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Run on disconnect to reset all server-based variables and connections\n ", + "start": 2575, + "end": 2655, + "loc": { + "start": { + "line": 82, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Wipe objects list", + "start": 2723, + "end": 2743, + "loc": { + "start": { + "line": 89, + "column": 1 + }, + "end": { + "line": 89, + "column": 21 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * First time setup when connection starts. Run on connect event to ensure that the socket is connected first.\n ", + "start": 2806, + "end": 2924, + "loc": { + "start": { + "line": 95, + "column": 0 + }, + "end": { + "line": 97, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Debug", + "start": 2952, + "end": 2960, + "loc": { + "start": { + "line": 99, + "column": 1 + }, + "end": { + "line": 99, + "column": 9 + } + } + }, + { + "type": "CommentLine", + "value": " Instantiate Chat System", + "start": 2995, + "end": 3021, + "loc": { + "start": { + "line": 102, + "column": 1 + }, + "end": { + "line": 102, + "column": 27 + } + } + }, + { + "type": "CommentLine", + "value": " Setup listeners", + "start": 3221, + "end": 3239, + "loc": { + "start": { + "line": 107, + "column": 1 + }, + "end": { + "line": 107, + "column": 19 + } + } + }, + { + "type": "CommentLine", + "value": " Emit join message,", + "start": 3320, + "end": 3341, + "loc": { + "start": { + "line": 112, + "column": 1 + }, + "end": { + "line": 112, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Sets up socket object syncing.\n * Run in setupSocket().\n ", + "start": 3414, + "end": 3480, + "loc": { + "start": { + "line": 116, + "column": 0 + }, + "end": { + "line": 119, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Syncs all objects from server once a frame", + "start": 3523, + "end": 3568, + "loc": { + "start": { + "line": 121, + "column": 1 + }, + "end": { + "line": 121, + "column": 46 + } + } + }, + { + "type": "CommentLine", + "value": " Already exists in database", + "start": 3831, + "end": 3860, + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 35 + } + } + }, + { + "type": "CommentLine", + "value": " Does not exist - need to clone to clientside", + "start": 4603, + "end": 4650, + "loc": { + "start": { + "line": 148, + "column": 6 + }, + "end": { + "line": 148, + "column": 53 + } + } + }, + { + "type": "CommentLine", + "value": " else { //Tile drawing", + "start": 5032, + "end": 5056, + "loc": { + "start": { + "line": 165, + "column": 3 + }, + "end": { + "line": 165, + "column": 27 + } + } + }, + { + "type": "CommentLine", + "value": " for (let tile of data.tiles) {", + "start": 5060, + "end": 5097, + "loc": { + "start": { + "line": 166, + "column": 3 + }, + "end": { + "line": 166, + "column": 40 + } + } + }, + { + "type": "CommentLine", + "value": " let tileName = 'tile_' + tile.col + '_' + tile.row;", + "start": 5102, + "end": 5164, + "loc": { + "start": { + "line": 168, + "column": 3 + }, + "end": { + "line": 168, + "column": 65 + } + } + }, + { + "type": "CommentLine", + "value": " if (objects.tiles[tileName] === undefined) {", + "start": 5168, + "end": 5223, + "loc": { + "start": { + "line": 169, + "column": 3 + }, + "end": { + "line": 169, + "column": 58 + } + } + }, + { + "type": "CommentLine", + "value": " // console.log(tileName);", + "start": 5227, + "end": 5267, + "loc": { + "start": { + "line": 170, + "column": 3 + }, + "end": { + "line": 170, + "column": 43 + } + } + }, + { + "type": "CommentLine", + "value": " objects.tiles[tileName] = new MapTile(MAP_LAYOUT[tile.row][tile.col], tile.col, tile.row);", + "start": 5271, + "end": 5376, + "loc": { + "start": { + "line": 171, + "column": 3 + }, + "end": { + "line": 171, + "column": 108 + } + } + }, + { + "type": "CommentLine", + "value": " }", + "start": 5380, + "end": 5392, + "loc": { + "start": { + "line": 172, + "column": 3 + }, + "end": { + "line": 172, + "column": 15 + } + } + }, + { + "type": "CommentLine", + "value": " }", + "start": 5397, + "end": 5405, + "loc": { + "start": { + "line": 174, + "column": 3 + }, + "end": { + "line": 174, + "column": 11 + } + } + }, + { + "type": "CommentLine", + "value": " }", + "start": 5409, + "end": 5413, + "loc": { + "start": { + "line": 175, + "column": 3 + }, + "end": { + "line": 175, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " Sync objects when they are deleted or move out of view. ONLY call after objectSync to avoid issue", + "start": 5424, + "end": 5524, + "loc": { + "start": { + "line": 179, + "column": 1 + }, + "end": { + "line": 179, + "column": 101 + } + } + }, + { + "type": "CommentLine", + "value": " removeObject(data);", + "start": 6402, + "end": 6424, + "loc": { + "start": { + "line": 206, + "column": 4 + }, + "end": { + "line": 206, + "column": 26 + } + } + }, + { + "type": "CommentLine", + "value": " return 1", + "start": 6445, + "end": 6456, + "loc": { + "start": { + "line": 208, + "column": 3 + }, + "end": { + "line": 208, + "column": 14 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(objects[data.type][data.id].destroyed);", + "start": 6473, + "end": 6527, + "loc": { + "start": { + "line": 211, + "column": 3 + }, + "end": { + "line": 211, + "column": 57 + } + } + }, + { + "type": "CommentLine", + "value": " An object was removed", + "start": 6530, + "end": 6554, + "loc": { + "start": { + "line": 212, + "column": 2 + }, + "end": { + "line": 212, + "column": 26 + } + } + }, + { + "type": "CommentLine", + "value": " Only remove if not already", + "start": 6604, + "end": 6633, + "loc": { + "start": { + "line": 213, + "column": 49 + }, + "end": { + "line": 213, + "column": 78 + } + } + }, + { + "type": "CommentLine", + "value": " Sanity check", + "start": 6768, + "end": 6783, + "loc": { + "start": { + "line": 217, + "column": 96 + }, + "end": { + "line": 217, + "column": 111 + } + } + }, + { + "type": "CommentLine", + "value": " Must keep checking if the object was not created at time of destruction.", + "start": 6809, + "end": 6884, + "loc": { + "start": { + "line": 222, + "column": 2 + }, + "end": { + "line": 222, + "column": 77 + } + } + }, + { + "type": "CommentLine", + "value": " One example of this needing to be run is when a player instantly collects an atom on spawn.", + "start": 6887, + "end": 6981, + "loc": { + "start": { + "line": 223, + "column": 2 + }, + "end": { + "line": 223, + "column": 96 + } + } + }, + { + "type": "CommentLine", + "value": " if (objects[data.type][data.id] === undefined) {", + "start": 6984, + "end": 7035, + "loc": { + "start": { + "line": 224, + "column": 2 + }, + "end": { + "line": 224, + "column": 53 + } + } + }, + { + "type": "CommentLine", + "value": " \tlet thisInterval = setTimeout(() => {", + "start": 7038, + "end": 7079, + "loc": { + "start": { + "line": 225, + "column": 2 + }, + "end": { + "line": 225, + "column": 43 + } + } + }, + { + "type": "CommentLine", + "value": " \t\tif (objects[data.type][data.id].destroyed) {", + "start": 7082, + "end": 7131, + "loc": { + "start": { + "line": 226, + "column": 2 + }, + "end": { + "line": 226, + "column": 51 + } + } + }, + { + "type": "CommentLine", + "value": " \t\t\tclearInterval(thisInterval)", + "start": 7134, + "end": 7167, + "loc": { + "start": { + "line": 227, + "column": 2 + }, + "end": { + "line": 227, + "column": 35 + } + } + }, + { + "type": "CommentLine", + "value": " \t\t}", + "start": 7170, + "end": 7176, + "loc": { + "start": { + "line": 228, + "column": 2 + }, + "end": { + "line": 228, + "column": 8 + } + } + }, + { + "type": "CommentLine", + "value": " \t\telse {", + "start": 7179, + "end": 7190, + "loc": { + "start": { + "line": 229, + "column": 2 + }, + "end": { + "line": 229, + "column": 13 + } + } + }, + { + "type": "CommentLine", + "value": " \t\t\tremoveObject(data)", + "start": 7193, + "end": 7217, + "loc": { + "start": { + "line": 230, + "column": 2 + }, + "end": { + "line": 230, + "column": 26 + } + } + }, + { + "type": "CommentLine", + "value": " \t\t}", + "start": 7220, + "end": 7226, + "loc": { + "start": { + "line": 231, + "column": 2 + }, + "end": { + "line": 231, + "column": 8 + } + } + }, + { + "type": "CommentLine", + "value": " \t}, 200)", + "start": 7229, + "end": 7240, + "loc": { + "start": { + "line": 232, + "column": 2 + }, + "end": { + "line": 232, + "column": 13 + } + } + }, + { + "type": "CommentLine", + "value": " }", + "start": 7243, + "end": 7247, + "loc": { + "start": { + "line": 233, + "column": 2 + }, + "end": { + "line": 233, + "column": 6 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Sets up socket connection listeners.\n * Run in setupSocket().\n ", + "start": 7255, + "end": 7327, + "loc": { + "start": { + "line": 237, + "column": 0 + }, + "end": { + "line": 240, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " On Connection Failure", + "start": 7365, + "end": 7389, + "loc": { + "start": { + "line": 242, + "column": 1 + }, + "end": { + "line": 242, + "column": 25 + } + } + }, + { + "type": "CommentLine", + "value": " Errors on join", + "start": 8250, + "end": 8267, + "loc": { + "start": { + "line": 274, + "column": 1 + }, + "end": { + "line": 274, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Sets up socket information transfer listeners.\n * Run in setupSocket().\n * @param {*} chat The chat client instance to be used for notifications\n ", + "start": 8366, + "end": 8521, + "loc": { + "start": { + "line": 281, + "column": 0 + }, + "end": { + "line": 285, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Chat system receiver", + "start": 8557, + "end": 8580, + "loc": { + "start": { + "line": 287, + "column": 1 + }, + "end": { + "line": 287, + "column": 24 + } + } + }, + { + "type": "CommentLine", + "value": " Receive information about room players", + "start": 8846, + "end": 8887, + "loc": { + "start": { + "line": 300, + "column": 1 + }, + "end": { + "line": 300, + "column": 42 + } + } + }, + { + "type": "CommentLine", + "value": " Update lobby info. Pass to app.js", + "start": 8925, + "end": 8961, + "loc": { + "start": { + "line": 302, + "column": 2 + }, + "end": { + "line": 302, + "column": 38 + } + } + }, + { + "type": "CommentLine", + "value": " if(GLOBAL.DEBUG) {", + "start": 8985, + "end": 9006, + "loc": { + "start": { + "line": 305, + "column": 2 + }, + "end": { + "line": 305, + "column": 23 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(\"rcvd: \",data);", + "start": 9009, + "end": 9043, + "loc": { + "start": { + "line": 306, + "column": 2 + }, + "end": { + "line": 306, + "column": 36 + } + } + }, + { + "type": "CommentLine", + "value": " }", + "start": 9046, + "end": 9050, + "loc": { + "start": { + "line": 307, + "column": 2 + }, + "end": { + "line": 307, + "column": 6 + } + } + }, + { + "type": "CommentLine", + "value": " Respawn", + "start": 9269, + "end": 9279, + "loc": { + "start": { + "line": 319, + "column": 1 + }, + "end": { + "line": 319, + "column": 11 + } + } + }, + { + "type": "CommentLine", + "value": " Another player died", + "start": 9553, + "end": 9575, + "loc": { + "start": { + "line": 328, + "column": 1 + }, + "end": { + "line": 328, + "column": 23 + } + } + }, + { + "type": "CommentLine", + "value": " Append to chat TODO", + "start": 9632, + "end": 9654, + "loc": { + "start": { + "line": 330, + "column": 2 + }, + "end": { + "line": 330, + "column": 24 + } + } + }, + { + "type": "CommentLine", + "value": " Update timer", + "start": 9661, + "end": 9676, + "loc": { + "start": { + "line": 333, + "column": 1 + }, + "end": { + "line": 333, + "column": 16 + } + } + }, + { + "type": "CommentLine", + "value": " Update scores", + "start": 9788, + "end": 9804, + "loc": { + "start": { + "line": 338, + "column": 1 + }, + "end": { + "line": 338, + "column": 17 + } + } + }, + { + "type": "CommentLine", + "value": " A player has won", + "start": 9905, + "end": 9924, + "loc": { + "start": { + "line": 343, + "column": 1 + }, + "end": { + "line": 343, + "column": 20 + } + } + }, + { + "type": "CommentLine", + "value": " Disable keyboard controls and rendering", + "start": 9987, + "end": 10029, + "loc": { + "start": { + "line": 345, + "column": 19 + }, + "end": { + "line": 345, + "column": 61 + } + } + }, + { + "type": "CommentLine", + "value": " Sync team colors", + "start": 10058, + "end": 10077, + "loc": { + "start": { + "line": 349, + "column": 1 + }, + "end": { + "line": 349, + "column": 20 + } + } + }, + { + "type": "CommentLine", + "value": " Change texture when a tile has been captured", + "start": 10177, + "end": 10224, + "loc": { + "start": { + "line": 355, + "column": 1 + }, + "end": { + "line": 355, + "column": 48 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(objects.tiles['tile_' + data.tileY + '_' + data.tileX].texture)", + "start": 10452, + "end": 10530, + "loc": { + "start": { + "line": 358, + "column": 2 + }, + "end": { + "line": 358, + "column": 80 + } + } + }, + { + "type": "CommentBlock", + "value": "\n ********************\n * Helper Functions *\n ********************\n ", + "start": 10538, + "end": 10610, + "loc": { + "start": { + "line": 362, + "column": 0 + }, + "end": { + "line": 366, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Helper function for serverSendObjectRemoval", + "start": 10612, + "end": 10658, + "loc": { + "start": { + "line": 368, + "column": 0 + }, + "end": { + "line": 368, + "column": 46 + } + } + }, + { + "type": "CommentLine", + "value": " delete objects[data.type][data.id];", + "start": 10859, + "end": 10897, + "loc": { + "start": { + "line": 373, + "column": 2 + }, + "end": { + "line": 373, + "column": 40 + } + } + } + ], + "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": "GLOBAL", + "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": "./global", + "start": 23, + "end": 33, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 33 + } + } + }, + { + "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": 34, + "end": 40, + "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": 41, + "end": 42, + "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": "cookieInputs", + "start": 43, + "end": 55, "loc": { "start": { - "line": 25, - "column": 0 + "line": 2, + "column": 9 }, "end": { - "line": 32, - "column": 3 + "line": 2, + "column": 21 } } }, { - "type": "CommentBlock", - "value": "*\n * Attempts to connect to the server. Run on 'start game' press.\n * - Manages connecting to main server vs. devserver\n * - Sets up socket listeners\n * - Loads textures\n * - Loads pixi\n ", - "start": 978, - "end": 1173, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 55, + "end": 56, "loc": { "start": { - "line": 35, - "column": 0 + "line": 2, + "column": 21 }, "end": { - "line": 41, - "column": 3 + "line": 2, + "column": 22 } } }, { - "type": "CommentLine", - "value": " Joins debug server if conditions are met", - "start": 1212, - "end": 1255, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "quitGame", + "start": 57, + "end": 65, "loc": { "start": { - "line": 43, - "column": 1 + "line": 2, + "column": 23 }, "end": { - "line": 43, - "column": 44 + "line": 2, + "column": 31 } } }, { - "type": "CommentLine", - "value": " DEVELOPMENT server - auto deploy from pixi branch", - "start": 1604, - "end": 1656, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 65, + "end": 66, "loc": { "start": { - "line": 49, - "column": 2 + "line": 2, + "column": 31 }, "end": { - "line": 49, - "column": 54 + "line": 2, + "column": 32 } } }, { - "type": "CommentLine", - "value": " Local server", - "start": 1960, - "end": 1975, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateLobby", + "start": 67, + "end": 78, "loc": { "start": { - "line": 57, - "column": 2 + "line": 2, + "column": 33 }, "end": { - "line": 57, - "column": 17 + "line": 2, + "column": 44 } } }, { - "type": "CommentLine", - "value": " Production server", - "start": 2172, - "end": 2192, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 78, + "end": 79, "loc": { "start": { - "line": 64, - "column": 2 + "line": 2, + "column": 44 }, "end": { - "line": 64, - "column": 22 + "line": 2, + "column": 45 } } }, { - "type": "CommentLine", - "value": " Init pixi", - "start": 2470, - "end": 2482, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateScores", + "start": 80, + "end": 92, "loc": { "start": { - "line": 74, - "column": 2 + "line": 2, + "column": 46 }, "end": { - "line": 74, - "column": 14 + "line": 2, + "column": 58 } } }, { - "type": "CommentBlock", - "value": "*\n * Run on disconnect to reset all server-based variables and connections\n ", - "start": 2562, - "end": 2642, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 92, + "end": 93, "loc": { "start": { - "line": 82, - "column": 0 + "line": 2, + "column": 58 }, "end": { - "line": 84, - "column": 3 + "line": 2, + "column": 59 } } }, { - "type": "CommentLine", - "value": " Wipe objects list", - "start": 2710, - "end": 2730, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hideElement", + "start": 94, + "end": 105, "loc": { "start": { - "line": 89, - "column": 1 + "line": 2, + "column": 60 }, "end": { - "line": 89, - "column": 21 + "line": 2, + "column": 71 } } }, { - "type": "CommentBlock", - "value": "*\n * First time setup when connection starts. Run on connect event to ensure that the socket is connected first.\n ", - "start": 2793, - "end": 2911, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 105, + "end": 106, "loc": { "start": { - "line": 95, - "column": 0 + "line": 2, + "column": 71 }, "end": { - "line": 97, - "column": 3 + "line": 2, + "column": 72 } } }, { - "type": "CommentLine", - "value": " Debug", - "start": 2939, - "end": 2947, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "displayWinner", + "start": 107, + "end": 120, "loc": { "start": { - "line": 99, - "column": 1 + "line": 2, + "column": 73 }, "end": { - "line": 99, - "column": 9 + "line": 2, + "column": 86 } } }, { - "type": "CommentLine", - "value": " Instantiate Chat System", - "start": 2982, - "end": 3008, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 120, + "end": 121, "loc": { "start": { - "line": 102, - "column": 1 + "line": 2, + "column": 86 }, "end": { - "line": 102, - "column": 27 + "line": 2, + "column": 87 } } }, { - "type": "CommentLine", - "value": " Setup listeners", - "start": 3208, - "end": 3226, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateAtomList", + "start": 122, + "end": 136, "loc": { "start": { - "line": 107, - "column": 1 + "line": 2, + "column": 88 }, "end": { - "line": 107, - "column": 19 + "line": 2, + "column": 102 } } }, { - "type": "CommentLine", - "value": " Emit join message,", - "start": 3307, - "end": 3328, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 137, + "end": 138, "loc": { "start": { - "line": 112, - "column": 1 + "line": 2, + "column": 103 }, "end": { - "line": 112, - "column": 22 + "line": 2, + "column": 104 } } }, { - "type": "CommentBlock", - "value": "*\n * Sets up socket object syncing.\n * Run in setupSocket().\n ", - "start": 3401, - "end": 3467, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 139, + "end": 143, "loc": { "start": { - "line": 116, - "column": 0 + "line": 2, + "column": 105 }, "end": { - "line": 119, - "column": 3 + "line": 2, + "column": 109 } } }, { - "type": "CommentLine", - "value": " Syncs all objects from server once a frame", - "start": 3510, - "end": 3555, + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./app", + "start": 144, + "end": 151, "loc": { "start": { - "line": 121, - "column": 1 + "line": 2, + "column": 110 }, "end": { - "line": 121, - "column": 46 + "line": 2, + "column": 117 } } }, { - "type": "CommentLine", - "value": " Already exists in database", - "start": 3818, - "end": 3847, + "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": 152, + "end": 158, "loc": { "start": { - "line": 129, - "column": 6 + "line": 3, + "column": 0 }, "end": { - "line": 129, - "column": 35 + "line": 3, + "column": 6 } } }, { - "type": "CommentLine", - "value": " Does not exist - need to clone to clientside", - "start": 4590, - "end": 4637, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ChatClient", + "start": 159, + "end": 169, "loc": { "start": { - "line": 148, - "column": 6 + "line": 3, + "column": 7 }, "end": { - "line": 148, - "column": 53 + "line": 3, + "column": 17 } } }, { - "type": "CommentLine", - "value": " else { //Tile drawing", - "start": 5019, - "end": 5043, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 170, + "end": 174, "loc": { "start": { - "line": 165, - "column": 3 + "line": 3, + "column": 18 }, "end": { - "line": 165, - "column": 27 + "line": 3, + "column": 22 } } }, { - "type": "CommentLine", - "value": " for (let tile of data.tiles) {", - "start": 5047, - "end": 5084, + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./lib/chat-client", + "start": 175, + "end": 194, "loc": { "start": { - "line": 166, - "column": 3 + "line": 3, + "column": 23 }, "end": { - "line": 166, - "column": 40 + "line": 3, + "column": 42 } } }, { - "type": "CommentLine", - "value": " let tileName = 'tile_' + tile.col + '_' + tile.row;", - "start": 5089, - "end": 5151, + "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": 195, + "end": 201, "loc": { "start": { - "line": 168, - "column": 3 + "line": 4, + "column": 0 }, "end": { - "line": 168, - "column": 65 + "line": 4, + "column": 6 } } }, { - "type": "CommentLine", - "value": " if (objects.tiles[tileName] === undefined) {", - "start": 5155, - "end": 5210, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 202, + "end": 203, "loc": { "start": { - "line": 169, - "column": 3 + "line": 4, + "column": 7 }, "end": { - "line": 169, - "column": 58 + "line": 4, + "column": 8 } } }, { - "type": "CommentLine", - "value": " // console.log(tileName);", - "start": 5214, - "end": 5254, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "loadTextures", + "start": 204, + "end": 216, "loc": { "start": { - "line": 170, - "column": 3 + "line": 4, + "column": 9 }, "end": { - "line": 170, - "column": 43 + "line": 4, + "column": 21 } } }, { - "type": "CommentLine", - "value": " objects.tiles[tileName] = new MapTile(MAP_LAYOUT[tile.row][tile.col], tile.col, tile.row);", - "start": 5258, - "end": 5363, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 216, + "end": 217, "loc": { "start": { - "line": 171, - "column": 3 + "line": 4, + "column": 21 }, "end": { - "line": 171, - "column": 108 + "line": 4, + "column": 22 } } }, { - "type": "CommentLine", - "value": " }", - "start": 5367, - "end": 5379, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "app", + "start": 218, + "end": 221, "loc": { "start": { - "line": 172, - "column": 3 + "line": 4, + "column": 23 }, "end": { - "line": 172, - "column": 15 + "line": 4, + "column": 26 } } }, { - "type": "CommentLine", - "value": " }", - "start": 5384, - "end": 5392, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 221, + "end": 222, "loc": { "start": { - "line": 174, - "column": 3 + "line": 4, + "column": 26 }, "end": { - "line": 174, - "column": 11 + "line": 4, + "column": 27 } } }, { - "type": "CommentLine", - "value": " }", - "start": 5396, - "end": 5400, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "createPlayer", + "start": 223, + "end": 235, "loc": { "start": { - "line": 175, - "column": 3 + "line": 4, + "column": 28 }, "end": { - "line": 175, - "column": 7 + "line": 4, + "column": 40 } } }, { - "type": "CommentLine", - "value": " Sync objects when they are deleted or move out of view. ONLY call after objectSync to avoid issue", - "start": 5411, - "end": 5511, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 235, + "end": 236, "loc": { "start": { - "line": 179, - "column": 1 + "line": 4, + "column": 40 }, "end": { - "line": 179, - "column": 101 + "line": 4, + "column": 41 } } }, { - "type": "CommentLine", - "value": " removeObject(data);", - "start": 6389, - "end": 6411, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isSetup", + "start": 237, + "end": 244, "loc": { "start": { - "line": 206, - "column": 4 + "line": 4, + "column": 42 }, "end": { - "line": 206, - "column": 26 + "line": 4, + "column": 49 } } }, { - "type": "CommentLine", - "value": " return 1", - "start": 6432, - "end": 6443, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 244, + "end": 245, "loc": { "start": { - "line": 208, - "column": 3 + "line": 4, + "column": 49 }, "end": { - "line": 208, - "column": 14 + "line": 4, + "column": 50 } } }, { - "type": "CommentLine", - "value": " console.log(objects[data.type][data.id].destroyed);", - "start": 6460, - "end": 6514, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "startGame", + "start": 246, + "end": 255, "loc": { "start": { - "line": 211, - "column": 3 + "line": 4, + "column": 51 }, "end": { - "line": 211, - "column": 57 + "line": 4, + "column": 60 } } }, { - "type": "CommentLine", - "value": " An object was removed", - "start": 6517, - "end": 6541, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 255, + "end": 256, "loc": { "start": { - "line": 212, - "column": 2 + "line": 4, + "column": 60 }, "end": { - "line": 212, - "column": 26 + "line": 4, + "column": 61 } } }, { - "type": "CommentLine", - "value": " Only remove if not already", - "start": 6591, - "end": 6620, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setIngame", + "start": 257, + "end": 266, "loc": { "start": { - "line": 213, - "column": 49 + "line": 4, + "column": 62 }, "end": { - "line": 213, - "column": 78 + "line": 4, + "column": 71 } } }, { - "type": "CommentLine", - "value": " Sanity check", - "start": 6755, - "end": 6770, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 266, + "end": 267, "loc": { "start": { - "line": 217, - "column": 96 + "line": 4, + "column": 71 }, "end": { - "line": 217, - "column": 111 + "line": 4, + "column": 72 } } }, { - "type": "CommentLine", - "value": " Must keep checking if the object was not created at time of destruction.", - "start": 6796, - "end": 6871, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "spritesheet", + "start": 268, + "end": 279, "loc": { "start": { - "line": 222, - "column": 2 + "line": 4, + "column": 73 }, "end": { - "line": 222, - "column": 77 + "line": 4, + "column": 84 } } }, { - "type": "CommentLine", - "value": " One example of this needing to be run is when a player instantly collects an atom on spawn.", - "start": 6874, - "end": 6968, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 280, + "end": 281, "loc": { "start": { - "line": 223, - "column": 2 + "line": 4, + "column": 85 }, "end": { - "line": 223, - "column": 96 + "line": 4, + "column": 86 } } }, { - "type": "CommentLine", - "value": " if (objects[data.type][data.id] === undefined) {", - "start": 6971, - "end": 7022, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 282, + "end": 286, "loc": { "start": { - "line": 224, - "column": 2 + "line": 4, + "column": 87 }, "end": { - "line": 224, - "column": 53 + "line": 4, + "column": 91 } } }, { - "type": "CommentLine", - "value": " \tlet thisInterval = setTimeout(() => {", - "start": 7025, - "end": 7066, + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./pixigame", + "start": 287, + "end": 299, "loc": { "start": { - "line": 225, - "column": 2 + "line": 4, + "column": 92 }, "end": { - "line": 225, - "column": 43 + "line": 4, + "column": 104 } } }, { - "type": "CommentLine", - "value": " \t\tif (objects[data.type][data.id].destroyed) {", - "start": 7069, - "end": 7118, + "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": 300, + "end": 306, "loc": { "start": { - "line": 226, - "column": 2 + "line": 5, + "column": 0 }, "end": { - "line": 226, - "column": 51 + "line": 5, + "column": 6 } } }, { - "type": "CommentLine", - "value": " \t\t\tclearInterval(thisInterval)", - "start": 7121, - "end": 7154, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 307, + "end": 308, "loc": { "start": { - "line": 227, - "column": 2 + "line": 5, + "column": 7 }, "end": { - "line": 227, - "column": 35 + "line": 5, + "column": 8 } } }, { - "type": "CommentLine", - "value": " \t\t}", - "start": 7157, - "end": 7163, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "createRenderAtom", + "start": 309, + "end": 325, "loc": { "start": { - "line": 228, - "column": 2 + "line": 5, + "column": 9 }, "end": { - "line": 228, - "column": 8 + "line": 5, + "column": 25 } } }, { - "type": "CommentLine", - "value": " \t\telse {", - "start": 7166, - "end": 7177, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 325, + "end": 326, "loc": { "start": { - "line": 229, - "column": 2 + "line": 5, + "column": 25 }, "end": { - "line": 229, - "column": 13 + "line": 5, + "column": 26 } } }, { - "type": "CommentLine", - "value": " \t\t\tremoveObject(data)", - "start": 7180, - "end": 7204, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "createRenderCompound", + "start": 327, + "end": 347, "loc": { "start": { - "line": 230, - "column": 2 + "line": 5, + "column": 27 }, "end": { - "line": 230, - "column": 26 + "line": 5, + "column": 47 } } }, { - "type": "CommentLine", - "value": " \t\t}", - "start": 7207, - "end": 7213, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 348, + "end": 349, "loc": { "start": { - "line": 231, - "column": 2 + "line": 5, + "column": 48 }, "end": { - "line": 231, - "column": 8 + "line": 5, + "column": 49 } } }, { - "type": "CommentLine", - "value": " \t}, 200)", - "start": 7216, - "end": 7227, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 350, + "end": 354, "loc": { "start": { - "line": 232, - "column": 2 + "line": 5, + "column": 50 }, "end": { - "line": 232, - "column": 13 + "line": 5, + "column": 54 } } }, { - "type": "CommentLine", - "value": " }", - "start": 7230, - "end": 7234, + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./obj/create", + "start": 355, + "end": 369, "loc": { "start": { - "line": 233, - "column": 2 + "line": 5, + "column": 55 }, "end": { - "line": 233, - "column": 6 + "line": 5, + "column": 69 } } }, { "type": "CommentBlock", - "value": "*\n * Sets up socket connection listeners.\n * Run in setupSocket().\n ", - "start": 7242, - "end": 7314, + "value": "*\n * Socket.js contains all of the clientside networking interface.\n * It contains all variables which are synced between client and server.\n ", + "start": 371, + "end": 517, "loc": { "start": { - "line": 237, + "line": 7, "column": 0 }, "end": { - "line": 240, + "line": 10, "column": 3 } } }, { "type": "CommentLine", - "value": " On Connection Failure", - "start": 7352, - "end": 7376, - "loc": { - "start": { - "line": 242, - "column": 1 - }, - "end": { - "line": 242, - "column": 25 - } - } - }, - { - "type": "CommentLine", - "value": " Errors on join", - "start": 8237, - "end": 8254, + "value": " Socket.io instance", + "start": 519, + "end": 540, "loc": { "start": { - "line": 274, - "column": 1 + "line": 12, + "column": 0 }, "end": { - "line": 274, - "column": 18 + "line": 12, + "column": 21 } } }, { - "type": "CommentBlock", - "value": "*\n * Sets up socket information transfer listeners.\n * Run in setupSocket().\n * @param {*} chat The chat client instance to be used for notifications\n ", - "start": 8353, - "end": 8508, + "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": 541, + "end": 547, "loc": { "start": { - "line": 281, + "line": 13, "column": 0 }, "end": { - "line": 285, - "column": 3 + "line": 13, + "column": 6 } } }, { - "type": "CommentLine", - "value": " Chat system receiver", - "start": 8544, - "end": 8567, + "type": { + "label": "var", + "keyword": "var", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "var", + "start": 548, + "end": 551, "loc": { "start": { - "line": 287, - "column": 1 + "line": 13, + "column": 7 }, "end": { - "line": 287, - "column": 24 + "line": 13, + "column": 10 } } }, { - "type": "CommentLine", - "value": " Receive information about room players", - "start": 8833, - "end": 8874, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "socket", + "start": 552, + "end": 558, "loc": { "start": { - "line": 300, - "column": 1 + "line": 13, + "column": 11 }, "end": { - "line": 300, - "column": 42 + "line": 13, + "column": 17 } } }, { - "type": "CommentLine", - "value": " Update lobby info. Pass to app.js", - "start": 8912, - "end": 8948, + "type": "CommentBlock", + "value": " Object containing all synced objects. Contains nested objects, which correspond to different types\n * (for example, objects[atoms], objects[players], objects[compounds])\n ", + "start": 560, + "end": 736, "loc": { "start": { - "line": 302, - "column": 2 + "line": 15, + "column": 0 }, "end": { - "line": 302, - "column": 38 + "line": 17, + "column": 3 } } }, { - "type": "CommentLine", - "value": " if(GLOBAL.DEBUG) {", - "start": 8972, - "end": 8993, + "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": 737, + "end": 743, "loc": { "start": { - "line": 305, - "column": 2 + "line": 18, + "column": 0 }, "end": { - "line": 305, - "column": 23 + "line": 18, + "column": 6 } } }, { - "type": "CommentLine", - "value": " console.log(\"rcvd: \",data);", - "start": 8996, - "end": 9030, + "type": { + "label": "var", + "keyword": "var", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "var", + "start": 744, + "end": 747, "loc": { "start": { - "line": 306, - "column": 2 + "line": 18, + "column": 7 }, "end": { - "line": 306, - "column": 36 + "line": 18, + "column": 10 } } }, { - "type": "CommentLine", - "value": " }", - "start": 9033, - "end": 9037, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "objects", + "start": 748, + "end": 755, "loc": { "start": { - "line": 307, - "column": 2 + "line": 18, + "column": 11 }, "end": { - "line": 307, - "column": 6 + "line": 18, + "column": 18 } } }, { - "type": "CommentLine", - "value": " Respawn", - "start": 9256, - "end": 9266, + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 756, + "end": 757, "loc": { "start": { - "line": 319, - "column": 1 + "line": 18, + "column": 19 }, "end": { - "line": 319, - "column": 11 + "line": 18, + "column": 20 } } }, { - "type": "CommentLine", - "value": " Another player died", - "start": 9540, - "end": 9562, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 758, + "end": 759, "loc": { "start": { - "line": 328, - "column": 1 + "line": 18, + "column": 21 }, "end": { - "line": 328, - "column": 23 + "line": 18, + "column": 22 } } }, { - "type": "CommentLine", - "value": " Append to chat TODO", - "start": 9619, - "end": 9641, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "players", + "start": 761, + "end": 768, "loc": { "start": { - "line": 330, - "column": 2 + "line": 19, + "column": 1 }, "end": { - "line": 330, - "column": 24 + "line": 19, + "column": 8 } } }, { - "type": "CommentLine", - "value": " Update timer", - "start": 9648, - "end": 9663, + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 768, + "end": 769, "loc": { "start": { - "line": 333, - "column": 1 + "line": 19, + "column": 8 }, "end": { - "line": 333, - "column": 16 + "line": 19, + "column": 9 } } }, { - "type": "CommentLine", - "value": " Update scores", - "start": 9775, - "end": 9791, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 770, + "end": 771, "loc": { "start": { - "line": 338, - "column": 1 + "line": 19, + "column": 10 }, "end": { - "line": 338, - "column": 17 + "line": 19, + "column": 11 } } }, { - "type": "CommentLine", - "value": " A player has won", - "start": 9892, - "end": 9911, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 771, + "end": 772, "loc": { "start": { - "line": 343, - "column": 1 + "line": 19, + "column": 11 }, "end": { - "line": 343, - "column": 20 + "line": 19, + "column": 12 } } }, { - "type": "CommentLine", - "value": " Disable keyboard controls and rendering", - "start": 9974, - "end": 10016, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 772, + "end": 773, "loc": { "start": { - "line": 345, - "column": 19 + "line": 19, + "column": 12 }, "end": { - "line": 345, - "column": 61 + "line": 19, + "column": 13 } } }, { - "type": "CommentLine", - "value": " Team colors", - "start": 10045, - "end": 10059, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "atoms", + "start": 775, + "end": 780, "loc": { "start": { - "line": 349, + "line": 20, "column": 1 }, "end": { - "line": 349, - "column": 15 + "line": 20, + "column": 6 } } }, { - "type": "CommentBlock", - "value": "\n ********************\n * Helper Functions *\n ********************\n ", - "start": 10160, - "end": 10232, + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 780, + "end": 781, "loc": { "start": { - "line": 356, - "column": 0 + "line": 20, + "column": 6 }, "end": { - "line": 360, - "column": 3 + "line": 20, + "column": 7 } } }, { - "type": "CommentLine", - "value": " Helper function for serverSendObjectRemoval", - "start": 10234, - "end": 10280, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 782, + "end": 783, "loc": { "start": { - "line": 362, - "column": 0 + "line": 20, + "column": 8 }, "end": { - "line": 362, - "column": 46 + "line": 20, + "column": 9 } } }, { - "type": "CommentLine", - "value": " delete objects[data.type][data.id];", - "start": 10481, - "end": 10519, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 783, + "end": 784, "loc": { "start": { - "line": 367, - "column": 2 + "line": 20, + "column": 9 }, "end": { - "line": 367, - "column": 40 + "line": 20, + "column": 10 } } - } - ], - "tokens": [ + }, { "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -25532,24 +28526,23 @@ "binop": null, "updateContext": null }, - "value": "import", - "start": 0, - "end": 6, + "start": 784, + "end": 785, "loc": { "start": { - "line": 1, - "column": 0 + "line": 20, + "column": 10 }, "end": { - "line": 1, - "column": 6 + "line": 20, + "column": 11 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -25558,50 +28551,51 @@ "postfix": false, "binop": null }, - "start": 7, - "end": 8, + "value": "compounds", + "start": 787, + "end": 796, "loc": { "start": { - "line": 1, - "column": 7 + "line": 21, + "column": 1 }, "end": { - "line": 1, - "column": 8 + "line": 21, + "column": 10 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ":", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "GLOBAL", - "start": 9, - "end": 15, + "start": 796, + "end": 797, "loc": { "start": { - "line": 1, - "column": 9 + "line": 21, + "column": 10 }, "end": { - "line": 1, - "column": 15 + "line": 21, + "column": 11 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -25609,24 +28603,24 @@ "postfix": false, "binop": null }, - "start": 16, - "end": 17, + "start": 798, + "end": 799, "loc": { "start": { - "line": 1, - "column": 16 + "line": 21, + "column": 12 }, "end": { - "line": 1, - "column": 17 + "line": 21, + "column": 13 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -25634,25 +28628,24 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 18, - "end": 22, + "start": 799, + "end": 800, "loc": { "start": { - "line": 1, - "column": 18 + "line": 21, + "column": 13 }, "end": { - "line": 1, - "column": 22 + "line": 21, + "column": 14 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -25661,24 +28654,22 @@ "binop": null, "updateContext": null }, - "value": "./global", - "start": 23, - "end": 33, + "start": 800, + "end": 801, "loc": { "start": { - "line": 1, - "column": 23 + "line": 21, + "column": 14 }, "end": { - "line": 1, - "column": 33 + "line": 21, + "column": 15 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -25686,52 +28677,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 34, - "end": 40, + "value": "tiles", + "start": 803, + "end": 808, "loc": { "start": { - "line": 2, - "column": 0 + "line": 22, + "column": 1 }, "end": { - "line": 2, + "line": 22, "column": 6 } } }, { "type": { - "label": "{", + "label": ":", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 41, - "end": 42, + "start": 808, + "end": 809, "loc": { "start": { - "line": 2, - "column": 7 + "line": 22, + "column": 6 }, "end": { - "line": 2, - "column": 8 + "line": 22, + "column": 7 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -25740,51 +28731,49 @@ "postfix": false, "binop": null }, - "value": "cookieInputs", - "start": 43, - "end": 55, + "start": 810, + "end": 811, "loc": { "start": { - "line": 2, - "column": 9 + "line": 22, + "column": 8 }, "end": { - "line": 2, - "column": 21 + "line": 22, + "column": 9 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 55, - "end": 56, + "start": 811, + "end": 812, "loc": { "start": { - "line": 2, - "column": 21 + "line": 22, + "column": 9 }, "end": { - "line": 2, - "column": 22 + "line": 22, + "column": 10 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -25792,76 +28781,68 @@ "postfix": false, "binop": null }, - "value": "quitGame", - "start": 57, - "end": 65, + "start": 813, + "end": 814, "loc": { "start": { - "line": 2, - "column": 23 + "line": 23, + "column": 0 }, "end": { - "line": 2, - "column": 31 + "line": 23, + "column": 1 } } }, { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 65, - "end": 66, + "type": "CommentBlock", + "value": "*\n * Team colors object. Number corresponds to index at GLOBAL.TEAM_COLORS.\n * Format: {\n * \tteamname1: 0,\n * \tteamname: color,\n * \t...\n * }\n ", + "start": 816, + "end": 962, "loc": { "start": { - "line": 2, - "column": 31 + "line": 25, + "column": 0 }, "end": { - "line": 2, - "column": 32 + "line": 32, + "column": 3 } } }, { "type": { - "label": "name", + "label": "export", + "keyword": "export", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "updateLobby", - "start": 67, - "end": 78, + "value": "export", + "start": 963, + "end": 969, "loc": { "start": { - "line": 2, - "column": 33 + "line": 33, + "column": 0 }, "end": { - "line": 2, - "column": 44 + "line": 33, + "column": 6 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "var", + "keyword": "var", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -25871,16 +28852,17 @@ "binop": null, "updateContext": null }, - "start": 78, - "end": 79, + "value": "var", + "start": 970, + "end": 973, "loc": { "start": { - "line": 2, - "column": 44 + "line": 33, + "column": 7 }, "end": { - "line": 2, - "column": 45 + "line": 33, + "column": 10 } } }, @@ -25896,50 +28878,51 @@ "postfix": false, "binop": null }, - "value": "updateScores", - "start": 80, - "end": 92, + "value": "teamColors", + "start": 974, + "end": 984, "loc": { "start": { - "line": 2, - "column": 46 + "line": 33, + "column": 11 }, "end": { - "line": 2, - "column": 58 + "line": 33, + "column": 21 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 92, - "end": 93, + "value": "=", + "start": 985, + "end": 986, "loc": { "start": { - "line": 2, - "column": 58 + "line": 33, + "column": 22 }, "end": { - "line": 2, - "column": 59 + "line": 33, + "column": 23 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -25948,76 +28931,65 @@ "postfix": false, "binop": null }, - "value": "hideElement", - "start": 94, - "end": 105, + "start": 987, + "end": 988, "loc": { "start": { - "line": 2, - "column": 60 + "line": 33, + "column": 24 }, "end": { - "line": 2, - "column": 71 + "line": 33, + "column": 25 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 105, - "end": 106, + "start": 988, + "end": 989, "loc": { "start": { - "line": 2, - "column": 71 + "line": 33, + "column": 25 }, "end": { - "line": 2, - "column": 72 + "line": 33, + "column": 26 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "displayWinner", - "start": 107, - "end": 120, + "type": "CommentBlock", + "value": "*\n * Attempts to connect to the server. Run on 'start game' press.\n * - Manages connecting to main server vs. devserver\n * - Sets up socket listeners\n * - Loads textures\n * - Loads pixi\n ", + "start": 991, + "end": 1186, "loc": { "start": { - "line": 2, - "column": 73 + "line": 35, + "column": 0 }, "end": { - "line": 2, - "column": 86 + "line": 41, + "column": 3 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "export", + "keyword": "export", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -26027,22 +28999,24 @@ "binop": null, "updateContext": null }, - "start": 120, - "end": 121, + "value": "export", + "start": 1187, + "end": 1193, "loc": { "start": { - "line": 2, - "column": 86 + "line": 42, + "column": 0 }, "end": { - "line": 2, - "column": 87 + "line": 42, + "column": 6 } } }, { "type": { - "label": "name", + "label": "function", + "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -26052,25 +29026,25 @@ "postfix": false, "binop": null }, - "value": "updateAtomList", - "start": 122, - "end": 136, + "value": "function", + "start": 1194, + "end": 1202, "loc": { "start": { - "line": 2, - "column": 88 + "line": 42, + "column": 7 }, "end": { - "line": 2, - "column": 102 + "line": 42, + "column": 15 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26078,23 +29052,24 @@ "postfix": false, "binop": null }, - "start": 137, - "end": 138, + "value": "beginConnection", + "start": 1203, + "end": 1218, "loc": { "start": { - "line": 2, - "column": 103 + "line": 42, + "column": 16 }, "end": { - "line": 2, - "column": 104 + "line": 42, + "column": 31 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -26103,98 +29078,110 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 139, - "end": 143, + "start": 1219, + "end": 1220, "loc": { "start": { - "line": 2, - "column": 105 + "line": 42, + "column": 32 }, "end": { - "line": 2, - "column": 109 + "line": 42, + "column": 33 } } }, { "type": { - "label": "string", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "./app", - "start": 144, - "end": 151, + "start": 1220, + "end": 1221, "loc": { "start": { - "line": 2, - "column": 110 + "line": 42, + "column": 33 }, "end": { - "line": 2, - "column": 117 + "line": 42, + "column": 34 } } }, { "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 152, - "end": 158, + "start": 1222, + "end": 1223, "loc": { "start": { - "line": 3, - "column": 0 + "line": 42, + "column": 35 }, "end": { - "line": 3, - "column": 6 + "line": 42, + "column": 36 + } + } + }, + { + "type": "CommentLine", + "value": " Joins debug server if conditions are met", + "start": 1225, + "end": 1268, + "loc": { + "start": { + "line": 43, + "column": 1 + }, + "end": { + "line": 43, + "column": 44 } } }, { "type": { - "label": "name", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "ChatClient", - "start": 159, - "end": 169, + "value": "let", + "start": 1270, + "end": 1273, "loc": { "start": { - "line": 3, - "column": 7 + "line": 44, + "column": 1 }, "end": { - "line": 3, - "column": 17 + "line": 44, + "column": 4 } } }, @@ -26210,79 +29197,76 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 170, - "end": 174, + "value": "room", + "start": 1274, + "end": 1278, "loc": { "start": { - "line": 3, - "column": 18 + "line": 44, + "column": 5 }, "end": { - "line": 3, - "column": 22 + "line": 44, + "column": 9 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "./lib/chat-client", - "start": 175, - "end": 194, + "value": "=", + "start": 1279, + "end": 1280, "loc": { "start": { - "line": 3, - "column": 23 + "line": 44, + "column": 10 }, "end": { - "line": 3, - "column": 42 + "line": 44, + "column": 11 } } }, { "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 195, - "end": 201, + "start": 1281, + "end": 1282, "loc": { "start": { - "line": 4, - "column": 0 + "line": 44, + "column": 12 }, "end": { - "line": 4, - "column": 6 + "line": 44, + "column": 13 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -26291,50 +29275,51 @@ "postfix": false, "binop": null }, - "start": 202, - "end": 203, + "value": "cookieInputs", + "start": 1282, + "end": 1294, "loc": { "start": { - "line": 4, - "column": 7 + "line": 44, + "column": 13 }, "end": { - "line": 4, - "column": 8 + "line": 44, + "column": 25 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "loadTextures", - "start": 204, - "end": 216, + "start": 1294, + "end": 1295, "loc": { "start": { - "line": 4, - "column": 9 + "line": 44, + "column": 25 }, "end": { - "line": 4, - "column": 21 + "line": 44, + "column": 26 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "num", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26343,49 +29328,50 @@ "binop": null, "updateContext": null }, - "start": 216, - "end": 217, + "value": 7, + "start": 1295, + "end": 1296, "loc": { "start": { - "line": 4, - "column": 21 + "line": 44, + "column": 26 }, "end": { - "line": 4, - "column": 22 + "line": 44, + "column": 27 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "app", - "start": 218, - "end": 221, + "start": 1296, + "end": 1297, "loc": { "start": { - "line": 4, - "column": 23 + "line": 44, + "column": 27 }, "end": { - "line": 4, - "column": 26 + "line": 44, + "column": 28 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -26395,16 +29381,16 @@ "binop": null, "updateContext": null }, - "start": 221, - "end": 222, + "start": 1297, + "end": 1298, "loc": { "start": { - "line": 4, - "column": 26 + "line": 44, + "column": 28 }, "end": { - "line": 4, - "column": 27 + "line": 44, + "column": 29 } } }, @@ -26420,23 +29406,23 @@ "postfix": false, "binop": null }, - "value": "createPlayer", - "start": 223, - "end": 235, + "value": "value", + "start": 1298, + "end": 1303, "loc": { "start": { - "line": 4, - "column": 28 + "line": 44, + "column": 29 }, "end": { - "line": 4, - "column": 40 + "line": 44, + "column": 34 } } }, { "type": { - "label": ",", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -26444,25 +29430,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 235, - "end": 236, + "value": "===", + "start": 1304, + "end": 1307, "loc": { "start": { - "line": 4, - "column": 40 + "line": 44, + "column": 35 }, "end": { - "line": 4, - "column": 41 + "line": 44, + "column": 38 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -26470,25 +29457,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "isSetup", - "start": 237, - "end": 244, + "value": "private", + "start": 1308, + "end": 1317, "loc": { "start": { - "line": 4, - "column": 42 + "line": 44, + "column": 39 }, "end": { - "line": 4, - "column": 49 + "line": 44, + "column": 48 } } }, { "type": { - "label": ",", + "label": "?", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -26499,15 +29487,15 @@ "binop": null, "updateContext": null }, - "start": 244, - "end": 245, + "start": 1318, + "end": 1319, "loc": { "start": { - "line": 4, + "line": 44, "column": 49 }, "end": { - "line": 4, + "line": 44, "column": 50 } } @@ -26524,25 +29512,25 @@ "postfix": false, "binop": null }, - "value": "startGame", - "start": 246, - "end": 255, + "value": "cookieInputs", + "start": 1320, + "end": 1332, "loc": { "start": { - "line": 4, + "line": 44, "column": 51 }, "end": { - "line": 4, - "column": 60 + "line": 44, + "column": 63 } } }, { "type": { - "label": ",", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26551,22 +29539,22 @@ "binop": null, "updateContext": null }, - "start": 255, - "end": 256, + "start": 1332, + "end": 1333, "loc": { "start": { - "line": 4, - "column": 60 + "line": 44, + "column": 63 }, "end": { - "line": 4, - "column": 61 + "line": 44, + "column": 64 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -26574,25 +29562,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setIngame", - "start": 257, - "end": 266, + "value": 1, + "start": 1333, + "end": 1334, "loc": { "start": { - "line": 4, - "column": 62 + "line": 44, + "column": 64 }, "end": { - "line": 4, - "column": 71 + "line": 44, + "column": 65 } } }, { "type": { - "label": "}", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -26600,50 +29589,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 267, - "end": 268, + "start": 1334, + "end": 1335, "loc": { "start": { - "line": 4, - "column": 72 + "line": 44, + "column": 65 }, "end": { - "line": 4, - "column": 73 + "line": 44, + "column": 66 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "from", - "start": 269, - "end": 273, + "start": 1335, + "end": 1336, "loc": { "start": { - "line": 4, - "column": 74 + "line": 44, + "column": 66 }, "end": { - "line": 4, - "column": 78 + "line": 44, + "column": 67 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -26651,29 +29641,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "./pixigame", - "start": 274, - "end": 286, + "value": "value", + "start": 1336, + "end": 1341, "loc": { "start": { - "line": 4, - "column": 79 + "line": 44, + "column": 67 }, "end": { - "line": 4, - "column": 91 + "line": 44, + "column": 72 } } }, { "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, + "label": ":", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26682,24 +29670,23 @@ "binop": null, "updateContext": null }, - "value": "import", - "start": 287, - "end": 293, + "start": 1342, + "end": 1343, "loc": { "start": { - "line": 5, - "column": 0 + "line": 44, + "column": 73 }, "end": { - "line": 5, - "column": 6 + "line": 44, + "column": 74 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -26708,76 +29695,77 @@ "postfix": false, "binop": null }, - "start": 294, - "end": 295, + "value": "GLOBAL", + "start": 1344, + "end": 1350, "loc": { "start": { - "line": 5, - "column": 7 + "line": 44, + "column": 75 }, "end": { - "line": 5, - "column": 8 + "line": 44, + "column": 81 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "createRenderAtom", - "start": 296, - "end": 312, + "start": 1350, + "end": 1351, "loc": { "start": { - "line": 5, - "column": 9 + "line": 44, + "column": 81 }, "end": { - "line": 5, - "column": 25 + "line": 44, + "column": 82 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 312, - "end": 313, + "value": "NO_ROOM_IDENTIFIER", + "start": 1351, + "end": 1369, "loc": { "start": { - "line": 5, - "column": 25 + "line": 44, + "column": 82 }, "end": { - "line": 5, - "column": 26 + "line": 44, + "column": 100 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26785,23 +29773,23 @@ "postfix": false, "binop": null }, - "value": "createRenderCompound", - "start": 314, - "end": 334, + "start": 1369, + "end": 1370, "loc": { "start": { - "line": 5, - "column": 27 + "line": 44, + "column": 100 }, "end": { - "line": 5, - "column": 47 + "line": 44, + "column": 101 } } }, { "type": { - "label": "}", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -26809,18 +29797,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 335, - "end": 336, + "value": "let", + "start": 1372, + "end": 1375, "loc": { "start": { - "line": 5, - "column": 48 + "line": 45, + "column": 1 }, "end": { - "line": 5, - "column": 49 + "line": 45, + "column": 4 } } }, @@ -26836,111 +29826,101 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 337, - "end": 341, + "value": "teamInput", + "start": 1376, + "end": 1385, "loc": { "start": { - "line": 5, - "column": 50 + "line": 45, + "column": 5 }, "end": { - "line": 5, - "column": 54 + "line": 45, + "column": 14 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "./obj/create", - "start": 342, - "end": 356, - "loc": { - "start": { - "line": 5, - "column": 55 - }, - "end": { - "line": 5, - "column": 69 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Socket.js contains all of the clientside networking interface.\n * It contains all variables which are synced between client and server.\n ", - "start": 358, - "end": 504, + "value": "=", + "start": 1386, + "end": 1387, "loc": { "start": { - "line": 7, - "column": 0 + "line": 45, + "column": 15 }, "end": { - "line": 10, - "column": 3 + "line": 45, + "column": 16 } } }, { - "type": "CommentLine", - "value": " Socket.io instance", - "start": 506, - "end": 527, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1388, + "end": 1389, "loc": { "start": { - "line": 12, - "column": 0 + "line": 45, + "column": 17 }, "end": { - "line": 12, - "column": 21 + "line": 45, + "column": 18 } } }, { "type": { - "label": "export", - "keyword": "export", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "export", - "start": 528, - "end": 534, + "value": "document", + "start": 1389, + "end": 1397, "loc": { "start": { - "line": 13, - "column": 0 + "line": 45, + "column": 18 }, "end": { - "line": 13, - "column": 6 + "line": 45, + "column": 26 } } }, { "type": { - "label": "var", - "keyword": "var", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -26951,17 +29931,16 @@ "binop": null, "updateContext": null }, - "value": "var", - "start": 535, - "end": 538, + "start": 1397, + "end": 1398, "loc": { "start": { - "line": 13, - "column": 7 + "line": 45, + "column": 26 }, "end": { - "line": 13, - "column": 10 + "line": 45, + "column": 27 } } }, @@ -26977,42 +29956,50 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 539, - "end": 545, + "value": "querySelector", + "start": 1398, + "end": 1411, "loc": { "start": { - "line": 13, - "column": 11 + "line": 45, + "column": 27 }, "end": { - "line": 13, - "column": 17 + "line": 45, + "column": 40 } } }, { - "type": "CommentBlock", - "value": " Object containing all synced objects. Contains nested objects, which correspond to different types\n * (for example, objects[atoms], objects[players], objects[compounds])\n ", - "start": 547, - "end": 723, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1411, + "end": 1412, "loc": { "start": { - "line": 15, - "column": 0 + "line": 45, + "column": 40 }, "end": { - "line": 17, - "column": 3 + "line": 45, + "column": 41 } } }, { "type": { - "label": "export", - "keyword": "export", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -27021,24 +30008,23 @@ "binop": null, "updateContext": null }, - "value": "export", - "start": 724, - "end": 730, + "value": "input[name=\"queue-type\"]:checked", + "start": 1412, + "end": 1446, "loc": { "start": { - "line": 18, - "column": 0 + "line": 45, + "column": 41 }, "end": { - "line": 18, - "column": 6 + "line": 45, + "column": 75 } } }, { "type": { - "label": "var", - "keyword": "var", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27046,104 +30032,103 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "var", - "start": 731, - "end": 734, + "start": 1446, + "end": 1447, "loc": { "start": { - "line": 18, - "column": 7 + "line": 45, + "column": 75 }, "end": { - "line": 18, - "column": 10 + "line": 45, + "column": 76 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "objects", - "start": 735, - "end": 742, + "start": 1447, + "end": 1448, "loc": { "start": { - "line": 18, - "column": 11 + "line": 45, + "column": 76 }, "end": { - "line": 18, - "column": 18 + "line": 45, + "column": 77 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 743, - "end": 744, + "value": "id", + "start": 1448, + "end": 1450, "loc": { "start": { - "line": 18, - "column": 19 + "line": 45, + "column": 77 }, "end": { - "line": 18, - "column": 20 + "line": 45, + "column": 79 } } }, { "type": { - "label": "{", + "label": "==/!=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "start": 745, - "end": 746, + "value": "===", + "start": 1451, + "end": 1454, "loc": { "start": { - "line": 18, - "column": 21 + "line": 45, + "column": 80 }, "end": { - "line": 18, - "column": 22 + "line": 45, + "column": 83 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -27151,78 +30136,79 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "players", - "start": 748, - "end": 755, + "value": "team-option", + "start": 1455, + "end": 1468, "loc": { "start": { - "line": 19, - "column": 1 + "line": 45, + "column": 84 }, "end": { - "line": 19, - "column": 8 + "line": 45, + "column": 97 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 755, - "end": 756, + "start": 1468, + "end": 1469, "loc": { "start": { - "line": 19, - "column": 8 + "line": 45, + "column": 97 }, "end": { - "line": 19, - "column": 9 + "line": 45, + "column": 98 } } }, { "type": { - "label": "{", + "label": "?", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 757, - "end": 758, + "start": 1470, + "end": 1471, "loc": { "start": { - "line": 19, - "column": 10 + "line": 45, + "column": 99 }, "end": { - "line": 19, - "column": 11 + "line": 45, + "column": 100 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -27230,24 +30216,25 @@ "postfix": false, "binop": null }, - "start": 758, - "end": 759, + "value": "cookieInputs", + "start": 1472, + "end": 1484, "loc": { "start": { - "line": 19, - "column": 11 + "line": 45, + "column": 101 }, "end": { - "line": 19, - "column": 12 + "line": 45, + "column": 113 } } }, { "type": { - "label": ",", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -27256,22 +30243,22 @@ "binop": null, "updateContext": null }, - "start": 759, - "end": 760, + "start": 1484, + "end": 1485, "loc": { "start": { - "line": 19, - "column": 12 + "line": 45, + "column": 113 }, "end": { - "line": 19, - "column": 13 + "line": 45, + "column": 114 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -27279,26 +30266,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "atoms", - "start": 762, - "end": 767, + "value": 2, + "start": 1485, + "end": 1486, "loc": { "start": { - "line": 20, - "column": 1 + "line": 45, + "column": 114 }, "end": { - "line": 20, - "column": 6 + "line": 45, + "column": 115 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -27308,49 +30296,50 @@ "binop": null, "updateContext": null }, - "start": 767, - "end": 768, + "start": 1486, + "end": 1487, "loc": { "start": { - "line": 20, - "column": 6 + "line": 45, + "column": 115 }, "end": { - "line": 20, - "column": 7 + "line": 45, + "column": 116 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 769, - "end": 770, + "start": 1487, + "end": 1488, "loc": { "start": { - "line": 20, - "column": 8 + "line": 45, + "column": 116 }, "end": { - "line": 20, - "column": 9 + "line": 45, + "column": 117 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -27358,22 +30347,23 @@ "postfix": false, "binop": null }, - "start": 770, - "end": 771, + "value": "value", + "start": 1488, + "end": 1493, "loc": { "start": { - "line": 20, - "column": 9 + "line": 45, + "column": 117 }, "end": { - "line": 20, - "column": 10 + "line": 45, + "column": 122 } } }, { "type": { - "label": ",", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -27384,16 +30374,16 @@ "binop": null, "updateContext": null }, - "start": 771, - "end": 772, + "start": 1494, + "end": 1495, "loc": { "start": { - "line": 20, - "column": 10 + "line": 45, + "column": 123 }, "end": { - "line": 20, - "column": 11 + "line": 45, + "column": 124 } } }, @@ -27409,24 +30399,24 @@ "postfix": false, "binop": null }, - "value": "compounds", - "start": 774, - "end": 783, + "value": "GLOBAL", + "start": 1496, + "end": 1502, "loc": { "start": { - "line": 21, - "column": 1 + "line": 45, + "column": 125 }, "end": { - "line": 21, - "column": 10 + "line": 45, + "column": 131 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -27436,23 +30426,23 @@ "binop": null, "updateContext": null }, - "start": 783, - "end": 784, + "start": 1502, + "end": 1503, "loc": { "start": { - "line": 21, - "column": 10 + "line": 45, + "column": 131 }, "end": { - "line": 21, - "column": 11 + "line": 45, + "column": 132 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -27461,22 +30451,24 @@ "postfix": false, "binop": null }, - "start": 785, - "end": 786, + "value": "NO_TEAM_IDENTIFIER", + "start": 1503, + "end": 1521, "loc": { "start": { - "line": 21, - "column": 12 + "line": 45, + "column": 132 }, "end": { - "line": 21, - "column": 13 + "line": 45, + "column": 150 } } }, { "type": { - "label": "}", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27484,44 +30476,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 786, - "end": 787, + "value": "if", + "start": 1524, + "end": 1526, "loc": { "start": { - "line": 21, - "column": 13 + "line": 47, + "column": 1 }, "end": { - "line": 21, - "column": 14 + "line": 47, + "column": 3 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 787, - "end": 788, + "start": 1527, + "end": 1528, "loc": { "start": { - "line": 21, - "column": 14 + "line": 47, + "column": 4 }, "end": { - "line": 21, - "column": 15 + "line": 47, + "column": 5 } } }, @@ -27537,25 +30530,25 @@ "postfix": false, "binop": null }, - "value": "tiles", - "start": 790, - "end": 795, + "value": "cookieInputs", + "start": 1528, + "end": 1540, "loc": { "start": { - "line": 22, - "column": 1 + "line": 47, + "column": 5 }, "end": { - "line": 22, - "column": 6 + "line": 47, + "column": 17 } } }, { "type": { - "label": ":", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -27564,47 +30557,49 @@ "binop": null, "updateContext": null }, - "start": 795, - "end": 796, + "start": 1540, + "end": 1541, "loc": { "start": { - "line": 22, - "column": 6 + "line": 47, + "column": 17 }, "end": { - "line": 22, - "column": 7 + "line": 47, + "column": 18 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "num", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 797, - "end": 798, + "value": 1, + "start": 1541, + "end": 1542, "loc": { "start": { - "line": 22, - "column": 8 + "line": 47, + "column": 18 }, "end": { - "line": 22, - "column": 9 + "line": 47, + "column": 19 } } }, { "type": { - "label": "}", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27612,24 +30607,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 798, - "end": 799, + "start": 1542, + "end": 1543, "loc": { "start": { - "line": 22, - "column": 9 + "line": 47, + "column": 19 }, "end": { - "line": 22, - "column": 10 + "line": 47, + "column": 20 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27637,71 +30633,80 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 800, - "end": 801, + "start": 1543, + "end": 1544, "loc": { "start": { - "line": 23, - "column": 0 + "line": 47, + "column": 20 }, "end": { - "line": 23, - "column": 1 + "line": 47, + "column": 21 } } }, { - "type": "CommentBlock", - "value": "*\n * Team colors object. Number corresponds to index at GLOBAL.TEAM_COLORS.\n * Format: {\n * \tteamname1: 0,\n * \tteamname: color,\n * \t...\n * }\n ", - "start": 803, - "end": 949, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "value", + "start": 1544, + "end": 1549, "loc": { "start": { - "line": 25, - "column": 0 + "line": 47, + "column": 21 }, "end": { - "line": 32, - "column": 3 + "line": 47, + "column": 26 } } }, { "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "value": "export", - "start": 950, - "end": 956, + "value": "===", + "start": 1550, + "end": 1553, "loc": { "start": { - "line": 33, - "column": 0 + "line": 47, + "column": 27 }, "end": { - "line": 33, - "column": 6 + "line": 47, + "column": 30 } } }, { "type": { - "label": "var", - "keyword": "var", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -27710,25 +30715,25 @@ "binop": null, "updateContext": null }, - "value": "var", - "start": 957, - "end": 960, + "value": "test", + "start": 1554, + "end": 1560, "loc": { "start": { - "line": 33, - "column": 7 + "line": 47, + "column": 31 }, "end": { - "line": 33, - "column": 10 + "line": 47, + "column": 37 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -27736,51 +30741,48 @@ "postfix": false, "binop": null }, - "value": "teamColors", - "start": 961, - "end": 971, + "start": 1560, + "end": 1561, "loc": { "start": { - "line": 33, - "column": 11 + "line": 47, + "column": 37 }, "end": { - "line": 33, - "column": 21 + "line": 47, + "column": 38 } } }, { "type": { - "label": "=", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 972, - "end": 973, + "start": 1562, + "end": 1563, "loc": { "start": { - "line": 33, - "column": 22 + "line": 47, + "column": 39 }, "end": { - "line": 33, - "column": 23 + "line": 47, + "column": 40 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -27789,22 +30791,23 @@ "postfix": false, "binop": null }, - "start": 974, - "end": 975, + "value": "console", + "start": 1566, + "end": 1573, "loc": { "start": { - "line": 33, - "column": 24 + "line": 48, + "column": 2 }, "end": { - "line": 33, - "column": 25 + "line": 48, + "column": 9 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27812,69 +30815,76 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 975, - "end": 976, + "start": 1573, + "end": 1574, "loc": { "start": { - "line": 33, - "column": 25 + "line": 48, + "column": 9 }, "end": { - "line": 33, - "column": 26 + "line": 48, + "column": 10 } } }, { - "type": "CommentBlock", - "value": "*\n * Attempts to connect to the server. Run on 'start game' press.\n * - Manages connecting to main server vs. devserver\n * - Sets up socket listeners\n * - Loads textures\n * - Loads pixi\n ", - "start": 978, - "end": 1173, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "info", + "start": 1574, + "end": 1578, "loc": { "start": { - "line": 35, - "column": 0 + "line": 48, + "column": 10 }, "end": { - "line": 41, - "column": 3 + "line": 48, + "column": 14 } } }, { "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "export", - "start": 1174, - "end": 1180, + "start": 1578, + "end": 1579, "loc": { "start": { - "line": 42, - "column": 0 + "line": 48, + "column": 14 }, "end": { - "line": 42, - "column": 6 + "line": 48, + "column": 15 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -27882,52 +30892,54 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "function", - "start": 1181, - "end": 1189, + "value": "Connecting to: ", + "start": 1579, + "end": 1596, "loc": { "start": { - "line": 42, - "column": 7 + "line": 48, + "column": 15 }, "end": { - "line": 42, - "column": 15 + "line": 48, + "column": 32 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "+/-", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "value": "beginConnection", - "start": 1190, - "end": 1205, + "value": "+", + "start": 1597, + "end": 1598, "loc": { "start": { - "line": 42, - "column": 16 + "line": 48, + "column": 33 }, "end": { - "line": 42, - "column": 31 + "line": 48, + "column": 34 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -27936,22 +30948,23 @@ "postfix": false, "binop": null }, - "start": 1206, - "end": 1207, + "value": "GLOBAL", + "start": 1599, + "end": 1605, "loc": { "start": { - "line": 42, - "column": 32 + "line": 48, + "column": 35 }, "end": { - "line": 42, - "column": 33 + "line": 48, + "column": 41 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27959,25 +30972,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1207, - "end": 1208, + "start": 1605, + "end": 1606, "loc": { "start": { - "line": 42, - "column": 33 + "line": 48, + "column": 41 }, "end": { - "line": 42, - "column": 34 + "line": 48, + "column": 42 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -27986,39 +31000,23 @@ "postfix": false, "binop": null }, - "start": 1209, - "end": 1210, - "loc": { - "start": { - "line": 42, - "column": 35 - }, - "end": { - "line": 42, - "column": 36 - } - } - }, - { - "type": "CommentLine", - "value": " Joins debug server if conditions are met", - "start": 1212, - "end": 1255, + "value": "TEST_IP", + "start": 1606, + "end": 1613, "loc": { "start": { - "line": 43, - "column": 1 + "line": 48, + "column": 42 }, "end": { - "line": 43, - "column": 44 + "line": 48, + "column": 49 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -28026,20 +31024,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 1257, - "end": 1260, + "start": 1613, + "end": 1614, "loc": { "start": { - "line": 44, - "column": 1 + "line": 48, + "column": 49 }, "end": { - "line": 44, - "column": 4 + "line": 48, + "column": 50 + } + } + }, + { + "type": "CommentLine", + "value": " DEVELOPMENT server - auto deploy from pixi branch", + "start": 1617, + "end": 1669, + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 49, + "column": 54 } } }, @@ -28055,17 +31067,17 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 1261, - "end": 1265, + "value": "socket", + "start": 1672, + "end": 1678, "loc": { "start": { - "line": 44, - "column": 5 + "line": 50, + "column": 2 }, "end": { - "line": 44, - "column": 9 + "line": 50, + "column": 8 } } }, @@ -28083,23 +31095,23 @@ "updateContext": null }, "value": "=", - "start": 1266, - "end": 1267, + "start": 1679, + "end": 1680, "loc": { "start": { - "line": 44, - "column": 10 + "line": 50, + "column": 9 }, "end": { - "line": 44, - "column": 11 + "line": 50, + "column": 10 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -28108,120 +31120,119 @@ "postfix": false, "binop": null }, - "start": 1268, - "end": 1269, + "value": "io", + "start": 1681, + "end": 1683, "loc": { "start": { - "line": 44, - "column": 12 + "line": 50, + "column": 11 }, "end": { - "line": 44, + "line": 50, "column": 13 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "cookieInputs", - "start": 1269, - "end": 1281, + "start": 1683, + "end": 1684, "loc": { "start": { - "line": 44, + "line": 50, "column": 13 }, "end": { - "line": 44, - "column": 25 + "line": 50, + "column": 14 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1281, - "end": 1282, + "value": "connect", + "start": 1684, + "end": 1691, "loc": { "start": { - "line": 44, - "column": 25 + "line": 50, + "column": 14 }, "end": { - "line": 44, - "column": 26 + "line": 50, + "column": 21 } } }, { "type": { - "label": "num", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 7, - "start": 1282, - "end": 1283, + "start": 1691, + "end": 1692, "loc": { "start": { - "line": 44, - "column": 26 + "line": 50, + "column": 21 }, "end": { - "line": 44, - "column": 27 + "line": 50, + "column": 22 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1283, - "end": 1284, + "value": "GLOBAL", + "start": 1692, + "end": 1698, "loc": { "start": { - "line": 44, - "column": 27 + "line": 50, + "column": 22 }, "end": { - "line": 44, + "line": 50, "column": 28 } } @@ -28239,15 +31250,15 @@ "binop": null, "updateContext": null }, - "start": 1284, - "end": 1285, + "start": 1698, + "end": 1699, "loc": { "start": { - "line": 44, + "line": 50, "column": 28 }, "end": { - "line": 44, + "line": 50, "column": 29 } } @@ -28264,23 +31275,23 @@ "postfix": false, "binop": null }, - "value": "value", - "start": 1285, - "end": 1290, + "value": "TEST_IP", + "start": 1699, + "end": 1706, "loc": { "start": { - "line": 44, + "line": 50, "column": 29 }, "end": { - "line": 44, - "column": 34 + "line": 50, + "column": 36 } } }, { "type": { - "label": "==/!=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -28288,26 +31299,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 1291, - "end": 1294, + "start": 1706, + "end": 1707, "loc": { "start": { - "line": 44, - "column": 35 + "line": 50, + "column": 36 }, "end": { - "line": 44, + "line": 50, + "column": 37 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1708, + "end": 1709, + "loc": { + "start": { + "line": 50, "column": 38 + }, + "end": { + "line": 50, + "column": 39 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28315,26 +31350,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "private", - "start": 1295, - "end": 1304, + "value": "query", + "start": 1713, + "end": 1718, "loc": { "start": { - "line": 44, - "column": 39 + "line": 51, + "column": 3 }, "end": { - "line": 44, - "column": 48 + "line": 51, + "column": 8 } } }, { "type": { - "label": "?", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -28345,22 +31379,22 @@ "binop": null, "updateContext": null }, - "start": 1305, - "end": 1306, + "start": 1718, + "end": 1719, "loc": { "start": { - "line": 44, - "column": 49 + "line": 51, + "column": 8 }, "end": { - "line": 44, - "column": 50 + "line": 51, + "column": 9 } } }, { "type": { - "label": "name", + "label": "`", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28370,25 +31404,24 @@ "postfix": false, "binop": null }, - "value": "cookieInputs", - "start": 1307, - "end": 1319, + "start": 1720, + "end": 1721, "loc": { "start": { - "line": 44, - "column": 51 + "line": 51, + "column": 10 }, "end": { - "line": 44, - "column": 63 + "line": 51, + "column": 11 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": "template", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28397,75 +31430,74 @@ "binop": null, "updateContext": null }, - "start": 1319, - "end": 1320, + "value": "room=", + "start": 1721, + "end": 1726, "loc": { "start": { - "line": 44, - "column": 63 + "line": 51, + "column": 11 }, "end": { - "line": 44, - "column": 64 + "line": 51, + "column": 16 } } }, { "type": { - "label": "num", - "beforeExpr": false, + "label": "${", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 1, - "start": 1320, - "end": 1321, + "start": 1726, + "end": 1728, "loc": { "start": { - "line": 44, - "column": 64 + "line": 51, + "column": 16 }, "end": { - "line": 44, - "column": 65 + "line": 51, + "column": 18 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1321, - "end": 1322, + "value": "room", + "start": 1728, + "end": 1732, "loc": { "start": { - "line": 44, - "column": 65 + "line": 51, + "column": 18 }, "end": { - "line": 44, - "column": 66 + "line": 51, + "column": 22 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -28473,71 +31505,70 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1322, - "end": 1323, + "start": 1732, + "end": 1733, "loc": { "start": { - "line": 44, - "column": 66 + "line": 51, + "column": 22 }, "end": { - "line": 44, - "column": 67 + "line": 51, + "column": 23 } } }, { "type": { - "label": "name", + "label": "template", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "value", - "start": 1323, - "end": 1328, + "value": "&name=", + "start": 1733, + "end": 1739, "loc": { "start": { - "line": 44, - "column": 67 + "line": 51, + "column": 23 }, "end": { - "line": 44, - "column": 72 + "line": 51, + "column": 29 } } }, { "type": { - "label": ":", + "label": "${", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1329, - "end": 1330, + "start": 1739, + "end": 1741, "loc": { "start": { - "line": 44, - "column": 73 + "line": 51, + "column": 29 }, "end": { - "line": 44, - "column": 74 + "line": 51, + "column": 31 } } }, @@ -28553,25 +31584,25 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 1331, - "end": 1337, + "value": "cookieInputs", + "start": 1741, + "end": 1753, "loc": { "start": { - "line": 44, - "column": 75 + "line": 51, + "column": 31 }, "end": { - "line": 44, - "column": 81 + "line": 51, + "column": 43 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28580,22 +31611,22 @@ "binop": null, "updateContext": null }, - "start": 1337, - "end": 1338, + "start": 1753, + "end": 1754, "loc": { "start": { - "line": 44, - "column": 81 + "line": 51, + "column": 43 }, "end": { - "line": 44, - "column": 82 + "line": 51, + "column": 44 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28603,25 +31634,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "NO_ROOM_IDENTIFIER", - "start": 1338, - "end": 1356, + "value": 0, + "start": 1754, + "end": 1755, "loc": { "start": { - "line": 44, - "column": 82 + "line": 51, + "column": 44 }, "end": { - "line": 44, - "column": 100 + "line": 51, + "column": 45 } } }, { "type": { - "label": ")", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -28629,25 +31661,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1356, - "end": 1357, + "start": 1755, + "end": 1756, "loc": { "start": { - "line": 44, - "column": 100 + "line": 51, + "column": 45 }, "end": { - "line": 44, - "column": 101 + "line": 51, + "column": 46 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -28658,17 +31690,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 1359, - "end": 1362, + "start": 1756, + "end": 1757, "loc": { "start": { - "line": 45, - "column": 1 + "line": 51, + "column": 46 }, "end": { - "line": 45, - "column": 4 + "line": 51, + "column": 47 } } }, @@ -28684,50 +31715,75 @@ "postfix": false, "binop": null }, - "value": "teamInput", - "start": 1363, - "end": 1372, + "value": "value", + "start": 1757, + "end": 1762, "loc": { "start": { - "line": 45, - "column": 5 + "line": 51, + "column": 47 }, "end": { - "line": 45, - "column": 14 + "line": 51, + "column": 52 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1762, + "end": 1763, + "loc": { + "start": { + "line": 51, + "column": 52 + }, + "end": { + "line": 51, + "column": 53 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1373, - "end": 1374, + "value": "&team=", + "start": 1763, + "end": 1769, "loc": { "start": { - "line": 45, - "column": 15 + "line": 51, + "column": 53 }, "end": { - "line": 45, - "column": 16 + "line": 51, + "column": 59 } } }, { "type": { - "label": "(", + "label": "${", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -28737,16 +31793,16 @@ "postfix": false, "binop": null }, - "start": 1375, - "end": 1376, + "start": 1769, + "end": 1771, "loc": { "start": { - "line": 45, - "column": 17 + "line": 51, + "column": 59 }, "end": { - "line": 45, - "column": 18 + "line": 51, + "column": 61 } } }, @@ -28762,23 +31818,23 @@ "postfix": false, "binop": null }, - "value": "document", - "start": 1376, - "end": 1384, + "value": "teamInput", + "start": 1771, + "end": 1780, "loc": { "start": { - "line": 45, - "column": 18 + "line": 51, + "column": 61 }, "end": { - "line": 45, - "column": 26 + "line": 51, + "column": 70 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -28786,51 +31842,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1384, - "end": 1385, + "start": 1780, + "end": 1781, "loc": { "start": { - "line": 45, - "column": 26 + "line": 51, + "column": 70 }, "end": { - "line": 45, - "column": 27 + "line": 51, + "column": 71 } } }, { "type": { - "label": "name", + "label": "template", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "querySelector", - "start": 1385, - "end": 1398, + "value": "&roomType=", + "start": 1781, + "end": 1791, "loc": { "start": { - "line": 45, - "column": 27 + "line": 51, + "column": 71 }, "end": { - "line": 45, - "column": 40 + "line": 51, + "column": 81 } } }, { "type": { - "label": "(", + "label": "${", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -28840,22 +31896,22 @@ "postfix": false, "binop": null }, - "start": 1398, - "end": 1399, + "start": 1791, + "end": 1793, "loc": { "start": { - "line": 45, - "column": 40 + "line": 51, + "column": 81 }, "end": { - "line": 45, - "column": 41 + "line": 51, + "column": 83 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28863,53 +31919,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "input[name=\"queue-type\"]:checked", - "start": 1399, - "end": 1433, + "value": "cookieInputs", + "start": 1793, + "end": 1805, "loc": { "start": { - "line": 45, - "column": 41 + "line": 51, + "column": 83 }, "end": { - "line": 45, - "column": 75 + "line": 51, + "column": 95 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1433, - "end": 1434, + "start": 1805, + "end": 1806, "loc": { "start": { - "line": 45, - "column": 75 + "line": 51, + "column": 95 }, "end": { - "line": 45, - "column": 76 + "line": 51, + "column": 96 } } }, { "type": { - "label": ".", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28918,75 +31974,75 @@ "binop": null, "updateContext": null }, - "start": 1434, - "end": 1435, + "value": 7, + "start": 1806, + "end": 1807, "loc": { "start": { - "line": 45, - "column": 76 + "line": 51, + "column": 96 }, "end": { - "line": 45, - "column": 77 + "line": 51, + "column": 97 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "id", - "start": 1435, - "end": 1437, + "start": 1807, + "end": 1808, "loc": { "start": { - "line": 45, - "column": 77 + "line": 51, + "column": 97 }, "end": { - "line": 45, - "column": 79 + "line": 51, + "column": 98 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 1438, - "end": 1441, + "start": 1808, + "end": 1809, "loc": { "start": { - "line": 45, - "column": 80 + "line": 51, + "column": 98 }, "end": { - "line": 45, - "column": 83 + "line": 51, + "column": 99 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28994,26 +32050,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "team-option", - "start": 1442, - "end": 1455, + "value": "value", + "start": 1809, + "end": 1814, "loc": { "start": { - "line": 45, - "column": 84 + "line": 51, + "column": 99 }, "end": { - "line": 45, - "column": 97 + "line": 51, + "column": 104 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -29023,23 +32078,23 @@ "postfix": false, "binop": null }, - "start": 1455, - "end": 1456, + "start": 1814, + "end": 1815, "loc": { "start": { - "line": 45, - "column": 97 + "line": 51, + "column": 104 }, "end": { - "line": 45, - "column": 98 + "line": 51, + "column": 105 } } }, { "type": { - "label": "?", - "beforeExpr": true, + "label": "template", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -29049,22 +32104,23 @@ "binop": null, "updateContext": null }, - "start": 1457, - "end": 1458, + "value": "", + "start": 1815, + "end": 1815, "loc": { "start": { - "line": 45, - "column": 99 + "line": 51, + "column": 105 }, "end": { - "line": 45, - "column": 100 + "line": 51, + "column": 105 } } }, { "type": { - "label": "name", + "label": "`", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -29074,25 +32130,24 @@ "postfix": false, "binop": null }, - "value": "cookieInputs", - "start": 1459, - "end": 1471, + "start": 1815, + "end": 1816, "loc": { "start": { - "line": 45, - "column": 101 + "line": 51, + "column": 105 }, "end": { - "line": 45, - "column": 113 + "line": 51, + "column": 106 } } }, { "type": { - "label": "[", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29101,22 +32156,22 @@ "binop": null, "updateContext": null }, - "start": 1471, - "end": 1472, + "start": 1816, + "end": 1817, "loc": { "start": { - "line": 45, - "column": 113 + "line": 51, + "column": 106 }, "end": { - "line": 45, - "column": 114 + "line": 51, + "column": 107 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -29124,27 +32179,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 2, - "start": 1472, - "end": 1473, + "value": "reconnectionAttempts", + "start": 1821, + "end": 1841, "loc": { "start": { - "line": 45, - "column": 114 + "line": 52, + "column": 3 }, "end": { - "line": 45, - "column": 115 + "line": 52, + "column": 23 } } }, { "type": { - "label": "]", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -29154,24 +32208,24 @@ "binop": null, "updateContext": null }, - "start": 1473, - "end": 1474, + "start": 1841, + "end": 1842, "loc": { "start": { - "line": 45, - "column": 115 + "line": 52, + "column": 23 }, "end": { - "line": 45, - "column": 116 + "line": 52, + "column": 24 } } }, { "type": { - "label": ".", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29180,24 +32234,25 @@ "binop": null, "updateContext": null }, - "start": 1474, - "end": 1475, + "value": 3, + "start": 1843, + "end": 1844, "loc": { "start": { - "line": 45, - "column": 116 + "line": 52, + "column": 25 }, "end": { - "line": 45, - "column": 117 + "line": 52, + "column": 26 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29205,51 +32260,49 @@ "postfix": false, "binop": null }, - "value": "value", - "start": 1475, - "end": 1480, + "start": 1847, + "end": 1848, "loc": { "start": { - "line": 45, - "column": 117 + "line": 53, + "column": 2 }, "end": { - "line": 45, - "column": 122 + "line": 53, + "column": 3 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1481, - "end": 1482, + "start": 1848, + "end": 1849, "loc": { "start": { - "line": 45, - "column": 123 + "line": 53, + "column": 3 }, "end": { - "line": 45, - "column": 124 + "line": 53, + "column": 4 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29257,24 +32310,24 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 1483, - "end": 1489, + "start": 1851, + "end": 1852, "loc": { "start": { - "line": 45, - "column": 125 + "line": 54, + "column": 1 }, "end": { - "line": 45, - "column": 131 + "line": 54, + "column": 2 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "else", + "keyword": "else", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -29284,42 +32337,17 @@ "binop": null, "updateContext": null }, - "start": 1489, - "end": 1490, - "loc": { - "start": { - "line": 45, - "column": 131 - }, - "end": { - "line": 45, - "column": 132 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "NO_TEAM_IDENTIFIER", - "start": 1490, - "end": 1508, + "value": "else", + "start": 1854, + "end": 1858, "loc": { "start": { - "line": 45, - "column": 132 + "line": 55, + "column": 1 }, "end": { - "line": 45, - "column": 150 + "line": 55, + "column": 5 } } }, @@ -29338,16 +32366,16 @@ "updateContext": null }, "value": "if", - "start": 1511, - "end": 1513, + "start": 1859, + "end": 1861, "loc": { "start": { - "line": 47, - "column": 1 + "line": 55, + "column": 6 }, "end": { - "line": 47, - "column": 3 + "line": 55, + "column": 8 } } }, @@ -29363,16 +32391,16 @@ "postfix": false, "binop": null }, - "start": 1514, - "end": 1515, + "start": 1862, + "end": 1863, "loc": { "start": { - "line": 47, - "column": 4 + "line": 55, + "column": 9 }, "end": { - "line": 47, - "column": 5 + "line": 55, + "column": 10 } } }, @@ -29389,16 +32417,16 @@ "binop": null }, "value": "cookieInputs", - "start": 1515, - "end": 1527, + "start": 1863, + "end": 1875, "loc": { "start": { - "line": 47, - "column": 5 + "line": 55, + "column": 10 }, "end": { - "line": 47, - "column": 17 + "line": 55, + "column": 22 } } }, @@ -29415,16 +32443,16 @@ "binop": null, "updateContext": null }, - "start": 1527, - "end": 1528, + "start": 1875, + "end": 1876, "loc": { "start": { - "line": 47, - "column": 17 + "line": 55, + "column": 22 }, "end": { - "line": 47, - "column": 18 + "line": 55, + "column": 23 } } }, @@ -29442,16 +32470,16 @@ "updateContext": null }, "value": 1, - "start": 1528, - "end": 1529, + "start": 1876, + "end": 1877, "loc": { "start": { - "line": 47, - "column": 18 + "line": 55, + "column": 23 }, "end": { - "line": 47, - "column": 19 + "line": 55, + "column": 24 } } }, @@ -29468,16 +32496,16 @@ "binop": null, "updateContext": null }, - "start": 1529, - "end": 1530, + "start": 1877, + "end": 1878, "loc": { "start": { - "line": 47, - "column": 19 + "line": 55, + "column": 24 }, "end": { - "line": 47, - "column": 20 + "line": 55, + "column": 25 } } }, @@ -29494,16 +32522,16 @@ "binop": null, "updateContext": null }, - "start": 1530, - "end": 1531, + "start": 1878, + "end": 1879, "loc": { "start": { - "line": 47, - "column": 20 + "line": 55, + "column": 25 }, "end": { - "line": 47, - "column": 21 + "line": 55, + "column": 26 } } }, @@ -29520,16 +32548,16 @@ "binop": null }, "value": "value", - "start": 1531, - "end": 1536, + "start": 1879, + "end": 1884, "loc": { "start": { - "line": 47, - "column": 21 + "line": 55, + "column": 26 }, "end": { - "line": 47, - "column": 26 + "line": 55, + "column": 31 } } }, @@ -29547,16 +32575,16 @@ "updateContext": null }, "value": "===", - "start": 1537, - "end": 1540, + "start": 1885, + "end": 1888, "loc": { "start": { - "line": 47, - "column": 27 + "line": 55, + "column": 32 }, "end": { - "line": 47, - "column": 30 + "line": 55, + "column": 35 } } }, @@ -29573,17 +32601,17 @@ "binop": null, "updateContext": null }, - "value": "test", - "start": 1541, - "end": 1547, + "value": "jurassicexp", + "start": 1889, + "end": 1902, "loc": { "start": { - "line": 47, - "column": 31 + "line": 55, + "column": 36 }, "end": { - "line": 47, - "column": 37 + "line": 55, + "column": 49 } } }, @@ -29599,16 +32627,16 @@ "postfix": false, "binop": null }, - "start": 1547, - "end": 1548, + "start": 1902, + "end": 1903, "loc": { "start": { - "line": 47, - "column": 37 + "line": 55, + "column": 49 }, "end": { - "line": 47, - "column": 38 + "line": 55, + "column": 50 } } }, @@ -29624,16 +32652,16 @@ "postfix": false, "binop": null }, - "start": 1549, - "end": 1550, + "start": 1904, + "end": 1905, "loc": { "start": { - "line": 47, - "column": 39 + "line": 55, + "column": 51 }, "end": { - "line": 47, - "column": 40 + "line": 55, + "column": 52 } } }, @@ -29650,15 +32678,15 @@ "binop": null }, "value": "console", - "start": 1553, - "end": 1560, + "start": 1908, + "end": 1915, "loc": { "start": { - "line": 48, + "line": 56, "column": 2 }, "end": { - "line": 48, + "line": 56, "column": 9 } } @@ -29676,15 +32704,15 @@ "binop": null, "updateContext": null }, - "start": 1560, - "end": 1561, + "start": 1915, + "end": 1916, "loc": { "start": { - "line": 48, + "line": 56, "column": 9 }, "end": { - "line": 48, + "line": 56, "column": 10 } } @@ -29701,17 +32729,17 @@ "postfix": false, "binop": null }, - "value": "info", - "start": 1561, - "end": 1565, + "value": "log", + "start": 1916, + "end": 1919, "loc": { "start": { - "line": 48, + "line": 56, "column": 10 }, "end": { - "line": 48, - "column": 14 + "line": 56, + "column": 13 } } }, @@ -29727,16 +32755,16 @@ "postfix": false, "binop": null }, - "start": 1565, - "end": 1566, + "start": 1919, + "end": 1920, "loc": { "start": { - "line": 48, - "column": 14 + "line": 56, + "column": 13 }, "end": { - "line": 48, - "column": 15 + "line": 56, + "column": 14 } } }, @@ -29753,122 +32781,17 @@ "binop": null, "updateContext": null }, - "value": "Connecting to: ", - "start": 1566, - "end": 1583, - "loc": { - "start": { - "line": 48, - "column": 15 - }, - "end": { - "line": 48, - "column": 32 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1584, - "end": 1585, - "loc": { - "start": { - "line": 48, - "column": 33 - }, - "end": { - "line": 48, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "GLOBAL", - "start": 1586, - "end": 1592, - "loc": { - "start": { - "line": 48, - "column": 35 - }, - "end": { - "line": 48, - "column": 41 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1592, - "end": 1593, - "loc": { - "start": { - "line": 48, - "column": 41 - }, - "end": { - "line": 48, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "TEST_IP", - "start": 1593, - "end": 1600, + "value": "Dev Backdoor Initiated! Connecting to devserver", + "start": 1920, + "end": 1969, "loc": { "start": { - "line": 48, - "column": 42 + "line": 56, + "column": 14 }, "end": { - "line": 48, - "column": 49 + "line": 56, + "column": 63 } } }, @@ -29884,32 +32807,32 @@ "postfix": false, "binop": null }, - "start": 1600, - "end": 1601, + "start": 1969, + "end": 1970, "loc": { "start": { - "line": 48, - "column": 49 + "line": 56, + "column": 63 }, "end": { - "line": 48, - "column": 50 + "line": 56, + "column": 64 } } }, { "type": "CommentLine", - "value": " DEVELOPMENT server - auto deploy from pixi branch", - "start": 1604, - "end": 1656, + "value": " Local server", + "start": 1973, + "end": 1988, "loc": { "start": { - "line": 49, + "line": 57, "column": 2 }, "end": { - "line": 49, - "column": 54 + "line": 57, + "column": 17 } } }, @@ -29926,15 +32849,15 @@ "binop": null }, "value": "socket", - "start": 1659, - "end": 1665, + "start": 1991, + "end": 1997, "loc": { "start": { - "line": 50, + "line": 58, "column": 2 }, "end": { - "line": 50, + "line": 58, "column": 8 } } @@ -29953,15 +32876,15 @@ "updateContext": null }, "value": "=", - "start": 1666, - "end": 1667, + "start": 1998, + "end": 1999, "loc": { "start": { - "line": 50, + "line": 58, "column": 9 }, "end": { - "line": 50, + "line": 58, "column": 10 } } @@ -29979,15 +32902,15 @@ "binop": null }, "value": "io", - "start": 1668, - "end": 1670, + "start": 2000, + "end": 2002, "loc": { "start": { - "line": 50, + "line": 58, "column": 11 }, "end": { - "line": 50, + "line": 58, "column": 13 } } @@ -30005,15 +32928,15 @@ "binop": null, "updateContext": null }, - "start": 1670, - "end": 1671, + "start": 2002, + "end": 2003, "loc": { "start": { - "line": 50, + "line": 58, "column": 13 }, "end": { - "line": 50, + "line": 58, "column": 14 } } @@ -30031,15 +32954,15 @@ "binop": null }, "value": "connect", - "start": 1671, - "end": 1678, + "start": 2003, + "end": 2010, "loc": { "start": { - "line": 50, + "line": 58, "column": 14 }, "end": { - "line": 50, + "line": 58, "column": 21 } } @@ -30056,15 +32979,15 @@ "postfix": false, "binop": null }, - "start": 1678, - "end": 1679, + "start": 2010, + "end": 2011, "loc": { "start": { - "line": 50, + "line": 58, "column": 21 }, "end": { - "line": 50, + "line": 58, "column": 22 } } @@ -30082,15 +33005,15 @@ "binop": null }, "value": "GLOBAL", - "start": 1679, - "end": 1685, + "start": 2011, + "end": 2017, "loc": { "start": { - "line": 50, + "line": 58, "column": 22 }, "end": { - "line": 50, + "line": 58, "column": 28 } } @@ -30108,15 +33031,15 @@ "binop": null, "updateContext": null }, - "start": 1685, - "end": 1686, + "start": 2017, + "end": 2018, "loc": { "start": { - "line": 50, + "line": 58, "column": 28 }, "end": { - "line": 50, + "line": 58, "column": 29 } } @@ -30133,17 +33056,17 @@ "postfix": false, "binop": null }, - "value": "TEST_IP", - "start": 1686, - "end": 1693, + "value": "LOCAL_HOST", + "start": 2018, + "end": 2028, "loc": { "start": { - "line": 50, + "line": 58, "column": 29 }, "end": { - "line": 50, - "column": 36 + "line": 58, + "column": 39 } } }, @@ -30160,16 +33083,16 @@ "binop": null, "updateContext": null }, - "start": 1693, - "end": 1694, + "start": 2028, + "end": 2029, "loc": { "start": { - "line": 50, - "column": 36 + "line": 58, + "column": 39 }, "end": { - "line": 50, - "column": 37 + "line": 58, + "column": 40 } } }, @@ -30185,16 +33108,16 @@ "postfix": false, "binop": null }, - "start": 1695, - "end": 1696, + "start": 2030, + "end": 2031, "loc": { "start": { - "line": 50, - "column": 38 + "line": 58, + "column": 41 }, "end": { - "line": 50, - "column": 39 + "line": 58, + "column": 42 } } }, @@ -30211,15 +33134,15 @@ "binop": null }, "value": "query", - "start": 1700, - "end": 1705, + "start": 2035, + "end": 2040, "loc": { "start": { - "line": 51, + "line": 59, "column": 3 }, "end": { - "line": 51, + "line": 59, "column": 8 } } @@ -30237,15 +33160,15 @@ "binop": null, "updateContext": null }, - "start": 1705, - "end": 1706, + "start": 2040, + "end": 2041, "loc": { "start": { - "line": 51, + "line": 59, "column": 8 }, "end": { - "line": 51, + "line": 59, "column": 9 } } @@ -30262,15 +33185,15 @@ "postfix": false, "binop": null }, - "start": 1707, - "end": 1708, + "start": 2042, + "end": 2043, "loc": { "start": { - "line": 51, + "line": 59, "column": 10 }, "end": { - "line": 51, + "line": 59, "column": 11 } } @@ -30289,15 +33212,15 @@ "updateContext": null }, "value": "room=", - "start": 1708, - "end": 1713, + "start": 2043, + "end": 2048, "loc": { "start": { - "line": 51, + "line": 59, "column": 11 }, "end": { - "line": 51, + "line": 59, "column": 16 } } @@ -30314,15 +33237,15 @@ "postfix": false, "binop": null }, - "start": 1713, - "end": 1715, + "start": 2048, + "end": 2050, "loc": { "start": { - "line": 51, + "line": 59, "column": 16 }, "end": { - "line": 51, + "line": 59, "column": 18 } } @@ -30340,15 +33263,15 @@ "binop": null }, "value": "room", - "start": 1715, - "end": 1719, + "start": 2050, + "end": 2054, "loc": { "start": { - "line": 51, + "line": 59, "column": 18 }, "end": { - "line": 51, + "line": 59, "column": 22 } } @@ -30365,15 +33288,15 @@ "postfix": false, "binop": null }, - "start": 1719, - "end": 1720, + "start": 2054, + "end": 2055, "loc": { "start": { - "line": 51, + "line": 59, "column": 22 }, "end": { - "line": 51, + "line": 59, "column": 23 } } @@ -30392,15 +33315,15 @@ "updateContext": null }, "value": "&name=", - "start": 1720, - "end": 1726, + "start": 2055, + "end": 2061, "loc": { "start": { - "line": 51, + "line": 59, "column": 23 }, "end": { - "line": 51, + "line": 59, "column": 29 } } @@ -30417,15 +33340,15 @@ "postfix": false, "binop": null }, - "start": 1726, - "end": 1728, + "start": 2061, + "end": 2063, "loc": { "start": { - "line": 51, + "line": 59, "column": 29 }, "end": { - "line": 51, + "line": 59, "column": 31 } } @@ -30443,15 +33366,15 @@ "binop": null }, "value": "cookieInputs", - "start": 1728, - "end": 1740, + "start": 2063, + "end": 2075, "loc": { "start": { - "line": 51, + "line": 59, "column": 31 }, "end": { - "line": 51, + "line": 59, "column": 43 } } @@ -30469,15 +33392,15 @@ "binop": null, "updateContext": null }, - "start": 1740, - "end": 1741, + "start": 2075, + "end": 2076, "loc": { "start": { - "line": 51, + "line": 59, "column": 43 }, "end": { - "line": 51, + "line": 59, "column": 44 } } @@ -30496,15 +33419,15 @@ "updateContext": null }, "value": 0, - "start": 1741, - "end": 1742, + "start": 2076, + "end": 2077, "loc": { "start": { - "line": 51, + "line": 59, "column": 44 }, "end": { - "line": 51, + "line": 59, "column": 45 } } @@ -30522,15 +33445,15 @@ "binop": null, "updateContext": null }, - "start": 1742, - "end": 1743, + "start": 2077, + "end": 2078, "loc": { "start": { - "line": 51, + "line": 59, "column": 45 }, "end": { - "line": 51, + "line": 59, "column": 46 } } @@ -30548,15 +33471,15 @@ "binop": null, "updateContext": null }, - "start": 1743, - "end": 1744, + "start": 2078, + "end": 2079, "loc": { "start": { - "line": 51, + "line": 59, "column": 46 }, "end": { - "line": 51, + "line": 59, "column": 47 } } @@ -30574,15 +33497,15 @@ "binop": null }, "value": "value", - "start": 1744, - "end": 1749, + "start": 2079, + "end": 2084, "loc": { "start": { - "line": 51, + "line": 59, "column": 47 }, "end": { - "line": 51, + "line": 59, "column": 52 } } @@ -30599,15 +33522,15 @@ "postfix": false, "binop": null }, - "start": 1749, - "end": 1750, + "start": 2084, + "end": 2085, "loc": { "start": { - "line": 51, + "line": 59, "column": 52 }, "end": { - "line": 51, + "line": 59, "column": 53 } } @@ -30626,15 +33549,15 @@ "updateContext": null }, "value": "&team=", - "start": 1750, - "end": 1756, + "start": 2085, + "end": 2091, "loc": { "start": { - "line": 51, + "line": 59, "column": 53 }, "end": { - "line": 51, + "line": 59, "column": 59 } } @@ -30651,15 +33574,15 @@ "postfix": false, "binop": null }, - "start": 1756, - "end": 1758, + "start": 2091, + "end": 2093, "loc": { "start": { - "line": 51, + "line": 59, "column": 59 }, "end": { - "line": 51, + "line": 59, "column": 61 } } @@ -30677,15 +33600,15 @@ "binop": null }, "value": "teamInput", - "start": 1758, - "end": 1767, + "start": 2093, + "end": 2102, "loc": { "start": { - "line": 51, + "line": 59, "column": 61 }, "end": { - "line": 51, + "line": 59, "column": 70 } } @@ -30702,15 +33625,15 @@ "postfix": false, "binop": null }, - "start": 1767, - "end": 1768, + "start": 2102, + "end": 2103, "loc": { "start": { - "line": 51, + "line": 59, "column": 70 }, "end": { - "line": 51, + "line": 59, "column": 71 } } @@ -30729,15 +33652,15 @@ "updateContext": null }, "value": "&roomType=", - "start": 1768, - "end": 1778, + "start": 2103, + "end": 2113, "loc": { "start": { - "line": 51, + "line": 59, "column": 71 }, "end": { - "line": 51, + "line": 59, "column": 81 } } @@ -30754,15 +33677,15 @@ "postfix": false, "binop": null }, - "start": 1778, - "end": 1780, + "start": 2113, + "end": 2115, "loc": { "start": { - "line": 51, + "line": 59, "column": 81 }, "end": { - "line": 51, + "line": 59, "column": 83 } } @@ -30780,15 +33703,15 @@ "binop": null }, "value": "cookieInputs", - "start": 1780, - "end": 1792, + "start": 2115, + "end": 2127, "loc": { "start": { - "line": 51, + "line": 59, "column": 83 }, "end": { - "line": 51, + "line": 59, "column": 95 } } @@ -30806,15 +33729,15 @@ "binop": null, "updateContext": null }, - "start": 1792, - "end": 1793, + "start": 2127, + "end": 2128, "loc": { "start": { - "line": 51, + "line": 59, "column": 95 }, "end": { - "line": 51, + "line": 59, "column": 96 } } @@ -30833,15 +33756,15 @@ "updateContext": null }, "value": 7, - "start": 1793, - "end": 1794, + "start": 2128, + "end": 2129, "loc": { "start": { - "line": 51, + "line": 59, "column": 96 }, "end": { - "line": 51, + "line": 59, "column": 97 } } @@ -30859,15 +33782,15 @@ "binop": null, "updateContext": null }, - "start": 1794, - "end": 1795, + "start": 2129, + "end": 2130, "loc": { "start": { - "line": 51, + "line": 59, "column": 97 }, "end": { - "line": 51, + "line": 59, "column": 98 } } @@ -30885,15 +33808,15 @@ "binop": null, "updateContext": null }, - "start": 1795, - "end": 1796, + "start": 2130, + "end": 2131, "loc": { "start": { - "line": 51, + "line": 59, "column": 98 }, "end": { - "line": 51, + "line": 59, "column": 99 } } @@ -30911,15 +33834,15 @@ "binop": null }, "value": "value", - "start": 1796, - "end": 1801, + "start": 2131, + "end": 2136, "loc": { "start": { - "line": 51, + "line": 59, "column": 99 }, "end": { - "line": 51, + "line": 59, "column": 104 } } @@ -30936,15 +33859,15 @@ "postfix": false, "binop": null }, - "start": 1801, - "end": 1802, + "start": 2136, + "end": 2137, "loc": { "start": { - "line": 51, + "line": 59, "column": 104 }, "end": { - "line": 51, + "line": 59, "column": 105 } } @@ -30963,15 +33886,15 @@ "updateContext": null }, "value": "", - "start": 1802, - "end": 1802, + "start": 2137, + "end": 2137, "loc": { "start": { - "line": 51, + "line": 59, "column": 105 }, "end": { - "line": 51, + "line": 59, "column": 105 } } @@ -30988,15 +33911,15 @@ "postfix": false, "binop": null }, - "start": 1802, - "end": 1803, + "start": 2137, + "end": 2138, "loc": { "start": { - "line": 51, + "line": 59, "column": 105 }, "end": { - "line": 51, + "line": 59, "column": 106 } } @@ -31014,15 +33937,15 @@ "binop": null, "updateContext": null }, - "start": 1803, - "end": 1804, + "start": 2138, + "end": 2139, "loc": { "start": { - "line": 51, + "line": 59, "column": 106 }, "end": { - "line": 51, + "line": 59, "column": 107 } } @@ -31040,15 +33963,15 @@ "binop": null }, "value": "reconnectionAttempts", - "start": 1808, - "end": 1828, + "start": 2143, + "end": 2163, "loc": { "start": { - "line": 52, + "line": 60, "column": 3 }, "end": { - "line": 52, + "line": 60, "column": 23 } } @@ -31066,15 +33989,15 @@ "binop": null, "updateContext": null }, - "start": 1828, - "end": 1829, + "start": 2163, + "end": 2164, "loc": { "start": { - "line": 52, + "line": 60, "column": 23 }, "end": { - "line": 52, + "line": 60, "column": 24 } } @@ -31093,15 +34016,15 @@ "updateContext": null }, "value": 3, - "start": 1830, - "end": 1831, + "start": 2165, + "end": 2166, "loc": { "start": { - "line": 52, + "line": 60, "column": 25 }, "end": { - "line": 52, + "line": 60, "column": 26 } } @@ -31118,15 +34041,15 @@ "postfix": false, "binop": null }, - "start": 1834, - "end": 1835, + "start": 2169, + "end": 2170, "loc": { "start": { - "line": 53, + "line": 61, "column": 2 }, "end": { - "line": 53, + "line": 61, "column": 3 } } @@ -31143,15 +34066,15 @@ "postfix": false, "binop": null }, - "start": 1835, - "end": 1836, + "start": 2170, + "end": 2171, "loc": { "start": { - "line": 53, + "line": 61, "column": 3 }, "end": { - "line": 53, + "line": 61, "column": 4 } } @@ -31168,15 +34091,15 @@ "postfix": false, "binop": null }, - "start": 1838, - "end": 1839, + "start": 2173, + "end": 2174, "loc": { "start": { - "line": 54, + "line": 62, "column": 1 }, "end": { - "line": 54, + "line": 62, "column": 2 } } @@ -31196,51 +34119,64 @@ "updateContext": null }, "value": "else", - "start": 1841, - "end": 1845, + "start": 2176, + "end": 2180, "loc": { "start": { - "line": 55, + "line": 63, "column": 1 }, "end": { - "line": 55, + "line": 63, "column": 5 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 1846, - "end": 1848, + "start": 2181, + "end": 2182, "loc": { "start": { - "line": 55, + "line": 63, "column": 6 }, "end": { - "line": 55, - "column": 8 + "line": 63, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " Production server", + "start": 2185, + "end": 2205, + "loc": { + "start": { + "line": 64, + "column": 2 + }, + "end": { + "line": 64, + "column": 22 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -31249,15 +34185,42 @@ "postfix": false, "binop": null }, - "start": 1849, - "end": 1850, + "value": "console", + "start": 2208, + "end": 2215, "loc": { "start": { - "line": 55, + "line": 65, + "column": 2 + }, + "end": { + "line": 65, + "column": 9 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2215, + "end": 2216, + "loc": { + "start": { + "line": 65, "column": 9 }, "end": { - "line": 55, + "line": 65, "column": 10 } } @@ -31274,23 +34237,23 @@ "postfix": false, "binop": null }, - "value": "cookieInputs", - "start": 1850, - "end": 1862, + "value": "log", + "start": 2216, + "end": 2219, "loc": { "start": { - "line": 55, + "line": 65, "column": 10 }, "end": { - "line": 55, - "column": 22 + "line": 65, + "column": 13 } } }, { "type": { - "label": "[", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -31298,25 +34261,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1862, - "end": 1863, + "start": 2219, + "end": 2220, "loc": { "start": { - "line": 55, - "column": 22 + "line": 65, + "column": 13 }, "end": { - "line": 55, - "column": 23 + "line": 65, + "column": 14 } } }, { "type": { - "label": "num", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31327,23 +34289,23 @@ "binop": null, "updateContext": null }, - "value": 1, - "start": 1863, - "end": 1864, + "value": "connecting to main server", + "start": 2220, + "end": 2247, "loc": { "start": { - "line": 55, - "column": 23 + "line": 65, + "column": 14 }, "end": { - "line": 55, - "column": 24 + "line": 65, + "column": 41 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -31351,19 +34313,97 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "start": 2247, + "end": 2248, + "loc": { + "start": { + "line": 65, + "column": 41 + }, + "end": { + "line": 65, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "socket", + "start": 2251, + "end": 2257, + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 66, + "column": 8 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 1864, - "end": 1865, + "value": "=", + "start": 2258, + "end": 2259, "loc": { "start": { - "line": 55, - "column": 24 + "line": 66, + "column": 9 }, "end": { - "line": 55, - "column": 25 + "line": 66, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "io", + "start": 2260, + "end": 2262, + "loc": { + "start": { + "line": 66, + "column": 11 + }, + "end": { + "line": 66, + "column": 13 } } }, @@ -31380,16 +34420,67 @@ "binop": null, "updateContext": null }, - "start": 1865, - "end": 1866, + "start": 2262, + "end": 2263, + "loc": { + "start": { + "line": 66, + "column": 13 + }, + "end": { + "line": 66, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "connect", + "start": 2263, + "end": 2270, + "loc": { + "start": { + "line": 66, + "column": 14 + }, + "end": { + "line": 66, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2270, + "end": 2271, "loc": { "start": { - "line": 55, - "column": 25 + "line": 66, + "column": 21 }, "end": { - "line": 55, - "column": 26 + "line": 66, + "column": 22 } } }, @@ -31405,50 +34496,49 @@ "postfix": false, "binop": null }, - "value": "value", - "start": 1866, - "end": 1871, + "value": "GLOBAL", + "start": 2271, + "end": 2277, "loc": { "start": { - "line": 55, - "column": 26 + "line": 66, + "column": 22 }, "end": { - "line": 55, - "column": 31 + "line": 66, + "column": 28 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 1872, - "end": 1875, + "start": 2277, + "end": 2278, "loc": { "start": { - "line": 55, - "column": 32 + "line": 66, + "column": 28 }, "end": { - "line": 55, - "column": 35 + "line": 66, + "column": 29 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31456,45 +34546,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "jurassicexp", - "start": 1876, - "end": 1889, + "value": "SERVER_IP", + "start": 2278, + "end": 2287, "loc": { "start": { - "line": 55, - "column": 36 + "line": 66, + "column": 29 }, "end": { - "line": 55, - "column": 49 + "line": 66, + "column": 38 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1889, - "end": 1890, + "start": 2287, + "end": 2288, "loc": { "start": { - "line": 55, - "column": 49 + "line": 66, + "column": 38 }, "end": { - "line": 55, - "column": 50 + "line": 66, + "column": 39 } } }, @@ -31510,16 +34600,16 @@ "postfix": false, "binop": null }, - "start": 1891, - "end": 1892, + "start": 2289, + "end": 2290, "loc": { "start": { - "line": 55, - "column": 51 + "line": 66, + "column": 40 }, "end": { - "line": 55, - "column": 52 + "line": 66, + "column": 41 } } }, @@ -31535,24 +34625,24 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 1895, - "end": 1902, + "value": "query", + "start": 2294, + "end": 2299, "loc": { "start": { - "line": 56, - "column": 2 + "line": 67, + "column": 3 }, "end": { - "line": 56, - "column": 9 + "line": 67, + "column": 8 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -31562,22 +34652,22 @@ "binop": null, "updateContext": null }, - "start": 1902, - "end": 1903, + "start": 2299, + "end": 2300, "loc": { "start": { - "line": 56, - "column": 9 + "line": 67, + "column": 8 }, "end": { - "line": 56, - "column": 10 + "line": 67, + "column": 9 } } }, { "type": { - "label": "name", + "label": "`", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31587,77 +34677,76 @@ "postfix": false, "binop": null }, - "value": "log", - "start": 1903, - "end": 1906, + "start": 2301, + "end": 2302, "loc": { "start": { - "line": 56, + "line": 67, "column": 10 }, "end": { - "line": 56, - "column": 13 + "line": 67, + "column": 11 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "template", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1906, - "end": 1907, + "value": "room=", + "start": 2302, + "end": 2307, "loc": { "start": { - "line": 56, - "column": 13 + "line": 67, + "column": 11 }, "end": { - "line": 56, - "column": 14 + "line": 67, + "column": 16 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "${", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Dev Backdoor Initiated! Connecting to devserver", - "start": 1907, - "end": 1956, + "start": 2307, + "end": 2309, "loc": { "start": { - "line": 56, - "column": 14 + "line": 67, + "column": 16 }, "end": { - "line": 56, - "column": 63 + "line": 67, + "column": 18 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31665,40 +34754,25 @@ "postfix": false, "binop": null }, - "start": 1956, - "end": 1957, - "loc": { - "start": { - "line": 56, - "column": 63 - }, - "end": { - "line": 56, - "column": 64 - } - } - }, - { - "type": "CommentLine", - "value": " Local server", - "start": 1960, - "end": 1975, + "value": "room", + "start": 2309, + "end": 2313, "loc": { "start": { - "line": 57, - "column": 2 + "line": 67, + "column": 18 }, "end": { - "line": 57, - "column": 17 + "line": 67, + "column": 22 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31706,51 +34780,50 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 1978, - "end": 1984, + "start": 2313, + "end": 2314, "loc": { "start": { - "line": 58, - "column": 2 + "line": 67, + "column": 22 }, "end": { - "line": 58, - "column": 8 + "line": 67, + "column": 23 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "template", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1985, - "end": 1986, + "value": "&name=", + "start": 2314, + "end": 2320, "loc": { "start": { - "line": 58, - "column": 9 + "line": 67, + "column": 23 }, "end": { - "line": 58, - "column": 10 + "line": 67, + "column": 29 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "${", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -31759,120 +34832,121 @@ "postfix": false, "binop": null }, - "value": "io", - "start": 1987, - "end": 1989, + "start": 2320, + "end": 2322, "loc": { "start": { - "line": 58, - "column": 11 + "line": 67, + "column": 29 }, "end": { - "line": 58, - "column": 13 + "line": 67, + "column": 31 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1989, - "end": 1990, + "value": "cookieInputs", + "start": 2322, + "end": 2334, "loc": { "start": { - "line": 58, - "column": 13 + "line": 67, + "column": 31 }, "end": { - "line": 58, - "column": 14 + "line": 67, + "column": 43 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "connect", - "start": 1990, - "end": 1997, + "start": 2334, + "end": 2335, "loc": { "start": { - "line": 58, - "column": 14 + "line": 67, + "column": 43 }, "end": { - "line": 58, - "column": 21 + "line": 67, + "column": 44 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "num", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1997, - "end": 1998, + "value": 0, + "start": 2335, + "end": 2336, "loc": { "start": { - "line": 58, - "column": 21 + "line": 67, + "column": 44 }, "end": { - "line": 58, - "column": 22 + "line": 67, + "column": 45 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "GLOBAL", - "start": 1998, - "end": 2004, + "start": 2336, + "end": 2337, "loc": { "start": { - "line": 58, - "column": 22 + "line": 67, + "column": 45 }, "end": { - "line": 58, - "column": 28 + "line": 67, + "column": 46 } } }, @@ -31889,16 +34963,16 @@ "binop": null, "updateContext": null }, - "start": 2004, - "end": 2005, + "start": 2337, + "end": 2338, "loc": { "start": { - "line": 58, - "column": 28 + "line": 67, + "column": 46 }, "end": { - "line": 58, - "column": 29 + "line": 67, + "column": 47 } } }, @@ -31914,75 +34988,76 @@ "postfix": false, "binop": null }, - "value": "LOCAL_HOST", - "start": 2005, - "end": 2015, + "value": "value", + "start": 2338, + "end": 2343, "loc": { "start": { - "line": 58, - "column": 29 + "line": 67, + "column": 47 }, "end": { - "line": 58, - "column": 39 + "line": 67, + "column": 52 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2015, - "end": 2016, + "start": 2343, + "end": 2344, "loc": { "start": { - "line": 58, - "column": 39 + "line": 67, + "column": 52 }, "end": { - "line": 58, - "column": 40 + "line": 67, + "column": 53 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "template", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2017, - "end": 2018, + "value": "&team=", + "start": 2344, + "end": 2350, "loc": { "start": { - "line": 58, - "column": 41 + "line": 67, + "column": 53 }, "end": { - "line": 58, - "column": 42 + "line": 67, + "column": 59 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "${", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -31991,51 +35066,50 @@ "postfix": false, "binop": null }, - "value": "query", - "start": 2022, - "end": 2027, + "start": 2350, + "end": 2352, "loc": { "start": { - "line": 59, - "column": 3 + "line": 67, + "column": 59 }, "end": { - "line": 59, - "column": 8 + "line": 67, + "column": 61 } } }, { "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2027, - "end": 2028, + "value": "teamInput", + "start": 2352, + "end": 2361, "loc": { "start": { - "line": 59, - "column": 8 + "line": 67, + "column": 61 }, "end": { - "line": 59, - "column": 9 + "line": 67, + "column": 70 } } }, { "type": { - "label": "`", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32043,16 +35117,16 @@ "postfix": false, "binop": null }, - "start": 2029, - "end": 2030, + "start": 2361, + "end": 2362, "loc": { "start": { - "line": 59, - "column": 10 + "line": 67, + "column": 70 }, "end": { - "line": 59, - "column": 11 + "line": 67, + "column": 71 } } }, @@ -32069,17 +35143,17 @@ "binop": null, "updateContext": null }, - "value": "room=", - "start": 2030, - "end": 2035, + "value": "&roomType=", + "start": 2362, + "end": 2372, "loc": { "start": { - "line": 59, - "column": 11 + "line": 67, + "column": 71 }, "end": { - "line": 59, - "column": 16 + "line": 67, + "column": 81 } } }, @@ -32095,16 +35169,16 @@ "postfix": false, "binop": null }, - "start": 2035, - "end": 2037, + "start": 2372, + "end": 2374, "loc": { "start": { - "line": 59, - "column": 16 + "line": 67, + "column": 81 }, "end": { - "line": 59, - "column": 18 + "line": 67, + "column": 83 } } }, @@ -32120,48 +35194,76 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 2037, - "end": 2041, + "value": "cookieInputs", + "start": 2374, + "end": 2386, "loc": { "start": { - "line": 59, - "column": 18 + "line": 67, + "column": 83 }, "end": { - "line": 59, - "column": 22 + "line": 67, + "column": 95 } } }, { "type": { - "label": "}", + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2386, + "end": 2387, + "loc": { + "start": { + "line": 67, + "column": 95 + }, + "end": { + "line": 67, + "column": 96 + } + } + }, + { + "type": { + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2041, - "end": 2042, + "value": 7, + "start": 2387, + "end": 2388, "loc": { "start": { - "line": 59, - "column": 22 + "line": 67, + "column": 96 }, "end": { - "line": 59, - "column": 23 + "line": 67, + "column": 97 } } }, { "type": { - "label": "template", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -32172,42 +35274,42 @@ "binop": null, "updateContext": null }, - "value": "&name=", - "start": 2042, - "end": 2048, + "start": 2388, + "end": 2389, "loc": { "start": { - "line": 59, - "column": 23 + "line": 67, + "column": 97 }, "end": { - "line": 59, - "column": 29 + "line": 67, + "column": 98 } } }, { "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2048, - "end": 2050, + "start": 2389, + "end": 2390, "loc": { "start": { - "line": 59, - "column": 29 + "line": 67, + "column": 98 }, "end": { - "line": 59, - "column": 31 + "line": 67, + "column": 99 } } }, @@ -32223,51 +35325,50 @@ "postfix": false, "binop": null }, - "value": "cookieInputs", - "start": 2050, - "end": 2062, + "value": "value", + "start": 2390, + "end": 2395, "loc": { "start": { - "line": 59, - "column": 31 + "line": 67, + "column": 99 }, "end": { - "line": 59, - "column": 43 + "line": 67, + "column": 104 } } }, { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2062, - "end": 2063, + "start": 2395, + "end": 2396, "loc": { "start": { - "line": 59, - "column": 43 + "line": 67, + "column": 104 }, "end": { - "line": 59, - "column": 44 + "line": 67, + "column": 105 } } }, { "type": { - "label": "num", + "label": "template", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32276,50 +35377,49 @@ "binop": null, "updateContext": null }, - "value": 0, - "start": 2063, - "end": 2064, + "value": "", + "start": 2396, + "end": 2396, "loc": { "start": { - "line": 59, - "column": 44 + "line": 67, + "column": 105 }, "end": { - "line": 59, - "column": 45 + "line": 67, + "column": 105 } } }, { "type": { - "label": "]", + "label": "`", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2064, - "end": 2065, + "start": 2396, + "end": 2397, "loc": { "start": { - "line": 59, - "column": 45 + "line": 67, + "column": 105 }, "end": { - "line": 59, - "column": 46 + "line": 67, + "column": 106 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -32329,16 +35429,16 @@ "binop": null, "updateContext": null }, - "start": 2065, - "end": 2066, + "start": 2397, + "end": 2398, "loc": { "start": { - "line": 59, - "column": 46 + "line": 67, + "column": 106 }, "end": { - "line": 59, - "column": 47 + "line": 67, + "column": 107 } } }, @@ -32354,50 +35454,51 @@ "postfix": false, "binop": null }, - "value": "value", - "start": 2066, - "end": 2071, + "value": "reconnectionAttempts", + "start": 2402, + "end": 2422, "loc": { "start": { - "line": 59, - "column": 47 + "line": 68, + "column": 3 }, "end": { - "line": 59, - "column": 52 + "line": 68, + "column": 23 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2071, - "end": 2072, + "start": 2422, + "end": 2423, "loc": { "start": { - "line": 59, - "column": 52 + "line": 68, + "column": 23 }, "end": { - "line": 59, - "column": 53 + "line": 68, + "column": 24 } } }, { "type": { - "label": "template", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32406,25 +35507,25 @@ "binop": null, "updateContext": null }, - "value": "&team=", - "start": 2072, - "end": 2078, + "value": 3, + "start": 2424, + "end": 2425, "loc": { "start": { - "line": 59, - "column": 53 + "line": 68, + "column": 25 }, "end": { - "line": 59, - "column": 59 + "line": 68, + "column": 26 } } }, { "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32432,24 +35533,24 @@ "postfix": false, "binop": null }, - "start": 2078, - "end": 2080, + "start": 2428, + "end": 2429, "loc": { "start": { - "line": 59, - "column": 59 + "line": 69, + "column": 2 }, "end": { - "line": 59, - "column": 61 + "line": 69, + "column": 3 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32457,17 +35558,16 @@ "postfix": false, "binop": null }, - "value": "teamInput", - "start": 2080, - "end": 2089, + "start": 2429, + "end": 2430, "loc": { "start": { - "line": 59, - "column": 61 + "line": 69, + "column": 3 }, "end": { - "line": 59, - "column": 70 + "line": 69, + "column": 4 } } }, @@ -32483,68 +35583,68 @@ "postfix": false, "binop": null }, - "start": 2089, - "end": 2090, + "start": 2432, + "end": 2433, "loc": { "start": { - "line": 59, - "column": 70 + "line": 70, + "column": 1 }, "end": { - "line": 59, - "column": 71 + "line": 70, + "column": 2 } } }, { "type": { - "label": "template", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "&roomType=", - "start": 2090, - "end": 2100, + "value": "socket", + "start": 2436, + "end": 2442, "loc": { "start": { - "line": 59, - "column": 71 + "line": 72, + "column": 1 }, "end": { - "line": 59, - "column": 81 + "line": 72, + "column": 7 } } }, { "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2100, - "end": 2102, + "start": 2442, + "end": 2443, "loc": { "start": { - "line": 59, - "column": 81 + "line": 72, + "column": 7 }, "end": { - "line": 59, - "column": 83 + "line": 72, + "column": 8 } } }, @@ -32560,23 +35660,23 @@ "postfix": false, "binop": null }, - "value": "cookieInputs", - "start": 2102, - "end": 2114, + "value": "on", + "start": 2443, + "end": 2445, "loc": { "start": { - "line": 59, - "column": 83 + "line": 72, + "column": 8 }, "end": { - "line": 59, - "column": 95 + "line": 72, + "column": 10 } } }, { "type": { - "label": "[", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -32584,25 +35684,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2114, - "end": 2115, + "start": 2445, + "end": 2446, "loc": { "start": { - "line": 59, - "column": 95 + "line": 72, + "column": 10 }, "end": { - "line": 59, - "column": 96 + "line": 72, + "column": 11 } } }, { "type": { - "label": "num", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32613,24 +35712,24 @@ "binop": null, "updateContext": null }, - "value": 7, - "start": 2115, - "end": 2116, + "value": "connect", + "start": 2446, + "end": 2455, "loc": { "start": { - "line": 59, - "column": 96 + "line": 72, + "column": 11 }, "end": { - "line": 59, - "column": 97 + "line": 72, + "column": 20 } } }, { "type": { - "label": "]", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -32640,50 +35739,49 @@ "binop": null, "updateContext": null }, - "start": 2116, - "end": 2117, + "start": 2455, + "end": 2456, "loc": { "start": { - "line": 59, - "column": 97 + "line": 72, + "column": 20 }, "end": { - "line": 59, - "column": 98 + "line": 72, + "column": 21 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2117, - "end": 2118, + "start": 2457, + "end": 2458, "loc": { "start": { - "line": 59, - "column": 98 + "line": 72, + "column": 22 }, "end": { - "line": 59, - "column": 99 + "line": 72, + "column": 23 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32691,75 +35789,73 @@ "postfix": false, "binop": null }, - "value": "value", - "start": 2118, - "end": 2123, + "start": 2458, + "end": 2459, "loc": { "start": { - "line": 59, - "column": 99 + "line": 72, + "column": 23 }, "end": { - "line": 59, - "column": 104 + "line": 72, + "column": 24 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2123, - "end": 2124, + "start": 2460, + "end": 2462, "loc": { "start": { - "line": 59, - "column": 104 + "line": 72, + "column": 25 }, "end": { - "line": 59, - "column": 105 + "line": 72, + "column": 27 } } }, { "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "", - "start": 2124, - "end": 2124, + "start": 2463, + "end": 2464, "loc": { "start": { - "line": 59, - "column": 105 + "line": 72, + "column": 28 }, "end": { - "line": 59, - "column": 105 + "line": 72, + "column": 29 } } }, { "type": { - "label": "`", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32769,50 +35865,50 @@ "postfix": false, "binop": null }, - "start": 2124, - "end": 2125, + "value": "setupSocket", + "start": 2467, + "end": 2478, "loc": { "start": { - "line": 59, - "column": 105 + "line": 73, + "column": 2 }, "end": { - "line": 59, - "column": 106 + "line": 73, + "column": 13 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2125, - "end": 2126, + "start": 2478, + "end": 2479, "loc": { "start": { - "line": 59, - "column": 106 + "line": 73, + "column": 13 }, "end": { - "line": 59, - "column": 107 + "line": 73, + "column": 14 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32820,49 +35916,38 @@ "postfix": false, "binop": null }, - "value": "reconnectionAttempts", - "start": 2130, - "end": 2150, + "start": 2479, + "end": 2480, "loc": { "start": { - "line": 60, - "column": 3 + "line": 73, + "column": 14 }, "end": { - "line": 60, - "column": 23 + "line": 73, + "column": 15 } } }, { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2150, - "end": 2151, + "type": "CommentLine", + "value": " Init pixi", + "start": 2483, + "end": 2495, "loc": { "start": { - "line": 60, - "column": 23 + "line": 74, + "column": 2 }, "end": { - "line": 60, - "column": 24 + "line": 74, + "column": 14 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32870,28 +35955,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 3, - "start": 2152, - "end": 2153, + "value": "loadTextures", + "start": 2498, + "end": 2510, "loc": { "start": { - "line": 60, - "column": 25 + "line": 75, + "column": 2 }, "end": { - "line": 60, - "column": 26 + "line": 75, + "column": 14 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32899,16 +35983,16 @@ "postfix": false, "binop": null }, - "start": 2156, - "end": 2157, + "start": 2510, + "end": 2511, "loc": { "start": { - "line": 61, - "column": 2 + "line": 75, + "column": 14 }, "end": { - "line": 61, - "column": 3 + "line": 75, + "column": 15 } } }, @@ -32924,22 +36008,23 @@ "postfix": false, "binop": null }, - "start": 2157, - "end": 2158, + "start": 2511, + "end": 2512, "loc": { "start": { - "line": 61, - "column": 3 + "line": 75, + "column": 15 }, "end": { - "line": 61, - "column": 4 + "line": 75, + "column": 16 } } }, { "type": { - "label": "}", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -32947,121 +36032,134 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2160, - "end": 2161, + "value": "if", + "start": 2515, + "end": 2517, "loc": { "start": { - "line": 62, - "column": 1 + "line": 76, + "column": 2 }, "end": { - "line": 62, - "column": 2 + "line": 76, + "column": 4 } } }, { "type": { - "label": "else", - "keyword": "else", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "else", - "start": 2163, - "end": 2167, + "start": 2518, + "end": 2519, "loc": { "start": { - "line": 63, - "column": 1 + "line": 76, + "column": 5 }, "end": { - "line": 63, - "column": 5 + "line": 76, + "column": 6 } } }, { "type": { - "label": "{", + "label": "typeof", + "keyword": "typeof", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2168, - "end": 2169, + "value": "typeof", + "start": 2519, + "end": 2525, "loc": { "start": { - "line": 63, + "line": 76, "column": 6 }, "end": { - "line": 63, - "column": 7 + "line": 76, + "column": 12 } } }, { - "type": "CommentLine", - "value": " Production server", - "start": 2172, - "end": 2192, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "app", + "start": 2526, + "end": 2529, "loc": { "start": { - "line": 64, - "column": 2 + "line": 76, + "column": 13 }, "end": { - "line": 64, - "column": 22 + "line": 76, + "column": 16 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "value": "console", - "start": 2195, - "end": 2202, + "value": "!==", + "start": 2530, + "end": 2533, "loc": { "start": { - "line": 65, - "column": 2 + "line": 76, + "column": 17 }, "end": { - "line": 65, - "column": 9 + "line": 76, + "column": 20 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33070,24 +36168,25 @@ "binop": null, "updateContext": null }, - "start": 2202, - "end": 2203, + "value": "undefined", + "start": 2534, + "end": 2545, "loc": { "start": { - "line": 65, - "column": 9 + "line": 76, + "column": 21 }, "end": { - "line": 65, - "column": 10 + "line": 76, + "column": 32 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33095,23 +36194,22 @@ "postfix": false, "binop": null }, - "value": "log", - "start": 2203, - "end": 2206, + "start": 2545, + "end": 2546, "loc": { "start": { - "line": 65, - "column": 10 + "line": 76, + "column": 32 }, "end": { - "line": 65, - "column": 13 + "line": 76, + "column": 33 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -33121,22 +36219,22 @@ "postfix": false, "binop": null }, - "start": 2206, - "end": 2207, + "start": 2547, + "end": 2548, "loc": { "start": { - "line": 65, - "column": 13 + "line": 76, + "column": 34 }, "end": { - "line": 65, - "column": 14 + "line": 76, + "column": 35 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -33144,26 +36242,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "connecting to main server", - "start": 2207, - "end": 2234, + "value": "app", + "start": 2552, + "end": 2555, "loc": { "start": { - "line": 65, - "column": 14 + "line": 77, + "column": 3 }, "end": { - "line": 65, - "column": 41 + "line": 77, + "column": 6 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -33171,18 +36268,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2234, - "end": 2235, + "start": 2555, + "end": 2556, "loc": { "start": { - "line": 65, - "column": 41 + "line": 77, + "column": 6 }, "end": { - "line": 65, - "column": 42 + "line": 77, + "column": 7 } } }, @@ -33198,52 +36296,50 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 2238, - "end": 2244, + "value": "start", + "start": 2556, + "end": 2561, "loc": { "start": { - "line": 66, - "column": 2 + "line": 77, + "column": 7 }, "end": { - "line": 66, - "column": 8 + "line": 77, + "column": 12 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 2245, - "end": 2246, + "start": 2561, + "end": 2562, "loc": { "start": { - "line": 66, - "column": 9 + "line": 77, + "column": 12 }, "end": { - "line": 66, - "column": 10 + "line": 77, + "column": 13 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33251,23 +36347,22 @@ "postfix": false, "binop": null }, - "value": "io", - "start": 2247, - "end": 2249, + "start": 2562, + "end": 2563, "loc": { "start": { - "line": 66, - "column": 11 + "line": 77, + "column": 13 }, "end": { - "line": 66, - "column": 13 + "line": 77, + "column": 14 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -33275,27 +36370,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2249, - "end": 2250, + "start": 2566, + "end": 2567, "loc": { "start": { - "line": 66, - "column": 13 + "line": 78, + "column": 2 }, "end": { - "line": 66, - "column": 14 + "line": 78, + "column": 3 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33303,25 +36397,24 @@ "postfix": false, "binop": null }, - "value": "connect", - "start": 2250, - "end": 2257, + "start": 2569, + "end": 2570, "loc": { "start": { - "line": 66, - "column": 14 + "line": 79, + "column": 1 }, "end": { - "line": 66, - "column": 21 + "line": 79, + "column": 2 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33329,24 +36422,24 @@ "postfix": false, "binop": null }, - "start": 2257, - "end": 2258, + "start": 2570, + "end": 2571, "loc": { "start": { - "line": 66, - "column": 21 + "line": 79, + "column": 2 }, "end": { - "line": 66, - "column": 22 + "line": 79, + "column": 3 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33354,23 +36447,39 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 2258, - "end": 2264, + "start": 2572, + "end": 2573, "loc": { "start": { - "line": 66, - "column": 22 + "line": 80, + "column": 0 }, "end": { - "line": 66, - "column": 28 + "line": 80, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Run on disconnect to reset all server-based variables and connections\n ", + "start": 2575, + "end": 2655, + "loc": { + "start": { + "line": 82, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 } } }, { "type": { - "label": ".", + "label": "export", + "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -33381,22 +36490,24 @@ "binop": null, "updateContext": null }, - "start": 2264, - "end": 2265, + "value": "export", + "start": 2656, + "end": 2662, "loc": { "start": { - "line": 66, - "column": 28 + "line": 85, + "column": 0 }, "end": { - "line": 66, - "column": 29 + "line": 85, + "column": 6 } } }, { "type": { - "label": "name", + "label": "function", + "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -33406,49 +36517,49 @@ "postfix": false, "binop": null }, - "value": "SERVER_IP", - "start": 2265, - "end": 2274, + "value": "function", + "start": 2663, + "end": 2671, "loc": { "start": { - "line": 66, - "column": 29 + "line": 85, + "column": 7 }, "end": { - "line": 66, - "column": 38 + "line": 85, + "column": 15 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2274, - "end": 2275, + "value": "disconnect", + "start": 2672, + "end": 2682, "loc": { "start": { - "line": 66, - "column": 38 + "line": 85, + "column": 16 }, "end": { - "line": 66, - "column": 39 + "line": 85, + "column": 26 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -33458,24 +36569,24 @@ "postfix": false, "binop": null }, - "start": 2276, - "end": 2277, + "start": 2683, + "end": 2684, "loc": { "start": { - "line": 66, - "column": 40 + "line": 85, + "column": 27 }, "end": { - "line": 66, - "column": 41 + "line": 85, + "column": 28 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33483,49 +36594,47 @@ "postfix": false, "binop": null }, - "value": "query", - "start": 2281, - "end": 2286, + "start": 2684, + "end": 2685, "loc": { "start": { - "line": 67, - "column": 3 + "line": 85, + "column": 28 }, "end": { - "line": 67, - "column": 8 + "line": 85, + "column": 29 } } }, { "type": { - "label": ":", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2286, - "end": 2287, + "start": 2686, + "end": 2687, "loc": { "start": { - "line": 67, - "column": 8 + "line": 85, + "column": 30 }, "end": { - "line": 67, - "column": 9 + "line": 85, + "column": 31 } } }, { "type": { - "label": "`", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -33535,22 +36644,23 @@ "postfix": false, "binop": null }, - "start": 2288, - "end": 2289, + "value": "app", + "start": 2689, + "end": 2692, "loc": { "start": { - "line": 67, - "column": 10 + "line": 86, + "column": 1 }, "end": { - "line": 67, - "column": 11 + "line": 86, + "column": 4 } } }, { "type": { - "label": "template", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -33561,24 +36671,23 @@ "binop": null, "updateContext": null }, - "value": "room=", - "start": 2289, - "end": 2294, + "start": 2692, + "end": 2693, "loc": { "start": { - "line": 67, - "column": 11 + "line": 86, + "column": 4 }, "end": { - "line": 67, - "column": 16 + "line": 86, + "column": 5 } } }, { "type": { - "label": "${", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -33587,23 +36696,24 @@ "postfix": false, "binop": null }, - "start": 2294, - "end": 2296, + "value": "stop", + "start": 2693, + "end": 2697, "loc": { "start": { - "line": 67, - "column": 16 + "line": 86, + "column": 5 }, "end": { - "line": 67, - "column": 18 + "line": 86, + "column": 9 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -33612,23 +36722,22 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 2296, - "end": 2300, + "start": 2697, + "end": 2698, "loc": { "start": { - "line": 67, - "column": 18 + "line": 86, + "column": 9 }, "end": { - "line": 67, - "column": 22 + "line": 86, + "column": 10 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -33638,68 +36747,68 @@ "postfix": false, "binop": null }, - "start": 2300, - "end": 2301, + "start": 2698, + "end": 2699, "loc": { "start": { - "line": 67, - "column": 22 + "line": 86, + "column": 10 }, "end": { - "line": 67, - "column": 23 + "line": 86, + "column": 11 } } }, { "type": { - "label": "template", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "&name=", - "start": 2301, - "end": 2307, + "value": "socket", + "start": 2701, + "end": 2707, "loc": { "start": { - "line": 67, - "column": 23 + "line": 87, + "column": 1 }, "end": { - "line": 67, - "column": 29 + "line": 87, + "column": 7 } } }, { "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2307, - "end": 2309, + "start": 2707, + "end": 2708, "loc": { "start": { - "line": 67, - "column": 29 + "line": 87, + "column": 7 }, "end": { - "line": 67, - "column": 31 + "line": 87, + "column": 8 } } }, @@ -33715,23 +36824,23 @@ "postfix": false, "binop": null }, - "value": "cookieInputs", - "start": 2309, - "end": 2321, + "value": "disconnect", + "start": 2708, + "end": 2718, "loc": { "start": { - "line": 67, - "column": 31 + "line": 87, + "column": 8 }, "end": { - "line": 67, - "column": 43 + "line": 87, + "column": 18 } } }, { "type": { - "label": "[", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -33739,105 +36848,94 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2321, - "end": 2322, + "start": 2718, + "end": 2719, "loc": { "start": { - "line": 67, - "column": 43 + "line": 87, + "column": 18 }, "end": { - "line": 67, - "column": 44 + "line": 87, + "column": 19 } } }, { "type": { - "label": "num", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 2322, - "end": 2323, + "start": 2719, + "end": 2720, "loc": { "start": { - "line": 67, - "column": 44 + "line": 87, + "column": 19 }, "end": { - "line": 67, - "column": 45 + "line": 87, + "column": 20 } } }, { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2323, - "end": 2324, + "type": "CommentLine", + "value": " Wipe objects list", + "start": 2723, + "end": 2743, "loc": { "start": { - "line": 67, - "column": 45 + "line": 89, + "column": 1 }, "end": { - "line": 67, - "column": 46 + "line": 89, + "column": 21 } } }, { "type": { - "label": ".", + "label": "for", + "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, - "isLoop": false, + "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 2324, - "end": 2325, + "value": "for", + "start": 2745, + "end": 2748, "loc": { "start": { - "line": 67, - "column": 46 + "line": 90, + "column": 1 }, "end": { - "line": 67, - "column": 47 + "line": 90, + "column": 4 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -33846,48 +36944,23 @@ "postfix": false, "binop": null }, - "value": "value", - "start": 2325, - "end": 2330, - "loc": { - "start": { - "line": 67, - "column": 47 - }, - "end": { - "line": 67, - "column": 52 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2330, - "end": 2331, + "start": 2749, + "end": 2750, "loc": { "start": { - "line": 67, - "column": 52 + "line": 90, + "column": 5 }, "end": { - "line": 67, - "column": 53 + "line": 90, + "column": 6 } } }, { "type": { - "label": "template", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -33898,24 +36971,24 @@ "binop": null, "updateContext": null }, - "value": "&team=", - "start": 2331, - "end": 2337, + "value": "let", + "start": 2750, + "end": 2753, "loc": { "start": { - "line": 67, - "column": 53 + "line": 90, + "column": 6 }, "end": { - "line": 67, - "column": 59 + "line": 90, + "column": 9 } } }, { "type": { - "label": "${", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -33924,50 +36997,53 @@ "postfix": false, "binop": null }, - "start": 2337, - "end": 2339, + "value": "objType", + "start": 2754, + "end": 2761, "loc": { "start": { - "line": 67, - "column": 59 + "line": 90, + "column": 10 }, "end": { - "line": 67, - "column": 61 + "line": 90, + "column": 17 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "in", + "keyword": "in", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 7, + "updateContext": null }, - "value": "teamInput", - "start": 2339, - "end": 2348, + "value": "in", + "start": 2762, + "end": 2764, "loc": { "start": { - "line": 67, - "column": 61 + "line": 90, + "column": 18 }, "end": { - "line": 67, - "column": 70 + "line": 90, + "column": 20 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33975,22 +37051,23 @@ "postfix": false, "binop": null }, - "start": 2348, - "end": 2349, + "value": "objects", + "start": 2765, + "end": 2772, "loc": { - "start": { - "line": 67, - "column": 70 + "start": { + "line": 90, + "column": 21 }, "end": { - "line": 67, - "column": 71 + "line": 90, + "column": 28 } } }, { "type": { - "label": "template", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -33998,26 +37075,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "&roomType=", - "start": 2349, - "end": 2359, + "start": 2772, + "end": 2773, "loc": { "start": { - "line": 67, - "column": 71 + "line": 90, + "column": 28 }, "end": { - "line": 67, - "column": 81 + "line": 90, + "column": 29 } } }, { "type": { - "label": "${", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -34027,16 +37102,16 @@ "postfix": false, "binop": null }, - "start": 2359, - "end": 2361, + "start": 2774, + "end": 2775, "loc": { "start": { - "line": 67, - "column": 81 + "line": 90, + "column": 30 }, "end": { - "line": 67, - "column": 83 + "line": 90, + "column": 31 } } }, @@ -34052,17 +37127,17 @@ "postfix": false, "binop": null }, - "value": "cookieInputs", - "start": 2361, - "end": 2373, + "value": "objects", + "start": 2778, + "end": 2785, "loc": { "start": { - "line": 67, - "column": 83 + "line": 91, + "column": 2 }, "end": { - "line": 67, - "column": 95 + "line": 91, + "column": 9 } } }, @@ -34079,22 +37154,22 @@ "binop": null, "updateContext": null }, - "start": 2373, - "end": 2374, + "start": 2785, + "end": 2786, "loc": { "start": { - "line": 67, - "column": 95 + "line": 91, + "column": 9 }, "end": { - "line": 67, - "column": 96 + "line": 91, + "column": 10 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -34102,20 +37177,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 7, - "start": 2374, - "end": 2375, + "value": "objType", + "start": 2786, + "end": 2793, "loc": { "start": { - "line": 67, - "column": 96 + "line": 91, + "column": 10 }, "end": { - "line": 67, - "column": 97 + "line": 91, + "column": 17 } } }, @@ -34132,49 +37206,50 @@ "binop": null, "updateContext": null }, - "start": 2375, - "end": 2376, + "start": 2793, + "end": 2794, "loc": { "start": { - "line": 67, - "column": 97 + "line": 91, + "column": 17 }, "end": { - "line": 67, - "column": 98 + "line": 91, + "column": 18 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 2376, - "end": 2377, + "value": "=", + "start": 2795, + "end": 2796, "loc": { "start": { - "line": 67, - "column": 98 + "line": 91, + "column": 19 }, "end": { - "line": 67, - "column": 99 + "line": 91, + "column": 20 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -34183,17 +37258,16 @@ "postfix": false, "binop": null }, - "value": "value", - "start": 2377, - "end": 2382, + "start": 2797, + "end": 2798, "loc": { "start": { - "line": 67, - "column": 99 + "line": 91, + "column": 21 }, "end": { - "line": 67, - "column": 104 + "line": 91, + "column": 22 } } }, @@ -34209,22 +37283,22 @@ "postfix": false, "binop": null }, - "start": 2382, - "end": 2383, + "start": 2798, + "end": 2799, "loc": { "start": { - "line": 67, - "column": 104 + "line": 91, + "column": 22 }, "end": { - "line": 67, - "column": 105 + "line": 91, + "column": 23 } } }, { "type": { - "label": "template", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -34232,28 +37306,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "", - "start": 2383, - "end": 2383, + "start": 2801, + "end": 2802, "loc": { "start": { - "line": 67, - "column": 105 + "line": 92, + "column": 1 }, "end": { - "line": 67, - "column": 105 + "line": 92, + "column": 2 } } }, { "type": { - "label": "`", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34261,48 +37333,39 @@ "postfix": false, "binop": null }, - "start": 2383, - "end": 2384, + "start": 2803, + "end": 2804, "loc": { "start": { - "line": 67, - "column": 105 + "line": 93, + "column": 0 }, "end": { - "line": 67, - "column": 106 + "line": 93, + "column": 1 } } }, { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2384, - "end": 2385, + "type": "CommentBlock", + "value": "*\n * First time setup when connection starts. Run on connect event to ensure that the socket is connected first.\n ", + "start": 2806, + "end": 2924, "loc": { "start": { - "line": 67, - "column": 106 + "line": 95, + "column": 0 }, "end": { - "line": 67, - "column": 107 + "line": 97, + "column": 3 } } }, { "type": { - "label": "name", + "label": "function", + "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -34312,76 +37375,74 @@ "postfix": false, "binop": null }, - "value": "reconnectionAttempts", - "start": 2389, - "end": 2409, + "value": "function", + "start": 2925, + "end": 2933, "loc": { "start": { - "line": 68, - "column": 3 + "line": 98, + "column": 0 }, "end": { - "line": 68, - "column": 23 + "line": 98, + "column": 8 } } }, { "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2409, - "end": 2410, + "value": "setupSocket", + "start": 2934, + "end": 2945, "loc": { "start": { - "line": 68, - "column": 23 + "line": 98, + "column": 9 }, "end": { - "line": 68, - "column": 24 + "line": 98, + "column": 20 } } }, { "type": { - "label": "num", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 3, - "start": 2411, - "end": 2412, + "start": 2946, + "end": 2947, "loc": { "start": { - "line": 68, - "column": 25 + "line": 98, + "column": 21 }, "end": { - "line": 68, - "column": 26 + "line": 98, + "column": 22 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -34391,24 +37452,24 @@ "postfix": false, "binop": null }, - "start": 2415, - "end": 2416, + "start": 2947, + "end": 2948, "loc": { "start": { - "line": 69, - "column": 2 + "line": 98, + "column": 22 }, "end": { - "line": 69, - "column": 3 + "line": 98, + "column": 23 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34416,41 +37477,32 @@ "postfix": false, "binop": null }, - "start": 2416, - "end": 2417, + "start": 2949, + "end": 2950, "loc": { "start": { - "line": 69, - "column": 3 + "line": 98, + "column": 24 }, "end": { - "line": 69, - "column": 4 + "line": 98, + "column": 25 } } }, { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2419, - "end": 2420, + "type": "CommentLine", + "value": " Debug", + "start": 2952, + "end": 2960, "loc": { "start": { - "line": 70, + "line": 99, "column": 1 }, "end": { - "line": 70, - "column": 2 + "line": 99, + "column": 9 } } }, @@ -34466,17 +37518,17 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 2423, - "end": 2429, + "value": "console", + "start": 2962, + "end": 2969, "loc": { "start": { - "line": 72, + "line": 100, "column": 1 }, "end": { - "line": 72, - "column": 7 + "line": 100, + "column": 8 } } }, @@ -34493,16 +37545,16 @@ "binop": null, "updateContext": null }, - "start": 2429, - "end": 2430, + "start": 2969, + "end": 2970, "loc": { "start": { - "line": 72, - "column": 7 + "line": 100, + "column": 8 }, "end": { - "line": 72, - "column": 8 + "line": 100, + "column": 9 } } }, @@ -34518,17 +37570,17 @@ "postfix": false, "binop": null }, - "value": "on", - "start": 2430, - "end": 2432, + "value": "log", + "start": 2970, + "end": 2973, "loc": { "start": { - "line": 72, - "column": 8 + "line": 100, + "column": 9 }, "end": { - "line": 72, - "column": 10 + "line": 100, + "column": 12 } } }, @@ -34544,16 +37596,16 @@ "postfix": false, "binop": null }, - "start": 2432, - "end": 2433, + "start": 2973, + "end": 2974, "loc": { "start": { - "line": 72, - "column": 10 + "line": 100, + "column": 12 }, "end": { - "line": 72, - "column": 11 + "line": 100, + "column": 13 } } }, @@ -34570,17 +37622,17 @@ "binop": null, "updateContext": null }, - "value": "connect", - "start": 2433, - "end": 2442, + "value": "Socket:", + "start": 2974, + "end": 2983, "loc": { "start": { - "line": 72, - "column": 11 + "line": 100, + "column": 13 }, "end": { - "line": 72, - "column": 20 + "line": 100, + "column": 22 } } }, @@ -34597,23 +37649,23 @@ "binop": null, "updateContext": null }, - "start": 2442, - "end": 2443, + "start": 2983, + "end": 2984, "loc": { "start": { - "line": 72, - "column": 20 + "line": 100, + "column": 22 }, "end": { - "line": 72, - "column": 21 + "line": 100, + "column": 23 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -34622,16 +37674,17 @@ "postfix": false, "binop": null }, - "start": 2444, - "end": 2445, + "value": "socket", + "start": 2985, + "end": 2991, "loc": { "start": { - "line": 72, - "column": 22 + "line": 100, + "column": 24 }, "end": { - "line": 72, - "column": 23 + "line": 100, + "column": 30 } } }, @@ -34647,67 +37700,60 @@ "postfix": false, "binop": null }, - "start": 2445, - "end": 2446, + "start": 2991, + "end": 2992, "loc": { "start": { - "line": 72, - "column": 23 + "line": 100, + "column": 30 }, "end": { - "line": 72, - "column": 24 + "line": 100, + "column": 31 } } }, { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2447, - "end": 2449, + "type": "CommentLine", + "value": " Instantiate Chat System", + "start": 2995, + "end": 3021, "loc": { "start": { - "line": 72, - "column": 25 + "line": 102, + "column": 1 }, "end": { - "line": 72, + "line": 102, "column": 27 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2450, - "end": 2451, + "value": "let", + "start": 3023, + "end": 3026, "loc": { "start": { - "line": 72, - "column": 28 + "line": 103, + "column": 1 }, "end": { - "line": 72, - "column": 29 + "line": 103, + "column": 4 } } }, @@ -34723,86 +37769,75 @@ "postfix": false, "binop": null }, - "value": "setupSocket", - "start": 2454, - "end": 2465, + "value": "chat", + "start": 3027, + "end": 3031, "loc": { "start": { - "line": 73, - "column": 2 + "line": 103, + "column": 5 }, "end": { - "line": 73, - "column": 13 + "line": 103, + "column": 9 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2465, - "end": 2466, + "value": "=", + "start": 3032, + "end": 3033, "loc": { "start": { - "line": 73, - "column": 13 + "line": 103, + "column": 10 }, "end": { - "line": 73, - "column": 14 + "line": 103, + "column": 11 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2466, - "end": 2467, + "value": "new", + "start": 3034, + "end": 3037, "loc": { "start": { - "line": 73, - "column": 14 + "line": 103, + "column": 12 }, "end": { - "line": 73, + "line": 103, "column": 15 } } }, - { - "type": "CommentLine", - "value": " Init pixi", - "start": 2470, - "end": 2482, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 14 - } - } - }, { "type": { "label": "name", @@ -34815,17 +37850,17 @@ "postfix": false, "binop": null }, - "value": "loadTextures", - "start": 2485, - "end": 2497, + "value": "ChatClient", + "start": 3038, + "end": 3048, "loc": { "start": { - "line": 75, - "column": 2 + "line": 103, + "column": 16 }, "end": { - "line": 75, - "column": 14 + "line": 103, + "column": 26 } } }, @@ -34841,24 +37876,24 @@ "postfix": false, "binop": null }, - "start": 2497, - "end": 2498, + "start": 3048, + "end": 3049, "loc": { "start": { - "line": 75, - "column": 14 + "line": 103, + "column": 26 }, "end": { - "line": 75, - "column": 15 + "line": 103, + "column": 27 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34866,51 +37901,23 @@ "postfix": false, "binop": null }, - "start": 2498, - "end": 2499, + "start": 3049, + "end": 3050, "loc": { "start": { - "line": 75, - "column": 15 + "line": 103, + "column": 27 }, "end": { - "line": 75, - "column": 16 + "line": 103, + "column": 28 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 2502, - "end": 2504, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 76, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -34919,44 +37926,43 @@ "postfix": false, "binop": null }, - "start": 2505, - "end": 2506, + "value": "player", + "start": 3051, + "end": 3057, "loc": { - "start": { - "line": 76, - "column": 5 + "start": { + "line": 103, + "column": 29 }, "end": { - "line": 76, - "column": 6 + "line": 103, + "column": 35 } } }, { "type": { - "label": "typeof", - "keyword": "typeof", + "label": ":", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "typeof", - "start": 2506, - "end": 2512, + "start": 3057, + "end": 3058, "loc": { "start": { - "line": 76, - "column": 6 + "line": 103, + "column": 35 }, "end": { - "line": 76, - "column": 12 + "line": 103, + "column": 36 } } }, @@ -34972,50 +37978,49 @@ "postfix": false, "binop": null }, - "value": "app", - "start": 2513, - "end": 2516, + "value": "cookieInputs", + "start": 3059, + "end": 3071, "loc": { "start": { - "line": 76, - "column": 13 + "line": 103, + "column": 37 }, "end": { - "line": 76, - "column": 16 + "line": 103, + "column": 49 } } }, { "type": { - "label": "==/!=", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "!==", - "start": 2517, - "end": 2520, + "start": 3071, + "end": 3072, "loc": { "start": { - "line": 76, - "column": 17 + "line": 103, + "column": 49 }, "end": { - "line": 76, - "column": 20 + "line": 103, + "column": 50 } } }, { "type": { - "label": "string", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -35026,23 +38031,23 @@ "binop": null, "updateContext": null }, - "value": "undefined", - "start": 2521, - "end": 2532, + "value": 0, + "start": 3072, + "end": 3073, "loc": { "start": { - "line": 76, - "column": 21 + "line": 103, + "column": 50 }, "end": { - "line": 76, - "column": 32 + "line": 103, + "column": 51 } } }, { "type": { - "label": ")", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -35050,43 +38055,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2532, - "end": 2533, + "start": 3073, + "end": 3074, "loc": { "start": { - "line": 76, - "column": 32 + "line": 103, + "column": 51 }, "end": { - "line": 76, - "column": 33 + "line": 103, + "column": 52 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2534, - "end": 2535, + "start": 3074, + "end": 3075, "loc": { "start": { - "line": 76, - "column": 34 + "line": 103, + "column": 52 }, "end": { - "line": 76, - "column": 35 + "line": 103, + "column": 53 } } }, @@ -35102,24 +38109,24 @@ "postfix": false, "binop": null }, - "value": "app", - "start": 2539, - "end": 2542, + "value": "value", + "start": 3075, + "end": 3080, "loc": { "start": { - "line": 77, - "column": 3 + "line": 103, + "column": 53 }, "end": { - "line": 77, - "column": 6 + "line": 103, + "column": 58 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -35129,16 +38136,16 @@ "binop": null, "updateContext": null }, - "start": 2542, - "end": 2543, + "start": 3080, + "end": 3081, "loc": { "start": { - "line": 77, - "column": 6 + "line": 103, + "column": 58 }, "end": { - "line": 77, - "column": 7 + "line": 103, + "column": 59 } } }, @@ -35154,50 +38161,51 @@ "postfix": false, "binop": null }, - "value": "start", - "start": 2543, - "end": 2548, + "value": "room", + "start": 3082, + "end": 3086, "loc": { "start": { - "line": 77, - "column": 7 + "line": 103, + "column": 60 }, "end": { - "line": 77, - "column": 12 + "line": 103, + "column": 64 } } }, { "type": { - "label": "(", + "label": ":", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2548, - "end": 2549, + "start": 3086, + "end": 3087, "loc": { "start": { - "line": 77, - "column": 12 + "line": 103, + "column": 64 }, "end": { - "line": 77, - "column": 13 + "line": 103, + "column": 65 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -35205,72 +38213,76 @@ "postfix": false, "binop": null }, - "start": 2549, - "end": 2550, + "value": "cookieInputs", + "start": 3088, + "end": 3100, "loc": { "start": { - "line": 77, - "column": 13 + "line": 103, + "column": 66 }, "end": { - "line": 77, - "column": 14 + "line": 103, + "column": 78 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2553, - "end": 2554, + "start": 3100, + "end": 3101, "loc": { "start": { - "line": 78, - "column": 2 + "line": 103, + "column": 78 }, "end": { - "line": 78, - "column": 3 + "line": 103, + "column": 79 } } }, { "type": { - "label": "}", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2556, - "end": 2557, + "value": 1, + "start": 3101, + "end": 3102, "loc": { "start": { - "line": 79, - "column": 1 + "line": 103, + "column": 79 }, "end": { - "line": 79, - "column": 2 + "line": 103, + "column": 80 } } }, { "type": { - "label": ")", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -35278,24 +38290,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2557, - "end": 2558, + "start": 3102, + "end": 3103, "loc": { "start": { - "line": 79, - "column": 2 + "line": 103, + "column": 80 }, "end": { - "line": 79, - "column": 3 + "line": 103, + "column": 81 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -35303,42 +38316,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2559, - "end": 2560, + "start": 3103, + "end": 3104, "loc": { "start": { - "line": 80, - "column": 0 + "line": 103, + "column": 81 }, "end": { - "line": 80, - "column": 1 + "line": 103, + "column": 82 } } }, { - "type": "CommentBlock", - "value": "*\n * Run on disconnect to reset all server-based variables and connections\n ", - "start": 2562, - "end": 2642, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "value", + "start": 3104, + "end": 3109, "loc": { "start": { - "line": 82, - "column": 0 + "line": 103, + "column": 82 }, "end": { - "line": 84, - "column": 3 + "line": 103, + "column": 87 } } }, { "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -35348,24 +38371,22 @@ "binop": null, "updateContext": null }, - "value": "export", - "start": 2643, - "end": 2649, + "start": 3109, + "end": 3110, "loc": { "start": { - "line": 85, - "column": 0 + "line": 103, + "column": 87 }, "end": { - "line": 85, - "column": 6 + "line": 103, + "column": 88 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -35375,50 +38396,50 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 2650, - "end": 2658, + "value": "team", + "start": 3111, + "end": 3115, "loc": { "start": { - "line": 85, - "column": 7 + "line": 103, + "column": 89 }, "end": { - "line": 85, - "column": 15 + "line": 103, + "column": 93 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ":", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "disconnect", - "start": 2659, - "end": 2669, + "start": 3115, + "end": 3116, "loc": { "start": { - "line": 85, - "column": 16 + "line": 103, + "column": 93 }, "end": { - "line": 85, - "column": 26 + "line": 103, + "column": 94 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -35427,92 +38448,96 @@ "postfix": false, "binop": null }, - "start": 2670, - "end": 2671, + "value": "cookieInputs", + "start": 3117, + "end": 3129, "loc": { "start": { - "line": 85, - "column": 27 + "line": 103, + "column": 95 }, "end": { - "line": 85, - "column": 28 + "line": 103, + "column": 107 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2671, - "end": 2672, + "start": 3129, + "end": 3130, "loc": { "start": { - "line": 85, - "column": 28 + "line": 103, + "column": 107 }, "end": { - "line": 85, - "column": 29 + "line": 103, + "column": 108 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "num", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2673, - "end": 2674, + "value": 2, + "start": 3130, + "end": 3131, "loc": { "start": { - "line": 85, - "column": 30 + "line": 103, + "column": 108 }, "end": { - "line": 85, - "column": 31 + "line": 103, + "column": 109 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "app", - "start": 2676, - "end": 2679, + "start": 3131, + "end": 3132, "loc": { "start": { - "line": 86, - "column": 1 + "line": 103, + "column": 109 }, "end": { - "line": 86, - "column": 4 + "line": 103, + "column": 110 } } }, @@ -35529,16 +38554,16 @@ "binop": null, "updateContext": null }, - "start": 2679, - "end": 2680, + "start": 3132, + "end": 3133, "loc": { "start": { - "line": 86, - "column": 4 + "line": 103, + "column": 110 }, "end": { - "line": 86, - "column": 5 + "line": 103, + "column": 111 } } }, @@ -35554,25 +38579,25 @@ "postfix": false, "binop": null }, - "value": "stop", - "start": 2680, - "end": 2684, + "value": "value", + "start": 3133, + "end": 3138, "loc": { "start": { - "line": 86, - "column": 5 + "line": 103, + "column": 111 }, "end": { - "line": 86, - "column": 9 + "line": 103, + "column": 116 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -35580,16 +38605,16 @@ "postfix": false, "binop": null }, - "start": 2684, - "end": 2685, + "start": 3139, + "end": 3140, "loc": { "start": { - "line": 86, - "column": 9 + "line": 103, + "column": 117 }, "end": { - "line": 86, - "column": 10 + "line": 103, + "column": 118 } } }, @@ -35605,16 +38630,16 @@ "postfix": false, "binop": null }, - "start": 2685, - "end": 2686, + "start": 3140, + "end": 3141, "loc": { "start": { - "line": 86, - "column": 10 + "line": 103, + "column": 118 }, "end": { - "line": 86, - "column": 11 + "line": 103, + "column": 119 } } }, @@ -35630,17 +38655,17 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 2688, - "end": 2694, + "value": "chat", + "start": 3143, + "end": 3147, "loc": { "start": { - "line": 87, + "line": 104, "column": 1 }, "end": { - "line": 87, - "column": 7 + "line": 104, + "column": 5 } } }, @@ -35657,16 +38682,16 @@ "binop": null, "updateContext": null }, - "start": 2694, - "end": 2695, + "start": 3147, + "end": 3148, "loc": { "start": { - "line": 87, - "column": 7 + "line": 104, + "column": 5 }, "end": { - "line": 87, - "column": 8 + "line": 104, + "column": 6 } } }, @@ -35682,17 +38707,17 @@ "postfix": false, "binop": null }, - "value": "disconnect", - "start": 2695, - "end": 2705, + "value": "addLoginMessage", + "start": 3148, + "end": 3163, "loc": { "start": { - "line": 87, - "column": 8 + "line": 104, + "column": 6 }, "end": { - "line": 87, - "column": 18 + "line": 104, + "column": 21 } } }, @@ -35708,24 +38733,24 @@ "postfix": false, "binop": null }, - "start": 2705, - "end": 2706, + "start": 3163, + "end": 3164, "loc": { "start": { - "line": 87, - "column": 18 + "line": 104, + "column": 21 }, "end": { - "line": 87, - "column": 19 + "line": 104, + "column": 22 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -35733,92 +38758,102 @@ "postfix": false, "binop": null }, - "start": 2706, - "end": 2707, + "value": "cookieInputs", + "start": 3164, + "end": 3176, "loc": { "start": { - "line": 87, - "column": 19 + "line": 104, + "column": 22 }, "end": { - "line": 87, - "column": 20 + "line": 104, + "column": 34 } } }, { - "type": "CommentLine", - "value": " Wipe objects list", - "start": 2710, - "end": 2730, + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3176, + "end": 3177, "loc": { "start": { - "line": 89, - "column": 1 + "line": 104, + "column": 34 }, "end": { - "line": 89, - "column": 21 + "line": 104, + "column": 35 } } }, { "type": { - "label": "for", - "keyword": "for", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "for", - "start": 2732, - "end": 2735, + "value": 0, + "start": 3177, + "end": 3178, "loc": { "start": { - "line": 90, - "column": 1 + "line": 104, + "column": 35 }, "end": { - "line": 90, - "column": 4 + "line": 104, + "column": 36 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "]", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2736, - "end": 2737, + "start": 3178, + "end": 3179, "loc": { "start": { - "line": 90, - "column": 5 + "line": 104, + "column": 36 }, "end": { - "line": 90, - "column": 6 + "line": 104, + "column": 37 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -35829,17 +38864,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 2737, - "end": 2740, + "start": 3179, + "end": 3180, "loc": { "start": { - "line": 90, - "column": 6 + "line": 104, + "column": 37 }, "end": { - "line": 90, - "column": 9 + "line": 104, + "column": 38 } } }, @@ -35855,24 +38889,23 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 2741, - "end": 2748, + "value": "value", + "start": 3180, + "end": 3185, "loc": { "start": { - "line": 90, - "column": 10 + "line": 104, + "column": 38 }, "end": { - "line": 90, - "column": 17 + "line": 104, + "column": 43 } } }, { "type": { - "label": "in", - "keyword": "in", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -35880,26 +38913,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": "in", - "start": 2749, - "end": 2751, + "start": 3185, + "end": 3186, "loc": { "start": { - "line": 90, - "column": 18 + "line": 104, + "column": 43 }, "end": { - "line": 90, - "column": 20 + "line": 104, + "column": 44 } } }, { "type": { - "label": "name", + "label": "true", + "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -35907,19 +38940,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "objects", - "start": 2752, - "end": 2759, + "value": "true", + "start": 3187, + "end": 3191, "loc": { "start": { - "line": 90, - "column": 21 + "line": 104, + "column": 45 }, "end": { - "line": 90, - "column": 28 + "line": 104, + "column": 49 } } }, @@ -35935,23 +38969,23 @@ "postfix": false, "binop": null }, - "start": 2759, - "end": 2760, + "start": 3191, + "end": 3192, "loc": { "start": { - "line": 90, - "column": 28 + "line": 104, + "column": 49 }, "end": { - "line": 90, - "column": 29 + "line": 104, + "column": 50 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -35960,75 +38994,76 @@ "postfix": false, "binop": null }, - "start": 2761, - "end": 2762, + "value": "chat", + "start": 3194, + "end": 3198, "loc": { "start": { - "line": 90, - "column": 30 + "line": 105, + "column": 1 }, "end": { - "line": 90, - "column": 31 + "line": 105, + "column": 5 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "objects", - "start": 2765, - "end": 2772, + "start": 3198, + "end": 3199, "loc": { "start": { - "line": 91, - "column": 2 + "line": 105, + "column": 5 }, "end": { - "line": 91, - "column": 9 + "line": 105, + "column": 6 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2772, - "end": 2773, + "value": "registerFunctions", + "start": 3199, + "end": 3216, "loc": { "start": { - "line": 91, - "column": 9 + "line": 105, + "column": 6 }, "end": { - "line": 91, - "column": 10 + "line": 105, + "column": 23 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -36037,23 +39072,22 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 2773, - "end": 2780, + "start": 3216, + "end": 3217, "loc": { "start": { - "line": 91, - "column": 10 + "line": 105, + "column": 23 }, "end": { - "line": 91, - "column": 17 + "line": 105, + "column": 24 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -36061,53 +39095,41 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2780, - "end": 2781, + "start": 3217, + "end": 3218, "loc": { "start": { - "line": 91, - "column": 17 + "line": 105, + "column": 24 }, "end": { - "line": 91, - "column": 18 + "line": 105, + "column": 25 } } }, { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2782, - "end": 2783, + "type": "CommentLine", + "value": " Setup listeners", + "start": 3221, + "end": 3239, "loc": { "start": { - "line": 91, - "column": 19 + "line": 107, + "column": 1 }, "end": { - "line": 91, - "column": 20 + "line": 107, + "column": 19 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -36116,24 +39138,25 @@ "postfix": false, "binop": null }, - "start": 2784, - "end": 2785, + "value": "setupSocketConnection", + "start": 3241, + "end": 3262, "loc": { "start": { - "line": 91, - "column": 21 + "line": 108, + "column": 1 }, "end": { - "line": 91, + "line": 108, "column": 22 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36141,22 +39164,22 @@ "postfix": false, "binop": null }, - "start": 2785, - "end": 2786, + "start": 3262, + "end": 3263, "loc": { "start": { - "line": 91, + "line": 108, "column": 22 }, "end": { - "line": 91, + "line": 108, "column": 23 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -36166,24 +39189,24 @@ "postfix": false, "binop": null }, - "start": 2788, - "end": 2789, + "start": 3263, + "end": 3264, "loc": { "start": { - "line": 92, - "column": 1 + "line": 108, + "column": 23 }, "end": { - "line": 92, - "column": 2 + "line": 108, + "column": 24 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36191,39 +39214,48 @@ "postfix": false, "binop": null }, - "start": 2790, - "end": 2791, + "value": "setupSocketInfo", + "start": 3266, + "end": 3281, "loc": { "start": { - "line": 93, - "column": 0 + "line": 109, + "column": 1 }, "end": { - "line": 93, - "column": 1 + "line": 109, + "column": 16 } } }, { - "type": "CommentBlock", - "value": "*\n * First time setup when connection starts. Run on connect event to ensure that the socket is connected first.\n ", - "start": 2793, - "end": 2911, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3281, + "end": 3282, "loc": { "start": { - "line": 95, - "column": 0 + "line": 109, + "column": 16 }, "end": { - "line": 97, - "column": 3 + "line": 109, + "column": 17 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -36233,25 +39265,25 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 2912, - "end": 2920, + "value": "chat", + "start": 3282, + "end": 3286, "loc": { "start": { - "line": 98, - "column": 0 + "line": 109, + "column": 17 }, "end": { - "line": 98, - "column": 8 + "line": 109, + "column": 21 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36259,24 +39291,23 @@ "postfix": false, "binop": null }, - "value": "setupSocket", - "start": 2921, - "end": 2932, + "start": 3286, + "end": 3287, "loc": { "start": { - "line": 98, - "column": 9 + "line": 109, + "column": 21 }, "end": { - "line": 98, - "column": 20 + "line": 109, + "column": 22 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -36285,24 +39316,25 @@ "postfix": false, "binop": null }, - "start": 2933, - "end": 2934, + "value": "setupSocketObjectRetrieval", + "start": 3289, + "end": 3315, "loc": { "start": { - "line": 98, - "column": 21 + "line": 110, + "column": 1 }, "end": { - "line": 98, - "column": 22 + "line": 110, + "column": 27 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36310,24 +39342,24 @@ "postfix": false, "binop": null }, - "start": 2934, - "end": 2935, + "start": 3315, + "end": 3316, "loc": { "start": { - "line": 98, - "column": 22 + "line": 110, + "column": 27 }, "end": { - "line": 98, - "column": 23 + "line": 110, + "column": 28 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36335,32 +39367,32 @@ "postfix": false, "binop": null }, - "start": 2936, - "end": 2937, + "start": 3316, + "end": 3317, "loc": { "start": { - "line": 98, - "column": 24 + "line": 110, + "column": 28 }, "end": { - "line": 98, - "column": 25 + "line": 110, + "column": 29 } } }, { "type": "CommentLine", - "value": " Debug", - "start": 2939, - "end": 2947, + "value": " Emit join message,", + "start": 3320, + "end": 3341, "loc": { "start": { - "line": 99, + "line": 112, "column": 1 }, "end": { - "line": 99, - "column": 9 + "line": 112, + "column": 22 } } }, @@ -36376,17 +39408,17 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 2949, - "end": 2956, + "value": "socket", + "start": 3343, + "end": 3349, "loc": { "start": { - "line": 100, + "line": 113, "column": 1 }, "end": { - "line": 100, - "column": 8 + "line": 113, + "column": 7 } } }, @@ -36403,16 +39435,16 @@ "binop": null, "updateContext": null }, - "start": 2956, - "end": 2957, + "start": 3349, + "end": 3350, "loc": { "start": { - "line": 100, - "column": 8 + "line": 113, + "column": 7 }, "end": { - "line": 100, - "column": 9 + "line": 113, + "column": 8 } } }, @@ -36428,16 +39460,16 @@ "postfix": false, "binop": null }, - "value": "log", - "start": 2957, - "end": 2960, + "value": "emit", + "start": 3350, + "end": 3354, "loc": { "start": { - "line": 100, - "column": 9 + "line": 113, + "column": 8 }, "end": { - "line": 100, + "line": 113, "column": 12 } } @@ -36454,15 +39486,15 @@ "postfix": false, "binop": null }, - "start": 2960, - "end": 2961, + "start": 3354, + "end": 3355, "loc": { "start": { - "line": 100, + "line": 113, "column": 12 }, "end": { - "line": 100, + "line": 113, "column": 13 } } @@ -36480,17 +39512,17 @@ "binop": null, "updateContext": null }, - "value": "Socket:", - "start": 2961, - "end": 2970, + "value": "playerJoin", + "start": 3355, + "end": 3367, "loc": { "start": { - "line": 100, + "line": 113, "column": 13 }, "end": { - "line": 100, - "column": 22 + "line": 113, + "column": 25 } } }, @@ -36507,16 +39539,41 @@ "binop": null, "updateContext": null }, - "start": 2970, - "end": 2971, + "start": 3367, + "end": 3368, "loc": { "start": { - "line": 100, - "column": 22 + "line": 113, + "column": 25 }, "end": { - "line": 100, - "column": 23 + "line": 113, + "column": 26 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3369, + "end": 3370, + "loc": { + "start": { + "line": 113, + "column": 27 + }, + "end": { + "line": 113, + "column": 28 } } }, @@ -36532,65 +39589,75 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 2972, - "end": 2978, + "value": "sender", + "start": 3371, + "end": 3377, "loc": { "start": { - "line": 100, - "column": 24 + "line": 113, + "column": 29 }, "end": { - "line": 100, - "column": 30 + "line": 113, + "column": 35 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2978, - "end": 2979, + "start": 3377, + "end": 3378, "loc": { "start": { - "line": 100, - "column": 30 + "line": 113, + "column": 35 }, "end": { - "line": 100, - "column": 31 + "line": 113, + "column": 36 } } }, { - "type": "CommentLine", - "value": " Instantiate Chat System", - "start": 2982, - "end": 3008, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "chat", + "start": 3379, + "end": 3383, "loc": { "start": { - "line": 102, - "column": 1 + "line": 113, + "column": 37 }, "end": { - "line": 102, - "column": 27 + "line": 113, + "column": 41 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -36601,17 +39668,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 3010, - "end": 3013, + "start": 3383, + "end": 3384, "loc": { "start": { - "line": 103, - "column": 1 + "line": 113, + "column": 41 }, "end": { - "line": 103, - "column": 4 + "line": 113, + "column": 42 } } }, @@ -36627,72 +39693,95 @@ "postfix": false, "binop": null }, - "value": "chat", - "start": 3014, - "end": 3018, + "value": "player", + "start": 3384, + "end": 3390, "loc": { "start": { - "line": 103, - "column": 5 + "line": 113, + "column": 42 }, "end": { - "line": 103, - "column": 9 + "line": 113, + "column": 48 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 3019, - "end": 3020, + "start": 3390, + "end": 3391, "loc": { "start": { - "line": 103, - "column": 10 + "line": 113, + "column": 48 }, "end": { - "line": 103, - "column": 11 + "line": 113, + "column": 49 } } }, { "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "value": "team", + "start": 3392, + "end": 3396, + "loc": { + "start": { + "line": 113, + "column": 50 + }, + "end": { + "line": 113, + "column": 54 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "value": "new", - "start": 3021, - "end": 3024, + "start": 3396, + "end": 3397, "loc": { "start": { - "line": 103, - "column": 12 + "line": 113, + "column": 54 }, "end": { - "line": 103, - "column": 15 + "line": 113, + "column": 55 } } }, @@ -36708,49 +39797,50 @@ "postfix": false, "binop": null }, - "value": "ChatClient", - "start": 3025, - "end": 3035, + "value": "chat", + "start": 3398, + "end": 3402, "loc": { "start": { - "line": 103, - "column": 16 + "line": 113, + "column": 56 }, "end": { - "line": 103, - "column": 26 + "line": 113, + "column": 60 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3035, - "end": 3036, + "start": 3402, + "end": 3403, "loc": { "start": { - "line": 103, - "column": 26 + "line": 113, + "column": 60 }, "end": { - "line": 103, - "column": 27 + "line": 113, + "column": 61 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -36759,24 +39849,25 @@ "postfix": false, "binop": null }, - "start": 3036, - "end": 3037, + "value": "team", + "start": 3403, + "end": 3407, "loc": { "start": { - "line": 103, - "column": 27 + "line": 113, + "column": 61 }, "end": { - "line": 103, - "column": 28 + "line": 113, + "column": 65 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36784,51 +39875,49 @@ "postfix": false, "binop": null }, - "value": "player", - "start": 3038, - "end": 3044, + "start": 3408, + "end": 3409, "loc": { "start": { - "line": 103, - "column": 29 + "line": 113, + "column": 66 }, "end": { - "line": 103, - "column": 35 + "line": 113, + "column": 67 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3044, - "end": 3045, + "start": 3409, + "end": 3410, "loc": { "start": { - "line": 103, - "column": 35 + "line": 113, + "column": 67 }, "end": { - "line": 103, - "column": 36 + "line": 113, + "column": 68 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36836,49 +39925,65 @@ "postfix": false, "binop": null }, - "value": "cookieInputs", - "start": 3046, - "end": 3058, + "start": 3411, + "end": 3412, "loc": { "start": { - "line": 103, - "column": 37 + "line": 114, + "column": 0 }, "end": { - "line": 103, - "column": 49 + "line": 114, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Sets up socket object syncing.\n * Run in setupSocket().\n ", + "start": 3414, + "end": 3480, + "loc": { + "start": { + "line": 116, + "column": 0 + }, + "end": { + "line": 119, + "column": 3 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "function", + "keyword": "function", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3058, - "end": 3059, + "value": "function", + "start": 3481, + "end": 3489, "loc": { "start": { - "line": 103, - "column": 49 + "line": 120, + "column": 0 }, "end": { - "line": 103, - "column": 50 + "line": 120, + "column": 8 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -36886,52 +39991,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 3059, - "end": 3060, + "value": "setupSocketObjectRetrieval", + "start": 3490, + "end": 3516, "loc": { "start": { - "line": 103, - "column": 50 + "line": 120, + "column": 9 }, "end": { - "line": 103, - "column": 51 + "line": 120, + "column": 35 } } }, { "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3060, - "end": 3061, + "start": 3517, + "end": 3518, "loc": { "start": { - "line": 103, - "column": 51 + "line": 120, + "column": 36 }, "end": { - "line": 103, - "column": 52 + "line": 120, + "column": 37 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -36939,26 +40042,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3061, - "end": 3062, + "start": 3518, + "end": 3519, "loc": { "start": { - "line": 103, - "column": 52 + "line": 120, + "column": 37 }, "end": { - "line": 103, - "column": 53 + "line": 120, + "column": 38 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -36967,43 +40069,32 @@ "postfix": false, "binop": null }, - "value": "value", - "start": 3062, - "end": 3067, + "start": 3520, + "end": 3521, "loc": { "start": { - "line": 103, - "column": 53 + "line": 120, + "column": 39 }, "end": { - "line": 103, - "column": 58 + "line": 120, + "column": 40 } } }, { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3067, - "end": 3068, + "type": "CommentLine", + "value": " Syncs all objects from server once a frame", + "start": 3523, + "end": 3568, "loc": { "start": { - "line": 103, - "column": 58 + "line": 121, + "column": 1 }, "end": { - "line": 103, - "column": 59 + "line": 121, + "column": 46 } } }, @@ -37019,24 +40110,24 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 3069, - "end": 3073, + "value": "socket", + "start": 3570, + "end": 3576, "loc": { "start": { - "line": 103, - "column": 60 + "line": 122, + "column": 1 }, "end": { - "line": 103, - "column": 64 + "line": 122, + "column": 7 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -37046,16 +40137,16 @@ "binop": null, "updateContext": null }, - "start": 3073, - "end": 3074, + "start": 3576, + "end": 3577, "loc": { "start": { - "line": 103, - "column": 64 + "line": 122, + "column": 7 }, "end": { - "line": 103, - "column": 65 + "line": 122, + "column": 8 } } }, @@ -37071,23 +40162,23 @@ "postfix": false, "binop": null }, - "value": "cookieInputs", - "start": 3075, - "end": 3087, + "value": "on", + "start": 3577, + "end": 3579, "loc": { "start": { - "line": 103, - "column": 66 + "line": 122, + "column": 8 }, "end": { - "line": 103, - "column": 78 + "line": 122, + "column": 10 } } }, { "type": { - "label": "[", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -37095,25 +40186,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3087, - "end": 3088, + "start": 3579, + "end": 3580, "loc": { "start": { - "line": 103, - "column": 78 + "line": 122, + "column": 10 }, "end": { - "line": 103, - "column": 79 + "line": 122, + "column": 11 } } }, { "type": { - "label": "num", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -37124,24 +40214,24 @@ "binop": null, "updateContext": null }, - "value": 1, - "start": 3088, - "end": 3089, + "value": "objectSync", + "start": 3580, + "end": 3592, "loc": { "start": { - "line": 103, - "column": 79 + "line": 122, + "column": 11 }, "end": { - "line": 103, - "column": 80 + "line": 122, + "column": 23 } } }, { "type": { - "label": "]", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -37151,42 +40241,41 @@ "binop": null, "updateContext": null }, - "start": 3089, - "end": 3090, + "start": 3592, + "end": 3593, "loc": { "start": { - "line": 103, - "column": 80 + "line": 122, + "column": 23 }, "end": { - "line": 103, - "column": 81 + "line": 122, + "column": 24 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3090, - "end": 3091, + "start": 3594, + "end": 3595, "loc": { "start": { - "line": 103, - "column": 81 + "line": 122, + "column": 25 }, "end": { - "line": 103, - "column": 82 + "line": 122, + "column": 26 } } }, @@ -37202,23 +40291,48 @@ "postfix": false, "binop": null }, - "value": "value", - "start": 3091, - "end": 3096, + "value": "data", + "start": 3595, + "end": 3599, "loc": { "start": { - "line": 103, - "column": 82 + "line": 122, + "column": 26 }, "end": { - "line": 103, - "column": 87 + "line": 122, + "column": 30 } } }, { "type": { - "label": ",", + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3599, + "end": 3600, + "loc": { + "start": { + "line": 122, + "column": 30 + }, + "end": { + "line": 122, + "column": 31 + } + } + }, + { + "type": { + "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -37229,23 +40343,23 @@ "binop": null, "updateContext": null }, - "start": 3096, - "end": 3097, + "start": 3601, + "end": 3603, "loc": { "start": { - "line": 103, - "column": 87 + "line": 122, + "column": 32 }, "end": { - "line": 103, - "column": 88 + "line": 122, + "column": 34 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -37254,50 +40368,51 @@ "postfix": false, "binop": null }, - "value": "team", - "start": 3098, - "end": 3102, + "start": 3604, + "end": 3605, "loc": { "start": { - "line": 103, - "column": 89 + "line": 122, + "column": 35 }, "end": { - "line": 103, - "column": 93 + "line": 122, + "column": 36 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": "for", + "keyword": "for", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, - "isLoop": false, + "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 3102, - "end": 3103, + "value": "for", + "start": 3608, + "end": 3611, "loc": { "start": { - "line": 103, - "column": 93 + "line": 123, + "column": 2 }, "end": { - "line": 103, - "column": 94 + "line": 123, + "column": 5 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -37306,25 +40421,25 @@ "postfix": false, "binop": null }, - "value": "cookieInputs", - "start": 3104, - "end": 3116, + "start": 3612, + "end": 3613, "loc": { "start": { - "line": 103, - "column": 95 + "line": 123, + "column": 6 }, "end": { - "line": 103, - "column": 107 + "line": 123, + "column": 7 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -37333,22 +40448,23 @@ "binop": null, "updateContext": null }, - "start": 3116, - "end": 3117, + "value": "let", + "start": 3613, + "end": 3616, "loc": { "start": { - "line": 103, - "column": 107 + "line": 123, + "column": 7 }, "end": { - "line": 103, - "column": 108 + "line": 123, + "column": 10 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -37356,80 +40472,81 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 2, - "start": 3117, - "end": 3118, + "value": "objType", + "start": 3617, + "end": 3624, "loc": { "start": { - "line": 103, - "column": 108 + "line": 123, + "column": 11 }, "end": { - "line": 103, - "column": 109 + "line": 123, + "column": 18 } } }, { "type": { - "label": "]", - "beforeExpr": false, + "label": "in", + "keyword": "in", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "start": 3118, - "end": 3119, + "value": "in", + "start": 3625, + "end": 3627, "loc": { "start": { - "line": 103, - "column": 109 + "line": 123, + "column": 19 }, "end": { - "line": 103, - "column": 110 + "line": 123, + "column": 21 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3119, - "end": 3120, + "value": "data", + "start": 3628, + "end": 3632, "loc": { "start": { - "line": 103, - "column": 110 + "line": 123, + "column": 22 }, "end": { - "line": 103, - "column": 111 + "line": 123, + "column": 26 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -37437,25 +40554,24 @@ "postfix": false, "binop": null }, - "value": "value", - "start": 3120, - "end": 3125, + "start": 3632, + "end": 3633, "loc": { "start": { - "line": 103, - "column": 111 + "line": 123, + "column": 26 }, "end": { - "line": 103, - "column": 116 + "line": 123, + "column": 27 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -37463,22 +40579,23 @@ "postfix": false, "binop": null }, - "start": 3126, - "end": 3127, + "start": 3634, + "end": 3635, "loc": { "start": { - "line": 103, - "column": 117 + "line": 123, + "column": 28 }, "end": { - "line": 103, - "column": 118 + "line": 123, + "column": 29 } } }, { "type": { - "label": ")", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -37486,25 +40603,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3127, - "end": 3128, + "value": "if", + "start": 3639, + "end": 3641, "loc": { "start": { - "line": 103, - "column": 118 + "line": 124, + "column": 3 }, "end": { - "line": 103, - "column": 119 + "line": 124, + "column": 5 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -37513,102 +40632,104 @@ "postfix": false, "binop": null }, - "value": "chat", - "start": 3130, - "end": 3134, + "start": 3642, + "end": 3643, "loc": { "start": { - "line": 104, - "column": 1 + "line": 124, + "column": 6 }, "end": { - "line": 104, - "column": 5 + "line": 124, + "column": 7 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3134, - "end": 3135, + "value": "objType", + "start": 3643, + "end": 3650, "loc": { "start": { - "line": 104, - "column": 5 + "line": 124, + "column": 7 }, "end": { - "line": 104, - "column": 6 + "line": 124, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "value": "addLoginMessage", - "start": 3135, - "end": 3150, + "value": "!==", + "start": 3651, + "end": 3654, "loc": { "start": { - "line": 104, - "column": 6 + "line": 124, + "column": 15 }, "end": { - "line": 104, - "column": 21 + "line": 124, + "column": 18 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3150, - "end": 3151, + "value": "tiles", + "start": 3655, + "end": 3662, "loc": { "start": { - "line": 104, - "column": 21 + "line": 124, + "column": 19 }, "end": { - "line": 104, - "column": 22 + "line": 124, + "column": 26 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -37616,23 +40737,22 @@ "postfix": false, "binop": null }, - "value": "cookieInputs", - "start": 3151, - "end": 3163, + "start": 3662, + "end": 3663, "loc": { "start": { - "line": 104, - "column": 22 + "line": 124, + "column": 26 }, "end": { - "line": 104, - "column": 34 + "line": 124, + "column": 27 } } }, { "type": { - "label": "[", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -37640,78 +40760,78 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3163, - "end": 3164, + "start": 3664, + "end": 3665, "loc": { "start": { - "line": 104, - "column": 34 + "line": 124, + "column": 28 }, "end": { - "line": 104, - "column": 35 + "line": 124, + "column": 29 } } }, { "type": { - "label": "num", + "label": "for", + "keyword": "for", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, - "isLoop": false, + "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": 0, - "start": 3164, - "end": 3165, + "value": "for", + "start": 3670, + "end": 3673, "loc": { "start": { - "line": 104, - "column": 35 + "line": 125, + "column": 4 }, "end": { - "line": 104, - "column": 36 + "line": 125, + "column": 7 } } }, { "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3165, - "end": 3166, + "start": 3674, + "end": 3675, "loc": { "start": { - "line": 104, - "column": 36 + "line": 125, + "column": 8 }, "end": { - "line": 104, - "column": 37 + "line": 125, + "column": 9 } } }, { "type": { - "label": ".", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -37722,16 +40842,17 @@ "binop": null, "updateContext": null }, - "start": 3166, - "end": 3167, + "value": "let", + "start": 3675, + "end": 3678, "loc": { "start": { - "line": 104, - "column": 37 + "line": 125, + "column": 9 }, "end": { - "line": 104, - "column": 38 + "line": 125, + "column": 12 } } }, @@ -37747,23 +40868,24 @@ "postfix": false, "binop": null }, - "value": "value", - "start": 3167, - "end": 3172, + "value": "obj", + "start": 3679, + "end": 3682, "loc": { "start": { - "line": 104, - "column": 38 + "line": 125, + "column": 13 }, "end": { - "line": 104, - "column": 43 + "line": 125, + "column": 16 } } }, { "type": { - "label": ",", + "label": "in", + "keyword": "in", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -37771,26 +40893,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "start": 3172, - "end": 3173, + "value": "in", + "start": 3683, + "end": 3685, "loc": { "start": { - "line": 104, - "column": 43 + "line": 125, + "column": 17 }, "end": { - "line": 104, - "column": 44 + "line": 125, + "column": 19 } } }, { "type": { - "label": "true", - "keyword": "true", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -37798,45 +40920,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "true", - "start": 3174, - "end": 3178, + "value": "data", + "start": 3686, + "end": 3690, "loc": { "start": { - "line": 104, - "column": 45 + "line": 125, + "column": 20 }, "end": { - "line": 104, - "column": 49 + "line": 125, + "column": 24 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3178, - "end": 3179, + "start": 3690, + "end": 3691, "loc": { "start": { - "line": 104, - "column": 49 + "line": 125, + "column": 24 }, "end": { - "line": 104, - "column": 50 + "line": 125, + "column": 25 } } }, @@ -37852,23 +40974,23 @@ "postfix": false, "binop": null }, - "value": "chat", - "start": 3181, - "end": 3185, + "value": "objType", + "start": 3691, + "end": 3698, "loc": { "start": { - "line": 105, - "column": 1 + "line": 125, + "column": 25 }, "end": { - "line": 105, - "column": 5 + "line": 125, + "column": 32 } } }, { "type": { - "label": ".", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -37879,24 +41001,24 @@ "binop": null, "updateContext": null }, - "start": 3185, - "end": 3186, + "start": 3698, + "end": 3699, "loc": { "start": { - "line": 105, - "column": 5 + "line": 125, + "column": 32 }, "end": { - "line": 105, - "column": 6 + "line": 125, + "column": 33 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -37904,23 +41026,22 @@ "postfix": false, "binop": null }, - "value": "registerFunctions", - "start": 3186, - "end": 3203, + "start": 3699, + "end": 3700, "loc": { "start": { - "line": 105, - "column": 6 + "line": 125, + "column": 33 }, "end": { - "line": 105, - "column": 23 + "line": 125, + "column": 34 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -37930,22 +41051,23 @@ "postfix": false, "binop": null }, - "start": 3203, - "end": 3204, + "start": 3701, + "end": 3702, "loc": { "start": { - "line": 105, - "column": 23 + "line": 125, + "column": 35 }, "end": { - "line": 105, - "column": 24 + "line": 125, + "column": 36 } } }, { "type": { - "label": ")", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -37953,34 +41075,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3204, - "end": 3205, + "value": "if", + "start": 3708, + "end": 3710, "loc": { "start": { - "line": 105, - "column": 24 + "line": 126, + "column": 5 }, "end": { - "line": 105, - "column": 25 + "line": 126, + "column": 7 } } }, { - "type": "CommentLine", - "value": " Setup listeners", - "start": 3208, - "end": 3226, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3711, + "end": 3712, "loc": { "start": { - "line": 107, - "column": 1 + "line": 126, + "column": 8 }, "end": { - "line": 107, - "column": 19 + "line": 126, + "column": 9 } } }, @@ -37996,23 +41129,23 @@ "postfix": false, "binop": null }, - "value": "setupSocketConnection", - "start": 3228, - "end": 3249, + "value": "data", + "start": 3712, + "end": 3716, "loc": { "start": { - "line": 108, - "column": 1 + "line": 126, + "column": 9 }, "end": { - "line": 108, - "column": 22 + "line": 126, + "column": 13 } } }, { "type": { - "label": "(", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -38020,26 +41153,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3249, - "end": 3250, + "start": 3716, + "end": 3717, "loc": { "start": { - "line": 108, - "column": 22 + "line": 126, + "column": 13 }, "end": { - "line": 108, - "column": 23 + "line": 126, + "column": 14 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38047,48 +41181,49 @@ "postfix": false, "binop": null }, - "start": 3250, - "end": 3251, + "value": "objType", + "start": 3717, + "end": 3724, "loc": { "start": { - "line": 108, - "column": 23 + "line": 126, + "column": 14 }, "end": { - "line": 108, - "column": 24 + "line": 126, + "column": 21 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setupSocketInfo", - "start": 3253, - "end": 3268, + "start": 3724, + "end": 3725, "loc": { "start": { - "line": 109, - "column": 1 + "line": 126, + "column": 21 }, "end": { - "line": 109, - "column": 16 + "line": 126, + "column": 22 } } }, { "type": { - "label": "(", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -38096,18 +41231,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3268, - "end": 3269, + "start": 3725, + "end": 3726, "loc": { "start": { - "line": 109, - "column": 16 + "line": 126, + "column": 22 }, "end": { - "line": 109, - "column": 17 + "line": 126, + "column": 23 } } }, @@ -38123,23 +41259,23 @@ "postfix": false, "binop": null }, - "value": "chat", - "start": 3269, - "end": 3273, + "value": "obj", + "start": 3726, + "end": 3729, "loc": { "start": { - "line": 109, - "column": 17 + "line": 126, + "column": 23 }, "end": { - "line": 109, - "column": 21 + "line": 126, + "column": 26 } } }, { "type": { - "label": ")", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -38147,69 +41283,74 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3273, - "end": 3274, + "start": 3729, + "end": 3730, "loc": { "start": { - "line": 109, - "column": 21 + "line": 126, + "column": 26 }, "end": { - "line": 109, - "column": 22 + "line": 126, + "column": 27 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "value": "setupSocketObjectRetrieval", - "start": 3276, - "end": 3302, + "value": "!==", + "start": 3731, + "end": 3734, "loc": { "start": { - "line": 110, - "column": 1 + "line": 126, + "column": 28 }, "end": { - "line": 110, - "column": 27 + "line": 126, + "column": 31 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "null", + "keyword": "null", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3302, - "end": 3303, + "value": "null", + "start": 3735, + "end": 3739, "loc": { "start": { - "line": 110, - "column": 27 + "line": 126, + "column": 32 }, "end": { - "line": 110, - "column": 28 + "line": 126, + "column": 36 } } }, @@ -38225,39 +41366,23 @@ "postfix": false, "binop": null }, - "start": 3303, - "end": 3304, - "loc": { - "start": { - "line": 110, - "column": 28 - }, - "end": { - "line": 110, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " Emit join message,", - "start": 3307, - "end": 3328, + "start": 3739, + "end": 3740, "loc": { "start": { - "line": 112, - "column": 1 + "line": 126, + "column": 36 }, "end": { - "line": 112, - "column": 22 + "line": 126, + "column": 37 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -38266,23 +41391,23 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 3330, - "end": 3336, + "start": 3741, + "end": 3742, "loc": { "start": { - "line": 113, - "column": 1 + "line": 126, + "column": 38 }, "end": { - "line": 113, - "column": 7 + "line": 126, + "column": 39 } } }, { "type": { - "label": ".", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -38293,16 +41418,17 @@ "binop": null, "updateContext": null }, - "start": 3336, - "end": 3337, + "value": "let", + "start": 3749, + "end": 3752, "loc": { "start": { - "line": 113, - "column": 7 + "line": 127, + "column": 6 }, "end": { - "line": 113, - "column": 8 + "line": 127, + "column": 9 } } }, @@ -38318,101 +41444,76 @@ "postfix": false, "binop": null }, - "value": "emit", - "start": 3337, - "end": 3341, + "value": "objRef", + "start": 3753, + "end": 3759, "loc": { "start": { - "line": 113, - "column": 8 + "line": 127, + "column": 10 }, "end": { - "line": 113, - "column": 12 + "line": 127, + "column": 16 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3341, - "end": 3342, - "loc": { - "start": { - "line": 113, - "column": 12 - }, - "end": { - "line": 113, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "playerJoin", - "start": 3342, - "end": 3354, + "value": "=", + "start": 3760, + "end": 3761, "loc": { "start": { - "line": 113, - "column": 13 + "line": 127, + "column": 17 }, "end": { - "line": 113, - "column": 25 + "line": 127, + "column": 18 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3354, - "end": 3355, + "value": "data", + "start": 3762, + "end": 3766, "loc": { "start": { - "line": 113, - "column": 25 + "line": 127, + "column": 19 }, "end": { - "line": 113, - "column": 26 + "line": 127, + "column": 23 } } }, { "type": { - "label": "{", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -38420,18 +41521,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3356, - "end": 3357, + "start": 3766, + "end": 3767, "loc": { "start": { - "line": 113, - "column": 27 + "line": 127, + "column": 23 }, "end": { - "line": 113, - "column": 28 + "line": 127, + "column": 24 } } }, @@ -38447,24 +41549,24 @@ "postfix": false, "binop": null }, - "value": "sender", - "start": 3358, - "end": 3364, + "value": "objType", + "start": 3767, + "end": 3774, "loc": { "start": { - "line": 113, - "column": 29 + "line": 127, + "column": 24 }, "end": { - "line": 113, - "column": 35 + "line": 127, + "column": 31 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -38474,101 +41576,102 @@ "binop": null, "updateContext": null }, - "start": 3364, - "end": 3365, + "start": 3774, + "end": 3775, "loc": { "start": { - "line": 113, - "column": 35 + "line": 127, + "column": 31 }, "end": { - "line": 113, - "column": 36 + "line": 127, + "column": 32 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "chat", - "start": 3366, - "end": 3370, + "start": 3775, + "end": 3776, "loc": { "start": { - "line": 113, - "column": 37 + "line": 127, + "column": 32 }, "end": { - "line": 113, - "column": 41 + "line": 127, + "column": 33 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3370, - "end": 3371, + "value": "obj", + "start": 3776, + "end": 3779, "loc": { "start": { - "line": 113, - "column": 41 + "line": 127, + "column": 33 }, "end": { - "line": 113, - "column": 42 + "line": 127, + "column": 36 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "player", - "start": 3371, - "end": 3377, + "start": 3779, + "end": 3780, "loc": { "start": { - "line": 113, - "column": 42 + "line": 127, + "column": 36 }, "end": { - "line": 113, - "column": 48 + "line": 127, + "column": 37 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -38578,16 +41681,17 @@ "binop": null, "updateContext": null }, - "start": 3377, - "end": 3378, + "value": "let", + "start": 3787, + "end": 3790, "loc": { "start": { - "line": 113, - "column": 48 + "line": 128, + "column": 6 }, "end": { - "line": 113, - "column": 49 + "line": 128, + "column": 9 } } }, @@ -38603,43 +41707,44 @@ "postfix": false, "binop": null }, - "value": "team", - "start": 3379, - "end": 3383, + "value": "clientObj", + "start": 3791, + "end": 3800, "loc": { "start": { - "line": 113, - "column": 50 + "line": 128, + "column": 10 }, "end": { - "line": 113, - "column": 54 + "line": 128, + "column": 19 } } }, { "type": { - "label": ":", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 3383, - "end": 3384, + "value": "=", + "start": 3801, + "end": 3802, "loc": { "start": { - "line": 113, - "column": 54 + "line": 128, + "column": 20 }, "end": { - "line": 113, - "column": 55 + "line": 128, + "column": 21 } } }, @@ -38655,25 +41760,25 @@ "postfix": false, "binop": null }, - "value": "chat", - "start": 3385, - "end": 3389, + "value": "objects", + "start": 3803, + "end": 3810, "loc": { "start": { - "line": 113, - "column": 56 + "line": 128, + "column": 22 }, "end": { - "line": 113, - "column": 60 + "line": 128, + "column": 29 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38682,16 +41787,16 @@ "binop": null, "updateContext": null }, - "start": 3389, - "end": 3390, + "start": 3810, + "end": 3811, "loc": { "start": { - "line": 113, - "column": 60 + "line": 128, + "column": 29 }, "end": { - "line": 113, - "column": 61 + "line": 128, + "column": 30 } } }, @@ -38707,23 +41812,23 @@ "postfix": false, "binop": null }, - "value": "team", - "start": 3390, - "end": 3394, + "value": "objType", + "start": 3811, + "end": 3818, "loc": { "start": { - "line": 113, - "column": 61 + "line": 128, + "column": 30 }, "end": { - "line": 113, - "column": 65 + "line": 128, + "column": 37 } } }, { "type": { - "label": "}", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -38731,51 +41836,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3395, - "end": 3396, + "start": 3818, + "end": 3819, "loc": { "start": { - "line": 113, - "column": 66 + "line": 128, + "column": 37 }, "end": { - "line": 113, - "column": 67 + "line": 128, + "column": 38 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3396, - "end": 3397, + "start": 3819, + "end": 3820, "loc": { "start": { - "line": 113, - "column": 67 + "line": 128, + "column": 38 }, "end": { - "line": 113, - "column": 68 + "line": 128, + "column": 39 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38783,85 +41890,87 @@ "postfix": false, "binop": null }, - "start": 3398, - "end": 3399, - "loc": { - "start": { - "line": 114, - "column": 0 - }, - "end": { - "line": 114, - "column": 1 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sets up socket object syncing.\n * Run in setupSocket().\n ", - "start": 3401, - "end": 3467, + "value": "obj", + "start": 3820, + "end": 3823, "loc": { "start": { - "line": 116, - "column": 0 + "line": 128, + "column": 39 }, "end": { - "line": 119, - "column": 3 + "line": 128, + "column": 42 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "function", - "start": 3468, - "end": 3476, + "start": 3823, + "end": 3824, "loc": { "start": { - "line": 120, - "column": 0 + "line": 128, + "column": 42 }, "end": { - "line": 120, - "column": 8 + "line": 128, + "column": 43 + } + } + }, + { + "type": "CommentLine", + "value": " Already exists in database", + "start": 3831, + "end": 3860, + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 35 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setupSocketObjectRetrieval", - "start": 3477, - "end": 3503, + "value": "if", + "start": 3867, + "end": 3869, "loc": { "start": { - "line": 120, - "column": 9 + "line": 130, + "column": 6 }, "end": { - "line": 120, - "column": 35 + "line": 130, + "column": 8 } } }, @@ -38877,24 +41986,24 @@ "postfix": false, "binop": null }, - "start": 3504, - "end": 3505, + "start": 3870, + "end": 3871, "loc": { "start": { - "line": 120, - "column": 36 + "line": 130, + "column": 9 }, "end": { - "line": 120, - "column": 37 + "line": 130, + "column": 10 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38902,57 +42011,44 @@ "postfix": false, "binop": null }, - "start": 3505, - "end": 3506, + "value": "clientObj", + "start": 3871, + "end": 3880, "loc": { "start": { - "line": 120, - "column": 37 + "line": 130, + "column": 10 }, "end": { - "line": 120, - "column": 38 + "line": 130, + "column": 19 } } }, { "type": { - "label": "{", + "label": "==/!=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "start": 3507, - "end": 3508, - "loc": { - "start": { - "line": 120, - "column": 39 - }, - "end": { - "line": 120, - "column": 40 - } - } - }, - { - "type": "CommentLine", - "value": " Syncs all objects from server once a frame", - "start": 3510, - "end": 3555, + "value": "!==", + "start": 3881, + "end": 3884, "loc": { "start": { - "line": 121, - "column": 1 + "line": 130, + "column": 20 }, "end": { - "line": 121, - "column": 46 + "line": 130, + "column": 23 } } }, @@ -38968,43 +42064,44 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 3557, - "end": 3563, + "value": "undefined", + "start": 3885, + "end": 3894, "loc": { "start": { - "line": 122, - "column": 1 + "line": 130, + "column": 24 }, "end": { - "line": 122, - "column": 7 + "line": 130, + "column": 33 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "&&", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 3563, - "end": 3564, + "value": "&&", + "start": 3895, + "end": 3897, "loc": { "start": { - "line": 122, - "column": 7 + "line": 130, + "column": 34 }, "end": { - "line": 122, - "column": 8 + "line": 130, + "column": 36 } } }, @@ -39020,48 +42117,51 @@ "postfix": false, "binop": null }, - "value": "on", - "start": 3564, - "end": 3566, + "value": "clientObj", + "start": 3898, + "end": 3907, "loc": { "start": { - "line": 122, - "column": 8 + "line": 130, + "column": 37 }, "end": { - "line": 122, - "column": 10 + "line": 130, + "column": 46 } } }, { "type": { - "label": "(", + "label": "==/!=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "start": 3566, - "end": 3567, + "value": "!==", + "start": 3908, + "end": 3911, "loc": { "start": { - "line": 122, - "column": 10 + "line": 130, + "column": 47 }, "end": { - "line": 122, - "column": 11 + "line": 130, + "column": 50 } } }, { "type": { - "label": "string", + "label": "null", + "keyword": "null", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -39072,75 +42172,49 @@ "binop": null, "updateContext": null }, - "value": "objectSync", - "start": 3567, - "end": 3579, + "value": "null", + "start": 3912, + "end": 3916, "loc": { "start": { - "line": 122, - "column": 11 + "line": 130, + "column": 51 }, "end": { - "line": 122, - "column": 23 + "line": 130, + "column": 55 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3579, - "end": 3580, - "loc": { - "start": { - "line": 122, - "column": 23 - }, - "end": { - "line": 122, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null }, - "start": 3581, - "end": 3582, + "start": 3916, + "end": 3917, "loc": { "start": { - "line": 122, - "column": 25 + "line": 130, + "column": 55 }, "end": { - "line": 122, - "column": 26 + "line": 130, + "column": 56 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -39149,23 +42223,23 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 3582, - "end": 3586, + "start": 3918, + "end": 3919, "loc": { "start": { - "line": 122, - "column": 26 + "line": 130, + "column": 57 }, "end": { - "line": 122, - "column": 30 + "line": 130, + "column": 58 } } }, { "type": { - "label": ")", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -39173,51 +42247,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3586, - "end": 3587, + "value": "if", + "start": 3927, + "end": 3929, "loc": { "start": { - "line": 122, - "column": 30 + "line": 131, + "column": 7 }, "end": { - "line": 122, - "column": 31 + "line": 131, + "column": 9 } } }, { "type": { - "label": "=>", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null + "postfix": false, + "binop": null }, - "start": 3588, - "end": 3590, + "start": 3930, + "end": 3931, "loc": { "start": { - "line": 122, - "column": 32 + "line": 131, + "column": 10 }, "end": { - "line": 122, - "column": 34 + "line": 131, + "column": 11 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -39226,51 +42301,50 @@ "postfix": false, "binop": null }, - "start": 3591, - "end": 3592, + "value": "objRef", + "start": 3931, + "end": 3937, "loc": { "start": { - "line": 122, - "column": 35 + "line": 131, + "column": 11 }, "end": { - "line": 122, - "column": 36 + "line": 131, + "column": 17 } } }, { "type": { - "label": "for", - "keyword": "for", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "for", - "start": 3595, - "end": 3598, + "start": 3937, + "end": 3938, "loc": { "start": { - "line": 123, - "column": 2 + "line": 131, + "column": 17 }, "end": { - "line": 123, - "column": 5 + "line": 131, + "column": 18 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -39279,44 +42353,44 @@ "postfix": false, "binop": null }, - "start": 3599, - "end": 3600, + "value": "id", + "start": 3938, + "end": 3940, "loc": { "start": { - "line": 123, - "column": 6 + "line": 131, + "column": 18 }, "end": { - "line": 123, - "column": 7 + "line": 131, + "column": 20 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "value": "let", - "start": 3600, - "end": 3603, + "value": "!==", + "start": 3941, + "end": 3944, "loc": { "start": { - "line": 123, - "column": 7 + "line": 131, + "column": 21 }, "end": { - "line": 123, - "column": 10 + "line": 131, + "column": 24 } } }, @@ -39332,45 +42406,43 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 3604, - "end": 3611, + "value": "socket", + "start": 3945, + "end": 3951, "loc": { "start": { - "line": 123, - "column": 11 + "line": 131, + "column": 25 }, "end": { - "line": 123, - "column": 18 + "line": 131, + "column": 31 } } }, { "type": { - "label": "in", - "keyword": "in", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": "in", - "start": 3612, - "end": 3614, + "start": 3951, + "end": 3952, "loc": { "start": { - "line": 123, - "column": 19 + "line": 131, + "column": 31 }, "end": { - "line": 123, - "column": 21 + "line": 131, + "column": 32 } } }, @@ -39386,17 +42458,17 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 3615, - "end": 3619, + "value": "id", + "start": 3952, + "end": 3954, "loc": { "start": { - "line": 123, - "column": 22 + "line": 131, + "column": 32 }, "end": { - "line": 123, - "column": 26 + "line": 131, + "column": 34 } } }, @@ -39412,16 +42484,16 @@ "postfix": false, "binop": null }, - "start": 3619, - "end": 3620, + "start": 3954, + "end": 3955, "loc": { "start": { - "line": 123, - "column": 26 + "line": 131, + "column": 34 }, "end": { - "line": 123, - "column": 27 + "line": 131, + "column": 35 } } }, @@ -39437,50 +42509,48 @@ "postfix": false, "binop": null }, - "start": 3621, - "end": 3622, + "start": 3956, + "end": 3957, "loc": { "start": { - "line": 123, - "column": 28 + "line": 131, + "column": 36 }, "end": { - "line": 123, - "column": 29 + "line": 131, + "column": 37 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 3626, - "end": 3628, + "value": "objects", + "start": 3966, + "end": 3973, "loc": { "start": { - "line": 124, - "column": 3 + "line": 132, + "column": 8 }, "end": { - "line": 124, - "column": 5 + "line": 132, + "column": 15 } } }, { "type": { - "label": "(", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -39488,18 +42558,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3629, - "end": 3630, + "start": 3973, + "end": 3974, "loc": { "start": { - "line": 124, - "column": 6 + "line": 132, + "column": 15 }, "end": { - "line": 124, - "column": 7 + "line": 132, + "column": 16 } } }, @@ -39516,50 +42587,49 @@ "binop": null }, "value": "objType", - "start": 3630, - "end": 3637, + "start": 3974, + "end": 3981, "loc": { "start": { - "line": 124, - "column": 7 + "line": 132, + "column": 16 }, "end": { - "line": 124, - "column": 14 + "line": 132, + "column": 23 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "!==", - "start": 3638, - "end": 3641, + "start": 3981, + "end": 3982, "loc": { "start": { - "line": 124, - "column": 15 + "line": 132, + "column": 23 }, "end": { - "line": 124, - "column": 18 + "line": 132, + "column": 24 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -39569,25 +42639,24 @@ "binop": null, "updateContext": null }, - "value": "tiles", - "start": 3642, - "end": 3649, + "start": 3982, + "end": 3983, "loc": { "start": { - "line": 124, - "column": 19 + "line": 132, + "column": 24 }, "end": { - "line": 124, - "column": 26 + "line": 132, + "column": 25 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -39595,76 +42664,76 @@ "postfix": false, "binop": null }, - "start": 3649, - "end": 3650, + "value": "obj", + "start": 3983, + "end": 3986, "loc": { "start": { - "line": 124, - "column": 26 + "line": 132, + "column": 25 }, "end": { - "line": 124, - "column": 27 + "line": 132, + "column": 28 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "]", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3651, - "end": 3652, + "start": 3986, + "end": 3987, "loc": { "start": { - "line": 124, + "line": 132, "column": 28 }, "end": { - "line": 124, + "line": 132, "column": 29 } } }, { "type": { - "label": "for", - "keyword": "for", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "for", - "start": 3657, - "end": 3660, + "start": 3987, + "end": 3988, "loc": { "start": { - "line": 125, - "column": 4 + "line": 132, + "column": 29 }, "end": { - "line": 125, - "column": 7 + "line": 132, + "column": 30 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -39673,44 +42742,42 @@ "postfix": false, "binop": null }, - "start": 3661, - "end": 3662, + "value": "setData", + "start": 3988, + "end": 3995, "loc": { "start": { - "line": 125, - "column": 8 + "line": 132, + "column": 30 }, "end": { - "line": 125, - "column": 9 + "line": 132, + "column": 37 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 3662, - "end": 3665, + "start": 3995, + "end": 3996, "loc": { "start": { - "line": 125, - "column": 9 + "line": 132, + "column": 37 }, "end": { - "line": 125, - "column": 12 + "line": 132, + "column": 38 } } }, @@ -39726,45 +42793,43 @@ "postfix": false, "binop": null }, - "value": "obj", - "start": 3666, - "end": 3669, + "value": "objRef", + "start": 3996, + "end": 4002, "loc": { "start": { - "line": 125, - "column": 13 + "line": 132, + "column": 38 }, "end": { - "line": 125, - "column": 16 + "line": 132, + "column": 44 } } }, { "type": { - "label": "in", - "keyword": "in", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": "in", - "start": 3670, - "end": 3672, + "start": 4002, + "end": 4003, "loc": { "start": { - "line": 125, - "column": 17 + "line": 132, + "column": 44 }, "end": { - "line": 125, - "column": 19 + "line": 132, + "column": 45 } } }, @@ -39780,25 +42845,25 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 3673, - "end": 3677, + "value": "posX", + "start": 4003, + "end": 4007, "loc": { "start": { - "line": 125, - "column": 20 + "line": 132, + "column": 45 }, "end": { - "line": 125, - "column": 24 + "line": 132, + "column": 49 } } }, { "type": { - "label": "[", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -39807,16 +42872,16 @@ "binop": null, "updateContext": null }, - "start": 3677, - "end": 3678, + "start": 4007, + "end": 4008, "loc": { "start": { - "line": 125, - "column": 24 + "line": 132, + "column": 49 }, "end": { - "line": 125, - "column": 25 + "line": 132, + "column": 50 } } }, @@ -39832,23 +42897,23 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 3678, - "end": 3685, + "value": "objRef", + "start": 4009, + "end": 4015, "loc": { "start": { - "line": 125, - "column": 25 + "line": 132, + "column": 51 }, "end": { - "line": 125, - "column": 32 + "line": 132, + "column": 57 } } }, { "type": { - "label": "]", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -39859,24 +42924,24 @@ "binop": null, "updateContext": null }, - "start": 3685, - "end": 3686, + "start": 4015, + "end": 4016, "loc": { "start": { - "line": 125, - "column": 32 + "line": 132, + "column": 57 }, "end": { - "line": 125, - "column": 33 + "line": 132, + "column": 58 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -39884,94 +42949,95 @@ "postfix": false, "binop": null }, - "start": 3686, - "end": 3687, + "value": "posY", + "start": 4016, + "end": 4020, "loc": { "start": { - "line": 125, - "column": 33 + "line": 132, + "column": 58 }, "end": { - "line": 125, - "column": 34 + "line": 132, + "column": 62 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3688, - "end": 3689, + "start": 4020, + "end": 4021, "loc": { "start": { - "line": 125, - "column": 35 + "line": 132, + "column": 62 }, "end": { - "line": 125, - "column": 36 + "line": 132, + "column": 63 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 3695, - "end": 3697, + "value": "objRef", + "start": 4022, + "end": 4028, "loc": { "start": { - "line": 126, - "column": 5 + "line": 132, + "column": 64 }, "end": { - "line": 126, - "column": 7 + "line": 132, + "column": 70 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3698, - "end": 3699, + "start": 4028, + "end": 4029, "loc": { "start": { - "line": 126, - "column": 8 + "line": 132, + "column": 70 }, "end": { - "line": 126, - "column": 9 + "line": 132, + "column": 71 } } }, @@ -39987,25 +43053,25 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 3699, - "end": 3703, + "value": "vx", + "start": 4029, + "end": 4031, "loc": { "start": { - "line": 126, - "column": 9 + "line": 132, + "column": 71 }, "end": { - "line": 126, - "column": 13 + "line": 132, + "column": 73 } } }, { "type": { - "label": "[", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40014,16 +43080,16 @@ "binop": null, "updateContext": null }, - "start": 3703, - "end": 3704, + "start": 4031, + "end": 4032, "loc": { "start": { - "line": 126, - "column": 13 + "line": 132, + "column": 73 }, "end": { - "line": 126, - "column": 14 + "line": 132, + "column": 74 } } }, @@ -40039,23 +43105,23 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 3704, - "end": 3711, + "value": "objRef", + "start": 4033, + "end": 4039, "loc": { "start": { - "line": 126, - "column": 14 + "line": 132, + "column": 75 }, "end": { - "line": 126, - "column": 21 + "line": 132, + "column": 81 } } }, { "type": { - "label": "]", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -40066,50 +43132,50 @@ "binop": null, "updateContext": null }, - "start": 3711, - "end": 3712, + "start": 4039, + "end": 4040, "loc": { "start": { - "line": 126, - "column": 21 + "line": 132, + "column": 81 }, "end": { - "line": 126, - "column": 22 + "line": 132, + "column": 82 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3712, - "end": 3713, + "value": "vy", + "start": 4040, + "end": 4042, "loc": { "start": { - "line": 126, - "column": 22 + "line": 132, + "column": 82 }, "end": { - "line": 126, - "column": 23 + "line": 132, + "column": 84 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40117,23 +43183,22 @@ "postfix": false, "binop": null }, - "value": "obj", - "start": 3713, - "end": 3716, + "start": 4042, + "end": 4043, "loc": { "start": { - "line": 126, - "column": 23 + "line": 132, + "column": 84 }, "end": { - "line": 126, - "column": 26 + "line": 132, + "column": 85 } } }, { "type": { - "label": "]", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -40141,82 +43206,79 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3716, - "end": 3717, + "start": 4051, + "end": 4052, "loc": { "start": { - "line": 126, - "column": 26 + "line": 133, + "column": 7 }, "end": { - "line": 126, - "column": 27 + "line": 133, + "column": 8 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "!==", - "start": 3718, - "end": 3721, + "value": "if", + "start": 4060, + "end": 4062, "loc": { "start": { - "line": 126, - "column": 28 + "line": 134, + "column": 7 }, "end": { - "line": 126, - "column": 31 + "line": 134, + "column": 9 } } }, { "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "null", - "start": 3722, - "end": 3726, + "start": 4063, + "end": 4064, "loc": { "start": { - "line": 126, - "column": 32 + "line": 134, + "column": 10 }, "end": { - "line": 126, - "column": 36 + "line": 134, + "column": 11 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40224,50 +43286,52 @@ "postfix": false, "binop": null }, - "start": 3726, - "end": 3727, + "value": "objType", + "start": 4064, + "end": 4071, "loc": { "start": { - "line": 126, - "column": 36 + "line": 134, + "column": 11 }, "end": { - "line": 126, - "column": 37 + "line": 134, + "column": 18 } } }, { "type": { - "label": "{", + "label": "==/!=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "start": 3728, - "end": 3729, + "value": "===", + "start": 4072, + "end": 4075, "loc": { "start": { - "line": 126, - "column": 38 + "line": 134, + "column": 19 }, "end": { - "line": 126, - "column": 39 + "line": 134, + "column": 22 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40276,25 +43340,25 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 3736, - "end": 3739, + "value": "players", + "start": 4076, + "end": 4085, "loc": { "start": { - "line": 127, - "column": 6 + "line": 134, + "column": 23 }, "end": { - "line": 127, - "column": 9 + "line": 134, + "column": 32 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40302,44 +43366,41 @@ "postfix": false, "binop": null }, - "value": "objRef", - "start": 3740, - "end": 3746, + "start": 4085, + "end": 4086, "loc": { "start": { - "line": 127, - "column": 10 + "line": 134, + "column": 32 }, "end": { - "line": 127, - "column": 16 + "line": 134, + "column": 33 } } }, { "type": { - "label": "=", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 3747, - "end": 3748, + "start": 4087, + "end": 4088, "loc": { "start": { - "line": 127, - "column": 17 + "line": 134, + "column": 34 }, "end": { - "line": 127, - "column": 18 + "line": 134, + "column": 35 } } }, @@ -40355,17 +43416,17 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 3749, - "end": 3753, + "value": "objects", + "start": 4097, + "end": 4104, "loc": { "start": { - "line": 127, - "column": 19 + "line": 135, + "column": 8 }, "end": { - "line": 127, - "column": 23 + "line": 135, + "column": 15 } } }, @@ -40382,16 +43443,16 @@ "binop": null, "updateContext": null }, - "start": 3753, - "end": 3754, + "start": 4104, + "end": 4105, "loc": { "start": { - "line": 127, - "column": 23 + "line": 135, + "column": 15 }, "end": { - "line": 127, - "column": 24 + "line": 135, + "column": 16 } } }, @@ -40408,16 +43469,16 @@ "binop": null }, "value": "objType", - "start": 3754, - "end": 3761, + "start": 4105, + "end": 4112, "loc": { "start": { - "line": 127, - "column": 24 + "line": 135, + "column": 16 }, "end": { - "line": 127, - "column": 31 + "line": 135, + "column": 23 } } }, @@ -40434,16 +43495,16 @@ "binop": null, "updateContext": null }, - "start": 3761, - "end": 3762, + "start": 4112, + "end": 4113, "loc": { "start": { - "line": 127, - "column": 31 + "line": 135, + "column": 23 }, "end": { - "line": 127, - "column": 32 + "line": 135, + "column": 24 } } }, @@ -40460,16 +43521,16 @@ "binop": null, "updateContext": null }, - "start": 3762, - "end": 3763, + "start": 4113, + "end": 4114, "loc": { "start": { - "line": 127, - "column": 32 + "line": 135, + "column": 24 }, "end": { - "line": 127, - "column": 33 + "line": 135, + "column": 25 } } }, @@ -40486,16 +43547,16 @@ "binop": null }, "value": "obj", - "start": 3763, - "end": 3766, + "start": 4114, + "end": 4117, "loc": { "start": { - "line": 127, - "column": 33 + "line": 135, + "column": 25 }, "end": { - "line": 127, - "column": 36 + "line": 135, + "column": 28 } } }, @@ -40512,23 +43573,22 @@ "binop": null, "updateContext": null }, - "start": 3766, - "end": 3767, + "start": 4117, + "end": 4118, "loc": { "start": { - "line": 127, - "column": 36 + "line": 135, + "column": 28 }, "end": { - "line": 127, - "column": 37 + "line": 135, + "column": 29 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -40539,17 +43599,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 3774, - "end": 3777, + "start": 4118, + "end": 4119, "loc": { "start": { - "line": 128, - "column": 6 + "line": 135, + "column": 29 }, "end": { - "line": 128, - "column": 9 + "line": 135, + "column": 30 } } }, @@ -40565,17 +43624,17 @@ "postfix": false, "binop": null }, - "value": "clientObj", - "start": 3778, - "end": 3787, + "value": "health", + "start": 4119, + "end": 4125, "loc": { "start": { - "line": 128, - "column": 10 + "line": 135, + "column": 30 }, "end": { - "line": 128, - "column": 19 + "line": 135, + "column": 36 } } }, @@ -40593,16 +43652,16 @@ "updateContext": null }, "value": "=", - "start": 3788, - "end": 3789, + "start": 4126, + "end": 4127, "loc": { "start": { - "line": 128, - "column": 20 + "line": 135, + "column": 37 }, "end": { - "line": 128, - "column": 21 + "line": 135, + "column": 38 } } }, @@ -40618,25 +43677,25 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 3790, - "end": 3797, + "value": "objRef", + "start": 4128, + "end": 4134, "loc": { "start": { - "line": 128, - "column": 22 + "line": 135, + "column": 39 }, "end": { - "line": 128, - "column": 29 + "line": 135, + "column": 45 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40645,16 +43704,16 @@ "binop": null, "updateContext": null }, - "start": 3797, - "end": 3798, + "start": 4134, + "end": 4135, "loc": { "start": { - "line": 128, - "column": 29 + "line": 135, + "column": 45 }, "end": { - "line": 128, - "column": 30 + "line": 135, + "column": 46 } } }, @@ -40670,43 +43729,43 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 3798, - "end": 3805, + "value": "health", + "start": 4135, + "end": 4141, "loc": { "start": { - "line": 128, - "column": 30 + "line": 135, + "column": 46 }, "end": { - "line": 128, - "column": 37 + "line": 135, + "column": 52 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3805, - "end": 3806, + "value": "objects", + "start": 4150, + "end": 4157, "loc": { "start": { - "line": 128, - "column": 37 + "line": 136, + "column": 8 }, "end": { - "line": 128, - "column": 38 + "line": 136, + "column": 15 } } }, @@ -40723,16 +43782,16 @@ "binop": null, "updateContext": null }, - "start": 3806, - "end": 3807, + "start": 4157, + "end": 4158, "loc": { "start": { - "line": 128, - "column": 38 + "line": 136, + "column": 15 }, "end": { - "line": 128, - "column": 39 + "line": 136, + "column": 16 } } }, @@ -40748,17 +43807,17 @@ "postfix": false, "binop": null }, - "value": "obj", - "start": 3807, - "end": 3810, + "value": "objType", + "start": 4158, + "end": 4165, "loc": { "start": { - "line": 128, - "column": 39 + "line": 136, + "column": 16 }, "end": { - "line": 128, - "column": 42 + "line": 136, + "column": 23 } } }, @@ -40775,41 +43834,24 @@ "binop": null, "updateContext": null }, - "start": 3810, - "end": 3811, - "loc": { - "start": { - "line": 128, - "column": 42 - }, - "end": { - "line": 128, - "column": 43 - } - } - }, - { - "type": "CommentLine", - "value": " Already exists in database", - "start": 3818, - "end": 3847, + "start": 4165, + "end": 4166, "loc": { "start": { - "line": 129, - "column": 6 + "line": 136, + "column": 23 }, "end": { - "line": 129, - "column": 35 + "line": 136, + "column": 24 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40818,24 +43860,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 3854, - "end": 3856, + "start": 4166, + "end": 4167, "loc": { "start": { - "line": 130, - "column": 6 + "line": 136, + "column": 24 }, "end": { - "line": 130, - "column": 8 + "line": 136, + "column": 25 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -40844,69 +43885,69 @@ "postfix": false, "binop": null }, - "start": 3857, - "end": 3858, + "value": "obj", + "start": 4167, + "end": 4170, "loc": { "start": { - "line": 130, - "column": 9 + "line": 136, + "column": 25 }, "end": { - "line": 130, - "column": 10 + "line": 136, + "column": 28 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "clientObj", - "start": 3858, - "end": 3867, + "start": 4170, + "end": 4171, "loc": { "start": { - "line": 130, - "column": 10 + "line": 136, + "column": 28 }, "end": { - "line": 130, - "column": 19 + "line": 136, + "column": 29 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "!==", - "start": 3868, - "end": 3871, + "start": 4171, + "end": 4172, "loc": { "start": { - "line": 130, - "column": 20 + "line": 136, + "column": 29 }, "end": { - "line": 130, - "column": 23 + "line": 136, + "column": 30 } } }, @@ -40922,44 +43963,44 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 3872, - "end": 3881, + "value": "damagedBy", + "start": 4172, + "end": 4181, "loc": { "start": { - "line": 130, - "column": 24 + "line": 136, + "column": 30 }, "end": { - "line": 130, - "column": 33 + "line": 136, + "column": 39 } } }, { "type": { - "label": "&&", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 3882, - "end": 3884, + "value": "=", + "start": 4182, + "end": 4183, "loc": { "start": { - "line": 130, - "column": 34 + "line": 136, + "column": 40 }, "end": { - "line": 130, - "column": 36 + "line": 136, + "column": 41 } } }, @@ -40975,51 +44016,49 @@ "postfix": false, "binop": null }, - "value": "clientObj", - "start": 3885, - "end": 3894, + "value": "objRef", + "start": 4184, + "end": 4190, "loc": { "start": { - "line": 130, - "column": 37 + "line": 136, + "column": 42 }, "end": { - "line": 130, - "column": 46 + "line": 136, + "column": 48 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "!==", - "start": 3895, - "end": 3898, + "start": 4190, + "end": 4191, "loc": { "start": { - "line": 130, - "column": 47 + "line": 136, + "column": 48 }, "end": { - "line": 130, - "column": 50 + "line": 136, + "column": 49 } } }, { "type": { - "label": "null", - "keyword": "null", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -41027,28 +44066,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "null", - "start": 3899, - "end": 3903, + "value": "damagedBy", + "start": 4191, + "end": 4200, "loc": { "start": { - "line": 130, - "column": 51 + "line": 136, + "column": 49 }, "end": { - "line": 130, - "column": 55 + "line": 136, + "column": 58 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -41056,22 +44094,23 @@ "postfix": false, "binop": null }, - "start": 3903, - "end": 3904, + "value": "objects", + "start": 4209, + "end": 4216, "loc": { "start": { - "line": 130, - "column": 55 + "line": 137, + "column": 8 }, "end": { - "line": 130, - "column": 56 + "line": 137, + "column": 15 } } }, { "type": { - "label": "{", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -41079,25 +44118,51 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4216, + "end": 4217, + "loc": { + "start": { + "line": 137, + "column": 15 + }, + "end": { + "line": 137, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null }, - "start": 3905, - "end": 3906, + "value": "objType", + "start": 4217, + "end": 4224, "loc": { "start": { - "line": 130, - "column": 57 + "line": 137, + "column": 16 }, "end": { - "line": 130, - "column": 58 + "line": 137, + "column": 23 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -41108,23 +44173,22 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 3914, - "end": 3916, + "start": 4224, + "end": 4225, "loc": { "start": { - "line": 131, - "column": 7 + "line": 137, + "column": 23 }, "end": { - "line": 131, - "column": 9 + "line": 137, + "column": 24 } } }, { "type": { - "label": "(", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -41132,18 +44196,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3917, - "end": 3918, + "start": 4225, + "end": 4226, "loc": { "start": { - "line": 131, - "column": 10 + "line": 137, + "column": 24 }, "end": { - "line": 131, - "column": 11 + "line": 137, + "column": 25 } } }, @@ -41159,23 +44224,23 @@ "postfix": false, "binop": null }, - "value": "objRef", - "start": 3918, - "end": 3924, + "value": "obj", + "start": 4226, + "end": 4229, "loc": { "start": { - "line": 131, - "column": 11 + "line": 137, + "column": 25 }, "end": { - "line": 131, - "column": 17 + "line": 137, + "column": 28 } } }, { "type": { - "label": ".", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -41186,69 +44251,42 @@ "binop": null, "updateContext": null }, - "start": 3924, - "end": 3925, + "start": 4229, + "end": 4230, "loc": { "start": { - "line": 131, - "column": 17 + "line": 137, + "column": 28 }, "end": { - "line": 131, - "column": 18 + "line": 137, + "column": 29 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 3925, - "end": 3927, - "loc": { - "start": { - "line": 131, - "column": 18 - }, - "end": { - "line": 131, - "column": 20 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "!==", - "start": 3928, - "end": 3931, + "start": 4230, + "end": 4231, "loc": { "start": { - "line": 131, - "column": 21 + "line": 137, + "column": 29 }, "end": { - "line": 131, - "column": 24 + "line": 137, + "column": 30 } } }, @@ -41264,43 +44302,44 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 3932, - "end": 3938, + "value": "atomList", + "start": 4231, + "end": 4239, "loc": { "start": { - "line": 131, - "column": 25 + "line": 137, + "column": 30 }, "end": { - "line": 131, - "column": 31 + "line": 137, + "column": 38 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 3938, - "end": 3939, + "value": "=", + "start": 4240, + "end": 4241, "loc": { "start": { - "line": 131, - "column": 31 + "line": 137, + "column": 39 }, "end": { - "line": 131, - "column": 32 + "line": 137, + "column": 40 } } }, @@ -41316,23 +44355,23 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 3939, - "end": 3941, + "value": "objRef", + "start": 4242, + "end": 4248, "loc": { "start": { - "line": 131, - "column": 32 + "line": 137, + "column": 41 }, "end": { - "line": 131, - "column": 34 + "line": 137, + "column": 47 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -41340,25 +44379,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3941, - "end": 3942, + "start": 4248, + "end": 4249, "loc": { "start": { - "line": 131, - "column": 34 + "line": 137, + "column": 47 }, "end": { - "line": 131, - "column": 35 + "line": 137, + "column": 48 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -41367,16 +44407,17 @@ "postfix": false, "binop": null }, - "start": 3943, - "end": 3944, + "value": "atomList", + "start": 4249, + "end": 4257, "loc": { "start": { - "line": 131, - "column": 36 + "line": 137, + "column": 48 }, "end": { - "line": 131, - "column": 37 + "line": 137, + "column": 56 } } }, @@ -41393,15 +44434,15 @@ "binop": null }, "value": "objects", - "start": 3953, - "end": 3960, + "start": 4266, + "end": 4273, "loc": { "start": { - "line": 132, + "line": 138, "column": 8 }, "end": { - "line": 132, + "line": 138, "column": 15 } } @@ -41419,15 +44460,15 @@ "binop": null, "updateContext": null }, - "start": 3960, - "end": 3961, + "start": 4273, + "end": 4274, "loc": { "start": { - "line": 132, + "line": 138, "column": 15 }, "end": { - "line": 132, + "line": 138, "column": 16 } } @@ -41445,15 +44486,15 @@ "binop": null }, "value": "objType", - "start": 3961, - "end": 3968, + "start": 4274, + "end": 4281, "loc": { "start": { - "line": 132, + "line": 138, "column": 16 }, "end": { - "line": 132, + "line": 138, "column": 23 } } @@ -41471,15 +44512,15 @@ "binop": null, "updateContext": null }, - "start": 3968, - "end": 3969, + "start": 4281, + "end": 4282, "loc": { "start": { - "line": 132, + "line": 138, "column": 23 }, "end": { - "line": 132, + "line": 138, "column": 24 } } @@ -41497,15 +44538,15 @@ "binop": null, "updateContext": null }, - "start": 3969, - "end": 3970, + "start": 4282, + "end": 4283, "loc": { "start": { - "line": 132, + "line": 138, "column": 24 }, "end": { - "line": 132, + "line": 138, "column": 25 } } @@ -41523,15 +44564,15 @@ "binop": null }, "value": "obj", - "start": 3970, - "end": 3973, + "start": 4283, + "end": 4286, "loc": { "start": { - "line": 132, + "line": 138, "column": 25 }, "end": { - "line": 132, + "line": 138, "column": 28 } } @@ -41549,15 +44590,15 @@ "binop": null, "updateContext": null }, - "start": 3973, - "end": 3974, + "start": 4286, + "end": 4287, "loc": { "start": { - "line": 132, + "line": 138, "column": 28 }, "end": { - "line": 132, + "line": 138, "column": 29 } } @@ -41575,15 +44616,15 @@ "binop": null, "updateContext": null }, - "start": 3974, - "end": 3975, + "start": 4287, + "end": 4288, "loc": { "start": { - "line": 132, + "line": 138, "column": 29 }, "end": { - "line": 132, + "line": 138, "column": 30 } } @@ -41600,42 +44641,44 @@ "postfix": false, "binop": null }, - "value": "setData", - "start": 3975, - "end": 3982, + "value": "speedMult", + "start": 4288, + "end": 4297, "loc": { "start": { - "line": 132, + "line": 138, "column": 30 }, "end": { - "line": 132, - "column": 37 + "line": 138, + "column": 39 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3982, - "end": 3983, + "value": "=", + "start": 4298, + "end": 4299, "loc": { "start": { - "line": 132, - "column": 37 + "line": 138, + "column": 40 }, "end": { - "line": 132, - "column": 38 + "line": 138, + "column": 41 } } }, @@ -41652,16 +44695,16 @@ "binop": null }, "value": "objRef", - "start": 3983, - "end": 3989, + "start": 4300, + "end": 4306, "loc": { "start": { - "line": 132, - "column": 38 + "line": 138, + "column": 42 }, "end": { - "line": 132, - "column": 44 + "line": 138, + "column": 48 } } }, @@ -41678,16 +44721,16 @@ "binop": null, "updateContext": null }, - "start": 3989, - "end": 3990, + "start": 4306, + "end": 4307, "loc": { "start": { - "line": 132, - "column": 44 + "line": 138, + "column": 48 }, "end": { - "line": 132, - "column": 45 + "line": 138, + "column": 49 } } }, @@ -41703,24 +44746,102 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 3990, - "end": 3994, + "value": "speedMult", + "start": 4307, + "end": 4316, "loc": { "start": { - "line": 132, - "column": 45 + "line": 138, + "column": 49 }, "end": { - "line": 132, - "column": 49 + "line": 138, + "column": 58 } } }, { "type": { - "label": ",", + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "objects", + "start": 4325, + "end": 4332, + "loc": { + "start": { + "line": 139, + "column": 8 + }, + "end": { + "line": 139, + "column": 15 + } + } + }, + { + "type": { + "label": "[", "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4332, + "end": 4333, + "loc": { + "start": { + "line": 139, + "column": 15 + }, + "end": { + "line": 139, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "objType", + "start": 4333, + "end": 4340, + "loc": { + "start": { + "line": 139, + "column": 16 + }, + "end": { + "line": 139, + "column": 23 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -41730,16 +44851,42 @@ "binop": null, "updateContext": null }, - "start": 3994, - "end": 3995, + "start": 4340, + "end": 4341, "loc": { "start": { - "line": 132, - "column": 49 + "line": 139, + "column": 23 }, "end": { - "line": 132, - "column": 50 + "line": 139, + "column": 24 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4341, + "end": 4342, + "loc": { + "start": { + "line": 139, + "column": 24 + }, + "end": { + "line": 139, + "column": 25 } } }, @@ -41755,17 +44902,43 @@ "postfix": false, "binop": null }, - "value": "objRef", - "start": 3996, - "end": 4002, + "value": "obj", + "start": 4342, + "end": 4345, "loc": { "start": { - "line": 132, - "column": 51 + "line": 139, + "column": 25 }, "end": { - "line": 132, - "column": 57 + "line": 139, + "column": 28 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4345, + "end": 4346, + "loc": { + "start": { + "line": 139, + "column": 28 + }, + "end": { + "line": 139, + "column": 29 } } }, @@ -41782,16 +44955,16 @@ "binop": null, "updateContext": null }, - "start": 4002, - "end": 4003, + "start": 4346, + "end": 4347, "loc": { "start": { - "line": 132, - "column": 57 + "line": 139, + "column": 29 }, "end": { - "line": 132, - "column": 58 + "line": 139, + "column": 30 } } }, @@ -41807,43 +44980,44 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 4003, - "end": 4007, + "value": "hasShield", + "start": 4347, + "end": 4356, "loc": { "start": { - "line": 132, - "column": 58 + "line": 139, + "column": 30 }, "end": { - "line": 132, - "column": 62 + "line": 139, + "column": 39 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 4007, - "end": 4008, + "value": "=", + "start": 4357, + "end": 4358, "loc": { "start": { - "line": 132, - "column": 62 + "line": 139, + "column": 40 }, "end": { - "line": 132, - "column": 63 + "line": 139, + "column": 41 } } }, @@ -41860,16 +45034,16 @@ "binop": null }, "value": "objRef", - "start": 4009, - "end": 4015, + "start": 4359, + "end": 4365, "loc": { "start": { - "line": 132, - "column": 64 + "line": 139, + "column": 42 }, "end": { - "line": 132, - "column": 70 + "line": 139, + "column": 48 } } }, @@ -41886,23 +45060,77 @@ "binop": null, "updateContext": null }, - "start": 4015, - "end": 4016, + "start": 4365, + "end": 4366, + "loc": { + "start": { + "line": 139, + "column": 48 + }, + "end": { + "line": 139, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hasShield", + "start": 4366, + "end": 4375, + "loc": { + "start": { + "line": 139, + "column": 49 + }, + "end": { + "line": 139, + "column": 58 + } + } + }, + { + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 4384, + "end": 4387, "loc": { "start": { - "line": 132, - "column": 70 + "line": 140, + "column": 8 }, "end": { - "line": 132, - "column": 71 + "line": 140, + "column": 11 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -41911,24 +45139,24 @@ "postfix": false, "binop": null }, - "value": "vx", - "start": 4016, - "end": 4018, + "start": 4388, + "end": 4389, "loc": { "start": { - "line": 132, - "column": 71 + "line": 140, + "column": 12 }, "end": { - "line": 132, - "column": 73 + "line": 140, + "column": 13 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -41938,16 +45166,17 @@ "binop": null, "updateContext": null }, - "start": 4018, - "end": 4019, + "value": "let", + "start": 4389, + "end": 4392, "loc": { "start": { - "line": 132, - "column": 73 + "line": 140, + "column": 13 }, "end": { - "line": 132, - "column": 74 + "line": 140, + "column": 16 } } }, @@ -41963,43 +45192,45 @@ "postfix": false, "binop": null }, - "value": "objRef", - "start": 4020, - "end": 4026, + "value": "atom", + "start": 4393, + "end": 4397, "loc": { "start": { - "line": 132, - "column": 75 + "line": 140, + "column": 17 }, "end": { - "line": 132, - "column": 81 + "line": 140, + "column": 21 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "in", + "keyword": "in", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "start": 4026, - "end": 4027, + "value": "in", + "start": 4398, + "end": 4400, "loc": { "start": { - "line": 132, - "column": 81 + "line": 140, + "column": 22 }, "end": { - "line": 132, - "column": 82 + "line": 140, + "column": 24 } } }, @@ -42015,23 +45246,23 @@ "postfix": false, "binop": null }, - "value": "vy", - "start": 4027, - "end": 4029, + "value": "objRef", + "start": 4401, + "end": 4407, "loc": { "start": { - "line": 132, - "column": 82 + "line": 140, + "column": 25 }, "end": { - "line": 132, - "column": 84 + "line": 140, + "column": 31 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -42039,26 +45270,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4029, - "end": 4030, + "start": 4407, + "end": 4408, "loc": { "start": { - "line": 132, - "column": 84 + "line": 140, + "column": 31 }, "end": { - "line": 132, - "column": 85 + "line": 140, + "column": 32 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -42066,23 +45298,23 @@ "postfix": false, "binop": null }, - "start": 4038, - "end": 4039, + "value": "atomList", + "start": 4408, + "end": 4416, "loc": { "start": { - "line": 133, - "column": 7 + "line": 140, + "column": 32 }, "end": { - "line": 133, - "column": 8 + "line": 140, + "column": 40 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -42090,26 +45322,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 4047, - "end": 4049, + "start": 4416, + "end": 4417, "loc": { "start": { - "line": 134, - "column": 7 + "line": 140, + "column": 40 }, "end": { - "line": 134, - "column": 9 + "line": 140, + "column": 41 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -42119,16 +45349,16 @@ "postfix": false, "binop": null }, - "start": 4050, - "end": 4051, + "start": 4418, + "end": 4419, "loc": { "start": { - "line": 134, - "column": 10 + "line": 140, + "column": 42 }, "end": { - "line": 134, - "column": 11 + "line": 140, + "column": 43 } } }, @@ -42144,50 +45374,48 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 4051, - "end": 4058, + "value": "updateAtomList", + "start": 4429, + "end": 4443, "loc": { "start": { - "line": 134, - "column": 11 + "line": 141, + "column": 9 }, "end": { - "line": 134, - "column": 18 + "line": 141, + "column": 23 } } }, { "type": { - "label": "==/!=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "===", - "start": 4059, - "end": 4062, + "start": 4443, + "end": 4444, "loc": { "start": { - "line": 134, - "column": 19 + "line": 141, + "column": 23 }, "end": { - "line": 134, - "column": 22 + "line": 141, + "column": 24 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -42195,20 +45423,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "players", - "start": 4063, - "end": 4072, + "value": "atom", + "start": 4444, + "end": 4448, "loc": { "start": { - "line": 134, - "column": 23 + "line": 141, + "column": 24 }, "end": { - "line": 134, - "column": 32 + "line": 141, + "column": 28 } } }, @@ -42224,24 +45451,24 @@ "postfix": false, "binop": null }, - "start": 4072, - "end": 4073, + "start": 4448, + "end": 4449, "loc": { "start": { - "line": 134, - "column": 32 + "line": 141, + "column": 28 }, "end": { - "line": 134, - "column": 33 + "line": 141, + "column": 29 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -42249,24 +45476,24 @@ "postfix": false, "binop": null }, - "start": 4074, - "end": 4075, + "start": 4458, + "end": 4459, "loc": { "start": { - "line": 134, - "column": 34 + "line": 142, + "column": 8 }, "end": { - "line": 134, - "column": 35 + "line": 142, + "column": 9 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -42274,25 +45501,25 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 4084, - "end": 4091, + "start": 4467, + "end": 4468, "loc": { "start": { - "line": 135, - "column": 8 + "line": 143, + "column": 7 }, "end": { - "line": 135, - "column": 15 + "line": 143, + "column": 8 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -42301,23 +45528,24 @@ "binop": null, "updateContext": null }, - "start": 4091, - "end": 4092, + "value": "if", + "start": 4476, + "end": 4478, "loc": { "start": { - "line": 135, - "column": 15 + "line": 144, + "column": 7 }, "end": { - "line": 135, - "column": 16 + "line": 144, + "column": 9 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -42326,75 +45554,75 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 4092, - "end": 4099, + "start": 4479, + "end": 4480, "loc": { "start": { - "line": 135, - "column": 16 + "line": 144, + "column": 10 }, "end": { - "line": 135, - "column": 23 + "line": 144, + "column": 11 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4099, - "end": 4100, + "value": "objType", + "start": 4480, + "end": 4487, "loc": { "start": { - "line": 135, - "column": 23 + "line": 144, + "column": 11 }, "end": { - "line": 135, - "column": 24 + "line": 144, + "column": 18 } } }, { "type": { - "label": "[", + "label": "==/!=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 4100, - "end": 4101, + "value": "===", + "start": 4488, + "end": 4491, "loc": { "start": { - "line": 135, - "column": 24 + "line": 144, + "column": 19 }, "end": { - "line": 135, - "column": 25 + "line": 144, + "column": 22 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -42402,71 +45630,47 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "value": "obj", - "start": 4101, - "end": 4104, - "loc": { - "start": { - "line": 135, - "column": 25 - }, - "end": { - "line": 135, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "start": 4104, - "end": 4105, + "value": "compounds", + "start": 4492, + "end": 4503, "loc": { "start": { - "line": 135, - "column": 28 + "line": 144, + "column": 23 }, "end": { - "line": 135, - "column": 29 + "line": 144, + "column": 34 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "&&", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 4105, - "end": 4106, + "value": "&&", + "start": 4504, + "end": 4506, "loc": { "start": { - "line": 135, - "column": 29 + "line": 144, + "column": 35 }, "end": { - "line": 135, - "column": 30 + "line": 144, + "column": 37 } } }, @@ -42482,44 +45686,43 @@ "postfix": false, "binop": null }, - "value": "health", - "start": 4106, - "end": 4112, + "value": "objRef", + "start": 4507, + "end": 4513, "loc": { "start": { - "line": 135, - "column": 30 + "line": 144, + "column": 38 }, "end": { - "line": 135, - "column": 36 + "line": 144, + "column": 44 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4113, - "end": 4114, + "start": 4513, + "end": 4514, "loc": { "start": { - "line": 135, - "column": 37 + "line": 144, + "column": 44 }, "end": { - "line": 135, - "column": 38 + "line": 144, + "column": 45 } } }, @@ -42535,23 +45738,23 @@ "postfix": false, "binop": null }, - "value": "objRef", - "start": 4115, - "end": 4121, + "value": "ignited", + "start": 4514, + "end": 4521, "loc": { "start": { - "line": 135, - "column": 39 + "line": 144, + "column": 45 }, "end": { - "line": 135, - "column": 45 + "line": 144, + "column": 52 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -42559,26 +45762,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4121, - "end": 4122, + "start": 4521, + "end": 4522, "loc": { "start": { - "line": 135, - "column": 45 + "line": 144, + "column": 52 }, "end": { - "line": 135, - "column": 46 + "line": 144, + "column": 53 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -42587,17 +45789,16 @@ "postfix": false, "binop": null }, - "value": "health", - "start": 4122, - "end": 4128, + "start": 4523, + "end": 4524, "loc": { "start": { - "line": 135, - "column": 46 + "line": 144, + "column": 54 }, "end": { - "line": 135, - "column": 52 + "line": 144, + "column": 55 } } }, @@ -42614,15 +45815,15 @@ "binop": null }, "value": "objects", - "start": 4137, - "end": 4144, + "start": 4533, + "end": 4540, "loc": { "start": { - "line": 136, + "line": 145, "column": 8 }, "end": { - "line": 136, + "line": 145, "column": 15 } } @@ -42640,15 +45841,15 @@ "binop": null, "updateContext": null }, - "start": 4144, - "end": 4145, + "start": 4540, + "end": 4541, "loc": { "start": { - "line": 136, + "line": 145, "column": 15 }, "end": { - "line": 136, + "line": 145, "column": 16 } } @@ -42666,15 +45867,15 @@ "binop": null }, "value": "objType", - "start": 4145, - "end": 4152, + "start": 4541, + "end": 4548, "loc": { "start": { - "line": 136, + "line": 145, "column": 16 }, "end": { - "line": 136, + "line": 145, "column": 23 } } @@ -42692,15 +45893,15 @@ "binop": null, "updateContext": null }, - "start": 4152, - "end": 4153, + "start": 4548, + "end": 4549, "loc": { "start": { - "line": 136, + "line": 145, "column": 23 }, "end": { - "line": 136, + "line": 145, "column": 24 } } @@ -42718,15 +45919,15 @@ "binop": null, "updateContext": null }, - "start": 4153, - "end": 4154, + "start": 4549, + "end": 4550, "loc": { "start": { - "line": 136, + "line": 145, "column": 24 }, "end": { - "line": 136, + "line": 145, "column": 25 } } @@ -42744,15 +45945,15 @@ "binop": null }, "value": "obj", - "start": 4154, - "end": 4157, + "start": 4550, + "end": 4553, "loc": { "start": { - "line": 136, + "line": 145, "column": 25 }, "end": { - "line": 136, + "line": 145, "column": 28 } } @@ -42770,15 +45971,15 @@ "binop": null, "updateContext": null }, - "start": 4157, - "end": 4158, + "start": 4553, + "end": 4554, "loc": { "start": { - "line": 136, + "line": 145, "column": 28 }, "end": { - "line": 136, + "line": 145, "column": 29 } } @@ -42796,15 +45997,15 @@ "binop": null, "updateContext": null }, - "start": 4158, - "end": 4159, + "start": 4554, + "end": 4555, "loc": { "start": { - "line": 136, + "line": 145, "column": 29 }, "end": { - "line": 136, + "line": 145, "column": 30 } } @@ -42821,17 +46022,17 @@ "postfix": false, "binop": null }, - "value": "damagedBy", - "start": 4159, - "end": 4168, + "value": "ignited", + "start": 4555, + "end": 4562, "loc": { "start": { - "line": 136, + "line": 145, "column": 30 }, "end": { - "line": 136, - "column": 39 + "line": 145, + "column": 37 } } }, @@ -42849,16 +46050,16 @@ "updateContext": null }, "value": "=", - "start": 4169, - "end": 4170, + "start": 4563, + "end": 4564, "loc": { "start": { - "line": 136, - "column": 40 + "line": 145, + "column": 38 }, "end": { - "line": 136, - "column": 41 + "line": 145, + "column": 39 } } }, @@ -42875,16 +46076,16 @@ "binop": null }, "value": "objRef", - "start": 4171, - "end": 4177, + "start": 4565, + "end": 4571, "loc": { "start": { - "line": 136, - "column": 42 + "line": 145, + "column": 40 }, "end": { - "line": 136, - "column": 48 + "line": 145, + "column": 46 } } }, @@ -42901,16 +46102,16 @@ "binop": null, "updateContext": null }, - "start": 4177, - "end": 4178, + "start": 4571, + "end": 4572, "loc": { "start": { - "line": 136, - "column": 48 + "line": 145, + "column": 46 }, "end": { - "line": 136, - "column": 49 + "line": 145, + "column": 47 } } }, @@ -42926,25 +46127,25 @@ "postfix": false, "binop": null }, - "value": "damagedBy", - "start": 4178, - "end": 4187, + "value": "ignited", + "start": 4572, + "end": 4579, "loc": { "start": { - "line": 136, - "column": 49 + "line": 145, + "column": 47 }, "end": { - "line": 136, - "column": 58 + "line": 145, + "column": 54 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -42952,75 +46153,92 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 4196, - "end": 4203, + "start": 4587, + "end": 4588, "loc": { "start": { - "line": 137, - "column": 8 + "line": 146, + "column": 7 }, "end": { - "line": 137, - "column": 15 + "line": 146, + "column": 8 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4203, - "end": 4204, + "start": 4595, + "end": 4596, + "loc": { + "start": { + "line": 147, + "column": 6 + }, + "end": { + "line": 147, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " Does not exist - need to clone to clientside", + "start": 4603, + "end": 4650, "loc": { "start": { - "line": 137, - "column": 15 + "line": 148, + "column": 6 }, "end": { - "line": 137, - "column": 16 + "line": 148, + "column": 53 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "objType", - "start": 4204, - "end": 4211, + "value": "else", + "start": 4657, + "end": 4661, "loc": { "start": { - "line": 137, - "column": 16 + "line": 149, + "column": 6 }, "end": { - "line": 137, - "column": 23 + "line": 149, + "column": 10 } } }, { "type": { - "label": "]", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -43031,22 +46249,23 @@ "binop": null, "updateContext": null }, - "start": 4211, - "end": 4212, + "value": "if", + "start": 4662, + "end": 4664, "loc": { "start": { - "line": 137, - "column": 23 + "line": 149, + "column": 11 }, "end": { - "line": 137, - "column": 24 + "line": 149, + "column": 13 } } }, { "type": { - "label": "[", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -43054,19 +46273,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4212, - "end": 4213, + "start": 4665, + "end": 4666, "loc": { "start": { - "line": 137, - "column": 24 + "line": 149, + "column": 14 }, "end": { - "line": 137, - "column": 25 + "line": 149, + "column": 15 } } }, @@ -43082,23 +46300,23 @@ "postfix": false, "binop": null }, - "value": "obj", - "start": 4213, - "end": 4216, + "value": "isSetup", + "start": 4666, + "end": 4673, "loc": { "start": { - "line": 137, - "column": 25 + "line": 149, + "column": 15 }, "end": { - "line": 137, - "column": 28 + "line": 149, + "column": 22 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -43106,98 +46324,96 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4216, - "end": 4217, + "start": 4673, + "end": 4674, "loc": { "start": { - "line": 137, - "column": 28 + "line": 149, + "column": 22 }, "end": { - "line": 137, - "column": 29 + "line": 149, + "column": 23 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4217, - "end": 4218, + "start": 4675, + "end": 4676, "loc": { "start": { - "line": 137, - "column": 29 + "line": 149, + "column": 24 }, "end": { - "line": 137, - "column": 30 + "line": 149, + "column": 25 } } }, { "type": { - "label": "name", + "label": "switch", + "keyword": "switch", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "atomList", - "start": 4218, - "end": 4226, + "value": "switch", + "start": 4684, + "end": 4690, "loc": { "start": { - "line": 137, - "column": 30 + "line": 150, + "column": 7 }, "end": { - "line": 137, - "column": 38 + "line": 150, + "column": 13 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 4227, - "end": 4228, + "start": 4691, + "end": 4692, "loc": { "start": { - "line": 137, - "column": 39 + "line": 150, + "column": 14 }, "end": { - "line": 137, - "column": 40 + "line": 150, + "column": 15 } } }, @@ -43213,23 +46429,23 @@ "postfix": false, "binop": null }, - "value": "objRef", - "start": 4229, - "end": 4235, + "value": "objType", + "start": 4692, + "end": 4699, "loc": { "start": { - "line": 137, - "column": 41 + "line": 150, + "column": 15 }, "end": { - "line": 137, - "column": 47 + "line": 150, + "column": 22 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -43237,26 +46453,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4235, - "end": 4236, + "start": 4699, + "end": 4700, "loc": { "start": { - "line": 137, - "column": 47 + "line": 150, + "column": 22 }, "end": { - "line": 137, - "column": 48 + "line": 150, + "column": 23 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -43265,50 +46480,51 @@ "postfix": false, "binop": null }, - "value": "atomList", - "start": 4236, - "end": 4244, + "start": 4701, + "end": 4702, "loc": { "start": { - "line": 137, - "column": 48 + "line": 150, + "column": 24 }, "end": { - "line": 137, - "column": 56 + "line": 150, + "column": 25 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "case", + "keyword": "case", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "objects", - "start": 4253, - "end": 4260, + "value": "case", + "start": 4711, + "end": 4715, "loc": { "start": { - "line": 138, + "line": 151, "column": 8 }, "end": { - "line": 138, - "column": 15 + "line": 151, + "column": 12 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -43318,68 +46534,69 @@ "binop": null, "updateContext": null }, - "start": 4260, - "end": 4261, + "value": "players", + "start": 4716, + "end": 4725, "loc": { "start": { - "line": 138, - "column": 15 + "line": 151, + "column": 13 }, "end": { - "line": 138, - "column": 16 + "line": 151, + "column": 22 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ":", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "objType", - "start": 4261, - "end": 4268, + "start": 4725, + "end": 4726, "loc": { "start": { - "line": 138, - "column": 16 + "line": 151, + "column": 22 }, "end": { - "line": 138, + "line": 151, "column": 23 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4268, - "end": 4269, + "value": "objects", + "start": 4736, + "end": 4743, "loc": { "start": { - "line": 138, - "column": 23 + "line": 152, + "column": 9 }, "end": { - "line": 138, - "column": 24 + "line": 152, + "column": 16 } } }, @@ -43396,16 +46613,16 @@ "binop": null, "updateContext": null }, - "start": 4269, - "end": 4270, + "start": 4743, + "end": 4744, "loc": { "start": { - "line": 138, - "column": 24 + "line": 152, + "column": 16 }, "end": { - "line": 138, - "column": 25 + "line": 152, + "column": 17 } } }, @@ -43421,17 +46638,17 @@ "postfix": false, "binop": null }, - "value": "obj", - "start": 4270, - "end": 4273, + "value": "objType", + "start": 4744, + "end": 4751, "loc": { "start": { - "line": 138, - "column": 25 + "line": 152, + "column": 17 }, "end": { - "line": 138, - "column": 28 + "line": 152, + "column": 24 } } }, @@ -43448,24 +46665,24 @@ "binop": null, "updateContext": null }, - "start": 4273, - "end": 4274, + "start": 4751, + "end": 4752, "loc": { "start": { - "line": 138, - "column": 28 + "line": 152, + "column": 24 }, "end": { - "line": 138, - "column": 29 + "line": 152, + "column": 25 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -43474,16 +46691,16 @@ "binop": null, "updateContext": null }, - "start": 4274, - "end": 4275, + "start": 4752, + "end": 4753, "loc": { "start": { - "line": 138, - "column": 29 + "line": 152, + "column": 25 }, "end": { - "line": 138, - "column": 30 + "line": 152, + "column": 26 } } }, @@ -43499,96 +46716,70 @@ "postfix": false, "binop": null }, - "value": "speedMult", - "start": 4275, - "end": 4284, + "value": "obj", + "start": 4753, + "end": 4756, "loc": { "start": { - "line": 138, - "column": 30 + "line": 152, + "column": 26 }, "end": { - "line": 138, - "column": 39 + "line": 152, + "column": 29 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4285, - "end": 4286, - "loc": { - "start": { - "line": 138, - "column": 40 - }, - "end": { - "line": 138, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "objRef", - "start": 4287, - "end": 4293, + "start": 4756, + "end": 4757, "loc": { "start": { - "line": 138, - "column": 42 + "line": 152, + "column": 29 }, "end": { - "line": 138, - "column": 48 + "line": 152, + "column": 30 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 4293, - "end": 4294, + "value": "=", + "start": 4758, + "end": 4759, "loc": { "start": { - "line": 138, - "column": 48 + "line": 152, + "column": 31 }, "end": { - "line": 138, - "column": 49 + "line": 152, + "column": 32 } } }, @@ -43604,24 +46795,24 @@ "postfix": false, "binop": null }, - "value": "speedMult", - "start": 4294, - "end": 4303, + "value": "createPlayer", + "start": 4760, + "end": 4772, "loc": { "start": { - "line": 138, - "column": 49 + "line": 152, + "column": 33 }, "end": { - "line": 138, - "column": 58 + "line": 152, + "column": 45 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -43630,51 +46821,50 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 4312, - "end": 4319, + "start": 4772, + "end": 4773, "loc": { "start": { - "line": 139, - "column": 8 + "line": 152, + "column": 45 }, "end": { - "line": 139, - "column": 15 + "line": 152, + "column": 46 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4319, - "end": 4320, + "value": "objRef", + "start": 4773, + "end": 4779, "loc": { "start": { - "line": 139, - "column": 15 + "line": 152, + "column": 46 }, "end": { - "line": 139, - "column": 16 + "line": 152, + "column": 52 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -43682,23 +46872,23 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 4320, - "end": 4327, + "start": 4779, + "end": 4780, "loc": { "start": { - "line": 139, - "column": 16 + "line": 152, + "column": 52 }, "end": { - "line": 139, - "column": 23 + "line": 152, + "column": 53 } } }, { "type": { - "label": "]", + "label": "break", + "keyword": "break", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -43709,24 +46899,26 @@ "binop": null, "updateContext": null }, - "start": 4327, - "end": 4328, + "value": "break", + "start": 4790, + "end": 4795, "loc": { "start": { - "line": 139, - "column": 23 + "line": 153, + "column": 9 }, "end": { - "line": 139, - "column": 24 + "line": 153, + "column": 14 } } }, { "type": { - "label": "[", + "label": "case", + "keyword": "case", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -43735,22 +46927,23 @@ "binop": null, "updateContext": null }, - "start": 4328, - "end": 4329, + "value": "case", + "start": 4804, + "end": 4808, "loc": { "start": { - "line": 139, - "column": 24 + "line": 154, + "column": 8 }, "end": { - "line": 139, - "column": 25 + "line": 154, + "column": 12 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -43758,52 +46951,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "value": "obj", - "start": 4329, - "end": 4332, - "loc": { - "start": { - "line": 139, - "column": 25 - }, - "end": { - "line": 139, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "start": 4332, - "end": 4333, + "value": "atoms", + "start": 4809, + "end": 4816, "loc": { "start": { - "line": 139, - "column": 28 + "line": 154, + "column": 13 }, "end": { - "line": 139, - "column": 29 + "line": 154, + "column": 20 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -43813,16 +46981,16 @@ "binop": null, "updateContext": null }, - "start": 4333, - "end": 4334, + "start": 4816, + "end": 4817, "loc": { "start": { - "line": 139, - "column": 29 + "line": 154, + "column": 20 }, "end": { - "line": 139, - "column": 30 + "line": 154, + "column": 21 } } }, @@ -43838,44 +47006,43 @@ "postfix": false, "binop": null }, - "value": "hasShield", - "start": 4334, - "end": 4343, + "value": "objects", + "start": 4827, + "end": 4834, "loc": { "start": { - "line": 139, - "column": 30 + "line": 155, + "column": 9 }, "end": { - "line": 139, - "column": 39 + "line": 155, + "column": 16 } } }, { "type": { - "label": "=", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4344, - "end": 4345, + "start": 4834, + "end": 4835, "loc": { "start": { - "line": 139, - "column": 40 + "line": 155, + "column": 16 }, "end": { - "line": 139, - "column": 41 + "line": 155, + "column": 17 } } }, @@ -43891,23 +47058,23 @@ "postfix": false, "binop": null }, - "value": "objRef", - "start": 4346, - "end": 4352, + "value": "objType", + "start": 4835, + "end": 4842, "loc": { "start": { - "line": 139, - "column": 42 + "line": 155, + "column": 17 }, "end": { - "line": 139, - "column": 48 + "line": 155, + "column": 24 } } }, { "type": { - "label": ".", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -43918,123 +47085,121 @@ "binop": null, "updateContext": null }, - "start": 4352, - "end": 4353, + "start": 4842, + "end": 4843, "loc": { "start": { - "line": 139, - "column": 48 + "line": 155, + "column": 24 }, "end": { - "line": 139, - "column": 49 + "line": 155, + "column": 25 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "hasShield", - "start": 4353, - "end": 4362, + "start": 4843, + "end": 4844, "loc": { "start": { - "line": 139, - "column": 49 + "line": 155, + "column": 25 }, "end": { - "line": 139, - "column": 58 + "line": 155, + "column": 26 } } }, { "type": { - "label": "for", - "keyword": "for", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "for", - "start": 4371, - "end": 4374, + "value": "obj", + "start": 4844, + "end": 4847, "loc": { "start": { - "line": 140, - "column": 8 + "line": 155, + "column": 26 }, "end": { - "line": 140, - "column": 11 + "line": 155, + "column": 29 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "]", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4375, - "end": 4376, + "start": 4847, + "end": 4848, "loc": { "start": { - "line": 140, - "column": 12 + "line": 155, + "column": 29 }, "end": { - "line": 140, - "column": 13 + "line": 155, + "column": 30 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "let", - "start": 4376, - "end": 4379, + "value": "=", + "start": 4849, + "end": 4850, "loc": { "start": { - "line": 140, - "column": 13 + "line": 155, + "column": 31 }, "end": { - "line": 140, - "column": 16 + "line": 155, + "column": 32 } } }, @@ -44050,45 +47215,42 @@ "postfix": false, "binop": null }, - "value": "atom", - "start": 4380, - "end": 4384, + "value": "createRenderAtom", + "start": 4851, + "end": 4867, "loc": { "start": { - "line": 140, - "column": 17 + "line": 155, + "column": 33 }, "end": { - "line": 140, - "column": 21 + "line": 155, + "column": 49 } } }, { "type": { - "label": "in", - "keyword": "in", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, - "updateContext": null + "binop": null }, - "value": "in", - "start": 4385, - "end": 4387, + "start": 4867, + "end": 4868, "loc": { "start": { - "line": 140, - "column": 22 + "line": 155, + "column": 49 }, "end": { - "line": 140, - "column": 24 + "line": 155, + "column": 50 } } }, @@ -44105,22 +47267,48 @@ "binop": null }, "value": "objRef", - "start": 4388, - "end": 4394, + "start": 4868, + "end": 4874, "loc": { "start": { - "line": 140, - "column": 25 + "line": 155, + "column": 50 }, "end": { - "line": 140, - "column": 31 + "line": 155, + "column": 56 } } }, { "type": { - "label": ".", + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4874, + "end": 4875, + "loc": { + "start": { + "line": 155, + "column": 56 + }, + "end": { + "line": 155, + "column": 57 + } + } + }, + { + "type": { + "label": "break", + "keyword": "break", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -44131,92 +47319,98 @@ "binop": null, "updateContext": null }, - "start": 4394, - "end": 4395, + "value": "break", + "start": 4885, + "end": 4890, "loc": { "start": { - "line": 140, - "column": 31 + "line": 156, + "column": 9 }, "end": { - "line": 140, - "column": 32 + "line": 156, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "case", + "keyword": "case", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "atomList", - "start": 4395, - "end": 4403, + "value": "case", + "start": 4899, + "end": 4903, "loc": { "start": { - "line": 140, - "column": 32 + "line": 157, + "column": 8 }, "end": { - "line": 140, - "column": 40 + "line": 157, + "column": 12 } } }, { "type": { - "label": ")", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4403, - "end": 4404, + "value": "compounds", + "start": 4904, + "end": 4915, "loc": { "start": { - "line": 140, - "column": 40 + "line": 157, + "column": 13 }, "end": { - "line": 140, - "column": 41 + "line": 157, + "column": 24 } } }, { "type": { - "label": "{", + "label": ":", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4405, - "end": 4406, + "start": 4915, + "end": 4916, "loc": { "start": { - "line": 140, - "column": 42 + "line": 157, + "column": 24 }, "end": { - "line": 140, - "column": 43 + "line": 157, + "column": 25 } } }, @@ -44232,23 +47426,23 @@ "postfix": false, "binop": null }, - "value": "updateAtomList", - "start": 4416, - "end": 4430, + "value": "objects", + "start": 4926, + "end": 4933, "loc": { "start": { - "line": 141, + "line": 158, "column": 9 }, "end": { - "line": 141, - "column": 23 + "line": 158, + "column": 16 } } }, { "type": { - "label": "(", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -44256,18 +47450,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4430, - "end": 4431, + "start": 4933, + "end": 4934, "loc": { "start": { - "line": 141, - "column": 23 + "line": 158, + "column": 16 }, "end": { - "line": 141, - "column": 24 + "line": 158, + "column": 17 } } }, @@ -44283,23 +47478,23 @@ "postfix": false, "binop": null }, - "value": "atom", - "start": 4431, - "end": 4435, + "value": "objType", + "start": 4934, + "end": 4941, "loc": { "start": { - "line": 141, - "column": 24 + "line": 158, + "column": 17 }, "end": { - "line": 141, - "column": 28 + "line": 158, + "column": 24 } } }, { "type": { - "label": ")", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -44307,51 +47502,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4435, - "end": 4436, + "start": 4941, + "end": 4942, "loc": { "start": { - "line": 141, - "column": 28 + "line": 158, + "column": 24 }, "end": { - "line": 141, - "column": 29 + "line": 158, + "column": 25 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4445, - "end": 4446, + "start": 4942, + "end": 4943, "loc": { "start": { - "line": 142, - "column": 8 + "line": 158, + "column": 25 }, "end": { - "line": 142, - "column": 9 + "line": 158, + "column": 26 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -44359,23 +47556,23 @@ "postfix": false, "binop": null }, - "start": 4454, - "end": 4455, + "value": "obj", + "start": 4943, + "end": 4946, "loc": { "start": { - "line": 143, - "column": 7 + "line": 158, + "column": 26 }, "end": { - "line": 143, - "column": 8 + "line": 158, + "column": 29 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -44386,42 +47583,43 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 4463, - "end": 4465, + "start": 4946, + "end": 4947, "loc": { "start": { - "line": 144, - "column": 7 + "line": 158, + "column": 29 }, "end": { - "line": 144, - "column": 9 + "line": 158, + "column": 30 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4466, - "end": 4467, + "value": "=", + "start": 4948, + "end": 4949, "loc": { "start": { - "line": 144, - "column": 10 + "line": 158, + "column": 31 }, "end": { - "line": 144, - "column": 11 + "line": 158, + "column": 32 } } }, @@ -44437,50 +47635,48 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 4467, - "end": 4474, + "value": "createRenderCompound", + "start": 4950, + "end": 4970, "loc": { "start": { - "line": 144, - "column": 11 + "line": 158, + "column": 33 }, "end": { - "line": 144, - "column": 18 + "line": 158, + "column": 53 } } }, { "type": { - "label": "==/!=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "===", - "start": 4475, - "end": 4478, + "start": 4970, + "end": 4971, "loc": { "start": { - "line": 144, - "column": 19 + "line": 158, + "column": 53 }, "end": { - "line": 144, - "column": 22 + "line": 158, + "column": 54 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -44488,79 +47684,78 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "compounds", - "start": 4479, - "end": 4490, + "value": "objRef", + "start": 4971, + "end": 4977, "loc": { "start": { - "line": 144, - "column": 23 + "line": 158, + "column": 54 }, "end": { - "line": 144, - "column": 34 + "line": 158, + "column": 60 } } }, { "type": { - "label": "&&", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, - "updateContext": null + "binop": null }, - "value": "&&", - "start": 4491, - "end": 4493, + "start": 4977, + "end": 4978, "loc": { "start": { - "line": 144, - "column": 35 + "line": 158, + "column": 60 }, "end": { - "line": 144, - "column": 37 + "line": 158, + "column": 61 } } }, { "type": { - "label": "name", + "label": "break", + "keyword": "break", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "objRef", - "start": 4494, - "end": 4500, + "value": "break", + "start": 4988, + "end": 4993, "loc": { "start": { - "line": 144, - "column": 38 + "line": 159, + "column": 9 }, "end": { - "line": 144, - "column": 44 + "line": 159, + "column": 14 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -44568,27 +47763,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4500, - "end": 4501, + "start": 5001, + "end": 5002, "loc": { "start": { - "line": 144, - "column": 44 + "line": 160, + "column": 7 }, "end": { - "line": 144, - "column": 45 + "line": 160, + "column": 8 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -44596,23 +47790,22 @@ "postfix": false, "binop": null }, - "value": "ignited", - "start": 4501, - "end": 4508, + "start": 5009, + "end": 5010, "loc": { "start": { - "line": 144, - "column": 45 + "line": 161, + "column": 6 }, "end": { - "line": 144, - "column": 52 + "line": 161, + "column": 7 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -44622,24 +47815,24 @@ "postfix": false, "binop": null }, - "start": 4508, - "end": 4509, + "start": 5016, + "end": 5017, "loc": { "start": { - "line": 144, - "column": 52 + "line": 162, + "column": 5 }, "end": { - "line": 144, - "column": 53 + "line": 162, + "column": 6 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -44647,24 +47840,24 @@ "postfix": false, "binop": null }, - "start": 4510, - "end": 4511, + "start": 5022, + "end": 5023, "loc": { "start": { - "line": 144, - "column": 54 + "line": 163, + "column": 4 }, "end": { - "line": 144, - "column": 55 + "line": 163, + "column": 5 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -44672,153 +47865,166 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 4520, - "end": 4527, + "start": 5027, + "end": 5028, + "loc": { + "start": { + "line": 164, + "column": 3 + }, + "end": { + "line": 164, + "column": 4 + } + } + }, + { + "type": "CommentLine", + "value": " else { //Tile drawing", + "start": 5032, + "end": 5056, + "loc": { + "start": { + "line": 165, + "column": 3 + }, + "end": { + "line": 165, + "column": 27 + } + } + }, + { + "type": "CommentLine", + "value": " for (let tile of data.tiles) {", + "start": 5060, + "end": 5097, + "loc": { + "start": { + "line": 166, + "column": 3 + }, + "end": { + "line": 166, + "column": 40 + } + } + }, + { + "type": "CommentLine", + "value": " let tileName = 'tile_' + tile.col + '_' + tile.row;", + "start": 5102, + "end": 5164, + "loc": { + "start": { + "line": 168, + "column": 3 + }, + "end": { + "line": 168, + "column": 65 + } + } + }, + { + "type": "CommentLine", + "value": " if (objects.tiles[tileName] === undefined) {", + "start": 5168, + "end": 5223, "loc": { "start": { - "line": 145, - "column": 8 + "line": 169, + "column": 3 }, "end": { - "line": 145, - "column": 15 + "line": 169, + "column": 58 } } }, { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4527, - "end": 4528, + "type": "CommentLine", + "value": " // console.log(tileName);", + "start": 5227, + "end": 5267, "loc": { "start": { - "line": 145, - "column": 15 + "line": 170, + "column": 3 }, "end": { - "line": 145, - "column": 16 + "line": 170, + "column": 43 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "objType", - "start": 4528, - "end": 4535, + "type": "CommentLine", + "value": " objects.tiles[tileName] = new MapTile(MAP_LAYOUT[tile.row][tile.col], tile.col, tile.row);", + "start": 5271, + "end": 5376, "loc": { "start": { - "line": 145, - "column": 16 + "line": 171, + "column": 3 }, "end": { - "line": 145, - "column": 23 + "line": 171, + "column": 108 } } }, { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4535, - "end": 4536, + "type": "CommentLine", + "value": " }", + "start": 5380, + "end": 5392, "loc": { "start": { - "line": 145, - "column": 23 + "line": 172, + "column": 3 }, "end": { - "line": 145, - "column": 24 + "line": 172, + "column": 15 } } }, { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4536, - "end": 4537, + "type": "CommentLine", + "value": " }", + "start": 5397, + "end": 5405, "loc": { "start": { - "line": 145, - "column": 24 + "line": 174, + "column": 3 }, "end": { - "line": 145, - "column": 25 + "line": 174, + "column": 11 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 4537, - "end": 4540, + "type": "CommentLine", + "value": " }", + "start": 5409, + "end": 5413, "loc": { "start": { - "line": 145, - "column": 25 + "line": 175, + "column": 3 }, "end": { - "line": 145, - "column": 28 + "line": 175, + "column": 7 } } }, { "type": { - "label": "]", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -44826,25 +48032,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4540, - "end": 4541, + "start": 5416, + "end": 5417, "loc": { "start": { - "line": 145, - "column": 28 + "line": 176, + "column": 2 }, "end": { - "line": 145, - "column": 29 + "line": 176, + "column": 3 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -44852,27 +48057,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4541, - "end": 4542, + "start": 5419, + "end": 5420, "loc": { "start": { - "line": 145, - "column": 29 + "line": 177, + "column": 1 }, "end": { - "line": 145, - "column": 30 + "line": 177, + "column": 2 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -44880,44 +48084,32 @@ "postfix": false, "binop": null }, - "value": "ignited", - "start": 4542, - "end": 4549, + "start": 5420, + "end": 5421, "loc": { "start": { - "line": 145, - "column": 30 + "line": 177, + "column": 2 }, "end": { - "line": 145, - "column": 37 + "line": 177, + "column": 3 } } }, { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4550, - "end": 4551, + "type": "CommentLine", + "value": " Sync objects when they are deleted or move out of view. ONLY call after objectSync to avoid issue", + "start": 5424, + "end": 5524, "loc": { "start": { - "line": 145, - "column": 38 + "line": 179, + "column": 1 }, "end": { - "line": 145, - "column": 39 + "line": 179, + "column": 101 } } }, @@ -44933,17 +48125,17 @@ "postfix": false, "binop": null }, - "value": "objRef", - "start": 4552, - "end": 4558, + "value": "socket", + "start": 5526, + "end": 5532, "loc": { "start": { - "line": 145, - "column": 40 + "line": 180, + "column": 1 }, "end": { - "line": 145, - "column": 46 + "line": 180, + "column": 7 } } }, @@ -44960,16 +48152,16 @@ "binop": null, "updateContext": null }, - "start": 4558, - "end": 4559, + "start": 5532, + "end": 5533, "loc": { "start": { - "line": 145, - "column": 46 + "line": 180, + "column": 7 }, "end": { - "line": 145, - "column": 47 + "line": 180, + "column": 8 } } }, @@ -44985,25 +48177,25 @@ "postfix": false, "binop": null }, - "value": "ignited", - "start": 4559, - "end": 4566, + "value": "on", + "start": 5533, + "end": 5535, "loc": { "start": { - "line": 145, - "column": 47 + "line": 180, + "column": 8 }, "end": { - "line": 145, - "column": 54 + "line": 180, + "column": 10 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -45011,64 +48203,49 @@ "postfix": false, "binop": null }, - "start": 4574, - "end": 4575, + "start": 5535, + "end": 5536, "loc": { "start": { - "line": 146, - "column": 7 + "line": 180, + "column": 10 }, "end": { - "line": 146, - "column": 8 + "line": 180, + "column": 11 } } }, { "type": { - "label": "}", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4582, - "end": 4583, - "loc": { - "start": { - "line": 147, - "column": 6 - }, - "end": { - "line": 147, - "column": 7 - } - } - }, - { - "type": "CommentLine", - "value": " Does not exist - need to clone to clientside", - "start": 4590, - "end": 4637, + "value": "serverSendObjectRemoval", + "start": 5536, + "end": 5561, "loc": { "start": { - "line": 148, - "column": 6 + "line": 180, + "column": 11 }, "end": { - "line": 148, - "column": 53 + "line": 180, + "column": 36 } } }, { "type": { - "label": "else", - "keyword": "else", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -45079,52 +48256,48 @@ "binop": null, "updateContext": null }, - "value": "else", - "start": 4644, - "end": 4648, + "start": 5561, + "end": 5562, "loc": { "start": { - "line": 149, - "column": 6 + "line": 180, + "column": 36 }, "end": { - "line": 149, - "column": 10 + "line": 180, + "column": 37 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 4649, - "end": 4651, + "start": 5563, + "end": 5564, "loc": { "start": { - "line": 149, - "column": 11 + "line": 180, + "column": 38 }, "end": { - "line": 149, - "column": 13 + "line": 180, + "column": 39 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -45133,24 +48306,25 @@ "postfix": false, "binop": null }, - "start": 4652, - "end": 4653, + "value": "data", + "start": 5564, + "end": 5568, "loc": { "start": { - "line": 149, - "column": 14 + "line": 180, + "column": 39 }, "end": { - "line": 149, - "column": 15 + "line": 180, + "column": 43 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -45158,42 +48332,42 @@ "postfix": false, "binop": null }, - "value": "isSetup", - "start": 4653, - "end": 4660, + "start": 5568, + "end": 5569, "loc": { "start": { - "line": 149, - "column": 15 + "line": 180, + "column": 43 }, "end": { - "line": 149, - "column": 22 + "line": 180, + "column": 44 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4660, - "end": 4661, + "start": 5570, + "end": 5572, "loc": { "start": { - "line": 149, - "column": 22 + "line": 180, + "column": 45 }, "end": { - "line": 149, - "column": 23 + "line": 180, + "column": 47 } } }, @@ -45209,23 +48383,23 @@ "postfix": false, "binop": null }, - "start": 4662, - "end": 4663, + "start": 5573, + "end": 5574, "loc": { "start": { - "line": 149, - "column": 24 + "line": 180, + "column": 48 }, "end": { - "line": 149, - "column": 25 + "line": 180, + "column": 49 } } }, { "type": { - "label": "switch", - "keyword": "switch", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -45236,17 +48410,17 @@ "binop": null, "updateContext": null }, - "value": "switch", - "start": 4671, - "end": 4677, + "value": "if", + "start": 5577, + "end": 5579, "loc": { "start": { - "line": 150, - "column": 7 + "line": 181, + "column": 2 }, "end": { - "line": 150, - "column": 13 + "line": 181, + "column": 4 } } }, @@ -45262,16 +48436,16 @@ "postfix": false, "binop": null }, - "start": 4678, - "end": 4679, + "start": 5580, + "end": 5581, "loc": { "start": { - "line": 150, - "column": 14 + "line": 181, + "column": 5 }, "end": { - "line": 150, - "column": 15 + "line": 181, + "column": 6 } } }, @@ -45287,23 +48461,23 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 4679, - "end": 4686, + "value": "GLOBAL", + "start": 5581, + "end": 5587, "loc": { "start": { - "line": 150, - "column": 15 + "line": 181, + "column": 6 }, "end": { - "line": 150, - "column": 22 + "line": 181, + "column": 12 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -45311,25 +48485,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4686, - "end": 4687, + "start": 5587, + "end": 5588, "loc": { "start": { - "line": 150, - "column": 22 + "line": 181, + "column": 12 }, "end": { - "line": 150, - "column": 23 + "line": 181, + "column": 13 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -45338,97 +48513,67 @@ "postfix": false, "binop": null }, - "start": 4688, - "end": 4689, - "loc": { - "start": { - "line": 150, - "column": 24 - }, - "end": { - "line": 150, - "column": 25 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 4698, - "end": 4702, + "value": "VERBOSE_SOCKET", + "start": 5588, + "end": 5602, "loc": { "start": { - "line": 151, - "column": 8 + "line": 181, + "column": 13 }, "end": { - "line": 151, - "column": 12 + "line": 181, + "column": 27 } } }, { "type": { - "label": "string", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "players", - "start": 4703, - "end": 4712, + "start": 5602, + "end": 5603, "loc": { "start": { - "line": 151, - "column": 13 + "line": 181, + "column": 27 }, "end": { - "line": 151, - "column": 22 + "line": 181, + "column": 28 } } }, { "type": { - "label": ":", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4712, - "end": 4713, + "start": 5604, + "end": 5605, "loc": { "start": { - "line": 151, - "column": 22 + "line": 181, + "column": 29 }, "end": { - "line": 151, - "column": 23 + "line": 181, + "column": 30 } } }, @@ -45444,25 +48589,25 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 4723, - "end": 4730, + "value": "console", + "start": 5609, + "end": 5616, "loc": { "start": { - "line": 152, - "column": 9 + "line": 182, + "column": 3 }, "end": { - "line": 152, - "column": 16 + "line": 182, + "column": 10 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -45471,16 +48616,16 @@ "binop": null, "updateContext": null }, - "start": 4730, - "end": 4731, + "start": 5616, + "end": 5617, "loc": { "start": { - "line": 152, - "column": 16 + "line": 182, + "column": 10 }, "end": { - "line": 152, - "column": 17 + "line": 182, + "column": 11 } } }, @@ -45496,50 +48641,49 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 4731, - "end": 4738, + "value": "info", + "start": 5617, + "end": 5621, "loc": { "start": { - "line": 152, - "column": 17 + "line": 182, + "column": 11 }, "end": { - "line": 152, - "column": 24 + "line": 182, + "column": 15 } } }, { "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4738, - "end": 4739, + "start": 5621, + "end": 5622, "loc": { "start": { - "line": 152, - "column": 24 + "line": 182, + "column": 15 }, "end": { - "line": 152, - "column": 25 + "line": 182, + "column": 16 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -45549,24 +48693,25 @@ "binop": null, "updateContext": null }, - "start": 4739, - "end": 4740, + "value": "serverSendObjectRemoval() called on: ", + "start": 5622, + "end": 5661, "loc": { "start": { - "line": 152, - "column": 25 + "line": 182, + "column": 16 }, "end": { - "line": 152, - "column": 26 + "line": 182, + "column": 55 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -45574,70 +48719,68 @@ "postfix": false, "binop": null }, - "value": "obj", - "start": 4740, - "end": 4743, + "start": 5661, + "end": 5662, "loc": { "start": { - "line": 152, - "column": 26 + "line": 182, + "column": 55 }, "end": { - "line": 152, - "column": 29 + "line": 182, + "column": 56 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4743, - "end": 4744, + "value": "console", + "start": 5666, + "end": 5673, "loc": { "start": { - "line": 152, - "column": 29 + "line": 183, + "column": 3 }, "end": { - "line": 152, - "column": 30 + "line": 183, + "column": 10 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4745, - "end": 4746, + "start": 5673, + "end": 5674, "loc": { "start": { - "line": 152, - "column": 31 + "line": 183, + "column": 10 }, "end": { - "line": 152, - "column": 32 + "line": 183, + "column": 11 } } }, @@ -45653,17 +48796,17 @@ "postfix": false, "binop": null }, - "value": "createPlayer", - "start": 4747, - "end": 4759, + "value": "info", + "start": 5674, + "end": 5678, "loc": { "start": { - "line": 152, - "column": 33 + "line": 183, + "column": 11 }, "end": { - "line": 152, - "column": 45 + "line": 183, + "column": 15 } } }, @@ -45679,16 +48822,16 @@ "postfix": false, "binop": null }, - "start": 4759, - "end": 4760, + "start": 5678, + "end": 5679, "loc": { "start": { - "line": 152, - "column": 45 + "line": 183, + "column": 15 }, "end": { - "line": 152, - "column": 46 + "line": 183, + "column": 16 } } }, @@ -45704,17 +48847,17 @@ "postfix": false, "binop": null }, - "value": "objRef", - "start": 4760, - "end": 4766, + "value": "data", + "start": 5679, + "end": 5683, "loc": { "start": { - "line": 152, - "column": 46 + "line": 183, + "column": 16 }, "end": { - "line": 152, - "column": 52 + "line": 183, + "column": 20 } } }, @@ -45730,52 +48873,49 @@ "postfix": false, "binop": null }, - "start": 4766, - "end": 4767, + "start": 5683, + "end": 5684, "loc": { "start": { - "line": 152, - "column": 52 + "line": 183, + "column": 20 }, "end": { - "line": 152, - "column": 53 + "line": 183, + "column": 21 } } }, { "type": { - "label": "break", - "keyword": "break", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "break", - "start": 4777, - "end": 4782, + "value": "console", + "start": 5688, + "end": 5695, "loc": { "start": { - "line": 153, - "column": 9 + "line": 184, + "column": 3 }, "end": { - "line": 153, - "column": 14 + "line": 184, + "column": 10 } } }, { "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -45785,23 +48925,22 @@ "binop": null, "updateContext": null }, - "value": "case", - "start": 4791, - "end": 4795, + "start": 5695, + "end": 5696, "loc": { "start": { - "line": 154, - "column": 8 + "line": 184, + "column": 10 }, "end": { - "line": 154, - "column": 12 + "line": 184, + "column": 11 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -45809,46 +48948,44 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "atoms", - "start": 4796, - "end": 4803, + "value": "info", + "start": 5696, + "end": 5700, "loc": { "start": { - "line": 154, - "column": 13 + "line": 184, + "column": 11 }, "end": { - "line": 154, - "column": 20 + "line": 184, + "column": 15 } } }, { "type": { - "label": ":", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4803, - "end": 4804, + "start": 5700, + "end": 5701, "loc": { "start": { - "line": 154, - "column": 20 + "line": 184, + "column": 15 }, "end": { - "line": 154, - "column": 21 + "line": 184, + "column": 16 } } }, @@ -45865,16 +49002,16 @@ "binop": null }, "value": "objects", - "start": 4814, - "end": 4821, + "start": 5701, + "end": 5708, "loc": { "start": { - "line": 155, - "column": 9 + "line": 184, + "column": 16 }, "end": { - "line": 155, - "column": 16 + "line": 184, + "column": 23 } } }, @@ -45891,16 +49028,16 @@ "binop": null, "updateContext": null }, - "start": 4821, - "end": 4822, + "start": 5708, + "end": 5709, "loc": { "start": { - "line": 155, - "column": 16 + "line": 184, + "column": 23 }, "end": { - "line": 155, - "column": 17 + "line": 184, + "column": 24 } } }, @@ -45916,23 +49053,23 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 4822, - "end": 4829, + "value": "data", + "start": 5709, + "end": 5713, "loc": { "start": { - "line": 155, - "column": 17 + "line": 184, + "column": 24 }, "end": { - "line": 155, - "column": 24 + "line": 184, + "column": 28 } } }, { "type": { - "label": "]", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -45943,42 +49080,16 @@ "binop": null, "updateContext": null }, - "start": 4829, - "end": 4830, - "loc": { - "start": { - "line": 155, - "column": 24 - }, - "end": { - "line": 155, - "column": 25 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4830, - "end": 4831, + "start": 5713, + "end": 5714, "loc": { "start": { - "line": 155, - "column": 25 + "line": 184, + "column": 28 }, "end": { - "line": 155, - "column": 26 + "line": 184, + "column": 29 } } }, @@ -45994,17 +49105,17 @@ "postfix": false, "binop": null }, - "value": "obj", - "start": 4831, - "end": 4834, + "value": "type", + "start": 5714, + "end": 5718, "loc": { "start": { - "line": 155, - "column": 26 + "line": 184, + "column": 29 }, "end": { - "line": 155, - "column": 29 + "line": 184, + "column": 33 } } }, @@ -46021,43 +49132,42 @@ "binop": null, "updateContext": null }, - "start": 4834, - "end": 4835, + "start": 5718, + "end": 5719, "loc": { "start": { - "line": 155, - "column": 29 + "line": 184, + "column": 33 }, "end": { - "line": 155, - "column": 30 + "line": 184, + "column": 34 } } }, { "type": { - "label": "=", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4836, - "end": 4837, + "start": 5719, + "end": 5720, "loc": { "start": { - "line": 155, - "column": 31 + "line": 184, + "column": 34 }, "end": { - "line": 155, - "column": 32 + "line": 184, + "column": 35 } } }, @@ -46073,42 +49183,43 @@ "postfix": false, "binop": null }, - "value": "createRenderAtom", - "start": 4838, - "end": 4854, + "value": "data", + "start": 5720, + "end": 5724, "loc": { "start": { - "line": 155, - "column": 33 + "line": 184, + "column": 35 }, "end": { - "line": 155, - "column": 49 + "line": 184, + "column": 39 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4854, - "end": 4855, + "start": 5724, + "end": 5725, "loc": { "start": { - "line": 155, - "column": 49 + "line": 184, + "column": 39 }, "end": { - "line": 155, - "column": 50 + "line": 184, + "column": 40 } } }, @@ -46124,23 +49235,23 @@ "postfix": false, "binop": null }, - "value": "objRef", - "start": 4855, - "end": 4861, + "value": "id", + "start": 5725, + "end": 5727, "loc": { "start": { - "line": 155, - "column": 50 + "line": 184, + "column": 40 }, "end": { - "line": 155, - "column": 56 + "line": 184, + "column": 42 } } }, { "type": { - "label": ")", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -46148,25 +49259,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4861, - "end": 4862, + "start": 5727, + "end": 5728, "loc": { "start": { - "line": 155, - "column": 56 + "line": 184, + "column": 42 }, "end": { - "line": 155, - "column": 57 + "line": 184, + "column": 43 } } }, { "type": { - "label": "break", - "keyword": "break", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -46174,56 +49285,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "break", - "start": 4872, - "end": 4877, + "start": 5728, + "end": 5729, "loc": { "start": { - "line": 156, - "column": 9 + "line": 184, + "column": 43 }, "end": { - "line": 156, - "column": 14 + "line": 184, + "column": 44 } } }, { "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "case", - "start": 4886, - "end": 4890, + "value": "console", + "start": 5733, + "end": 5740, "loc": { "start": { - "line": 157, - "column": 8 + "line": 185, + "column": 3 }, "end": { - "line": 157, - "column": 12 + "line": 185, + "column": 10 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -46232,50 +49339,49 @@ "binop": null, "updateContext": null }, - "value": "compounds", - "start": 4891, - "end": 4902, + "start": 5740, + "end": 5741, "loc": { "start": { - "line": 157, - "column": 13 + "line": 185, + "column": 10 }, "end": { - "line": 157, - "column": 24 + "line": 185, + "column": 11 } } }, { "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4902, - "end": 4903, + "value": "info", + "start": 5741, + "end": 5745, "loc": { "start": { - "line": 157, - "column": 24 + "line": 185, + "column": 11 }, "end": { - "line": 157, - "column": 25 + "line": 185, + "column": 15 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -46284,51 +49390,50 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 4913, - "end": 4920, + "start": 5745, + "end": 5746, "loc": { "start": { - "line": 158, - "column": 9 + "line": 185, + "column": 15 }, "end": { - "line": 158, + "line": 185, "column": 16 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4920, - "end": 4921, + "value": "objects", + "start": 5746, + "end": 5753, "loc": { "start": { - "line": 158, + "line": 185, "column": 16 }, "end": { - "line": 158, - "column": 17 + "line": 185, + "column": 23 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -46336,23 +49441,22 @@ "postfix": false, "binop": null }, - "value": "objType", - "start": 4921, - "end": 4928, + "start": 5753, + "end": 5754, "loc": { "start": { - "line": 158, - "column": 17 + "line": 185, + "column": 23 }, "end": { - "line": 158, + "line": 185, "column": 24 } } }, { "type": { - "label": "]", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -46360,27 +49464,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4928, - "end": 4929, + "start": 5757, + "end": 5758, "loc": { "start": { - "line": 158, - "column": 24 + "line": 186, + "column": 2 }, "end": { - "line": 158, - "column": 25 + "line": 186, + "column": 3 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -46389,23 +49493,24 @@ "binop": null, "updateContext": null }, - "start": 4929, - "end": 4930, + "value": "if", + "start": 5761, + "end": 5763, "loc": { "start": { - "line": 158, - "column": 25 + "line": 187, + "column": 2 }, "end": { - "line": 158, - "column": 26 + "line": 187, + "column": 4 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -46414,70 +49519,68 @@ "postfix": false, "binop": null }, - "value": "obj", - "start": 4930, - "end": 4933, + "start": 5764, + "end": 5765, "loc": { "start": { - "line": 158, - "column": 26 + "line": 187, + "column": 5 }, "end": { - "line": 158, - "column": 29 + "line": 187, + "column": 6 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4933, - "end": 4934, + "value": "objects", + "start": 5765, + "end": 5772, "loc": { "start": { - "line": 158, - "column": 29 + "line": 187, + "column": 6 }, "end": { - "line": 158, - "column": 30 + "line": 187, + "column": 13 } } }, { "type": { - "label": "=", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4935, - "end": 4936, + "start": 5772, + "end": 5773, "loc": { "start": { - "line": 158, - "column": 31 + "line": 187, + "column": 13 }, "end": { - "line": 158, - "column": 32 + "line": 187, + "column": 14 } } }, @@ -46493,42 +49596,43 @@ "postfix": false, "binop": null }, - "value": "createRenderCompound", - "start": 4937, - "end": 4957, + "value": "data", + "start": 5773, + "end": 5777, "loc": { "start": { - "line": 158, - "column": 33 + "line": 187, + "column": 14 }, "end": { - "line": 158, - "column": 53 + "line": 187, + "column": 18 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4957, - "end": 4958, + "start": 5777, + "end": 5778, "loc": { "start": { - "line": 158, - "column": 53 + "line": 187, + "column": 18 }, "end": { - "line": 158, - "column": 54 + "line": 187, + "column": 19 } } }, @@ -46544,23 +49648,23 @@ "postfix": false, "binop": null }, - "value": "objRef", - "start": 4958, - "end": 4964, + "value": "type", + "start": 5778, + "end": 5782, "loc": { "start": { - "line": 158, - "column": 54 + "line": 187, + "column": 19 }, "end": { - "line": 158, - "column": 60 + "line": 187, + "column": 23 } } }, { "type": { - "label": ")", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -46568,27 +49672,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4964, - "end": 4965, + "start": 5782, + "end": 5783, "loc": { "start": { - "line": 158, - "column": 60 + "line": 187, + "column": 23 }, "end": { - "line": 158, - "column": 61 + "line": 187, + "column": 24 } } }, { "type": { - "label": "break", - "keyword": "break", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -46597,25 +49701,24 @@ "binop": null, "updateContext": null }, - "value": "break", - "start": 4975, - "end": 4980, + "start": 5783, + "end": 5784, "loc": { "start": { - "line": 159, - "column": 9 + "line": 187, + "column": 24 }, "end": { - "line": 159, - "column": 14 + "line": 187, + "column": 25 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -46623,22 +49726,23 @@ "postfix": false, "binop": null }, - "start": 4988, - "end": 4989, + "value": "data", + "start": 5784, + "end": 5788, "loc": { "start": { - "line": 160, - "column": 7 + "line": 187, + "column": 25 }, "end": { - "line": 160, - "column": 8 + "line": 187, + "column": 29 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -46646,26 +49750,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4996, - "end": 4997, + "start": 5788, + "end": 5789, "loc": { "start": { - "line": 161, - "column": 6 + "line": 187, + "column": 29 }, "end": { - "line": 161, - "column": 7 + "line": 187, + "column": 30 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -46673,22 +49778,23 @@ "postfix": false, "binop": null }, - "start": 5003, - "end": 5004, + "value": "id", + "start": 5789, + "end": 5791, "loc": { "start": { - "line": 162, - "column": 5 + "line": 187, + "column": 30 }, "end": { - "line": 162, - "column": 6 + "line": 187, + "column": 32 } } }, { "type": { - "label": "}", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -46696,220 +49802,159 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5009, - "end": 5010, + "start": 5791, + "end": 5792, "loc": { "start": { - "line": 163, - "column": 4 + "line": 187, + "column": 32 }, "end": { - "line": 163, - "column": 5 + "line": 187, + "column": 33 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "start": 5014, - "end": 5015, - "loc": { - "start": { - "line": 164, - "column": 3 - }, - "end": { - "line": 164, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " else { //Tile drawing", - "start": 5019, - "end": 5043, + "value": "===", + "start": 5793, + "end": 5796, "loc": { "start": { - "line": 165, - "column": 3 + "line": 187, + "column": 34 }, "end": { - "line": 165, - "column": 27 + "line": 187, + "column": 37 } } }, { - "type": "CommentLine", - "value": " for (let tile of data.tiles) {", - "start": 5047, - "end": 5084, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "undefined", + "start": 5797, + "end": 5806, "loc": { "start": { - "line": 166, - "column": 3 + "line": 187, + "column": 38 }, "end": { - "line": 166, - "column": 40 + "line": 187, + "column": 47 } } }, { - "type": "CommentLine", - "value": " let tileName = 'tile_' + tile.col + '_' + tile.row;", - "start": 5089, - "end": 5151, + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 5807, + "end": 5809, "loc": { "start": { - "line": 168, - "column": 3 + "line": 187, + "column": 48 }, "end": { - "line": 168, - "column": 65 + "line": 187, + "column": 50 } } }, { - "type": "CommentLine", - "value": " if (objects.tiles[tileName] === undefined) {", - "start": 5155, - "end": 5210, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "objects", + "start": 5810, + "end": 5817, "loc": { "start": { - "line": 169, - "column": 3 + "line": 187, + "column": 51 }, "end": { - "line": 169, + "line": 187, "column": 58 } } }, - { - "type": "CommentLine", - "value": " // console.log(tileName);", - "start": 5214, - "end": 5254, - "loc": { - "start": { - "line": 170, - "column": 3 - }, - "end": { - "line": 170, - "column": 43 - } - } - }, - { - "type": "CommentLine", - "value": " objects.tiles[tileName] = new MapTile(MAP_LAYOUT[tile.row][tile.col], tile.col, tile.row);", - "start": 5258, - "end": 5363, - "loc": { - "start": { - "line": 171, - "column": 3 - }, - "end": { - "line": 171, - "column": 108 - } - } - }, - { - "type": "CommentLine", - "value": " }", - "start": 5367, - "end": 5379, - "loc": { - "start": { - "line": 172, - "column": 3 - }, - "end": { - "line": 172, - "column": 15 - } - } - }, - { - "type": "CommentLine", - "value": " }", - "start": 5384, - "end": 5392, - "loc": { - "start": { - "line": 174, - "column": 3 - }, - "end": { - "line": 174, - "column": 11 - } - } - }, - { - "type": "CommentLine", - "value": " }", - "start": 5396, - "end": 5400, - "loc": { - "start": { - "line": 175, - "column": 3 - }, - "end": { - "line": 175, - "column": 7 - } - } - }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5403, - "end": 5404, + "start": 5817, + "end": 5818, "loc": { "start": { - "line": 176, - "column": 2 + "line": 187, + "column": 58 }, "end": { - "line": 176, - "column": 3 + "line": 187, + "column": 59 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -46917,22 +49962,23 @@ "postfix": false, "binop": null }, - "start": 5406, - "end": 5407, + "value": "data", + "start": 5818, + "end": 5822, "loc": { "start": { - "line": 177, - "column": 1 + "line": 187, + "column": 59 }, "end": { - "line": 177, - "column": 2 + "line": 187, + "column": 63 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -46940,34 +49986,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5407, - "end": 5408, - "loc": { - "start": { - "line": 177, - "column": 2 - }, - "end": { - "line": 177, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Sync objects when they are deleted or move out of view. ONLY call after objectSync to avoid issue", - "start": 5411, - "end": 5511, + "start": 5822, + "end": 5823, "loc": { "start": { - "line": 179, - "column": 1 + "line": 187, + "column": 63 }, "end": { - "line": 179, - "column": 101 + "line": 187, + "column": 64 } } }, @@ -46983,23 +50014,23 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 5513, - "end": 5519, + "value": "type", + "start": 5823, + "end": 5827, "loc": { "start": { - "line": 180, - "column": 1 + "line": 187, + "column": 64 }, "end": { - "line": 180, - "column": 7 + "line": 187, + "column": 68 } } }, { "type": { - "label": ".", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -47010,49 +50041,49 @@ "binop": null, "updateContext": null }, - "start": 5519, - "end": 5520, + "start": 5827, + "end": 5828, "loc": { "start": { - "line": 180, - "column": 7 + "line": 187, + "column": 68 }, "end": { - "line": 180, - "column": 8 + "line": 187, + "column": 69 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "on", - "start": 5520, - "end": 5522, + "start": 5828, + "end": 5829, "loc": { "start": { - "line": 180, - "column": 8 + "line": 187, + "column": 69 }, "end": { - "line": 180, - "column": 10 + "line": 187, + "column": 70 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -47061,24 +50092,25 @@ "postfix": false, "binop": null }, - "start": 5522, - "end": 5523, + "value": "data", + "start": 5829, + "end": 5833, "loc": { "start": { - "line": 180, - "column": 10 + "line": 187, + "column": 70 }, "end": { - "line": 180, - "column": 11 + "line": 187, + "column": 74 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -47087,145 +50119,148 @@ "binop": null, "updateContext": null }, - "value": "serverSendObjectRemoval", - "start": 5523, - "end": 5548, + "start": 5833, + "end": 5834, "loc": { "start": { - "line": 180, - "column": 11 + "line": 187, + "column": 74 }, "end": { - "line": 180, - "column": 36 + "line": 187, + "column": 75 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5548, - "end": 5549, + "value": "id", + "start": 5834, + "end": 5836, "loc": { "start": { - "line": 180, - "column": 36 + "line": 187, + "column": 75 }, "end": { - "line": 180, - "column": 37 + "line": 187, + "column": 77 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "]", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5550, - "end": 5551, + "start": 5836, + "end": 5837, "loc": { "start": { - "line": 180, - "column": 38 + "line": 187, + "column": 77 }, "end": { - "line": 180, - "column": 39 + "line": 187, + "column": 78 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "value": "data", - "start": 5551, - "end": 5555, + "value": "===", + "start": 5838, + "end": 5841, "loc": { "start": { - "line": 180, - "column": 39 + "line": 187, + "column": 79 }, "end": { - "line": 180, - "column": 43 + "line": 187, + "column": 82 } } }, { "type": { - "label": ")", + "label": "null", + "keyword": "null", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5555, - "end": 5556, + "value": "null", + "start": 5842, + "end": 5846, "loc": { "start": { - "line": 180, - "column": 43 + "line": 187, + "column": 83 }, "end": { - "line": 180, - "column": 44 + "line": 187, + "column": 87 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null + "postfix": false, + "binop": null }, - "start": 5557, - "end": 5559, + "start": 5846, + "end": 5847, "loc": { "start": { - "line": 180, - "column": 45 + "line": 187, + "column": 87 }, "end": { - "line": 180, - "column": 47 + "line": 187, + "column": 88 } } }, @@ -47241,16 +50276,16 @@ "postfix": false, "binop": null }, - "start": 5560, - "end": 5561, + "start": 5848, + "end": 5849, "loc": { "start": { - "line": 180, - "column": 48 + "line": 187, + "column": 89 }, "end": { - "line": 180, - "column": 49 + "line": 187, + "column": 90 } } }, @@ -47269,16 +50304,16 @@ "updateContext": null }, "value": "if", - "start": 5564, - "end": 5566, + "start": 5853, + "end": 5855, "loc": { "start": { - "line": 181, - "column": 2 + "line": 188, + "column": 3 }, "end": { - "line": 181, - "column": 4 + "line": 188, + "column": 5 } } }, @@ -47294,16 +50329,16 @@ "postfix": false, "binop": null }, - "start": 5567, - "end": 5568, + "start": 5856, + "end": 5857, "loc": { "start": { - "line": 181, - "column": 5 + "line": 188, + "column": 6 }, "end": { - "line": 181, - "column": 6 + "line": 188, + "column": 7 } } }, @@ -47320,16 +50355,16 @@ "binop": null }, "value": "GLOBAL", - "start": 5568, - "end": 5574, + "start": 5857, + "end": 5863, "loc": { "start": { - "line": 181, - "column": 6 + "line": 188, + "column": 7 }, "end": { - "line": 181, - "column": 12 + "line": 188, + "column": 13 } } }, @@ -47346,16 +50381,16 @@ "binop": null, "updateContext": null }, - "start": 5574, - "end": 5575, + "start": 5863, + "end": 5864, "loc": { "start": { - "line": 181, - "column": 12 + "line": 188, + "column": 13 }, "end": { - "line": 181, - "column": 13 + "line": 188, + "column": 14 } } }, @@ -47372,16 +50407,16 @@ "binop": null }, "value": "VERBOSE_SOCKET", - "start": 5575, - "end": 5589, + "start": 5864, + "end": 5878, "loc": { "start": { - "line": 181, - "column": 13 + "line": 188, + "column": 14 }, "end": { - "line": 181, - "column": 27 + "line": 188, + "column": 28 } } }, @@ -47397,16 +50432,16 @@ "postfix": false, "binop": null }, - "start": 5589, - "end": 5590, + "start": 5878, + "end": 5879, "loc": { "start": { - "line": 181, - "column": 27 + "line": 188, + "column": 28 }, "end": { - "line": 181, - "column": 28 + "line": 188, + "column": 29 } } }, @@ -47422,16 +50457,16 @@ "postfix": false, "binop": null }, - "start": 5591, - "end": 5592, + "start": 5880, + "end": 5881, "loc": { "start": { - "line": 181, - "column": 29 + "line": 188, + "column": 30 }, "end": { - "line": 181, - "column": 30 + "line": 188, + "column": 31 } } }, @@ -47448,16 +50483,16 @@ "binop": null }, "value": "console", - "start": 5596, - "end": 5603, + "start": 5886, + "end": 5893, "loc": { "start": { - "line": 182, - "column": 3 + "line": 189, + "column": 4 }, "end": { - "line": 182, - "column": 10 + "line": 189, + "column": 11 } } }, @@ -47474,16 +50509,16 @@ "binop": null, "updateContext": null }, - "start": 5603, - "end": 5604, + "start": 5893, + "end": 5894, "loc": { "start": { - "line": 182, - "column": 10 + "line": 189, + "column": 11 }, "end": { - "line": 182, - "column": 11 + "line": 189, + "column": 12 } } }, @@ -47499,17 +50534,17 @@ "postfix": false, "binop": null }, - "value": "info", - "start": 5604, - "end": 5608, + "value": "warn", + "start": 5894, + "end": 5898, "loc": { "start": { - "line": 182, - "column": 11 + "line": 189, + "column": 12 }, "end": { - "line": 182, - "column": 15 + "line": 189, + "column": 16 } } }, @@ -47525,16 +50560,16 @@ "postfix": false, "binop": null }, - "start": 5608, - "end": 5609, + "start": 5898, + "end": 5899, "loc": { "start": { - "line": 182, - "column": 15 + "line": 189, + "column": 16 }, "end": { - "line": 182, - "column": 16 + "line": 189, + "column": 17 } } }, @@ -47551,75 +50586,24 @@ "binop": null, "updateContext": null }, - "value": "serverSendObjectRemoval() called on: ", - "start": 5609, - "end": 5648, - "loc": { - "start": { - "line": 182, - "column": 16 - }, - "end": { - "line": 182, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5648, - "end": 5649, - "loc": { - "start": { - "line": 182, - "column": 55 - }, - "end": { - "line": 182, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 5653, - "end": 5660, + "value": "serverSendObjectRemoval() called on invalid object. Retry.", + "start": 5899, + "end": 5959, "loc": { "start": { - "line": 183, - "column": 3 + "line": 189, + "column": 17 }, "end": { - "line": 183, - "column": 10 + "line": 189, + "column": 77 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -47629,16 +50613,16 @@ "binop": null, "updateContext": null }, - "start": 5660, - "end": 5661, + "start": 5959, + "end": 5960, "loc": { "start": { - "line": 183, - "column": 10 + "line": 189, + "column": 77 }, "end": { - "line": 183, - "column": 11 + "line": 189, + "column": 78 } } }, @@ -47654,50 +50638,25 @@ "postfix": false, "binop": null }, - "value": "info", - "start": 5661, - "end": 5665, - "loc": { - "start": { - "line": 183, - "column": 11 - }, - "end": { - "line": 183, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5665, - "end": 5666, + "value": "data", + "start": 5961, + "end": 5965, "loc": { "start": { - "line": 183, - "column": 15 + "line": 189, + "column": 79 }, "end": { - "line": 183, - "column": 16 + "line": 189, + "column": 83 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -47705,23 +50664,22 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 5666, - "end": 5670, + "start": 5965, + "end": 5966, "loc": { "start": { - "line": 183, - "column": 16 + "line": 189, + "column": 83 }, "end": { - "line": 183, - "column": 20 + "line": 189, + "column": 84 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -47731,16 +50689,16 @@ "postfix": false, "binop": null }, - "start": 5670, - "end": 5671, + "start": 5970, + "end": 5971, "loc": { "start": { - "line": 183, - "column": 20 + "line": 190, + "column": 3 }, "end": { - "line": 183, - "column": 21 + "line": 190, + "column": 4 } } }, @@ -47756,50 +50714,24 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 5675, - "end": 5682, + "value": "setTimeout", + "start": 5975, + "end": 5985, "loc": { "start": { - "line": 184, + "line": 191, "column": 3 }, "end": { - "line": 184, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5682, - "end": 5683, - "loc": { - "start": { - "line": 184, - "column": 10 - }, - "end": { - "line": 184, - "column": 11 + "line": 191, + "column": 13 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -47808,17 +50740,16 @@ "postfix": false, "binop": null }, - "value": "info", - "start": 5683, - "end": 5687, + "start": 5985, + "end": 5986, "loc": { "start": { - "line": 184, - "column": 11 + "line": 191, + "column": 13 }, "end": { - "line": 184, - "column": 15 + "line": 191, + "column": 14 } } }, @@ -47834,24 +50765,24 @@ "postfix": false, "binop": null }, - "start": 5687, - "end": 5688, + "start": 5986, + "end": 5987, "loc": { "start": { - "line": 184, - "column": 15 + "line": 191, + "column": 14 }, "end": { - "line": 184, - "column": 16 + "line": 191, + "column": 15 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -47859,25 +50790,24 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 5688, - "end": 5695, + "start": 5987, + "end": 5988, "loc": { "start": { - "line": 184, - "column": 16 + "line": 191, + "column": 15 }, "end": { - "line": 184, - "column": 23 + "line": 191, + "column": 16 } } }, { "type": { - "label": "[", + "label": "=>", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -47886,23 +50816,23 @@ "binop": null, "updateContext": null }, - "start": 5695, - "end": 5696, + "start": 5989, + "end": 5991, "loc": { "start": { - "line": 184, - "column": 23 + "line": 191, + "column": 17 }, "end": { - "line": 184, - "column": 24 + "line": 191, + "column": 19 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -47911,23 +50841,23 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 5696, - "end": 5700, + "start": 5992, + "end": 5993, "loc": { "start": { - "line": 184, - "column": 24 + "line": 191, + "column": 20 }, "end": { - "line": 184, - "column": 28 + "line": 191, + "column": 21 } } }, { "type": { - "label": ".", + "label": "try", + "keyword": "try", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -47938,23 +50868,24 @@ "binop": null, "updateContext": null }, - "start": 5700, - "end": 5701, + "value": "try", + "start": 5998, + "end": 6001, "loc": { "start": { - "line": 184, - "column": 28 + "line": 192, + "column": 4 }, "end": { - "line": 184, - "column": 29 + "line": 192, + "column": 7 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -47963,23 +50894,23 @@ "postfix": false, "binop": null }, - "value": "type", - "start": 5701, - "end": 5705, + "start": 6002, + "end": 6003, "loc": { "start": { - "line": 184, - "column": 29 + "line": 192, + "column": 8 }, "end": { - "line": 184, - "column": 33 + "line": 192, + "column": 9 } } }, { "type": { - "label": "]", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -47990,22 +50921,23 @@ "binop": null, "updateContext": null }, - "start": 5705, - "end": 5706, + "value": "if", + "start": 6009, + "end": 6011, "loc": { "start": { - "line": 184, - "column": 33 + "line": 193, + "column": 5 }, "end": { - "line": 184, - "column": 34 + "line": 193, + "column": 7 } } }, { "type": { - "label": "[", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -48013,19 +50945,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5706, - "end": 5707, + "start": 6012, + "end": 6013, "loc": { "start": { - "line": 184, - "column": 34 + "line": 193, + "column": 8 }, "end": { - "line": 184, - "column": 35 + "line": 193, + "column": 9 } } }, @@ -48041,43 +50972,42 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 5707, - "end": 5711, + "value": "removeObject", + "start": 6013, + "end": 6025, "loc": { "start": { - "line": 184, - "column": 35 + "line": 193, + "column": 9 }, "end": { - "line": 184, - "column": 39 + "line": 193, + "column": 21 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5711, - "end": 5712, + "start": 6025, + "end": 6026, "loc": { "start": { - "line": 184, - "column": 39 + "line": 193, + "column": 21 }, "end": { - "line": 184, - "column": 40 + "line": 193, + "column": 22 } } }, @@ -48093,23 +51023,23 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 5712, - "end": 5714, + "value": "data", + "start": 6026, + "end": 6030, "loc": { "start": { - "line": 184, - "column": 40 + "line": 193, + "column": 22 }, "end": { - "line": 184, - "column": 42 + "line": 193, + "column": 26 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -48117,19 +51047,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5714, - "end": 5715, + "start": 6030, + "end": 6031, "loc": { "start": { - "line": 184, - "column": 42 + "line": 193, + "column": 26 }, "end": { - "line": 184, - "column": 43 + "line": 193, + "column": 27 } } }, @@ -48145,23 +51074,23 @@ "postfix": false, "binop": null }, - "start": 5715, - "end": 5716, + "start": 6031, + "end": 6032, "loc": { "start": { - "line": 184, - "column": 43 + "line": 193, + "column": 27 }, "end": { - "line": 184, - "column": 44 + "line": 193, + "column": 28 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -48170,69 +51099,44 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 5720, - "end": 5727, - "loc": { - "start": { - "line": 185, - "column": 3 - }, - "end": { - "line": 185, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5727, - "end": 5728, + "start": 6033, + "end": 6034, "loc": { "start": { - "line": 185, - "column": 10 + "line": 193, + "column": 29 }, "end": { - "line": 185, - "column": 11 + "line": 193, + "column": 30 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "info", - "start": 5728, - "end": 5732, + "value": "if", + "start": 6041, + "end": 6043, "loc": { "start": { - "line": 185, - "column": 11 + "line": 194, + "column": 6 }, "end": { - "line": 185, - "column": 15 + "line": 194, + "column": 8 } } }, @@ -48248,16 +51152,16 @@ "postfix": false, "binop": null }, - "start": 5732, - "end": 5733, + "start": 6044, + "end": 6045, "loc": { "start": { - "line": 185, - "column": 15 + "line": 194, + "column": 9 }, "end": { - "line": 185, - "column": 16 + "line": 194, + "column": 10 } } }, @@ -48273,23 +51177,23 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 5733, - "end": 5740, + "value": "GLOBAL", + "start": 6045, + "end": 6051, "loc": { "start": { - "line": 185, - "column": 16 + "line": 194, + "column": 10 }, "end": { - "line": 185, - "column": 23 + "line": 194, + "column": 16 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -48297,26 +51201,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5740, - "end": 5741, + "start": 6051, + "end": 6052, "loc": { "start": { - "line": 185, - "column": 23 + "line": 194, + "column": 16 }, "end": { - "line": 185, - "column": 24 + "line": 194, + "column": 17 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -48324,23 +51229,23 @@ "postfix": false, "binop": null }, - "start": 5744, - "end": 5745, + "value": "VERBOSE_SOCKET", + "start": 6052, + "end": 6066, "loc": { "start": { - "line": 186, - "column": 2 + "line": 194, + "column": 17 }, "end": { - "line": 186, - "column": 3 + "line": 194, + "column": 31 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -48348,26 +51253,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 5748, - "end": 5750, + "start": 6066, + "end": 6067, "loc": { "start": { - "line": 187, - "column": 2 + "line": 194, + "column": 31 }, "end": { - "line": 187, - "column": 4 + "line": 194, + "column": 32 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -48377,16 +51280,16 @@ "postfix": false, "binop": null }, - "start": 5751, - "end": 5752, + "start": 6068, + "end": 6069, "loc": { "start": { - "line": 187, - "column": 5 + "line": 194, + "column": 33 }, "end": { - "line": 187, - "column": 6 + "line": 194, + "column": 34 } } }, @@ -48402,25 +51305,25 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 5752, - "end": 5759, + "value": "console", + "start": 6077, + "end": 6084, "loc": { "start": { - "line": 187, - "column": 6 + "line": 195, + "column": 7 }, "end": { - "line": 187, - "column": 13 + "line": 195, + "column": 14 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -48429,16 +51332,16 @@ "binop": null, "updateContext": null }, - "start": 5759, - "end": 5760, + "start": 6084, + "end": 6085, "loc": { "start": { - "line": 187, - "column": 13 + "line": 195, + "column": 14 }, "end": { - "line": 187, - "column": 14 + "line": 195, + "column": 15 } } }, @@ -48454,49 +51357,48 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 5760, - "end": 5764, + "value": "info", + "start": 6085, + "end": 6089, "loc": { "start": { - "line": 187, - "column": 14 + "line": 195, + "column": 15 }, "end": { - "line": 187, - "column": 18 + "line": 195, + "column": 19 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5764, - "end": 5765, + "start": 6089, + "end": 6090, "loc": { "start": { - "line": 187, - "column": 18 + "line": 195, + "column": 19 }, "end": { - "line": 187, - "column": 19 + "line": 195, + "column": 20 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -48504,25 +51406,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "type", - "start": 5765, - "end": 5769, + "value": "Retry successfully removed object. While this worked, it should not happen. Please fix root cause of issue. ", + "start": 6090, + "end": 6200, "loc": { "start": { - "line": 187, - "column": 19 + "line": 195, + "column": 20 }, "end": { - "line": 187, - "column": 23 + "line": 195, + "column": 130 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -48530,79 +51433,79 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5769, - "end": 5770, + "start": 6200, + "end": 6201, "loc": { "start": { - "line": 187, - "column": 23 + "line": 195, + "column": 130 }, "end": { - "line": 187, - "column": 24 + "line": 195, + "column": 131 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5770, - "end": 5771, + "start": 6208, + "end": 6209, "loc": { "start": { - "line": 187, - "column": 24 + "line": 196, + "column": 6 }, "end": { - "line": 187, - "column": 25 + "line": 196, + "column": 7 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 5771, - "end": 5775, + "value": "return", + "start": 6216, + "end": 6222, "loc": { "start": { - "line": 187, - "column": 25 + "line": 197, + "column": 6 }, "end": { - "line": 187, - "column": 29 + "line": 197, + "column": 12 } } }, { "type": { - "label": ".", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -48611,24 +51514,25 @@ "binop": null, "updateContext": null }, - "start": 5775, - "end": 5776, + "value": 0, + "start": 6223, + "end": 6224, "loc": { "start": { - "line": 187, - "column": 29 + "line": 197, + "column": 13 }, "end": { - "line": 187, - "column": 30 + "line": 197, + "column": 14 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -48636,23 +51540,22 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 5776, - "end": 5778, + "start": 6230, + "end": 6231, "loc": { "start": { - "line": 187, - "column": 30 + "line": 198, + "column": 5 }, "end": { - "line": 187, - "column": 32 + "line": 198, + "column": 6 } } }, { "type": { - "label": "]", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -48660,53 +51563,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5778, - "end": 5779, + "start": 6236, + "end": 6237, "loc": { "start": { - "line": 187, - "column": 32 + "line": 199, + "column": 4 }, "end": { - "line": 187, - "column": 33 + "line": 199, + "column": 5 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": "catch", + "keyword": "catch", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 5780, - "end": 5783, + "value": "catch", + "start": 6242, + "end": 6247, "loc": { "start": { - "line": 187, - "column": 34 + "line": 200, + "column": 4 }, "end": { - "line": 187, - "column": 37 + "line": 200, + "column": 9 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -48715,52 +51618,50 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 5784, - "end": 5793, + "start": 6248, + "end": 6249, "loc": { "start": { - "line": 187, - "column": 38 + "line": 200, + "column": 10 }, "end": { - "line": 187, - "column": 47 + "line": 200, + "column": 11 } } }, { "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, - "updateContext": null + "binop": null }, - "value": "||", - "start": 5794, - "end": 5796, + "value": "err", + "start": 6249, + "end": 6252, "loc": { "start": { - "line": 187, - "column": 48 + "line": 200, + "column": 11 }, "end": { - "line": 187, - "column": 50 + "line": 200, + "column": 14 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -48768,23 +51669,22 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 5797, - "end": 5804, + "start": 6252, + "end": 6253, "loc": { "start": { - "line": 187, - "column": 51 + "line": 200, + "column": 14 }, "end": { - "line": 187, - "column": 58 + "line": 200, + "column": 15 } } }, { "type": { - "label": "[", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -48792,71 +51692,71 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5804, - "end": 5805, + "start": 6254, + "end": 6255, "loc": { "start": { - "line": 187, - "column": 58 + "line": 200, + "column": 16 }, "end": { - "line": 187, - "column": 59 + "line": 200, + "column": 17 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 5805, - "end": 5809, + "value": "if", + "start": 6261, + "end": 6263, "loc": { "start": { - "line": 187, - "column": 59 + "line": 201, + "column": 5 }, "end": { - "line": 187, - "column": 63 + "line": 201, + "column": 7 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5809, - "end": 5810, + "start": 6264, + "end": 6265, "loc": { "start": { - "line": 187, - "column": 63 + "line": 201, + "column": 8 }, "end": { - "line": 187, - "column": 64 + "line": 201, + "column": 9 } } }, @@ -48872,23 +51772,23 @@ "postfix": false, "binop": null }, - "value": "type", - "start": 5810, - "end": 5814, + "value": "GLOBAL", + "start": 6265, + "end": 6271, "loc": { "start": { - "line": 187, - "column": 64 + "line": 201, + "column": 9 }, "end": { - "line": 187, - "column": 68 + "line": 201, + "column": 15 } } }, { "type": { - "label": "]", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -48899,50 +51799,50 @@ "binop": null, "updateContext": null }, - "start": 5814, - "end": 5815, + "start": 6271, + "end": 6272, "loc": { "start": { - "line": 187, - "column": 68 + "line": 201, + "column": 15 }, "end": { - "line": 187, - "column": 69 + "line": 201, + "column": 16 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5815, - "end": 5816, + "value": "VERBOSE_SOCKET", + "start": 6272, + "end": 6286, "loc": { "start": { - "line": 187, - "column": 69 + "line": 201, + "column": 16 }, "end": { - "line": 187, - "column": 70 + "line": 201, + "column": 30 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -48950,43 +51850,41 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 5816, - "end": 5820, + "start": 6286, + "end": 6287, "loc": { "start": { - "line": 187, - "column": 70 + "line": 201, + "column": 30 }, "end": { - "line": 187, - "column": 74 + "line": 201, + "column": 31 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5820, - "end": 5821, + "start": 6288, + "end": 6289, "loc": { "start": { - "line": 187, - "column": 74 + "line": 201, + "column": 32 }, "end": { - "line": 187, - "column": 75 + "line": 201, + "column": 33 } } }, @@ -49002,23 +51900,23 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 5821, - "end": 5823, + "value": "console", + "start": 6296, + "end": 6303, "loc": { "start": { - "line": 187, - "column": 75 + "line": 202, + "column": 6 }, "end": { - "line": 187, - "column": 77 + "line": 202, + "column": 13 } } }, { "type": { - "label": "]", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -49029,104 +51927,102 @@ "binop": null, "updateContext": null }, - "start": 5823, - "end": 5824, + "start": 6303, + "end": 6304, "loc": { "start": { - "line": 187, - "column": 77 + "line": 202, + "column": 13 }, "end": { - "line": 187, - "column": 78 + "line": 202, + "column": 14 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "===", - "start": 5825, - "end": 5828, + "value": "error", + "start": 6304, + "end": 6309, "loc": { "start": { - "line": 187, - "column": 79 + "line": 202, + "column": 14 }, "end": { - "line": 187, - "column": 82 + "line": 202, + "column": 19 } } }, { "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "null", - "start": 5829, - "end": 5833, + "start": 6309, + "end": 6310, "loc": { "start": { - "line": 187, - "column": 83 + "line": 202, + "column": 19 }, "end": { - "line": 187, - "column": 87 + "line": 202, + "column": 20 } } }, { "type": { - "label": ")", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 5833, - "end": 5834, + "binop": null, + "updateContext": null + }, + "value": "Retry failed. Object removal failed. Abandoning request. ", + "start": 6310, + "end": 6369, "loc": { "start": { - "line": 187, - "column": 87 + "line": 202, + "column": 20 }, "end": { - "line": 187, - "column": 88 + "line": 202, + "column": 79 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -49134,23 +52030,22 @@ "postfix": false, "binop": null }, - "start": 5835, - "end": 5836, + "start": 6369, + "end": 6370, "loc": { "start": { - "line": 187, - "column": 89 + "line": 202, + "column": 79 }, "end": { - "line": 187, - "column": 90 + "line": 202, + "column": 80 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -49158,51 +52053,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 5840, - "end": 5842, + "start": 6376, + "end": 6377, "loc": { "start": { - "line": 188, - "column": 3 + "line": 203, + "column": 5 }, "end": { - "line": 188, - "column": 5 + "line": 203, + "column": 6 } } }, { "type": { - "label": "(", + "label": "return", + "keyword": "return", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5843, - "end": 5844, + "value": "return", + "start": 6383, + "end": 6389, "loc": { "start": { - "line": 188, - "column": 6 + "line": 204, + "column": 5 }, "end": { - "line": 188, - "column": 7 + "line": 204, + "column": 11 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -49210,25 +52106,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "GLOBAL", - "start": 5844, - "end": 5850, + "value": 1, + "start": 6390, + "end": 6391, "loc": { "start": { - "line": 188, - "column": 7 + "line": 204, + "column": 12 }, "end": { - "line": 188, + "line": 204, "column": 13 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -49236,51 +52133,40 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5850, - "end": 5851, + "start": 6396, + "end": 6397, "loc": { "start": { - "line": 188, - "column": 13 + "line": 205, + "column": 4 }, "end": { - "line": 188, - "column": 14 + "line": 205, + "column": 5 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "VERBOSE_SOCKET", - "start": 5851, - "end": 5865, + "type": "CommentLine", + "value": " removeObject(data);", + "start": 6402, + "end": 6424, "loc": { "start": { - "line": 188, - "column": 14 + "line": 206, + "column": 4 }, "end": { - "line": 188, - "column": 28 + "line": 206, + "column": 26 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -49290,47 +52176,48 @@ "postfix": false, "binop": null }, - "start": 5865, - "end": 5866, + "start": 6428, + "end": 6429, "loc": { "start": { - "line": 188, - "column": 28 + "line": 207, + "column": 3 }, "end": { - "line": 188, - "column": 29 + "line": 207, + "column": 4 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5867, - "end": 5868, + "start": 6429, + "end": 6430, "loc": { "start": { - "line": 188, - "column": 30 + "line": 207, + "column": 4 }, "end": { - "line": 188, - "column": 31 + "line": 207, + "column": 5 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -49338,51 +52225,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "console", - "start": 5873, - "end": 5880, + "value": 1000, + "start": 6431, + "end": 6435, "loc": { "start": { - "line": 189, - "column": 4 + "line": 207, + "column": 6 }, "end": { - "line": 189, - "column": 11 + "line": 207, + "column": 10 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "/", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 5880, - "end": 5881, + "value": "/", + "start": 6436, + "end": 6437, "loc": { "start": { - "line": 189, + "line": 207, "column": 11 }, "end": { - "line": 189, + "line": 207, "column": 12 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -49390,27 +52279,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "warn", - "start": 5881, - "end": 5885, + "value": 60, + "start": 6438, + "end": 6440, "loc": { "start": { - "line": 189, - "column": 12 + "line": 207, + "column": 13 }, "end": { - "line": 189, - "column": 16 + "line": 207, + "column": 15 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -49418,49 +52308,64 @@ "postfix": false, "binop": null }, - "start": 5885, - "end": 5886, + "start": 6440, + "end": 6441, "loc": { "start": { - "line": 189, + "line": 207, + "column": 15 + }, + "end": { + "line": 207, "column": 16 + } + } + }, + { + "type": "CommentLine", + "value": " return 1", + "start": 6445, + "end": 6456, + "loc": { + "start": { + "line": 208, + "column": 3 }, "end": { - "line": 189, - "column": 17 + "line": 208, + "column": 14 } } }, { "type": { - "label": "string", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "serverSendObjectRemoval() called on invalid object. Retry.", - "start": 5886, - "end": 5946, + "start": 6459, + "end": 6460, "loc": { "start": { - "line": 189, - "column": 17 + "line": 209, + "column": 2 }, "end": { - "line": 189, - "column": 77 + "line": 209, + "column": 3 } } }, { "type": { - "label": ",", + "label": "else", + "keyword": "else", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -49471,23 +52376,24 @@ "binop": null, "updateContext": null }, - "start": 5946, - "end": 5947, + "value": "else", + "start": 6463, + "end": 6467, "loc": { "start": { - "line": 189, - "column": 77 + "line": 210, + "column": 2 }, "end": { - "line": 189, - "column": 78 + "line": 210, + "column": 6 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -49496,23 +52402,55 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 5948, - "end": 5952, + "start": 6468, + "end": 6469, "loc": { "start": { - "line": 189, - "column": 79 + "line": 210, + "column": 7 }, "end": { - "line": 189, - "column": 83 + "line": 210, + "column": 8 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(objects[data.type][data.id].destroyed);", + "start": 6473, + "end": 6527, + "loc": { + "start": { + "line": 211, + "column": 3 + }, + "end": { + "line": 211, + "column": 57 + } + } + }, + { + "type": "CommentLine", + "value": " An object was removed", + "start": 6530, + "end": 6554, + "loc": { + "start": { + "line": 212, + "column": 2 + }, + "end": { + "line": 212, + "column": 26 } } }, { "type": { - "label": ")", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -49520,26 +52458,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5952, - "end": 5953, + "value": "if", + "start": 6558, + "end": 6560, "loc": { "start": { - "line": 189, - "column": 83 + "line": 213, + "column": 3 }, "end": { - "line": 189, - "column": 84 + "line": 213, + "column": 5 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -49547,49 +52487,50 @@ "postfix": false, "binop": null }, - "start": 5957, - "end": 5958, + "start": 6561, + "end": 6562, "loc": { "start": { - "line": 190, - "column": 3 + "line": 213, + "column": 6 }, "end": { - "line": 190, - "column": 4 + "line": 213, + "column": 7 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "prefix", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setTimeout", - "start": 5962, - "end": 5972, + "value": "!", + "start": 6562, + "end": 6563, "loc": { "start": { - "line": 191, - "column": 3 + "line": 213, + "column": 7 }, "end": { - "line": 191, - "column": 13 + "line": 213, + "column": 8 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -49598,22 +52539,23 @@ "postfix": false, "binop": null }, - "start": 5972, - "end": 5973, + "value": "objects", + "start": 6563, + "end": 6570, "loc": { "start": { - "line": 191, - "column": 13 + "line": 213, + "column": 8 }, "end": { - "line": 191, - "column": 14 + "line": 213, + "column": 15 } } }, { "type": { - "label": "(", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -49621,26 +52563,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5973, - "end": 5974, + "start": 6570, + "end": 6571, "loc": { "start": { - "line": 191, - "column": 14 + "line": 213, + "column": 15 }, "end": { - "line": 191, - "column": 15 + "line": 213, + "column": 16 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -49648,23 +52591,24 @@ "postfix": false, "binop": null }, - "start": 5974, - "end": 5975, + "value": "data", + "start": 6571, + "end": 6575, "loc": { "start": { - "line": 191, - "column": 15 + "line": 213, + "column": 16 }, "end": { - "line": 191, - "column": 16 + "line": 213, + "column": 20 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -49674,23 +52618,23 @@ "binop": null, "updateContext": null }, - "start": 5976, - "end": 5978, + "start": 6575, + "end": 6576, "loc": { "start": { - "line": 191, - "column": 17 + "line": 213, + "column": 20 }, "end": { - "line": 191, - "column": 19 + "line": 213, + "column": 21 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -49699,23 +52643,23 @@ "postfix": false, "binop": null }, - "start": 5979, - "end": 5980, + "value": "type", + "start": 6576, + "end": 6580, "loc": { "start": { - "line": 191, - "column": 20 + "line": 213, + "column": 21 }, "end": { - "line": 191, - "column": 21 + "line": 213, + "column": 25 } } }, { "type": { - "label": "try", - "keyword": "try", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -49726,23 +52670,22 @@ "binop": null, "updateContext": null }, - "value": "try", - "start": 5985, - "end": 5988, + "start": 6580, + "end": 6581, "loc": { "start": { - "line": 192, - "column": 4 + "line": 213, + "column": 25 }, "end": { - "line": 192, - "column": 7 + "line": 213, + "column": 26 } } }, { "type": { - "label": "{", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -49750,71 +52693,71 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5989, - "end": 5990, + "start": 6581, + "end": 6582, "loc": { "start": { - "line": 192, - "column": 8 + "line": 213, + "column": 26 }, "end": { - "line": 192, - "column": 9 + "line": 213, + "column": 27 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 5996, - "end": 5998, + "value": "data", + "start": 6582, + "end": 6586, "loc": { "start": { - "line": 193, - "column": 5 + "line": 213, + "column": 27 }, "end": { - "line": 193, - "column": 7 + "line": 213, + "column": 31 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5999, - "end": 6000, + "start": 6586, + "end": 6587, "loc": { "start": { - "line": 193, - "column": 8 + "line": 213, + "column": 31 }, "end": { - "line": 193, - "column": 9 + "line": 213, + "column": 32 } } }, @@ -49830,76 +52773,77 @@ "postfix": false, "binop": null }, - "value": "removeObject", - "start": 6000, - "end": 6012, + "value": "id", + "start": 6587, + "end": 6589, "loc": { "start": { - "line": 193, - "column": 9 + "line": 213, + "column": 32 }, "end": { - "line": 193, - "column": 21 + "line": 213, + "column": 34 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "]", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6012, - "end": 6013, + "start": 6589, + "end": 6590, "loc": { "start": { - "line": 193, - "column": 21 + "line": 213, + "column": 34 }, "end": { - "line": 193, - "column": 22 + "line": 213, + "column": 35 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 6013, - "end": 6017, + "start": 6590, + "end": 6591, "loc": { "start": { - "line": 193, - "column": 22 + "line": 213, + "column": 35 }, "end": { - "line": 193, - "column": 26 + "line": 213, + "column": 36 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -49907,16 +52851,17 @@ "postfix": false, "binop": null }, - "start": 6017, - "end": 6018, + "value": "destroyed", + "start": 6591, + "end": 6600, "loc": { "start": { - "line": 193, - "column": 26 + "line": 213, + "column": 36 }, "end": { - "line": 193, - "column": 27 + "line": 213, + "column": 45 } } }, @@ -49932,16 +52877,16 @@ "postfix": false, "binop": null }, - "start": 6018, - "end": 6019, + "start": 6600, + "end": 6601, "loc": { "start": { - "line": 193, - "column": 27 + "line": 213, + "column": 45 }, "end": { - "line": 193, - "column": 28 + "line": 213, + "column": 46 } } }, @@ -49957,44 +52902,58 @@ "postfix": false, "binop": null }, - "start": 6020, - "end": 6021, + "start": 6602, + "end": 6603, "loc": { "start": { - "line": 193, - "column": 29 + "line": 213, + "column": 47 }, "end": { - "line": 193, - "column": 30 + "line": 213, + "column": 48 + } + } + }, + { + "type": "CommentLine", + "value": " Only remove if not already", + "start": 6604, + "end": 6633, + "loc": { + "start": { + "line": 213, + "column": 49 + }, + "end": { + "line": 213, + "column": 78 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 6028, - "end": 6030, + "value": "removeObject", + "start": 6638, + "end": 6650, "loc": { "start": { - "line": 194, - "column": 6 + "line": 214, + "column": 4 }, "end": { - "line": 194, - "column": 8 + "line": 214, + "column": 16 } } }, @@ -50010,16 +52969,16 @@ "postfix": false, "binop": null }, - "start": 6031, - "end": 6032, + "start": 6650, + "end": 6651, "loc": { "start": { - "line": 194, - "column": 9 + "line": 214, + "column": 16 }, "end": { - "line": 194, - "column": 10 + "line": 214, + "column": 17 } } }, @@ -50035,23 +52994,23 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 6032, - "end": 6038, + "value": "data", + "start": 6651, + "end": 6655, "loc": { "start": { - "line": 194, - "column": 10 + "line": 214, + "column": 17 }, "end": { - "line": 194, - "column": 16 + "line": 214, + "column": 21 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -50059,27 +53018,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6038, - "end": 6039, + "start": 6655, + "end": 6656, "loc": { "start": { - "line": 194, - "column": 16 + "line": 214, + "column": 21 }, "end": { - "line": 194, - "column": 17 + "line": 214, + "column": 22 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -50087,42 +53045,44 @@ "postfix": false, "binop": null }, - "value": "VERBOSE_SOCKET", - "start": 6039, - "end": 6053, + "start": 6660, + "end": 6661, "loc": { "start": { - "line": 194, - "column": 17 + "line": 215, + "column": 3 }, "end": { - "line": 194, - "column": 31 + "line": 215, + "column": 4 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "else", + "keyword": "else", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6053, - "end": 6054, + "value": "else", + "start": 6665, + "end": 6669, "loc": { "start": { - "line": 194, - "column": 31 + "line": 216, + "column": 3 }, "end": { - "line": 194, - "column": 32 + "line": 216, + "column": 7 } } }, @@ -50138,16 +53098,16 @@ "postfix": false, "binop": null }, - "start": 6055, - "end": 6056, + "start": 6670, + "end": 6671, "loc": { "start": { - "line": 194, - "column": 33 + "line": 216, + "column": 8 }, "end": { - "line": 194, - "column": 34 + "line": 216, + "column": 9 } } }, @@ -50164,16 +53124,16 @@ "binop": null }, "value": "console", - "start": 6064, - "end": 6071, + "start": 6676, + "end": 6683, "loc": { "start": { - "line": 195, - "column": 7 + "line": 217, + "column": 4 }, "end": { - "line": 195, - "column": 14 + "line": 217, + "column": 11 } } }, @@ -50190,16 +53150,16 @@ "binop": null, "updateContext": null }, - "start": 6071, - "end": 6072, + "start": 6683, + "end": 6684, "loc": { "start": { - "line": 195, - "column": 14 + "line": 217, + "column": 11 }, "end": { - "line": 195, - "column": 15 + "line": 217, + "column": 12 } } }, @@ -50215,17 +53175,17 @@ "postfix": false, "binop": null }, - "value": "info", - "start": 6072, - "end": 6076, + "value": "warn", + "start": 6684, + "end": 6688, "loc": { "start": { - "line": 195, - "column": 15 + "line": 217, + "column": 12 }, "end": { - "line": 195, - "column": 19 + "line": 217, + "column": 16 } } }, @@ -50241,16 +53201,16 @@ "postfix": false, "binop": null }, - "start": 6076, - "end": 6077, + "start": 6688, + "end": 6689, "loc": { "start": { - "line": 195, - "column": 19 + "line": 217, + "column": 16 }, "end": { - "line": 195, - "column": 20 + "line": 217, + "column": 17 } } }, @@ -50267,17 +53227,17 @@ "binop": null, "updateContext": null }, - "value": "Retry successfully removed object. While this worked, it should not happen. Please fix root cause of issue. ", - "start": 6077, - "end": 6187, + "value": "serverSendObjectRemoval() called despite object has already been destroyed.", + "start": 6689, + "end": 6766, "loc": { "start": { - "line": 195, - "column": 20 + "line": 217, + "column": 17 }, "end": { - "line": 195, - "column": 130 + "line": 217, + "column": 94 } } }, @@ -50293,41 +53253,32 @@ "postfix": false, "binop": null }, - "start": 6187, - "end": 6188, + "start": 6766, + "end": 6767, "loc": { "start": { - "line": 195, - "column": 130 + "line": 217, + "column": 94 }, "end": { - "line": 195, - "column": 131 + "line": 217, + "column": 95 } } }, { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6195, - "end": 6196, + "type": "CommentLine", + "value": " Sanity check", + "start": 6768, + "end": 6783, "loc": { "start": { - "line": 196, - "column": 6 + "line": 217, + "column": 96 }, "end": { - "line": 196, - "column": 7 + "line": 217, + "column": 111 } } }, @@ -50346,16 +53297,16 @@ "updateContext": null }, "value": "return", - "start": 6203, - "end": 6209, + "start": 6788, + "end": 6794, "loc": { "start": { - "line": 197, - "column": 6 + "line": 218, + "column": 4 }, "end": { - "line": 197, - "column": 12 + "line": 218, + "column": 10 } } }, @@ -50372,17 +53323,17 @@ "binop": null, "updateContext": null }, - "value": 0, - "start": 6210, - "end": 6211, + "value": 1, + "start": 6795, + "end": 6796, "loc": { "start": { - "line": 197, - "column": 13 + "line": 218, + "column": 11 }, "end": { - "line": 197, - "column": 14 + "line": 218, + "column": 12 } } }, @@ -50398,16 +53349,16 @@ "postfix": false, "binop": null }, - "start": 6217, - "end": 6218, + "start": 6800, + "end": 6801, "loc": { "start": { - "line": 198, - "column": 5 + "line": 219, + "column": 3 }, "end": { - "line": 198, - "column": 6 + "line": 219, + "column": 4 } } }, @@ -50423,152 +53374,214 @@ "postfix": false, "binop": null }, - "start": 6223, - "end": 6224, + "start": 6804, + "end": 6805, "loc": { "start": { - "line": 199, - "column": 4 + "line": 220, + "column": 2 }, "end": { - "line": 199, - "column": 5 + "line": 220, + "column": 3 } } }, { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 6229, - "end": 6234, + "type": "CommentLine", + "value": " Must keep checking if the object was not created at time of destruction.", + "start": 6809, + "end": 6884, "loc": { "start": { - "line": 200, - "column": 4 + "line": 222, + "column": 2 }, "end": { - "line": 200, - "column": 9 + "line": 222, + "column": 77 } } }, { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6235, - "end": 6236, + "type": "CommentLine", + "value": " One example of this needing to be run is when a player instantly collects an atom on spawn.", + "start": 6887, + "end": 6981, "loc": { "start": { - "line": 200, - "column": 10 + "line": 223, + "column": 2 }, "end": { - "line": 200, - "column": 11 + "line": 223, + "column": 96 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 6236, - "end": 6239, + "type": "CommentLine", + "value": " if (objects[data.type][data.id] === undefined) {", + "start": 6984, + "end": 7035, "loc": { "start": { - "line": 200, - "column": 11 + "line": 224, + "column": 2 }, "end": { - "line": 200, - "column": 14 + "line": 224, + "column": 53 } } }, { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6239, - "end": 6240, + "type": "CommentLine", + "value": " \tlet thisInterval = setTimeout(() => {", + "start": 7038, + "end": 7079, "loc": { "start": { - "line": 200, - "column": 14 + "line": 225, + "column": 2 }, "end": { - "line": 200, - "column": 15 + "line": 225, + "column": 43 } } }, { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6241, - "end": 6242, + "type": "CommentLine", + "value": " \t\tif (objects[data.type][data.id].destroyed) {", + "start": 7082, + "end": 7131, "loc": { "start": { - "line": 200, - "column": 16 + "line": 226, + "column": 2 }, "end": { - "line": 200, - "column": 17 + "line": 226, + "column": 51 + } + } + }, + { + "type": "CommentLine", + "value": " \t\t\tclearInterval(thisInterval)", + "start": 7134, + "end": 7167, + "loc": { + "start": { + "line": 227, + "column": 2 + }, + "end": { + "line": 227, + "column": 35 + } + } + }, + { + "type": "CommentLine", + "value": " \t\t}", + "start": 7170, + "end": 7176, + "loc": { + "start": { + "line": 228, + "column": 2 + }, + "end": { + "line": 228, + "column": 8 + } + } + }, + { + "type": "CommentLine", + "value": " \t\telse {", + "start": 7179, + "end": 7190, + "loc": { + "start": { + "line": 229, + "column": 2 + }, + "end": { + "line": 229, + "column": 13 + } + } + }, + { + "type": "CommentLine", + "value": " \t\t\tremoveObject(data)", + "start": 7193, + "end": 7217, + "loc": { + "start": { + "line": 230, + "column": 2 + }, + "end": { + "line": 230, + "column": 26 + } + } + }, + { + "type": "CommentLine", + "value": " \t\t}", + "start": 7220, + "end": 7226, + "loc": { + "start": { + "line": 231, + "column": 2 + }, + "end": { + "line": 231, + "column": 8 + } + } + }, + { + "type": "CommentLine", + "value": " \t}, 200)", + "start": 7229, + "end": 7240, + "loc": { + "start": { + "line": 232, + "column": 2 + }, + "end": { + "line": 232, + "column": 13 + } + } + }, + { + "type": "CommentLine", + "value": " }", + "start": 7243, + "end": 7247, + "loc": { + "start": { + "line": 233, + "column": 2 + }, + "end": { + "line": 233, + "column": 6 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -50576,28 +53589,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 6248, - "end": 6250, + "start": 7249, + "end": 7250, "loc": { "start": { - "line": 201, - "column": 5 + "line": 234, + "column": 1 }, "end": { - "line": 201, - "column": 7 + "line": 234, + "column": 2 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -50605,24 +53616,24 @@ "postfix": false, "binop": null }, - "start": 6251, - "end": 6252, + "start": 7250, + "end": 7251, "loc": { "start": { - "line": 201, - "column": 8 + "line": 234, + "column": 2 }, "end": { - "line": 201, - "column": 9 + "line": 234, + "column": 3 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -50630,43 +53641,59 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 6252, - "end": 6258, + "start": 7252, + "end": 7253, "loc": { "start": { - "line": 201, - "column": 9 + "line": 235, + "column": 0 }, "end": { - "line": 201, - "column": 15 + "line": 235, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Sets up socket connection listeners.\n * Run in setupSocket().\n ", + "start": 7255, + "end": 7327, + "loc": { + "start": { + "line": 237, + "column": 0 + }, + "end": { + "line": 240, + "column": 3 } } }, { "type": { - "label": ".", + "label": "function", + "keyword": "function", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6258, - "end": 6259, + "value": "function", + "start": 7328, + "end": 7336, "loc": { "start": { - "line": 201, - "column": 15 + "line": 241, + "column": 0 }, "end": { - "line": 201, - "column": 16 + "line": 241, + "column": 8 } } }, @@ -50682,25 +53709,25 @@ "postfix": false, "binop": null }, - "value": "VERBOSE_SOCKET", - "start": 6259, - "end": 6273, + "value": "setupSocketConnection", + "start": 7337, + "end": 7358, "loc": { "start": { - "line": 201, - "column": 16 + "line": 241, + "column": 9 }, "end": { - "line": 201, + "line": 241, "column": 30 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -50708,24 +53735,24 @@ "postfix": false, "binop": null }, - "start": 6273, - "end": 6274, + "start": 7359, + "end": 7360, "loc": { "start": { - "line": 201, - "column": 30 + "line": 241, + "column": 31 }, "end": { - "line": 201, - "column": 31 + "line": 241, + "column": 32 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -50733,23 +53760,23 @@ "postfix": false, "binop": null }, - "start": 6275, - "end": 6276, + "start": 7360, + "end": 7361, "loc": { "start": { - "line": 201, + "line": 241, "column": 32 }, "end": { - "line": 201, + "line": 241, "column": 33 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -50758,43 +53785,32 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 6283, - "end": 6290, + "start": 7362, + "end": 7363, "loc": { "start": { - "line": 202, - "column": 6 + "line": 241, + "column": 34 }, "end": { - "line": 202, - "column": 13 + "line": 241, + "column": 35 } } }, { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6290, - "end": 6291, + "type": "CommentLine", + "value": " On Connection Failure", + "start": 7365, + "end": 7389, "loc": { "start": { - "line": 202, - "column": 13 + "line": 242, + "column": 1 }, "end": { - "line": 202, - "column": 14 + "line": 242, + "column": 25 } } }, @@ -50810,48 +53826,49 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 6291, - "end": 6296, + "value": "socket", + "start": 7391, + "end": 7397, "loc": { "start": { - "line": 202, - "column": 14 + "line": 243, + "column": 1 }, "end": { - "line": 202, - "column": 19 + "line": 243, + "column": 7 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6296, - "end": 6297, + "start": 7397, + "end": 7398, "loc": { "start": { - "line": 202, - "column": 19 + "line": 243, + "column": 7 }, "end": { - "line": 202, - "column": 20 + "line": 243, + "column": 8 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -50859,28 +53876,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Retry failed. Object removal failed. Abandoning request. ", - "start": 6297, - "end": 6356, + "value": "on", + "start": 7398, + "end": 7400, "loc": { "start": { - "line": 202, - "column": 20 + "line": 243, + "column": 8 }, "end": { - "line": 202, - "column": 79 + "line": 243, + "column": 10 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -50888,48 +53904,49 @@ "postfix": false, "binop": null }, - "start": 6356, - "end": 6357, + "start": 7400, + "end": 7401, "loc": { "start": { - "line": 202, - "column": 79 + "line": 243, + "column": 10 }, "end": { - "line": 202, - "column": 80 + "line": 243, + "column": 11 } } }, { "type": { - "label": "}", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6363, - "end": 6364, + "value": "reconnect_failed", + "start": 7401, + "end": 7419, "loc": { "start": { - "line": 203, - "column": 5 + "line": 243, + "column": 11 }, "end": { - "line": 203, - "column": 6 + "line": 243, + "column": 29 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -50940,50 +53957,47 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 6370, - "end": 6376, + "start": 7419, + "end": 7420, "loc": { "start": { - "line": 204, - "column": 5 + "line": 243, + "column": 29 }, "end": { - "line": 204, - "column": 11 + "line": 243, + "column": 30 } } }, { "type": { - "label": "num", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 1, - "start": 6377, - "end": 6378, + "start": 7421, + "end": 7422, "loc": { "start": { - "line": 204, - "column": 12 + "line": 243, + "column": 31 }, "end": { - "line": 204, - "column": 13 + "line": 243, + "column": 32 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -50993,89 +54007,73 @@ "postfix": false, "binop": null }, - "start": 6383, - "end": 6384, - "loc": { - "start": { - "line": 205, - "column": 4 - }, - "end": { - "line": 205, - "column": 5 - } - } - }, - { - "type": "CommentLine", - "value": " removeObject(data);", - "start": 6389, - "end": 6411, + "start": 7422, + "end": 7423, "loc": { "start": { - "line": 206, - "column": 4 + "line": 243, + "column": 32 }, "end": { - "line": 206, - "column": 26 + "line": 243, + "column": 33 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6415, - "end": 6416, + "start": 7424, + "end": 7426, "loc": { "start": { - "line": 207, - "column": 3 + "line": 243, + "column": 34 }, "end": { - "line": 207, - "column": 4 + "line": 243, + "column": 36 } } }, { "type": { - "label": ",", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6416, - "end": 6417, + "start": 7427, + "end": 7428, "loc": { "start": { - "line": 207, - "column": 4 + "line": 243, + "column": 37 }, "end": { - "line": 207, - "column": 5 + "line": 243, + "column": 38 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -51083,53 +54081,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 1000, - "start": 6418, - "end": 6422, + "value": "alert", + "start": 7431, + "end": 7436, "loc": { "start": { - "line": 207, - "column": 6 + "line": 244, + "column": 2 }, "end": { - "line": 207, - "column": 10 + "line": 244, + "column": 7 } } }, { "type": { - "label": "/", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, - "updateContext": null + "binop": null }, - "value": "/", - "start": 6423, - "end": 6424, + "start": 7436, + "end": 7437, "loc": { "start": { - "line": 207, - "column": 11 + "line": 244, + "column": 7 }, "end": { - "line": 207, - "column": 12 + "line": 244, + "column": 8 } } }, { "type": { - "label": "num", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -51140,17 +54135,17 @@ "binop": null, "updateContext": null }, - "value": 60, - "start": 6425, - "end": 6427, + "value": "You have lost connection to the server!", + "start": 7437, + "end": 7478, "loc": { "start": { - "line": 207, - "column": 13 + "line": 244, + "column": 8 }, "end": { - "line": 207, - "column": 15 + "line": 244, + "column": 49 } } }, @@ -51166,32 +54161,16 @@ "postfix": false, "binop": null }, - "start": 6427, - "end": 6428, - "loc": { - "start": { - "line": 207, - "column": 15 - }, - "end": { - "line": 207, - "column": 16 - } - } - }, - { - "type": "CommentLine", - "value": " return 1", - "start": 6432, - "end": 6443, + "start": 7478, + "end": 7479, "loc": { "start": { - "line": 208, - "column": 3 + "line": 244, + "column": 49 }, "end": { - "line": 208, - "column": 14 + "line": 244, + "column": 50 } } }, @@ -51207,51 +54186,48 @@ "postfix": false, "binop": null }, - "start": 6446, - "end": 6447, + "start": 7481, + "end": 7482, "loc": { "start": { - "line": 209, - "column": 2 + "line": 245, + "column": 1 }, "end": { - "line": 209, - "column": 3 + "line": 245, + "column": 2 } } }, { "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "else", - "start": 6450, - "end": 6454, + "start": 7482, + "end": 7483, "loc": { "start": { - "line": 210, + "line": 245, "column": 2 }, "end": { - "line": 210, - "column": 6 + "line": 245, + "column": 3 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -51260,55 +54236,23 @@ "postfix": false, "binop": null }, - "start": 6455, - "end": 6456, - "loc": { - "start": { - "line": 210, - "column": 7 - }, - "end": { - "line": 210, - "column": 8 - } - } - }, - { - "type": "CommentLine", - "value": " console.log(objects[data.type][data.id].destroyed);", - "start": 6460, - "end": 6514, - "loc": { - "start": { - "line": 211, - "column": 3 - }, - "end": { - "line": 211, - "column": 57 - } - } - }, - { - "type": "CommentLine", - "value": " An object was removed", - "start": 6517, - "end": 6541, + "value": "socket", + "start": 7486, + "end": 7492, "loc": { "start": { - "line": 212, - "column": 2 + "line": 247, + "column": 1 }, "end": { - "line": 212, - "column": 26 + "line": 247, + "column": 7 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -51319,24 +54263,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 6545, - "end": 6547, + "start": 7492, + "end": 7493, "loc": { "start": { - "line": 213, - "column": 3 + "line": 247, + "column": 7 }, "end": { - "line": 213, - "column": 5 + "line": 247, + "column": 8 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -51345,49 +54288,48 @@ "postfix": false, "binop": null }, - "start": 6548, - "end": 6549, + "value": "on", + "start": 7493, + "end": 7495, "loc": { "start": { - "line": 213, - "column": 6 + "line": 247, + "column": 8 }, "end": { - "line": 213, - "column": 7 + "line": 247, + "column": 10 } } }, { "type": { - "label": "prefix", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "!", - "start": 6549, - "end": 6550, + "start": 7495, + "end": 7496, "loc": { "start": { - "line": 213, - "column": 7 + "line": 247, + "column": 10 }, "end": { - "line": 213, - "column": 8 + "line": 247, + "column": 11 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -51395,27 +54337,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "objects", - "start": 6550, - "end": 6557, + "value": "reconnecting", + "start": 7496, + "end": 7510, "loc": { "start": { - "line": 213, - "column": 8 + "line": 247, + "column": 11 }, "end": { - "line": 213, - "column": 15 + "line": 247, + "column": 25 } } }, { "type": { - "label": "[", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -51424,23 +54367,23 @@ "binop": null, "updateContext": null }, - "start": 6557, - "end": 6558, + "start": 7510, + "end": 7511, "loc": { "start": { - "line": 213, - "column": 15 + "line": 247, + "column": 25 }, "end": { - "line": 213, - "column": 16 + "line": 247, + "column": 26 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -51449,51 +54392,50 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 6558, - "end": 6562, + "start": 7512, + "end": 7513, "loc": { "start": { - "line": 213, - "column": 16 + "line": 247, + "column": 27 }, "end": { - "line": 213, - "column": 20 + "line": 247, + "column": 28 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6562, - "end": 6563, + "value": "attempt", + "start": 7513, + "end": 7520, "loc": { "start": { - "line": 213, - "column": 20 + "line": 247, + "column": 28 }, "end": { - "line": 213, - "column": 21 + "line": 247, + "column": 35 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -51501,24 +54443,23 @@ "postfix": false, "binop": null }, - "value": "type", - "start": 6563, - "end": 6567, + "start": 7520, + "end": 7521, "loc": { "start": { - "line": 213, - "column": 21 + "line": 247, + "column": 35 }, "end": { - "line": 213, - "column": 25 + "line": 247, + "column": 36 } } }, { "type": { - "label": "]", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -51528,22 +54469,22 @@ "binop": null, "updateContext": null }, - "start": 6567, - "end": 6568, + "start": 7522, + "end": 7524, "loc": { "start": { - "line": 213, - "column": 25 + "line": 247, + "column": 37 }, "end": { - "line": 213, - "column": 26 + "line": 247, + "column": 39 } } }, { "type": { - "label": "[", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -51551,19 +54492,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6568, - "end": 6569, + "start": 7525, + "end": 7526, "loc": { "start": { - "line": 213, - "column": 26 + "line": 247, + "column": 40 }, "end": { - "line": 213, - "column": 27 + "line": 247, + "column": 41 } } }, @@ -51579,17 +54519,17 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 6569, - "end": 6573, + "value": "console", + "start": 7529, + "end": 7536, "loc": { "start": { - "line": 213, - "column": 27 + "line": 248, + "column": 2 }, "end": { - "line": 213, - "column": 31 + "line": 248, + "column": 9 } } }, @@ -51606,16 +54546,16 @@ "binop": null, "updateContext": null }, - "start": 6573, - "end": 6574, + "start": 7536, + "end": 7537, "loc": { "start": { - "line": 213, - "column": 31 + "line": 248, + "column": 9 }, "end": { - "line": 213, - "column": 32 + "line": 248, + "column": 10 } } }, @@ -51631,51 +54571,50 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 6574, - "end": 6576, + "value": "log", + "start": 7537, + "end": 7540, "loc": { "start": { - "line": 213, - "column": 32 + "line": 248, + "column": 10 }, "end": { - "line": 213, - "column": 34 + "line": 248, + "column": 13 } } }, { "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6576, - "end": 6577, + "start": 7540, + "end": 7541, "loc": { "start": { - "line": 213, - "column": 34 + "line": 248, + "column": 13 }, "end": { - "line": 213, - "column": 35 + "line": 248, + "column": 14 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -51684,50 +54623,52 @@ "binop": null, "updateContext": null }, - "start": 6577, - "end": 6578, + "value": "Lost connection. Reconnecting on attempt: ", + "start": 7541, + "end": 7585, "loc": { "start": { - "line": 213, - "column": 35 + "line": 248, + "column": 14 }, "end": { - "line": 213, - "column": 36 + "line": 248, + "column": 58 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "+/-", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "value": "destroyed", - "start": 6578, - "end": 6587, + "value": "+", + "start": 7586, + "end": 7587, "loc": { "start": { - "line": 213, - "column": 36 + "line": 248, + "column": 59 }, "end": { - "line": 213, - "column": 45 + "line": 248, + "column": 60 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -51735,24 +54676,25 @@ "postfix": false, "binop": null }, - "start": 6587, - "end": 6588, + "value": "attempt", + "start": 7588, + "end": 7595, "loc": { "start": { - "line": 213, - "column": 45 + "line": 248, + "column": 61 }, "end": { - "line": 213, - "column": 46 + "line": 248, + "column": 68 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -51760,32 +54702,16 @@ "postfix": false, "binop": null }, - "start": 6589, - "end": 6590, - "loc": { - "start": { - "line": 213, - "column": 47 - }, - "end": { - "line": 213, - "column": 48 - } - } - }, - { - "type": "CommentLine", - "value": " Only remove if not already", - "start": 6591, - "end": 6620, + "start": 7595, + "end": 7596, "loc": { "start": { - "line": 213, - "column": 49 + "line": 248, + "column": 68 }, "end": { - "line": 213, - "column": 78 + "line": 248, + "column": 69 } } }, @@ -51801,17 +54727,17 @@ "postfix": false, "binop": null }, - "value": "removeObject", - "start": 6625, - "end": 6637, + "value": "quitGame", + "start": 7599, + "end": 7607, "loc": { "start": { - "line": 214, - "column": 4 + "line": 249, + "column": 2 }, "end": { - "line": 214, - "column": 16 + "line": 249, + "column": 10 } } }, @@ -51827,22 +54753,22 @@ "postfix": false, "binop": null }, - "start": 6637, - "end": 6638, + "start": 7607, + "end": 7608, "loc": { "start": { - "line": 214, - "column": 16 + "line": 249, + "column": 10 }, "end": { - "line": 214, - "column": 17 + "line": 249, + "column": 11 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -51850,19 +54776,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 6638, - "end": 6642, + "value": "Lost connection to server", + "start": 7608, + "end": 7635, "loc": { "start": { - "line": 214, - "column": 17 + "line": 249, + "column": 11 }, "end": { - "line": 214, - "column": 21 + "line": 249, + "column": 38 } } }, @@ -51878,16 +54805,16 @@ "postfix": false, "binop": null }, - "start": 6642, - "end": 6643, + "start": 7635, + "end": 7636, "loc": { "start": { - "line": 214, - "column": 21 + "line": 249, + "column": 38 }, "end": { - "line": 214, - "column": 22 + "line": 249, + "column": 39 } } }, @@ -51903,69 +54830,41 @@ "postfix": false, "binop": null }, - "start": 6647, - "end": 6648, + "start": 7638, + "end": 7639, "loc": { "start": { - "line": 215, - "column": 3 + "line": 250, + "column": 1 }, "end": { - "line": 215, - "column": 4 + "line": 250, + "column": 2 } } }, { "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 6652, - "end": 6656, - "loc": { - "start": { - "line": 216, - "column": 3 - }, - "end": { - "line": 216, - "column": 7 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null }, - "start": 6657, - "end": 6658, + "start": 7639, + "end": 7640, "loc": { "start": { - "line": 216, - "column": 8 + "line": 250, + "column": 2 }, "end": { - "line": 216, - "column": 9 + "line": 250, + "column": 3 } } }, @@ -51981,17 +54880,17 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 6663, - "end": 6670, + "value": "socket", + "start": 7643, + "end": 7649, "loc": { "start": { - "line": 217, - "column": 4 + "line": 252, + "column": 1 }, "end": { - "line": 217, - "column": 11 + "line": 252, + "column": 7 } } }, @@ -52008,16 +54907,16 @@ "binop": null, "updateContext": null }, - "start": 6670, - "end": 6671, + "start": 7649, + "end": 7650, "loc": { "start": { - "line": 217, - "column": 11 + "line": 252, + "column": 7 }, "end": { - "line": 217, - "column": 12 + "line": 252, + "column": 8 } } }, @@ -52033,17 +54932,17 @@ "postfix": false, "binop": null }, - "value": "warn", - "start": 6671, - "end": 6675, + "value": "on", + "start": 7650, + "end": 7652, "loc": { "start": { - "line": 217, - "column": 12 + "line": 252, + "column": 8 }, "end": { - "line": 217, - "column": 16 + "line": 252, + "column": 10 } } }, @@ -52059,16 +54958,16 @@ "postfix": false, "binop": null }, - "start": 6675, - "end": 6676, + "start": 7652, + "end": 7653, "loc": { "start": { - "line": 217, - "column": 16 + "line": 252, + "column": 10 }, "end": { - "line": 217, - "column": 17 + "line": 252, + "column": 11 } } }, @@ -52085,92 +54984,74 @@ "binop": null, "updateContext": null }, - "value": "serverSendObjectRemoval() called despite object has already been destroyed.", - "start": 6676, - "end": 6753, + "value": "reconnect_error", + "start": 7653, + "end": 7670, "loc": { "start": { - "line": 217, - "column": 17 + "line": 252, + "column": 11 }, "end": { - "line": 217, - "column": 94 + "line": 252, + "column": 28 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6753, - "end": 6754, - "loc": { - "start": { - "line": 217, - "column": 94 - }, - "end": { - "line": 217, - "column": 95 - } - } - }, - { - "type": "CommentLine", - "value": " Sanity check", - "start": 6755, - "end": 6770, + "start": 7670, + "end": 7671, "loc": { "start": { - "line": 217, - "column": 96 + "line": 252, + "column": 28 }, "end": { - "line": 217, - "column": 111 + "line": 252, + "column": 29 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 6775, - "end": 6781, + "start": 7672, + "end": 7673, "loc": { "start": { - "line": 218, - "column": 4 + "line": 252, + "column": 30 }, "end": { - "line": 218, - "column": 10 + "line": 252, + "column": 31 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -52178,26 +55059,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 1, - "start": 6782, - "end": 6783, + "value": "err", + "start": 7673, + "end": 7676, "loc": { "start": { - "line": 218, - "column": 11 + "line": 252, + "column": 31 }, "end": { - "line": 218, - "column": 12 + "line": 252, + "column": 34 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -52207,241 +55087,75 @@ "postfix": false, "binop": null }, - "start": 6787, - "end": 6788, + "start": 7676, + "end": 7677, "loc": { "start": { - "line": 219, - "column": 3 + "line": 252, + "column": 34 }, "end": { - "line": 219, - "column": 4 + "line": 252, + "column": 35 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 6791, - "end": 6792, - "loc": { - "start": { - "line": 220, - "column": 2 - }, - "end": { - "line": 220, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Must keep checking if the object was not created at time of destruction.", - "start": 6796, - "end": 6871, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 222, - "column": 77 - } - } - }, - { - "type": "CommentLine", - "value": " One example of this needing to be run is when a player instantly collects an atom on spawn.", - "start": 6874, - "end": 6968, - "loc": { - "start": { - "line": 223, - "column": 2 - }, - "end": { - "line": 223, - "column": 96 - } - } - }, - { - "type": "CommentLine", - "value": " if (objects[data.type][data.id] === undefined) {", - "start": 6971, - "end": 7022, - "loc": { - "start": { - "line": 224, - "column": 2 - }, - "end": { - "line": 224, - "column": 53 - } - } - }, - { - "type": "CommentLine", - "value": " \tlet thisInterval = setTimeout(() => {", - "start": 7025, - "end": 7066, - "loc": { - "start": { - "line": 225, - "column": 2 - }, - "end": { - "line": 225, - "column": 43 - } - } - }, - { - "type": "CommentLine", - "value": " \t\tif (objects[data.type][data.id].destroyed) {", - "start": 7069, - "end": 7118, - "loc": { - "start": { - "line": 226, - "column": 2 - }, - "end": { - "line": 226, - "column": 51 - } - } - }, - { - "type": "CommentLine", - "value": " \t\t\tclearInterval(thisInterval)", - "start": 7121, - "end": 7154, - "loc": { - "start": { - "line": 227, - "column": 2 - }, - "end": { - "line": 227, - "column": 35 - } - } - }, - { - "type": "CommentLine", - "value": " \t\t}", - "start": 7157, - "end": 7163, - "loc": { - "start": { - "line": 228, - "column": 2 - }, - "end": { - "line": 228, - "column": 8 - } - } - }, - { - "type": "CommentLine", - "value": " \t\telse {", - "start": 7166, - "end": 7177, - "loc": { - "start": { - "line": 229, - "column": 2 - }, - "end": { - "line": 229, - "column": 13 - } - } - }, - { - "type": "CommentLine", - "value": " \t\t\tremoveObject(data)", - "start": 7180, - "end": 7204, - "loc": { - "start": { - "line": 230, - "column": 2 - }, - "end": { - "line": 230, - "column": 26 - } - } - }, - { - "type": "CommentLine", - "value": " \t\t}", - "start": 7207, - "end": 7213, - "loc": { - "start": { - "line": 231, - "column": 2 - }, - "end": { - "line": 231, - "column": 8 - } - } - }, - { - "type": "CommentLine", - "value": " \t}, 200)", - "start": 7216, - "end": 7227, + "binop": null, + "updateContext": null + }, + "start": 7678, + "end": 7680, "loc": { "start": { - "line": 232, - "column": 2 + "line": 252, + "column": 36 }, "end": { - "line": 232, - "column": 13 + "line": 252, + "column": 38 } } }, { - "type": "CommentLine", - "value": " }", - "start": 7230, - "end": 7234, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7681, + "end": 7682, "loc": { "start": { - "line": 233, - "column": 2 + "line": 252, + "column": 39 }, "end": { - "line": 233, - "column": 6 + "line": 252, + "column": 40 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -52449,22 +55163,23 @@ "postfix": false, "binop": null }, - "start": 7236, - "end": 7237, + "value": "console", + "start": 7685, + "end": 7692, "loc": { "start": { - "line": 234, - "column": 1 + "line": 253, + "column": 2 }, "end": { - "line": 234, - "column": 2 + "line": 253, + "column": 9 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -52472,26 +55187,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7237, - "end": 7238, + "start": 7692, + "end": 7693, "loc": { "start": { - "line": 234, - "column": 2 + "line": 253, + "column": 9 }, "end": { - "line": 234, - "column": 3 + "line": 253, + "column": 10 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -52499,39 +55215,48 @@ "postfix": false, "binop": null }, - "start": 7239, - "end": 7240, + "value": "log", + "start": 7693, + "end": 7696, "loc": { "start": { - "line": 235, - "column": 0 + "line": 253, + "column": 10 }, "end": { - "line": 235, - "column": 1 + "line": 253, + "column": 13 } } }, { - "type": "CommentBlock", - "value": "*\n * Sets up socket connection listeners.\n * Run in setupSocket().\n ", - "start": 7242, - "end": 7314, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7696, + "end": 7697, "loc": { "start": { - "line": 237, - "column": 0 + "line": 253, + "column": 13 }, "end": { - "line": 240, - "column": 3 + "line": 253, + "column": 14 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -52539,52 +55264,54 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "function", - "start": 7315, - "end": 7323, + "value": "CRITICAL: Reconnect failed! ", + "start": 7697, + "end": 7727, "loc": { "start": { - "line": 241, - "column": 0 + "line": 253, + "column": 14 }, "end": { - "line": 241, - "column": 8 + "line": 253, + "column": 44 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "+/-", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "value": "setupSocketConnection", - "start": 7324, - "end": 7345, + "value": "+", + "start": 7728, + "end": 7729, "loc": { "start": { - "line": 241, - "column": 9 + "line": 253, + "column": 45 }, "end": { - "line": 241, - "column": 30 + "line": 253, + "column": 46 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -52593,16 +55320,17 @@ "postfix": false, "binop": null }, - "start": 7346, - "end": 7347, + "value": "err", + "start": 7730, + "end": 7733, "loc": { "start": { - "line": 241, - "column": 31 + "line": 253, + "column": 47 }, "end": { - "line": 241, - "column": 32 + "line": 253, + "column": 50 } } }, @@ -52618,24 +55346,24 @@ "postfix": false, "binop": null }, - "start": 7347, - "end": 7348, + "start": 7733, + "end": 7734, "loc": { "start": { - "line": 241, - "column": 32 + "line": 253, + "column": 50 }, "end": { - "line": 241, - "column": 33 + "line": 253, + "column": 51 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -52643,32 +55371,41 @@ "postfix": false, "binop": null }, - "start": 7349, - "end": 7350, + "start": 7736, + "end": 7737, "loc": { "start": { - "line": 241, - "column": 34 + "line": 254, + "column": 1 }, "end": { - "line": 241, - "column": 35 + "line": 254, + "column": 2 } } }, { - "type": "CommentLine", - "value": " On Connection Failure", - "start": 7352, - "end": 7376, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7737, + "end": 7738, "loc": { "start": { - "line": 242, - "column": 1 + "line": 254, + "column": 2 }, "end": { - "line": 242, - "column": 25 + "line": 254, + "column": 3 } } }, @@ -52685,15 +55422,15 @@ "binop": null }, "value": "socket", - "start": 7378, - "end": 7384, + "start": 7741, + "end": 7747, "loc": { "start": { - "line": 243, + "line": 256, "column": 1 }, "end": { - "line": 243, + "line": 256, "column": 7 } } @@ -52711,15 +55448,15 @@ "binop": null, "updateContext": null }, - "start": 7384, - "end": 7385, + "start": 7747, + "end": 7748, "loc": { "start": { - "line": 243, + "line": 256, "column": 7 }, "end": { - "line": 243, + "line": 256, "column": 8 } } @@ -52737,15 +55474,15 @@ "binop": null }, "value": "on", - "start": 7385, - "end": 7387, + "start": 7748, + "end": 7750, "loc": { "start": { - "line": 243, + "line": 256, "column": 8 }, "end": { - "line": 243, + "line": 256, "column": 10 } } @@ -52762,15 +55499,15 @@ "postfix": false, "binop": null }, - "start": 7387, - "end": 7388, + "start": 7750, + "end": 7751, "loc": { "start": { - "line": 243, + "line": 256, "column": 10 }, "end": { - "line": 243, + "line": 256, "column": 11 } } @@ -52788,17 +55525,17 @@ "binop": null, "updateContext": null }, - "value": "reconnect_failed", - "start": 7388, - "end": 7406, + "value": "pong", + "start": 7751, + "end": 7757, "loc": { "start": { - "line": 243, + "line": 256, "column": 11 }, "end": { - "line": 243, - "column": 29 + "line": 256, + "column": 17 } } }, @@ -52815,16 +55552,16 @@ "binop": null, "updateContext": null }, - "start": 7406, - "end": 7407, + "start": 7757, + "end": 7758, "loc": { "start": { - "line": 243, - "column": 29 + "line": 256, + "column": 17 }, "end": { - "line": 243, - "column": 30 + "line": 256, + "column": 18 } } }, @@ -52840,16 +55577,42 @@ "postfix": false, "binop": null }, - "start": 7408, - "end": 7409, + "start": 7759, + "end": 7760, "loc": { "start": { - "line": 243, - "column": 31 + "line": 256, + "column": 19 }, "end": { - "line": 243, - "column": 32 + "line": 256, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ping", + "start": 7760, + "end": 7764, + "loc": { + "start": { + "line": 256, + "column": 20 + }, + "end": { + "line": 256, + "column": 24 } } }, @@ -52865,16 +55628,16 @@ "postfix": false, "binop": null }, - "start": 7409, - "end": 7410, + "start": 7764, + "end": 7765, "loc": { "start": { - "line": 243, - "column": 32 + "line": 256, + "column": 24 }, "end": { - "line": 243, - "column": 33 + "line": 256, + "column": 25 } } }, @@ -52891,16 +55654,16 @@ "binop": null, "updateContext": null }, - "start": 7411, - "end": 7413, + "start": 7766, + "end": 7768, "loc": { "start": { - "line": 243, - "column": 34 + "line": 256, + "column": 26 }, "end": { - "line": 243, - "column": 36 + "line": 256, + "column": 28 } } }, @@ -52916,16 +55679,16 @@ "postfix": false, "binop": null }, - "start": 7414, - "end": 7415, + "start": 7769, + "end": 7770, "loc": { "start": { - "line": 243, - "column": 37 + "line": 256, + "column": 29 }, "end": { - "line": 243, - "column": 38 + "line": 256, + "column": 30 } } }, @@ -52941,17 +55704,69 @@ "postfix": false, "binop": null }, - "value": "alert", - "start": 7418, - "end": 7423, + "value": "console", + "start": 7773, + "end": 7780, "loc": { "start": { - "line": 244, + "line": 257, "column": 2 }, "end": { - "line": 244, - "column": 7 + "line": 257, + "column": 9 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7780, + "end": 7781, + "loc": { + "start": { + "line": 257, + "column": 9 + }, + "end": { + "line": 257, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 7781, + "end": 7784, + "loc": { + "start": { + "line": 257, + "column": 10 + }, + "end": { + "line": 257, + "column": 13 } } }, @@ -52967,16 +55782,16 @@ "postfix": false, "binop": null }, - "start": 7423, - "end": 7424, + "start": 7784, + "end": 7785, "loc": { "start": { - "line": 244, - "column": 7 + "line": 257, + "column": 13 }, "end": { - "line": 244, - "column": 8 + "line": 257, + "column": 14 } } }, @@ -52993,17 +55808,70 @@ "binop": null, "updateContext": null }, - "value": "You have lost connection to the server!", - "start": 7424, - "end": 7465, + "value": "Your Ping Is: ", + "start": 7785, + "end": 7801, "loc": { "start": { - "line": 244, - "column": 8 + "line": 257, + "column": 14 }, "end": { - "line": 244, - "column": 49 + "line": 257, + "column": 30 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 7802, + "end": 7803, + "loc": { + "start": { + "line": 257, + "column": 31 + }, + "end": { + "line": 257, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ping", + "start": 7804, + "end": 7808, + "loc": { + "start": { + "line": 257, + "column": 33 + }, + "end": { + "line": 257, + "column": 37 } } }, @@ -53019,16 +55887,16 @@ "postfix": false, "binop": null }, - "start": 7465, - "end": 7466, + "start": 7808, + "end": 7809, "loc": { "start": { - "line": 244, - "column": 49 + "line": 257, + "column": 37 }, "end": { - "line": 244, - "column": 50 + "line": 257, + "column": 38 } } }, @@ -53044,15 +55912,15 @@ "postfix": false, "binop": null }, - "start": 7468, - "end": 7469, + "start": 7811, + "end": 7812, "loc": { "start": { - "line": 245, + "line": 258, "column": 1 }, "end": { - "line": 245, + "line": 258, "column": 2 } } @@ -53069,15 +55937,15 @@ "postfix": false, "binop": null }, - "start": 7469, - "end": 7470, + "start": 7812, + "end": 7813, "loc": { "start": { - "line": 245, + "line": 258, "column": 2 }, "end": { - "line": 245, + "line": 258, "column": 3 } } @@ -53095,15 +55963,15 @@ "binop": null }, "value": "socket", - "start": 7473, - "end": 7479, + "start": 7816, + "end": 7822, "loc": { "start": { - "line": 247, + "line": 260, "column": 1 }, "end": { - "line": 247, + "line": 260, "column": 7 } } @@ -53121,15 +55989,15 @@ "binop": null, "updateContext": null }, - "start": 7479, - "end": 7480, + "start": 7822, + "end": 7823, "loc": { "start": { - "line": 247, + "line": 260, "column": 7 }, "end": { - "line": 247, + "line": 260, "column": 8 } } @@ -53147,15 +56015,15 @@ "binop": null }, "value": "on", - "start": 7480, - "end": 7482, + "start": 7823, + "end": 7825, "loc": { "start": { - "line": 247, + "line": 260, "column": 8 }, "end": { - "line": 247, + "line": 260, "column": 10 } } @@ -53172,15 +56040,15 @@ "postfix": false, "binop": null }, - "start": 7482, - "end": 7483, + "start": 7825, + "end": 7826, "loc": { "start": { - "line": 247, + "line": 260, "column": 10 }, "end": { - "line": 247, + "line": 260, "column": 11 } } @@ -53198,17 +56066,17 @@ "binop": null, "updateContext": null }, - "value": "reconnecting", - "start": 7483, - "end": 7497, + "value": "disconnectedPlayer", + "start": 7826, + "end": 7846, "loc": { "start": { - "line": 247, + "line": 260, "column": 11 }, "end": { - "line": 247, - "column": 25 + "line": 260, + "column": 31 } } }, @@ -53225,16 +56093,16 @@ "binop": null, "updateContext": null }, - "start": 7497, - "end": 7498, + "start": 7846, + "end": 7847, "loc": { "start": { - "line": 247, - "column": 25 + "line": 260, + "column": 31 }, "end": { - "line": 247, - "column": 26 + "line": 260, + "column": 32 } } }, @@ -53250,16 +56118,16 @@ "postfix": false, "binop": null }, - "start": 7499, - "end": 7500, + "start": 7848, + "end": 7849, "loc": { "start": { - "line": 247, - "column": 27 + "line": 260, + "column": 33 }, "end": { - "line": 247, - "column": 28 + "line": 260, + "column": 34 } } }, @@ -53275,17 +56143,17 @@ "postfix": false, "binop": null }, - "value": "attempt", - "start": 7500, - "end": 7507, + "value": "data", + "start": 7849, + "end": 7853, "loc": { "start": { - "line": 247, - "column": 28 + "line": 260, + "column": 34 }, "end": { - "line": 247, - "column": 35 + "line": 260, + "column": 38 } } }, @@ -53301,16 +56169,16 @@ "postfix": false, "binop": null }, - "start": 7507, - "end": 7508, + "start": 7853, + "end": 7854, "loc": { "start": { - "line": 247, - "column": 35 + "line": 260, + "column": 38 }, "end": { - "line": 247, - "column": 36 + "line": 260, + "column": 39 } } }, @@ -53327,16 +56195,16 @@ "binop": null, "updateContext": null }, - "start": 7509, - "end": 7511, + "start": 7855, + "end": 7857, "loc": { "start": { - "line": 247, - "column": 37 + "line": 260, + "column": 40 }, "end": { - "line": 247, - "column": 39 + "line": 260, + "column": 42 } } }, @@ -53352,16 +56220,16 @@ "postfix": false, "binop": null }, - "start": 7512, - "end": 7513, + "start": 7858, + "end": 7859, "loc": { "start": { - "line": 247, - "column": 40 + "line": 260, + "column": 43 }, "end": { - "line": 247, - "column": 41 + "line": 260, + "column": 44 } } }, @@ -53378,15 +56246,15 @@ "binop": null }, "value": "console", - "start": 7516, - "end": 7523, + "start": 7862, + "end": 7869, "loc": { "start": { - "line": 248, + "line": 261, "column": 2 }, "end": { - "line": 248, + "line": 261, "column": 9 } } @@ -53404,15 +56272,15 @@ "binop": null, "updateContext": null }, - "start": 7523, - "end": 7524, + "start": 7869, + "end": 7870, "loc": { "start": { - "line": 248, + "line": 261, "column": 9 }, "end": { - "line": 248, + "line": 261, "column": 10 } } @@ -53430,15 +56298,15 @@ "binop": null }, "value": "log", - "start": 7524, - "end": 7527, + "start": 7870, + "end": 7873, "loc": { "start": { - "line": 248, + "line": 261, "column": 10 }, "end": { - "line": 248, + "line": 261, "column": 13 } } @@ -53455,15 +56323,15 @@ "postfix": false, "binop": null }, - "start": 7527, - "end": 7528, + "start": 7873, + "end": 7874, "loc": { "start": { - "line": 248, + "line": 261, "column": 13 }, "end": { - "line": 248, + "line": 261, "column": 14 } } @@ -53481,17 +56349,17 @@ "binop": null, "updateContext": null }, - "value": "Lost connection. Reconnecting on attempt: ", - "start": 7528, - "end": 7572, + "value": "Player ", + "start": 7874, + "end": 7883, "loc": { "start": { - "line": 248, + "line": 261, "column": 14 }, "end": { - "line": 248, - "column": 58 + "line": 261, + "column": 23 } } }, @@ -53509,16 +56377,16 @@ "updateContext": null }, "value": "+", - "start": 7573, - "end": 7574, + "start": 7884, + "end": 7885, "loc": { "start": { - "line": 248, - "column": 59 + "line": 261, + "column": 24 }, "end": { - "line": 248, - "column": 60 + "line": 261, + "column": 25 } } }, @@ -53534,23 +56402,23 @@ "postfix": false, "binop": null }, - "value": "attempt", - "start": 7575, - "end": 7582, + "value": "data", + "start": 7886, + "end": 7890, "loc": { "start": { - "line": 248, - "column": 61 + "line": 261, + "column": 26 }, "end": { - "line": 248, - "column": 68 + "line": 261, + "column": 30 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -53558,18 +56426,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7582, - "end": 7583, + "start": 7890, + "end": 7891, "loc": { "start": { - "line": 248, - "column": 68 + "line": 261, + "column": 30 }, "end": { - "line": 248, - "column": 69 + "line": 261, + "column": 31 } } }, @@ -53585,42 +56454,44 @@ "postfix": false, "binop": null }, - "value": "quitGame", - "start": 7586, - "end": 7594, + "value": "id", + "start": 7891, + "end": 7893, "loc": { "start": { - "line": 249, - "column": 2 + "line": 261, + "column": 31 }, "end": { - "line": 249, - "column": 10 + "line": 261, + "column": 33 } } }, { "type": { - "label": "(", + "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 7594, - "end": 7595, + "value": "+", + "start": 7894, + "end": 7895, "loc": { "start": { - "line": 249, - "column": 10 + "line": 261, + "column": 34 }, "end": { - "line": 249, - "column": 11 + "line": 261, + "column": 35 } } }, @@ -53637,17 +56508,17 @@ "binop": null, "updateContext": null }, - "value": "Lost connection to server", - "start": 7595, - "end": 7622, + "value": " has disconnected", + "start": 7896, + "end": 7915, "loc": { "start": { - "line": 249, - "column": 11 + "line": 261, + "column": 36 }, "end": { - "line": 249, - "column": 38 + "line": 261, + "column": 55 } } }, @@ -53663,24 +56534,24 @@ "postfix": false, "binop": null }, - "start": 7622, - "end": 7623, + "start": 7915, + "end": 7916, "loc": { "start": { - "line": 249, - "column": 38 + "line": 261, + "column": 55 }, "end": { - "line": 249, - "column": 39 + "line": 261, + "column": 56 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -53688,22 +56559,23 @@ "postfix": false, "binop": null }, - "start": 7625, - "end": 7626, + "value": "chat", + "start": 7919, + "end": 7923, "loc": { "start": { - "line": 250, - "column": 1 + "line": 262, + "column": 2 }, "end": { - "line": 250, - "column": 2 + "line": 262, + "column": 6 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -53711,18 +56583,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7626, - "end": 7627, + "start": 7923, + "end": 7924, "loc": { "start": { - "line": 250, - "column": 2 + "line": 262, + "column": 6 }, "end": { - "line": 250, - "column": 3 + "line": 262, + "column": 7 } } }, @@ -53738,49 +56611,48 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 7630, - "end": 7636, + "value": "addSystemLine", + "start": 7924, + "end": 7937, "loc": { "start": { - "line": 252, - "column": 1 + "line": 262, + "column": 7 }, "end": { - "line": 252, - "column": 7 + "line": 262, + "column": 20 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 7636, - "end": 7637, + "start": 7937, + "end": 7938, "loc": { "start": { - "line": 252, - "column": 7 + "line": 262, + "column": 20 }, "end": { - "line": 252, - "column": 8 + "line": 262, + "column": 21 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -53788,50 +56660,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "on", - "start": 7637, - "end": 7639, + "value": "Player ", + "start": 7938, + "end": 7947, "loc": { "start": { - "line": 252, - "column": 8 + "line": 262, + "column": 21 }, "end": { - "line": 252, - "column": 10 + "line": 262, + "column": 30 } } }, { "type": { - "label": "(", + "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 7639, - "end": 7640, + "value": "+", + "start": 7948, + "end": 7949, "loc": { "start": { - "line": 252, - "column": 10 + "line": 262, + "column": 31 }, "end": { - "line": 252, - "column": 11 + "line": 262, + "column": 32 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -53839,27 +56714,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "reconnect_error", - "start": 7640, - "end": 7657, + "value": "objects", + "start": 7950, + "end": 7957, "loc": { "start": { - "line": 252, - "column": 11 + "line": 262, + "column": 33 }, "end": { - "line": 252, - "column": 28 + "line": 262, + "column": 40 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -53869,23 +56743,23 @@ "binop": null, "updateContext": null }, - "start": 7657, - "end": 7658, + "start": 7957, + "end": 7958, "loc": { "start": { - "line": 252, - "column": 28 + "line": 262, + "column": 40 }, "end": { - "line": 252, - "column": 29 + "line": 262, + "column": 41 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -53894,50 +56768,51 @@ "postfix": false, "binop": null }, - "start": 7659, - "end": 7660, + "value": "players", + "start": 7958, + "end": 7965, "loc": { "start": { - "line": 252, - "column": 30 + "line": 262, + "column": 41 }, "end": { - "line": 252, - "column": 31 + "line": 262, + "column": 48 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "err", - "start": 7660, - "end": 7663, + "start": 7965, + "end": 7966, "loc": { "start": { - "line": 252, - "column": 31 + "line": 262, + "column": 48 }, "end": { - "line": 252, - "column": 34 + "line": 262, + "column": 49 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -53945,23 +56820,24 @@ "postfix": false, "binop": null }, - "start": 7663, - "end": 7664, + "value": "data", + "start": 7966, + "end": 7970, "loc": { "start": { - "line": 252, - "column": 34 + "line": 262, + "column": 49 }, "end": { - "line": 252, - "column": 35 + "line": 262, + "column": 53 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -53971,23 +56847,23 @@ "binop": null, "updateContext": null }, - "start": 7665, - "end": 7667, + "start": 7970, + "end": 7971, "loc": { "start": { - "line": 252, - "column": 36 + "line": 262, + "column": 53 }, "end": { - "line": 252, - "column": 38 + "line": 262, + "column": 54 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -53996,42 +56872,43 @@ "postfix": false, "binop": null }, - "start": 7668, - "end": 7669, + "value": "id", + "start": 7971, + "end": 7973, "loc": { "start": { - "line": 252, - "column": 39 + "line": 262, + "column": 54 }, "end": { - "line": 252, - "column": 40 + "line": 262, + "column": 56 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "console", - "start": 7672, - "end": 7679, + "start": 7973, + "end": 7974, "loc": { "start": { - "line": 253, - "column": 2 + "line": 262, + "column": 56 }, "end": { - "line": 253, - "column": 9 + "line": 262, + "column": 57 } } }, @@ -54048,16 +56925,16 @@ "binop": null, "updateContext": null }, - "start": 7679, - "end": 7680, + "start": 7974, + "end": 7975, "loc": { "start": { - "line": 253, - "column": 9 + "line": 262, + "column": 57 }, "end": { - "line": 253, - "column": 10 + "line": 262, + "column": 58 } } }, @@ -54073,42 +56950,44 @@ "postfix": false, "binop": null }, - "value": "log", - "start": 7680, - "end": 7683, + "value": "name", + "start": 7975, + "end": 7979, "loc": { "start": { - "line": 253, - "column": 10 + "line": 262, + "column": 58 }, "end": { - "line": 253, - "column": 13 + "line": 262, + "column": 62 } } }, { "type": { - "label": "(", + "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 7683, - "end": 7684, + "value": "+", + "start": 7980, + "end": 7981, "loc": { "start": { - "line": 253, - "column": 13 + "line": 262, + "column": 63 }, "end": { - "line": 253, - "column": 14 + "line": 262, + "column": 64 } } }, @@ -54125,78 +57004,78 @@ "binop": null, "updateContext": null }, - "value": "CRITICAL: Reconnect failed! ", - "start": 7684, - "end": 7714, + "value": " has disconnected", + "start": 7982, + "end": 8001, "loc": { "start": { - "line": 253, - "column": 14 + "line": 262, + "column": 65 }, "end": { - "line": 253, - "column": 44 + "line": 262, + "column": 84 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "+", - "start": 7715, - "end": 7716, + "start": 8001, + "end": 8002, "loc": { "start": { - "line": 253, - "column": 45 + "line": 262, + "column": 84 }, "end": { - "line": 253, - "column": 46 + "line": 262, + "column": 85 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "err", - "start": 7717, - "end": 7720, + "value": "if", + "start": 8005, + "end": 8007, "loc": { "start": { - "line": 253, - "column": 47 + "line": 263, + "column": 2 }, "end": { - "line": 253, - "column": 50 + "line": 263, + "column": 4 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -54204,24 +57083,24 @@ "postfix": false, "binop": null }, - "start": 7720, - "end": 7721, + "start": 8008, + "end": 8009, "loc": { "start": { - "line": 253, - "column": 50 + "line": 263, + "column": 5 }, "end": { - "line": 253, - "column": 51 + "line": 263, + "column": 6 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -54229,22 +57108,23 @@ "postfix": false, "binop": null }, - "start": 7723, - "end": 7724, + "value": "objects", + "start": 8009, + "end": 8016, "loc": { "start": { - "line": 254, - "column": 1 + "line": 263, + "column": 6 }, "end": { - "line": 254, - "column": 2 + "line": 263, + "column": 13 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -54252,18 +57132,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7724, - "end": 7725, + "start": 8016, + "end": 8017, "loc": { "start": { - "line": 254, - "column": 2 + "line": 263, + "column": 13 }, "end": { - "line": 254, - "column": 3 + "line": 263, + "column": 14 } } }, @@ -54279,25 +57160,25 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 7728, - "end": 7734, + "value": "players", + "start": 8017, + "end": 8024, "loc": { "start": { - "line": 256, - "column": 1 + "line": 263, + "column": 14 }, "end": { - "line": 256, - "column": 7 + "line": 263, + "column": 21 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -54306,16 +57187,16 @@ "binop": null, "updateContext": null }, - "start": 7734, - "end": 7735, + "start": 8024, + "end": 8025, "loc": { "start": { - "line": 256, - "column": 7 + "line": 263, + "column": 21 }, "end": { - "line": 256, - "column": 8 + "line": 263, + "column": 22 } } }, @@ -54331,48 +57212,49 @@ "postfix": false, "binop": null }, - "value": "on", - "start": 7735, - "end": 7737, + "value": "data", + "start": 8025, + "end": 8029, "loc": { "start": { - "line": 256, - "column": 8 + "line": 263, + "column": 22 }, "end": { - "line": 256, - "column": 10 + "line": 263, + "column": 26 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7737, - "end": 7738, + "start": 8029, + "end": 8030, "loc": { "start": { - "line": 256, - "column": 10 + "line": 263, + "column": 26 }, "end": { - "line": 256, - "column": 11 + "line": 263, + "column": 27 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -54380,27 +57262,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "pong", - "start": 7738, - "end": 7744, + "value": "id", + "start": 8030, + "end": 8032, "loc": { "start": { - "line": 256, - "column": 11 + "line": 263, + "column": 27 }, "end": { - "line": 256, - "column": 17 + "line": 263, + "column": 29 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -54410,41 +57291,43 @@ "binop": null, "updateContext": null }, - "start": 7744, - "end": 7745, + "start": 8032, + "end": 8033, "loc": { "start": { - "line": 256, - "column": 17 + "line": 263, + "column": 29 }, "end": { - "line": 256, - "column": 18 + "line": 263, + "column": 30 } } }, { "type": { - "label": "(", + "label": "==/!=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "start": 7746, - "end": 7747, + "value": "!==", + "start": 8034, + "end": 8037, "loc": { "start": { - "line": 256, - "column": 19 + "line": 263, + "column": 31 }, "end": { - "line": 256, - "column": 20 + "line": 263, + "column": 34 } } }, @@ -54460,17 +57343,17 @@ "postfix": false, "binop": null }, - "value": "ping", - "start": 7747, - "end": 7751, + "value": "undefined", + "start": 8038, + "end": 8047, "loc": { "start": { - "line": 256, - "column": 20 + "line": 263, + "column": 35 }, "end": { - "line": 256, - "column": 24 + "line": 263, + "column": 44 } } }, @@ -54486,42 +57369,16 @@ "postfix": false, "binop": null }, - "start": 7751, - "end": 7752, - "loc": { - "start": { - "line": 256, - "column": 24 - }, - "end": { - "line": 256, - "column": 25 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7753, - "end": 7755, + "start": 8047, + "end": 8048, "loc": { "start": { - "line": 256, - "column": 26 + "line": 263, + "column": 44 }, "end": { - "line": 256, - "column": 28 + "line": 263, + "column": 45 } } }, @@ -54537,16 +57394,16 @@ "postfix": false, "binop": null }, - "start": 7756, - "end": 7757, + "start": 8049, + "end": 8050, "loc": { "start": { - "line": 256, - "column": 29 + "line": 263, + "column": 46 }, "end": { - "line": 256, - "column": 30 + "line": 263, + "column": 47 } } }, @@ -54562,17 +57419,17 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 7760, - "end": 7767, + "value": "objects", + "start": 8054, + "end": 8061, "loc": { "start": { - "line": 257, - "column": 2 + "line": 264, + "column": 3 }, "end": { - "line": 257, - "column": 9 + "line": 264, + "column": 10 } } }, @@ -54589,16 +57446,16 @@ "binop": null, "updateContext": null }, - "start": 7767, - "end": 7768, + "start": 8061, + "end": 8062, "loc": { "start": { - "line": 257, - "column": 9 + "line": 264, + "column": 10 }, "end": { - "line": 257, - "column": 10 + "line": 264, + "column": 11 } } }, @@ -54614,23 +57471,23 @@ "postfix": false, "binop": null }, - "value": "log", - "start": 7768, - "end": 7771, + "value": "players", + "start": 8062, + "end": 8069, "loc": { "start": { - "line": 257, - "column": 10 + "line": 264, + "column": 11 }, "end": { - "line": 257, - "column": 13 + "line": 264, + "column": 18 } } }, { "type": { - "label": "(", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -54638,24 +57495,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7771, - "end": 7772, + "start": 8069, + "end": 8070, "loc": { "start": { - "line": 257, - "column": 13 + "line": 264, + "column": 18 }, "end": { - "line": 257, - "column": 14 + "line": 264, + "column": 19 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -54663,47 +57521,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Your Ping Is: ", - "start": 7772, - "end": 7788, + "value": "data", + "start": 8070, + "end": 8074, "loc": { "start": { - "line": 257, - "column": 14 + "line": 264, + "column": 19 }, "end": { - "line": 257, - "column": 30 + "line": 264, + "column": 23 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 7789, - "end": 7790, + "start": 8074, + "end": 8075, "loc": { "start": { - "line": 257, - "column": 31 + "line": 264, + "column": 23 }, "end": { - "line": 257, - "column": 32 + "line": 264, + "column": 24 } } }, @@ -54719,23 +57575,23 @@ "postfix": false, "binop": null }, - "value": "ping", - "start": 7791, - "end": 7795, + "value": "id", + "start": 8075, + "end": 8077, "loc": { "start": { - "line": 257, - "column": 33 + "line": 264, + "column": 24 }, "end": { - "line": 257, - "column": 37 + "line": 264, + "column": 26 } } }, { "type": { - "label": ")", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -54743,24 +57599,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7795, - "end": 7796, + "start": 8077, + "end": 8078, "loc": { "start": { - "line": 257, - "column": 37 + "line": 264, + "column": 26 }, "end": { - "line": 257, - "column": 38 + "line": 264, + "column": 27 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -54768,26 +57625,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7798, - "end": 7799, + "start": 8078, + "end": 8079, "loc": { "start": { - "line": 258, - "column": 1 + "line": 264, + "column": 27 }, "end": { - "line": 258, - "column": 2 + "line": 264, + "column": 28 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -54795,23 +57653,24 @@ "postfix": false, "binop": null }, - "start": 7799, - "end": 7800, + "value": "hide", + "start": 8079, + "end": 8083, "loc": { "start": { - "line": 258, - "column": 2 + "line": 264, + "column": 28 }, "end": { - "line": 258, - "column": 3 + "line": 264, + "column": 32 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -54820,23 +57679,22 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 7803, - "end": 7809, + "start": 8083, + "end": 8084, "loc": { "start": { - "line": 260, - "column": 1 + "line": 264, + "column": 32 }, "end": { - "line": 260, - "column": 7 + "line": 264, + "column": 33 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -54844,52 +57702,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 7809, - "end": 7810, + "start": 8084, + "end": 8085, "loc": { "start": { - "line": 260, - "column": 7 + "line": 264, + "column": 33 }, "end": { - "line": 260, - "column": 8 + "line": 264, + "column": 34 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "delete", + "keyword": "delete", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "on", - "start": 7810, - "end": 7812, + "value": "delete", + "start": 8089, + "end": 8095, "loc": { "start": { - "line": 260, - "column": 8 + "line": 265, + "column": 3 }, "end": { - "line": 260, - "column": 10 + "line": 265, + "column": 9 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -54898,24 +57757,25 @@ "postfix": false, "binop": null }, - "start": 7812, - "end": 7813, + "value": "objects", + "start": 8096, + "end": 8103, "loc": { "start": { - "line": 260, + "line": 265, "column": 10 }, "end": { - "line": 260, - "column": 11 + "line": 265, + "column": 17 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -54924,49 +57784,48 @@ "binop": null, "updateContext": null }, - "value": "disconnectedPlayer", - "start": 7813, - "end": 7833, + "start": 8103, + "end": 8104, "loc": { "start": { - "line": 260, - "column": 11 + "line": 265, + "column": 17 }, "end": { - "line": 260, - "column": 31 + "line": 265, + "column": 18 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 7833, - "end": 7834, + "value": "players", + "start": 8104, + "end": 8111, "loc": { "start": { - "line": 260, - "column": 31 + "line": 265, + "column": 18 }, "end": { - "line": 260, - "column": 32 + "line": 265, + "column": 25 } } }, { "type": { - "label": "(", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -54974,18 +57833,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7835, - "end": 7836, + "start": 8111, + "end": 8112, "loc": { "start": { - "line": 260, - "column": 33 + "line": 265, + "column": 25 }, "end": { - "line": 260, - "column": 34 + "line": 265, + "column": 26 } } }, @@ -55002,22 +57862,22 @@ "binop": null }, "value": "data", - "start": 7836, - "end": 7840, + "start": 8112, + "end": 8116, "loc": { "start": { - "line": 260, - "column": 34 + "line": 265, + "column": 26 }, "end": { - "line": 260, - "column": 38 + "line": 265, + "column": 30 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -55025,51 +57885,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 7840, - "end": 7841, - "loc": { - "start": { - "line": 260, - "column": 38 - }, - "end": { - "line": 260, - "column": 39 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "start": 7842, - "end": 7844, + "start": 8116, + "end": 8117, "loc": { "start": { - "line": 260, - "column": 40 + "line": 265, + "column": 30 }, "end": { - "line": 260, - "column": 42 + "line": 265, + "column": 31 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -55078,48 +57913,49 @@ "postfix": false, "binop": null }, - "start": 7845, - "end": 7846, + "value": "id", + "start": 8117, + "end": 8119, "loc": { "start": { - "line": 260, - "column": 43 + "line": 265, + "column": 31 }, "end": { - "line": 260, - "column": 44 + "line": 265, + "column": 33 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "console", - "start": 7849, - "end": 7856, + "start": 8119, + "end": 8120, "loc": { "start": { - "line": 261, - "column": 2 + "line": 265, + "column": 33 }, "end": { - "line": 261, - "column": 9 + "line": 265, + "column": 34 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -55127,27 +57963,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 7856, - "end": 7857, + "start": 8123, + "end": 8124, "loc": { "start": { - "line": 261, - "column": 9 + "line": 266, + "column": 2 }, "end": { - "line": 261, - "column": 10 + "line": 266, + "column": 3 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -55155,25 +57990,24 @@ "postfix": false, "binop": null }, - "value": "log", - "start": 7857, - "end": 7860, + "start": 8126, + "end": 8127, "loc": { "start": { - "line": 261, - "column": 10 + "line": 267, + "column": 1 }, "end": { - "line": 261, - "column": 13 + "line": 267, + "column": 2 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -55181,22 +58015,22 @@ "postfix": false, "binop": null }, - "start": 7860, - "end": 7861, + "start": 8127, + "end": 8128, "loc": { "start": { - "line": 261, - "column": 13 + "line": 267, + "column": 2 }, "end": { - "line": 261, - "column": 14 + "line": 267, + "column": 3 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -55204,47 +58038,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Player ", - "start": 7861, - "end": 7870, + "value": "socket", + "start": 8131, + "end": 8137, "loc": { "start": { - "line": 261, - "column": 14 + "line": 269, + "column": 1 }, "end": { - "line": 261, - "column": 23 + "line": 269, + "column": 7 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 7871, - "end": 7872, + "start": 8137, + "end": 8138, "loc": { "start": { - "line": 261, - "column": 24 + "line": 269, + "column": 7 }, "end": { - "line": 261, - "column": 25 + "line": 269, + "column": 8 } } }, @@ -55260,49 +58092,48 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 7873, - "end": 7877, + "value": "on", + "start": 8138, + "end": 8140, "loc": { "start": { - "line": 261, - "column": 26 + "line": 269, + "column": 8 }, "end": { - "line": 261, - "column": 30 + "line": 269, + "column": 10 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 7877, - "end": 7878, + "start": 8140, + "end": 8141, "loc": { "start": { - "line": 261, - "column": 30 + "line": 269, + "column": 10 }, "end": { - "line": 261, - "column": 31 + "line": 269, + "column": 11 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -55310,73 +58141,71 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "id", - "start": 7878, - "end": 7880, + "value": "serverSendDisconnect", + "start": 8141, + "end": 8163, "loc": { "start": { - "line": 261, - "column": 31 + "line": 269, + "column": 11 }, "end": { - "line": 261, + "line": 269, "column": 33 } } }, { "type": { - "label": "+/-", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 7881, - "end": 7882, + "start": 8163, + "end": 8164, "loc": { "start": { - "line": 261, - "column": 34 + "line": 269, + "column": 33 }, "end": { - "line": 261, - "column": 35 + "line": 269, + "column": 34 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": " has disconnected", - "start": 7883, - "end": 7902, + "start": 8165, + "end": 8166, "loc": { "start": { - "line": 261, - "column": 36 + "line": 269, + "column": 35 }, "end": { - "line": 261, - "column": 55 + "line": 269, + "column": 36 } } }, @@ -55392,68 +58221,67 @@ "postfix": false, "binop": null }, - "start": 7902, - "end": 7903, + "start": 8166, + "end": 8167, "loc": { "start": { - "line": 261, - "column": 55 + "line": 269, + "column": 36 }, "end": { - "line": 261, - "column": 56 + "line": 269, + "column": 37 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "chat", - "start": 7906, - "end": 7910, + "start": 8168, + "end": 8170, "loc": { "start": { - "line": 262, - "column": 2 + "line": 269, + "column": 38 }, "end": { - "line": 262, - "column": 6 + "line": 269, + "column": 40 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 7910, - "end": 7911, + "start": 8171, + "end": 8172, "loc": { "start": { - "line": 262, - "column": 6 + "line": 269, + "column": 41 }, "end": { - "line": 262, - "column": 7 + "line": 269, + "column": 42 } } }, @@ -55469,17 +58297,17 @@ "postfix": false, "binop": null }, - "value": "addSystemLine", - "start": 7911, - "end": 7924, + "value": "quitGame", + "start": 8175, + "end": 8183, "loc": { "start": { - "line": 262, - "column": 7 + "line": 270, + "column": 2 }, "end": { - "line": 262, - "column": 20 + "line": 270, + "column": 10 } } }, @@ -55495,16 +58323,16 @@ "postfix": false, "binop": null }, - "start": 7924, - "end": 7925, + "start": 8183, + "end": 8184, "loc": { "start": { - "line": 262, - "column": 20 + "line": 270, + "column": 10 }, "end": { - "line": 262, - "column": 21 + "line": 270, + "column": 11 } } }, @@ -55521,50 +58349,50 @@ "binop": null, "updateContext": null }, - "value": "Player ", - "start": 7925, - "end": 7934, + "value": "The game has ended.", + "start": 8184, + "end": 8205, "loc": { "start": { - "line": 262, - "column": 21 + "line": 270, + "column": 11 }, "end": { - "line": 262, - "column": 30 + "line": 270, + "column": 32 } } }, { "type": { - "label": "+/-", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 7935, - "end": 7936, + "start": 8205, + "end": 8206, "loc": { "start": { - "line": 262, - "column": 31 + "line": 270, + "column": 32 }, "end": { - "line": 262, - "column": 32 + "line": 270, + "column": 33 } } }, { "type": { - "label": "name", + "label": "false", + "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -55572,25 +58400,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "objects", - "start": 7937, - "end": 7944, + "value": "false", + "start": 8207, + "end": 8212, "loc": { "start": { - "line": 262, - "column": 33 + "line": 270, + "column": 34 }, "end": { - "line": 262, - "column": 40 + "line": 270, + "column": 39 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -55598,19 +58427,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 7944, - "end": 7945, + "start": 8212, + "end": 8213, "loc": { "start": { - "line": 262, - "column": 40 + "line": 270, + "column": 39 }, "end": { - "line": 262, - "column": 41 + "line": 270, + "column": 40 } } }, @@ -55626,23 +58454,23 @@ "postfix": false, "binop": null }, - "value": "players", - "start": 7945, - "end": 7952, + "value": "hideElement", + "start": 8216, + "end": 8227, "loc": { "start": { - "line": 262, - "column": 41 + "line": 271, + "column": 2 }, "end": { - "line": 262, - "column": 48 + "line": 271, + "column": 13 } } }, { "type": { - "label": "[", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -55650,25 +58478,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 7952, - "end": 7953, + "start": 8227, + "end": 8228, "loc": { "start": { - "line": 262, - "column": 48 + "line": 271, + "column": 13 }, "end": { - "line": 262, - "column": 49 + "line": 271, + "column": 14 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -55676,25 +58503,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 7953, - "end": 7957, + "value": "winner-panel", + "start": 8228, + "end": 8242, "loc": { "start": { - "line": 262, - "column": 49 + "line": 271, + "column": 14 }, "end": { - "line": 262, - "column": 53 + "line": 271, + "column": 28 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -55702,27 +58530,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 7957, - "end": 7958, + "start": 8242, + "end": 8243, "loc": { "start": { - "line": 262, - "column": 53 + "line": 271, + "column": 28 }, "end": { - "line": 262, - "column": 54 + "line": 271, + "column": 29 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -55730,23 +58557,22 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 7958, - "end": 7960, + "start": 8245, + "end": 8246, "loc": { "start": { - "line": 262, - "column": 54 + "line": 272, + "column": 1 }, "end": { - "line": 262, - "column": 56 + "line": 272, + "column": 2 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -55754,45 +58580,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 7960, - "end": 7961, + "start": 8246, + "end": 8247, "loc": { "start": { - "line": 262, - "column": 56 + "line": 272, + "column": 2 }, "end": { - "line": 262, - "column": 57 + "line": 272, + "column": 3 } } }, { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7961, - "end": 7962, + "type": "CommentLine", + "value": " Errors on join", + "start": 8250, + "end": 8267, "loc": { "start": { - "line": 262, - "column": 57 + "line": 274, + "column": 1 }, "end": { - "line": 262, - "column": 58 + "line": 274, + "column": 18 } } }, @@ -55808,50 +58623,49 @@ "postfix": false, "binop": null }, - "value": "name", - "start": 7962, - "end": 7966, + "value": "socket", + "start": 8269, + "end": 8275, "loc": { "start": { - "line": 262, - "column": 58 + "line": 275, + "column": 1 }, "end": { - "line": 262, - "column": 62 + "line": 275, + "column": 7 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 7967, - "end": 7968, + "start": 8275, + "end": 8276, "loc": { "start": { - "line": 262, - "column": 63 + "line": 275, + "column": 7 }, "end": { - "line": 262, - "column": 64 + "line": 275, + "column": 8 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -55859,28 +58673,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": " has disconnected", - "start": 7969, - "end": 7988, + "value": "on", + "start": 8276, + "end": 8278, "loc": { "start": { - "line": 262, - "column": 65 + "line": 275, + "column": 8 }, "end": { - "line": 262, - "column": 84 + "line": 275, + "column": 10 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -55888,25 +58701,24 @@ "postfix": false, "binop": null }, - "start": 7988, - "end": 7989, + "start": 8278, + "end": 8279, "loc": { "start": { - "line": 262, - "column": 84 + "line": 275, + "column": 10 }, "end": { - "line": 262, - "column": 85 + "line": 275, + "column": 11 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -55915,49 +58727,50 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 7992, - "end": 7994, + "value": "connectionError", + "start": 8279, + "end": 8296, "loc": { "start": { - "line": 263, - "column": 2 + "line": 275, + "column": 11 }, "end": { - "line": 263, - "column": 4 + "line": 275, + "column": 28 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7995, - "end": 7996, + "start": 8296, + "end": 8297, "loc": { "start": { - "line": 263, - "column": 5 + "line": 275, + "column": 28 }, "end": { - "line": 263, - "column": 6 + "line": 275, + "column": 29 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -55966,51 +58779,50 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 7996, - "end": 8003, + "start": 8298, + "end": 8299, "loc": { "start": { - "line": 263, - "column": 6 + "line": 275, + "column": 30 }, "end": { - "line": 263, - "column": 13 + "line": 275, + "column": 31 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8003, - "end": 8004, + "value": "data", + "start": 8299, + "end": 8303, "loc": { "start": { - "line": 263, - "column": 13 + "line": 275, + "column": 31 }, "end": { - "line": 263, - "column": 14 + "line": 275, + "column": 35 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -56018,25 +58830,24 @@ "postfix": false, "binop": null }, - "value": "players", - "start": 8004, - "end": 8011, + "start": 8303, + "end": 8304, "loc": { "start": { - "line": 263, - "column": 14 + "line": 275, + "column": 35 }, "end": { - "line": 263, - "column": 21 + "line": 275, + "column": 36 } } }, { "type": { - "label": "[", + "label": "=>", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -56045,23 +58856,23 @@ "binop": null, "updateContext": null }, - "start": 8011, - "end": 8012, + "start": 8305, + "end": 8307, "loc": { "start": { - "line": 263, - "column": 21 + "line": 275, + "column": 37 }, "end": { - "line": 263, - "column": 22 + "line": 275, + "column": 39 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -56070,130 +58881,127 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 8012, - "end": 8016, + "start": 8308, + "end": 8309, "loc": { "start": { - "line": 263, - "column": 22 + "line": 275, + "column": 40 }, "end": { - "line": 263, - "column": 26 + "line": 275, + "column": 41 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8016, - "end": 8017, + "value": "socket", + "start": 8312, + "end": 8318, "loc": { "start": { - "line": 263, - "column": 26 + "line": 276, + "column": 2 }, "end": { - "line": 263, - "column": 27 + "line": 276, + "column": 8 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "id", - "start": 8017, - "end": 8019, + "start": 8318, + "end": 8319, "loc": { "start": { - "line": 263, - "column": 27 + "line": 276, + "column": 8 }, "end": { - "line": 263, - "column": 29 + "line": 276, + "column": 9 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8019, - "end": 8020, + "value": "disconnect", + "start": 8319, + "end": 8329, "loc": { "start": { - "line": 263, - "column": 29 + "line": 276, + "column": 9 }, "end": { - "line": 263, - "column": 30 + "line": 276, + "column": 19 } } }, { "type": { - "label": "==/!=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "!==", - "start": 8021, - "end": 8024, + "start": 8329, + "end": 8330, "loc": { "start": { - "line": 263, - "column": 31 + "line": 276, + "column": 19 }, "end": { - "line": 263, - "column": 34 + "line": 276, + "column": 20 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -56201,25 +59009,24 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 8025, - "end": 8034, + "start": 8330, + "end": 8331, "loc": { "start": { - "line": 263, - "column": 35 + "line": 276, + "column": 20 }, "end": { - "line": 263, - "column": 44 + "line": 276, + "column": 21 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -56227,22 +59034,23 @@ "postfix": false, "binop": null }, - "start": 8034, - "end": 8035, + "value": "quitGame", + "start": 8334, + "end": 8342, "loc": { "start": { - "line": 263, - "column": 44 + "line": 277, + "column": 2 }, "end": { - "line": 263, - "column": 45 + "line": 277, + "column": 10 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -56252,16 +59060,16 @@ "postfix": false, "binop": null }, - "start": 8036, - "end": 8037, + "start": 8342, + "end": 8343, "loc": { "start": { - "line": 263, - "column": 46 + "line": 277, + "column": 10 }, "end": { - "line": 263, - "column": 47 + "line": 277, + "column": 11 } } }, @@ -56277,17 +59085,17 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 8041, - "end": 8048, + "value": "data", + "start": 8343, + "end": 8347, "loc": { "start": { - "line": 264, - "column": 3 + "line": 277, + "column": 11 }, "end": { - "line": 264, - "column": 10 + "line": 277, + "column": 15 } } }, @@ -56304,16 +59112,16 @@ "binop": null, "updateContext": null }, - "start": 8048, - "end": 8049, + "start": 8347, + "end": 8348, "loc": { "start": { - "line": 264, - "column": 10 + "line": 277, + "column": 15 }, "end": { - "line": 264, - "column": 11 + "line": 277, + "column": 16 } } }, @@ -56329,25 +59137,25 @@ "postfix": false, "binop": null }, - "value": "players", - "start": 8049, - "end": 8056, + "value": "msg", + "start": 8348, + "end": 8351, "loc": { "start": { - "line": 264, - "column": 11 + "line": 277, + "column": 16 }, "end": { - "line": 264, - "column": 18 + "line": 277, + "column": 19 } } }, { "type": { - "label": "[", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -56356,22 +59164,23 @@ "binop": null, "updateContext": null }, - "start": 8056, - "end": 8057, + "start": 8351, + "end": 8352, "loc": { "start": { - "line": 264, - "column": 18 + "line": 277, + "column": 19 }, "end": { - "line": 264, - "column": 19 + "line": 277, + "column": 20 } } }, { "type": { - "label": "name", + "label": "true", + "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -56379,25 +59188,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 8057, - "end": 8061, + "value": "true", + "start": 8353, + "end": 8357, "loc": { "start": { - "line": 264, - "column": 19 + "line": 277, + "column": 21 }, "end": { - "line": 264, - "column": 23 + "line": 277, + "column": 25 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -56405,27 +59215,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8061, - "end": 8062, + "start": 8357, + "end": 8358, "loc": { "start": { - "line": 264, - "column": 23 + "line": 277, + "column": 25 }, "end": { - "line": 264, - "column": 24 + "line": 277, + "column": 26 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -56433,23 +59242,22 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 8062, - "end": 8064, + "start": 8360, + "end": 8361, "loc": { "start": { - "line": 264, - "column": 24 + "line": 278, + "column": 1 }, "end": { - "line": 264, - "column": 26 + "line": 278, + "column": 2 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -56457,25 +59265,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8064, - "end": 8065, + "start": 8361, + "end": 8362, "loc": { "start": { - "line": 264, - "column": 26 + "line": 278, + "column": 2 }, "end": { - "line": 264, - "column": 27 + "line": 278, + "column": 3 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -56483,25 +59290,41 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8065, - "end": 8066, + "start": 8363, + "end": 8364, "loc": { "start": { - "line": 264, - "column": 27 + "line": 279, + "column": 0 }, "end": { - "line": 264, - "column": 28 + "line": 279, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Sets up socket information transfer listeners.\n * Run in setupSocket().\n * @param {*} chat The chat client instance to be used for notifications\n ", + "start": 8366, + "end": 8521, + "loc": { + "start": { + "line": 281, + "column": 0 + }, + "end": { + "line": 285, + "column": 3 } } }, { "type": { - "label": "name", + "label": "function", + "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -56511,24 +59334,24 @@ "postfix": false, "binop": null }, - "value": "hide", - "start": 8066, - "end": 8070, + "value": "function", + "start": 8522, + "end": 8530, "loc": { "start": { - "line": 264, - "column": 28 + "line": 286, + "column": 0 }, "end": { - "line": 264, - "column": 32 + "line": 286, + "column": 8 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -56537,24 +59360,25 @@ "postfix": false, "binop": null }, - "start": 8070, - "end": 8071, + "value": "setupSocketInfo", + "start": 8531, + "end": 8546, "loc": { "start": { - "line": 264, - "column": 32 + "line": 286, + "column": 9 }, "end": { - "line": 264, - "column": 33 + "line": 286, + "column": 24 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -56562,52 +59386,50 @@ "postfix": false, "binop": null }, - "start": 8071, - "end": 8072, + "start": 8547, + "end": 8548, "loc": { "start": { - "line": 264, - "column": 33 + "line": 286, + "column": 25 }, "end": { - "line": 264, - "column": 34 + "line": 286, + "column": 26 } } }, { "type": { - "label": "delete", - "keyword": "delete", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "delete", - "start": 8076, - "end": 8082, + "value": "chat", + "start": 8548, + "end": 8552, "loc": { "start": { - "line": 265, - "column": 3 + "line": 286, + "column": 26 }, "end": { - "line": 265, - "column": 9 + "line": 286, + "column": 30 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -56615,43 +59437,57 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 8083, - "end": 8090, + "start": 8552, + "end": 8553, "loc": { "start": { - "line": 265, - "column": 10 + "line": 286, + "column": 30 }, "end": { - "line": 265, - "column": 17 + "line": 286, + "column": 31 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8090, - "end": 8091, + "start": 8554, + "end": 8555, "loc": { "start": { - "line": 265, - "column": 17 + "line": 286, + "column": 32 }, "end": { - "line": 265, - "column": 18 + "line": 286, + "column": 33 + } + } + }, + { + "type": "CommentLine", + "value": " Chat system receiver", + "start": 8557, + "end": 8580, + "loc": { + "start": { + "line": 287, + "column": 1 + }, + "end": { + "line": 287, + "column": 24 } } }, @@ -56667,25 +59503,25 @@ "postfix": false, "binop": null }, - "value": "players", - "start": 8091, - "end": 8098, + "value": "socket", + "start": 8582, + "end": 8588, "loc": { "start": { - "line": 265, - "column": 18 + "line": 288, + "column": 1 }, "end": { - "line": 265, - "column": 25 + "line": 288, + "column": 7 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -56694,16 +59530,16 @@ "binop": null, "updateContext": null }, - "start": 8098, - "end": 8099, + "start": 8588, + "end": 8589, "loc": { "start": { - "line": 265, - "column": 25 + "line": 288, + "column": 7 }, "end": { - "line": 265, - "column": 26 + "line": 288, + "column": 8 } } }, @@ -56719,49 +59555,48 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 8099, - "end": 8103, + "value": "on", + "start": 8589, + "end": 8591, "loc": { "start": { - "line": 265, - "column": 26 + "line": 288, + "column": 8 }, "end": { - "line": 265, - "column": 30 + "line": 288, + "column": 10 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8103, - "end": 8104, + "start": 8591, + "end": 8592, "loc": { "start": { - "line": 265, - "column": 30 + "line": 288, + "column": 10 }, "end": { - "line": 265, - "column": 31 + "line": 288, + "column": 11 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -56769,26 +59604,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "id", - "start": 8104, - "end": 8106, + "value": "serverMSG", + "start": 8592, + "end": 8603, "loc": { "start": { - "line": 265, - "column": 31 + "line": 288, + "column": 11 }, "end": { - "line": 265, - "column": 33 + "line": 288, + "column": 22 } } }, { "type": { - "label": "]", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -56798,24 +59634,24 @@ "binop": null, "updateContext": null }, - "start": 8106, - "end": 8107, + "start": 8603, + "end": 8604, "loc": { "start": { - "line": 265, - "column": 33 + "line": 288, + "column": 22 }, "end": { - "line": 265, - "column": 34 + "line": 288, + "column": 23 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -56823,49 +59659,51 @@ "postfix": false, "binop": null }, - "start": 8110, - "end": 8111, + "value": "data", + "start": 8605, + "end": 8609, "loc": { "start": { - "line": 266, - "column": 2 + "line": 288, + "column": 24 }, "end": { - "line": 266, - "column": 3 + "line": 288, + "column": 28 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8113, - "end": 8114, + "start": 8610, + "end": 8612, "loc": { "start": { - "line": 267, - "column": 1 + "line": 288, + "column": 29 }, "end": { - "line": 267, - "column": 2 + "line": 288, + "column": 31 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -56873,16 +59711,16 @@ "postfix": false, "binop": null }, - "start": 8114, - "end": 8115, + "start": 8613, + "end": 8614, "loc": { "start": { - "line": 267, - "column": 2 + "line": 288, + "column": 32 }, "end": { - "line": 267, - "column": 3 + "line": 288, + "column": 33 } } }, @@ -56898,17 +59736,17 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 8118, - "end": 8124, + "value": "chat", + "start": 8617, + "end": 8621, "loc": { "start": { - "line": 269, - "column": 1 + "line": 289, + "column": 2 }, "end": { - "line": 269, - "column": 7 + "line": 289, + "column": 6 } } }, @@ -56925,16 +59763,16 @@ "binop": null, "updateContext": null }, - "start": 8124, - "end": 8125, + "start": 8621, + "end": 8622, "loc": { "start": { - "line": 269, - "column": 7 + "line": 289, + "column": 6 }, "end": { - "line": 269, - "column": 8 + "line": 289, + "column": 7 } } }, @@ -56950,17 +59788,17 @@ "postfix": false, "binop": null }, - "value": "on", - "start": 8125, - "end": 8127, + "value": "addSystemLine", + "start": 8622, + "end": 8635, "loc": { "start": { - "line": 269, - "column": 8 + "line": 289, + "column": 7 }, "end": { - "line": 269, - "column": 10 + "line": 289, + "column": 20 } } }, @@ -56976,22 +59814,22 @@ "postfix": false, "binop": null }, - "start": 8127, - "end": 8128, + "start": 8635, + "end": 8636, "loc": { "start": { - "line": 269, - "column": 10 + "line": 289, + "column": 20 }, "end": { - "line": 269, - "column": 11 + "line": 289, + "column": 21 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -56999,54 +59837,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "serverSendDisconnect", - "start": 8128, - "end": 8150, + "value": "data", + "start": 8636, + "end": 8640, "loc": { "start": { - "line": 269, - "column": 11 + "line": 289, + "column": 21 }, "end": { - "line": 269, - "column": 33 + "line": 289, + "column": 25 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8150, - "end": 8151, + "start": 8640, + "end": 8641, "loc": { "start": { - "line": 269, - "column": 33 + "line": 289, + "column": 25 }, "end": { - "line": 269, - "column": 34 + "line": 289, + "column": 26 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -57054,16 +59890,16 @@ "postfix": false, "binop": null }, - "start": 8152, - "end": 8153, + "start": 8643, + "end": 8644, "loc": { "start": { - "line": 269, - "column": 35 + "line": 290, + "column": 1 }, "end": { - "line": 269, - "column": 36 + "line": 290, + "column": 2 } } }, @@ -57079,67 +59915,68 @@ "postfix": false, "binop": null }, - "start": 8153, - "end": 8154, + "start": 8644, + "end": 8645, "loc": { "start": { - "line": 269, - "column": 36 + "line": 290, + "column": 2 }, "end": { - "line": 269, - "column": 37 + "line": 290, + "column": 3 } } }, { "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8155, - "end": 8157, + "value": "socket", + "start": 8648, + "end": 8654, "loc": { "start": { - "line": 269, - "column": 38 + "line": 292, + "column": 1 }, "end": { - "line": 269, - "column": 40 + "line": 292, + "column": 7 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8158, - "end": 8159, + "start": 8654, + "end": 8655, "loc": { "start": { - "line": 269, - "column": 41 + "line": 292, + "column": 7 }, "end": { - "line": 269, - "column": 42 + "line": 292, + "column": 8 } } }, @@ -57155,16 +59992,16 @@ "postfix": false, "binop": null }, - "value": "quitGame", - "start": 8162, - "end": 8170, + "value": "on", + "start": 8655, + "end": 8657, "loc": { "start": { - "line": 270, - "column": 2 + "line": 292, + "column": 8 }, "end": { - "line": 270, + "line": 292, "column": 10 } } @@ -57181,15 +60018,15 @@ "postfix": false, "binop": null }, - "start": 8170, - "end": 8171, + "start": 8657, + "end": 8658, "loc": { "start": { - "line": 270, + "line": 292, "column": 10 }, "end": { - "line": 270, + "line": 292, "column": 11 } } @@ -57207,17 +60044,17 @@ "binop": null, "updateContext": null }, - "value": "The game has ended.", - "start": 8171, - "end": 8192, + "value": "serverSendPlayerChat", + "start": 8658, + "end": 8680, "loc": { "start": { - "line": 270, + "line": 292, "column": 11 }, "end": { - "line": 270, - "column": 32 + "line": 292, + "column": 33 } } }, @@ -57234,23 +60071,22 @@ "binop": null, "updateContext": null }, - "start": 8192, - "end": 8193, + "start": 8680, + "end": 8681, "loc": { "start": { - "line": 270, - "column": 32 + "line": 292, + "column": 33 }, "end": { - "line": 270, - "column": 33 + "line": 292, + "column": 34 } } }, { "type": { - "label": "false", - "keyword": "false", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -57258,52 +60094,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "false", - "start": 8194, - "end": 8199, + "value": "data", + "start": 8682, + "end": 8686, "loc": { "start": { - "line": 270, - "column": 34 + "line": 292, + "column": 35 }, "end": { - "line": 270, + "line": 292, "column": 39 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8199, - "end": 8200, + "start": 8687, + "end": 8689, "loc": { "start": { - "line": 270, - "column": 39 + "line": 292, + "column": 40 }, "end": { - "line": 270, - "column": 40 + "line": 292, + "column": 42 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -57312,24 +60148,23 @@ "postfix": false, "binop": null }, - "value": "hideElement", - "start": 8203, - "end": 8214, + "start": 8690, + "end": 8691, "loc": { "start": { - "line": 271, - "column": 2 + "line": 292, + "column": 43 }, "end": { - "line": 271, - "column": 13 + "line": 292, + "column": 44 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -57338,24 +60173,25 @@ "postfix": false, "binop": null }, - "start": 8214, - "end": 8215, + "value": "chat", + "start": 8694, + "end": 8698, "loc": { "start": { - "line": 271, - "column": 13 + "line": 293, + "column": 2 }, "end": { - "line": 271, - "column": 14 + "line": 293, + "column": 6 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -57364,25 +60200,24 @@ "binop": null, "updateContext": null }, - "value": "winner-panel", - "start": 8215, - "end": 8229, + "start": 8698, + "end": 8699, "loc": { "start": { - "line": 271, - "column": 14 + "line": 293, + "column": 6 }, "end": { - "line": 271, - "column": 28 + "line": 293, + "column": 7 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -57390,24 +60225,25 @@ "postfix": false, "binop": null }, - "start": 8229, - "end": 8230, + "value": "addChatLine", + "start": 8699, + "end": 8710, "loc": { "start": { - "line": 271, - "column": 28 + "line": 293, + "column": 7 }, "end": { - "line": 271, - "column": 29 + "line": 293, + "column": 18 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -57415,24 +60251,24 @@ "postfix": false, "binop": null }, - "start": 8232, - "end": 8233, + "start": 8710, + "end": 8711, "loc": { "start": { - "line": 272, - "column": 1 + "line": 293, + "column": 18 }, "end": { - "line": 272, - "column": 2 + "line": 293, + "column": 19 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -57440,32 +60276,43 @@ "postfix": false, "binop": null }, - "start": 8233, - "end": 8234, + "value": "data", + "start": 8711, + "end": 8715, "loc": { "start": { - "line": 272, - "column": 2 + "line": 293, + "column": 19 }, "end": { - "line": 272, - "column": 3 + "line": 293, + "column": 23 } } }, { - "type": "CommentLine", - "value": " Errors on join", - "start": 8237, - "end": 8254, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8715, + "end": 8716, "loc": { "start": { - "line": 274, - "column": 1 + "line": 293, + "column": 23 }, "end": { - "line": 274, - "column": 18 + "line": 293, + "column": 24 } } }, @@ -57481,24 +60328,24 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 8256, - "end": 8262, + "value": "sender", + "start": 8716, + "end": 8722, "loc": { "start": { - "line": 275, - "column": 1 + "line": 293, + "column": 24 }, "end": { - "line": 275, - "column": 7 + "line": 293, + "column": 30 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -57508,16 +60355,16 @@ "binop": null, "updateContext": null }, - "start": 8262, - "end": 8263, + "start": 8722, + "end": 8723, "loc": { "start": { - "line": 275, - "column": 7 + "line": 293, + "column": 30 }, "end": { - "line": 275, - "column": 8 + "line": 293, + "column": 31 } } }, @@ -57533,48 +60380,49 @@ "postfix": false, "binop": null }, - "value": "on", - "start": 8263, - "end": 8265, + "value": "data", + "start": 8724, + "end": 8728, "loc": { "start": { - "line": 275, - "column": 8 + "line": 293, + "column": 32 }, "end": { - "line": 275, - "column": 10 + "line": 293, + "column": 36 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8265, - "end": 8266, + "start": 8728, + "end": 8729, "loc": { "start": { - "line": 275, - "column": 10 + "line": 293, + "column": 36 }, "end": { - "line": 275, - "column": 11 + "line": 293, + "column": 37 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -57582,20 +60430,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "connectionError", - "start": 8266, - "end": 8283, + "value": "message", + "start": 8729, + "end": 8736, "loc": { "start": { - "line": 275, - "column": 11 + "line": 293, + "column": 37 }, "end": { - "line": 275, - "column": 28 + "line": 293, + "column": 44 } } }, @@ -57612,47 +60459,23 @@ "binop": null, "updateContext": null }, - "start": 8283, - "end": 8284, - "loc": { - "start": { - "line": 275, - "column": 28 - }, - "end": { - "line": 275, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8285, - "end": 8286, + "start": 8736, + "end": 8737, "loc": { "start": { - "line": 275, - "column": 30 + "line": 293, + "column": 44 }, "end": { - "line": 275, - "column": 31 + "line": 293, + "column": 45 } } }, { "type": { - "label": "name", + "label": "false", + "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -57660,19 +60483,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 8286, - "end": 8290, + "value": "false", + "start": 8738, + "end": 8743, "loc": { "start": { - "line": 275, - "column": 31 + "line": 293, + "column": 46 }, "end": { - "line": 275, - "column": 35 + "line": 293, + "column": 51 } } }, @@ -57688,50 +60512,49 @@ "postfix": false, "binop": null }, - "start": 8290, - "end": 8291, + "start": 8743, + "end": 8744, "loc": { "start": { - "line": 275, - "column": 35 + "line": 293, + "column": 51 }, "end": { - "line": 275, - "column": 36 + "line": 293, + "column": 52 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8292, - "end": 8294, + "start": 8746, + "end": 8747, "loc": { "start": { - "line": 275, - "column": 37 + "line": 294, + "column": 1 }, "end": { - "line": 275, - "column": 39 + "line": 294, + "column": 2 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -57739,16 +60562,16 @@ "postfix": false, "binop": null }, - "start": 8295, - "end": 8296, + "start": 8747, + "end": 8748, "loc": { "start": { - "line": 275, - "column": 40 + "line": 294, + "column": 2 }, "end": { - "line": 275, - "column": 41 + "line": 294, + "column": 3 } } }, @@ -57765,16 +60588,16 @@ "binop": null }, "value": "socket", - "start": 8299, - "end": 8305, + "start": 8751, + "end": 8757, "loc": { "start": { - "line": 276, - "column": 2 + "line": 296, + "column": 1 }, "end": { - "line": 276, - "column": 8 + "line": 296, + "column": 7 } } }, @@ -57791,16 +60614,16 @@ "binop": null, "updateContext": null }, - "start": 8305, - "end": 8306, + "start": 8757, + "end": 8758, "loc": { "start": { - "line": 276, - "column": 8 + "line": 296, + "column": 7 }, "end": { - "line": 276, - "column": 9 + "line": 296, + "column": 8 } } }, @@ -57816,17 +60639,17 @@ "postfix": false, "binop": null }, - "value": "disconnect", - "start": 8306, - "end": 8316, + "value": "on", + "start": 8758, + "end": 8760, "loc": { "start": { - "line": 276, - "column": 9 + "line": 296, + "column": 8 }, "end": { - "line": 276, - "column": 19 + "line": 296, + "column": 10 } } }, @@ -57842,47 +60665,22 @@ "postfix": false, "binop": null }, - "start": 8316, - "end": 8317, - "loc": { - "start": { - "line": 276, - "column": 19 - }, - "end": { - "line": 276, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8317, - "end": 8318, + "start": 8760, + "end": 8761, "loc": { "start": { - "line": 276, - "column": 20 + "line": 296, + "column": 10 }, "end": { - "line": 276, - "column": 21 + "line": 296, + "column": 11 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -57890,44 +60688,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "quitGame", - "start": 8321, - "end": 8329, + "value": "serverSendLoginMessage", + "start": 8761, + "end": 8785, "loc": { "start": { - "line": 277, - "column": 2 + "line": 296, + "column": 11 }, "end": { - "line": 277, - "column": 10 + "line": 296, + "column": 35 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8329, - "end": 8330, + "start": 8785, + "end": 8786, "loc": { "start": { - "line": 277, - "column": 10 + "line": 296, + "column": 35 }, "end": { - "line": 277, - "column": 11 + "line": 296, + "column": 36 } } }, @@ -57944,23 +60744,23 @@ "binop": null }, "value": "data", - "start": 8330, - "end": 8334, + "start": 8787, + "end": 8791, "loc": { "start": { - "line": 277, - "column": 11 + "line": 296, + "column": 37 }, "end": { - "line": 277, - "column": 15 + "line": 296, + "column": 41 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -57970,23 +60770,23 @@ "binop": null, "updateContext": null }, - "start": 8334, - "end": 8335, + "start": 8792, + "end": 8794, "loc": { "start": { - "line": 277, - "column": 15 + "line": 296, + "column": 42 }, "end": { - "line": 277, - "column": 16 + "line": 296, + "column": 44 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -57995,52 +60795,50 @@ "postfix": false, "binop": null }, - "value": "msg", - "start": 8335, - "end": 8338, + "start": 8795, + "end": 8796, "loc": { "start": { - "line": 277, - "column": 16 + "line": 296, + "column": 45 }, "end": { - "line": 277, - "column": 19 + "line": 296, + "column": 46 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8338, - "end": 8339, + "value": "chat", + "start": 8799, + "end": 8803, "loc": { "start": { - "line": 277, - "column": 19 + "line": 297, + "column": 2 }, "end": { - "line": 277, - "column": 20 + "line": 297, + "column": 6 } } }, { "type": { - "label": "true", - "keyword": "true", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -58049,25 +60847,24 @@ "binop": null, "updateContext": null }, - "value": "true", - "start": 8340, - "end": 8344, + "start": 8803, + "end": 8804, "loc": { "start": { - "line": 277, - "column": 21 + "line": 297, + "column": 6 }, "end": { - "line": 277, - "column": 25 + "line": 297, + "column": 7 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -58075,24 +60872,25 @@ "postfix": false, "binop": null }, - "start": 8344, - "end": 8345, + "value": "addLoginMessage", + "start": 8804, + "end": 8819, "loc": { "start": { - "line": 277, - "column": 25 + "line": 297, + "column": 7 }, "end": { - "line": 277, - "column": 26 + "line": 297, + "column": 22 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -58100,24 +60898,24 @@ "postfix": false, "binop": null }, - "start": 8347, - "end": 8348, + "start": 8819, + "end": 8820, "loc": { "start": { - "line": 278, - "column": 1 + "line": 297, + "column": 22 }, "end": { - "line": 278, - "column": 2 + "line": 297, + "column": 23 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -58125,22 +60923,23 @@ "postfix": false, "binop": null }, - "start": 8348, - "end": 8349, + "value": "data", + "start": 8820, + "end": 8824, "loc": { "start": { - "line": 278, - "column": 2 + "line": 297, + "column": 23 }, "end": { - "line": 278, - "column": 3 + "line": 297, + "column": 27 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -58148,41 +60947,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8350, - "end": 8351, - "loc": { - "start": { - "line": 279, - "column": 0 - }, - "end": { - "line": 279, - "column": 1 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sets up socket information transfer listeners.\n * Run in setupSocket().\n * @param {*} chat The chat client instance to be used for notifications\n ", - "start": 8353, - "end": 8508, + "start": 8824, + "end": 8825, "loc": { "start": { - "line": 281, - "column": 0 + "line": 297, + "column": 27 }, "end": { - "line": 285, - "column": 3 + "line": 297, + "column": 28 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -58192,76 +60975,79 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 8509, - "end": 8517, + "value": "sender", + "start": 8825, + "end": 8831, "loc": { "start": { - "line": 286, - "column": 0 + "line": 297, + "column": 28 }, "end": { - "line": 286, - "column": 8 + "line": 297, + "column": 34 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setupSocketInfo", - "start": 8518, - "end": 8533, + "start": 8831, + "end": 8832, "loc": { "start": { - "line": 286, - "column": 9 + "line": 297, + "column": 34 }, "end": { - "line": 286, - "column": 24 + "line": 297, + "column": 35 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "false", + "keyword": "false", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8534, - "end": 8535, + "value": "false", + "start": 8833, + "end": 8838, "loc": { "start": { - "line": 286, - "column": 25 + "line": 297, + "column": 36 }, "end": { - "line": 286, - "column": 26 + "line": 297, + "column": 41 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -58269,23 +61055,22 @@ "postfix": false, "binop": null }, - "value": "chat", - "start": 8535, - "end": 8539, + "start": 8838, + "end": 8839, "loc": { "start": { - "line": 286, - "column": 26 + "line": 297, + "column": 41 }, "end": { - "line": 286, - "column": 30 + "line": 297, + "column": 42 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -58295,24 +61080,24 @@ "postfix": false, "binop": null }, - "start": 8539, - "end": 8540, + "start": 8841, + "end": 8842, "loc": { "start": { - "line": 286, - "column": 30 + "line": 298, + "column": 1 }, "end": { - "line": 286, - "column": 31 + "line": 298, + "column": 2 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -58320,32 +61105,32 @@ "postfix": false, "binop": null }, - "start": 8541, - "end": 8542, + "start": 8842, + "end": 8843, "loc": { "start": { - "line": 286, - "column": 32 + "line": 298, + "column": 2 }, "end": { - "line": 286, - "column": 33 + "line": 298, + "column": 3 } } }, { "type": "CommentLine", - "value": " Chat system receiver", - "start": 8544, - "end": 8567, + "value": " Receive information about room players", + "start": 8846, + "end": 8887, "loc": { "start": { - "line": 287, + "line": 300, "column": 1 }, "end": { - "line": 287, - "column": 24 + "line": 300, + "column": 42 } } }, @@ -58362,15 +61147,15 @@ "binop": null }, "value": "socket", - "start": 8569, - "end": 8575, + "start": 8889, + "end": 8895, "loc": { "start": { - "line": 288, + "line": 301, "column": 1 }, "end": { - "line": 288, + "line": 301, "column": 7 } } @@ -58388,15 +61173,15 @@ "binop": null, "updateContext": null }, - "start": 8575, - "end": 8576, + "start": 8895, + "end": 8896, "loc": { "start": { - "line": 288, + "line": 301, "column": 7 }, "end": { - "line": 288, + "line": 301, "column": 8 } } @@ -58414,15 +61199,15 @@ "binop": null }, "value": "on", - "start": 8576, - "end": 8578, + "start": 8896, + "end": 8898, "loc": { "start": { - "line": 288, + "line": 301, "column": 8 }, "end": { - "line": 288, + "line": 301, "column": 10 } } @@ -58439,15 +61224,15 @@ "postfix": false, "binop": null }, - "start": 8578, - "end": 8579, + "start": 8898, + "end": 8899, "loc": { "start": { - "line": 288, + "line": 301, "column": 10 }, "end": { - "line": 288, + "line": 301, "column": 11 } } @@ -58465,17 +61250,17 @@ "binop": null, "updateContext": null }, - "value": "serverMSG", - "start": 8579, - "end": 8590, + "value": "roomInfo", + "start": 8899, + "end": 8909, "loc": { "start": { - "line": 288, + "line": 301, "column": 11 }, "end": { - "line": 288, - "column": 22 + "line": 301, + "column": 21 } } }, @@ -58492,16 +61277,41 @@ "binop": null, "updateContext": null }, - "start": 8590, - "end": 8591, + "start": 8909, + "end": 8910, "loc": { "start": { - "line": 288, - "column": 22 + "line": 301, + "column": 21 }, "end": { - "line": 288, + "line": 301, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8911, + "end": 8912, + "loc": { + "start": { + "line": 301, "column": 23 + }, + "end": { + "line": 301, + "column": 24 } } }, @@ -58518,74 +61328,74 @@ "binop": null }, "value": "data", - "start": 8592, - "end": 8596, + "start": 8912, + "end": 8916, "loc": { "start": { - "line": 288, + "line": 301, "column": 24 }, "end": { - "line": 288, + "line": 301, "column": 28 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8597, - "end": 8599, + "start": 8916, + "end": 8917, "loc": { "start": { - "line": 288, - "column": 29 + "line": 301, + "column": 28 }, "end": { - "line": 288, - "column": 31 + "line": 301, + "column": 29 } } }, { "type": { - "label": "{", + "label": "=>", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8600, - "end": 8601, + "start": 8918, + "end": 8920, "loc": { "start": { - "line": 288, - "column": 32 + "line": 301, + "column": 30 }, "end": { - "line": 288, - "column": 33 + "line": 301, + "column": 32 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -58594,43 +61404,32 @@ "postfix": false, "binop": null }, - "value": "chat", - "start": 8604, - "end": 8608, + "start": 8921, + "end": 8922, "loc": { "start": { - "line": 289, - "column": 2 + "line": 301, + "column": 33 }, "end": { - "line": 289, - "column": 6 + "line": 301, + "column": 34 } } }, { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8608, - "end": 8609, + "type": "CommentLine", + "value": " Update lobby info. Pass to app.js", + "start": 8925, + "end": 8961, "loc": { "start": { - "line": 289, - "column": 6 + "line": 302, + "column": 2 }, "end": { - "line": 289, - "column": 7 + "line": 302, + "column": 38 } } }, @@ -58646,17 +61445,17 @@ "postfix": false, "binop": null }, - "value": "addSystemLine", - "start": 8609, - "end": 8622, + "value": "updateLobby", + "start": 8964, + "end": 8975, "loc": { "start": { - "line": 289, - "column": 7 + "line": 303, + "column": 2 }, "end": { - "line": 289, - "column": 20 + "line": 303, + "column": 13 } } }, @@ -58672,16 +61471,16 @@ "postfix": false, "binop": null }, - "start": 8622, - "end": 8623, + "start": 8975, + "end": 8976, "loc": { "start": { - "line": 289, - "column": 20 + "line": 303, + "column": 13 }, "end": { - "line": 289, - "column": 21 + "line": 303, + "column": 14 } } }, @@ -58698,16 +61497,16 @@ "binop": null }, "value": "data", - "start": 8623, - "end": 8627, + "start": 8976, + "end": 8980, "loc": { "start": { - "line": 289, - "column": 21 + "line": 303, + "column": 14 }, "end": { - "line": 289, - "column": 25 + "line": 303, + "column": 18 } } }, @@ -58723,16 +61522,64 @@ "postfix": false, "binop": null }, - "start": 8627, - "end": 8628, + "start": 8980, + "end": 8981, "loc": { "start": { - "line": 289, - "column": 25 + "line": 303, + "column": 18 }, "end": { - "line": 289, - "column": 26 + "line": 303, + "column": 19 + } + } + }, + { + "type": "CommentLine", + "value": " if(GLOBAL.DEBUG) {", + "start": 8985, + "end": 9006, + "loc": { + "start": { + "line": 305, + "column": 2 + }, + "end": { + "line": 305, + "column": 23 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(\"rcvd: \",data);", + "start": 9009, + "end": 9043, + "loc": { + "start": { + "line": 306, + "column": 2 + }, + "end": { + "line": 306, + "column": 36 + } + } + }, + { + "type": "CommentLine", + "value": " }", + "start": 9046, + "end": 9050, + "loc": { + "start": { + "line": 307, + "column": 2 + }, + "end": { + "line": 307, + "column": 6 } } }, @@ -58748,15 +61595,15 @@ "postfix": false, "binop": null }, - "start": 8630, - "end": 8631, + "start": 9052, + "end": 9053, "loc": { "start": { - "line": 290, + "line": 308, "column": 1 }, "end": { - "line": 290, + "line": 308, "column": 2 } } @@ -58773,15 +61620,15 @@ "postfix": false, "binop": null }, - "start": 8631, - "end": 8632, + "start": 9053, + "end": 9054, "loc": { "start": { - "line": 290, + "line": 308, "column": 2 }, "end": { - "line": 290, + "line": 308, "column": 3 } } @@ -58799,15 +61646,15 @@ "binop": null }, "value": "socket", - "start": 8635, - "end": 8641, + "start": 9057, + "end": 9063, "loc": { "start": { - "line": 292, + "line": 310, "column": 1 }, "end": { - "line": 292, + "line": 310, "column": 7 } } @@ -58825,15 +61672,15 @@ "binop": null, "updateContext": null }, - "start": 8641, - "end": 8642, + "start": 9063, + "end": 9064, "loc": { "start": { - "line": 292, + "line": 310, "column": 7 }, "end": { - "line": 292, + "line": 310, "column": 8 } } @@ -58851,15 +61698,15 @@ "binop": null }, "value": "on", - "start": 8642, - "end": 8644, + "start": 9064, + "end": 9066, "loc": { "start": { - "line": 292, + "line": 310, "column": 8 }, "end": { - "line": 292, + "line": 310, "column": 10 } } @@ -58876,15 +61723,15 @@ "postfix": false, "binop": null }, - "start": 8644, - "end": 8645, + "start": 9066, + "end": 9067, "loc": { "start": { - "line": 292, + "line": 310, "column": 10 }, "end": { - "line": 292, + "line": 310, "column": 11 } } @@ -58902,17 +61749,17 @@ "binop": null, "updateContext": null }, - "value": "serverSendPlayerChat", - "start": 8645, - "end": 8667, + "value": "serverSendStartGame", + "start": 9067, + "end": 9088, "loc": { "start": { - "line": 292, + "line": 310, "column": 11 }, "end": { - "line": 292, - "column": 33 + "line": 310, + "column": 32 } } }, @@ -58929,16 +61776,41 @@ "binop": null, "updateContext": null }, - "start": 8667, - "end": 8668, + "start": 9088, + "end": 9089, "loc": { "start": { - "line": 292, - "column": 33 + "line": 310, + "column": 32 }, "end": { - "line": 292, + "line": 310, + "column": 33 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9090, + "end": 9091, + "loc": { + "start": { + "line": 310, "column": 34 + }, + "end": { + "line": 310, + "column": 35 } } }, @@ -58955,16 +61827,41 @@ "binop": null }, "value": "data", - "start": 8669, - "end": 8673, + "start": 9091, + "end": 9095, "loc": { "start": { - "line": 292, + "line": 310, "column": 35 }, "end": { - "line": 292, + "line": 310, + "column": 39 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9095, + "end": 9096, + "loc": { + "start": { + "line": 310, "column": 39 + }, + "end": { + "line": 310, + "column": 40 } } }, @@ -58981,16 +61878,16 @@ "binop": null, "updateContext": null }, - "start": 8674, - "end": 8676, + "start": 9097, + "end": 9099, "loc": { "start": { - "line": 292, - "column": 40 + "line": 310, + "column": 41 }, "end": { - "line": 292, - "column": 42 + "line": 310, + "column": 43 } } }, @@ -59006,16 +61903,16 @@ "postfix": false, "binop": null }, - "start": 8677, - "end": 8678, + "start": 9100, + "end": 9101, "loc": { "start": { - "line": 292, - "column": 43 + "line": 310, + "column": 44 }, "end": { - "line": 292, - "column": 44 + "line": 310, + "column": 45 } } }, @@ -59031,17 +61928,17 @@ "postfix": false, "binop": null }, - "value": "chat", - "start": 8681, - "end": 8685, + "value": "console", + "start": 9104, + "end": 9111, "loc": { "start": { - "line": 293, + "line": 311, "column": 2 }, "end": { - "line": 293, - "column": 6 + "line": 311, + "column": 9 } } }, @@ -59058,16 +61955,16 @@ "binop": null, "updateContext": null }, - "start": 8685, - "end": 8686, + "start": 9111, + "end": 9112, "loc": { "start": { - "line": 293, - "column": 6 + "line": 311, + "column": 9 }, "end": { - "line": 293, - "column": 7 + "line": 311, + "column": 10 } } }, @@ -59083,17 +61980,17 @@ "postfix": false, "binop": null }, - "value": "addChatLine", - "start": 8686, - "end": 8697, + "value": "log", + "start": 9112, + "end": 9115, "loc": { "start": { - "line": 293, - "column": 7 + "line": 311, + "column": 10 }, "end": { - "line": 293, - "column": 18 + "line": 311, + "column": 13 } } }, @@ -59109,22 +62006,22 @@ "postfix": false, "binop": null }, - "start": 8697, - "end": 8698, + "start": 9115, + "end": 9116, "loc": { "start": { - "line": 293, - "column": 18 + "line": 311, + "column": 13 }, "end": { - "line": 293, - "column": 19 + "line": 311, + "column": 14 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -59132,25 +62029,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 8698, - "end": 8702, + "value": "game has started", + "start": 9116, + "end": 9134, "loc": { "start": { - "line": 293, - "column": 19 + "line": 311, + "column": 14 }, "end": { - "line": 293, - "column": 23 + "line": 311, + "column": 32 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -59158,19 +62056,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8702, - "end": 8703, + "start": 9134, + "end": 9135, "loc": { "start": { - "line": 293, - "column": 23 + "line": 311, + "column": 32 }, "end": { - "line": 293, - "column": 24 + "line": 311, + "column": 33 } } }, @@ -59186,49 +62083,49 @@ "postfix": false, "binop": null }, - "value": "sender", - "start": 8703, - "end": 8709, + "value": "startGame", + "start": 9138, + "end": 9147, "loc": { "start": { - "line": 293, - "column": 24 + "line": 312, + "column": 2 }, "end": { - "line": 293, - "column": 30 + "line": 312, + "column": 11 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8709, - "end": 8710, + "start": 9147, + "end": 9148, "loc": { "start": { - "line": 293, - "column": 30 + "line": 312, + "column": 11 }, "end": { - "line": 293, - "column": 31 + "line": 312, + "column": 12 } } }, { "type": { - "label": "name", + "label": "false", + "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -59236,26 +62133,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 8711, - "end": 8715, + "value": "false", + "start": 9148, + "end": 9153, "loc": { "start": { - "line": 293, - "column": 32 + "line": 312, + "column": 12 }, "end": { - "line": 293, - "column": 36 + "line": 312, + "column": 17 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -59265,16 +62163,16 @@ "binop": null, "updateContext": null }, - "start": 8715, - "end": 8716, + "start": 9153, + "end": 9154, "loc": { "start": { - "line": 293, - "column": 36 + "line": 312, + "column": 17 }, "end": { - "line": 293, - "column": 37 + "line": 312, + "column": 18 } } }, @@ -59290,24 +62188,24 @@ "postfix": false, "binop": null }, - "value": "message", - "start": 8716, - "end": 8723, + "value": "data", + "start": 9155, + "end": 9159, "loc": { "start": { - "line": 293, - "column": 37 + "line": 312, + "column": 19 }, "end": { - "line": 293, - "column": 44 + "line": 312, + "column": 23 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -59317,23 +62215,22 @@ "binop": null, "updateContext": null }, - "start": 8723, - "end": 8724, + "start": 9159, + "end": 9160, "loc": { "start": { - "line": 293, - "column": 44 + "line": 312, + "column": 23 }, "end": { - "line": 293, - "column": 45 + "line": 312, + "column": 24 } } }, { "type": { - "label": "false", - "keyword": "false", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -59341,20 +62238,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "false", - "start": 8725, - "end": 8730, + "value": "teams", + "start": 9160, + "end": 9165, "loc": { "start": { - "line": 293, - "column": 46 + "line": 312, + "column": 24 }, "end": { - "line": 293, - "column": 51 + "line": 312, + "column": 29 } } }, @@ -59370,16 +62266,16 @@ "postfix": false, "binop": null }, - "start": 8730, - "end": 8731, + "start": 9165, + "end": 9166, "loc": { "start": { - "line": 293, - "column": 51 + "line": 312, + "column": 29 }, "end": { - "line": 293, - "column": 52 + "line": 312, + "column": 30 } } }, @@ -59395,15 +62291,15 @@ "postfix": false, "binop": null }, - "start": 8733, - "end": 8734, + "start": 9168, + "end": 9169, "loc": { "start": { - "line": 294, + "line": 313, "column": 1 }, "end": { - "line": 294, + "line": 313, "column": 2 } } @@ -59420,15 +62316,15 @@ "postfix": false, "binop": null }, - "start": 8734, - "end": 8735, + "start": 9169, + "end": 9170, "loc": { "start": { - "line": 294, + "line": 313, "column": 2 }, "end": { - "line": 294, + "line": 313, "column": 3 } } @@ -59446,15 +62342,15 @@ "binop": null }, "value": "socket", - "start": 8738, - "end": 8744, + "start": 9173, + "end": 9179, "loc": { "start": { - "line": 296, + "line": 315, "column": 1 }, "end": { - "line": 296, + "line": 315, "column": 7 } } @@ -59472,15 +62368,15 @@ "binop": null, "updateContext": null }, - "start": 8744, - "end": 8745, + "start": 9179, + "end": 9180, "loc": { "start": { - "line": 296, + "line": 315, "column": 7 }, "end": { - "line": 296, + "line": 315, "column": 8 } } @@ -59498,15 +62394,15 @@ "binop": null }, "value": "on", - "start": 8745, - "end": 8747, + "start": 9180, + "end": 9182, "loc": { "start": { - "line": 296, + "line": 315, "column": 8 }, "end": { - "line": 296, + "line": 315, "column": 10 } } @@ -59523,15 +62419,15 @@ "postfix": false, "binop": null }, - "start": 8747, - "end": 8748, + "start": 9182, + "end": 9183, "loc": { "start": { - "line": 296, + "line": 315, "column": 10 }, "end": { - "line": 296, + "line": 315, "column": 11 } } @@ -59549,17 +62445,17 @@ "binop": null, "updateContext": null }, - "value": "serverSendLoginMessage", - "start": 8748, - "end": 8772, + "value": "levelUp", + "start": 9183, + "end": 9192, "loc": { "start": { - "line": 296, + "line": 315, "column": 11 }, "end": { - "line": 296, - "column": 35 + "line": 315, + "column": 20 } } }, @@ -59576,16 +62472,41 @@ "binop": null, "updateContext": null }, - "start": 8772, - "end": 8773, + "start": 9192, + "end": 9193, "loc": { "start": { - "line": 296, - "column": 35 + "line": 315, + "column": 20 }, "end": { - "line": 296, - "column": 36 + "line": 315, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9194, + "end": 9195, + "loc": { + "start": { + "line": 315, + "column": 22 + }, + "end": { + "line": 315, + "column": 23 } } }, @@ -59602,16 +62523,41 @@ "binop": null }, "value": "data", - "start": 8774, - "end": 8778, + "start": 9195, + "end": 9199, "loc": { "start": { - "line": 296, - "column": 37 + "line": 315, + "column": 23 }, "end": { - "line": 296, - "column": 41 + "line": 315, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9199, + "end": 9200, + "loc": { + "start": { + "line": 315, + "column": 27 + }, + "end": { + "line": 315, + "column": 28 } } }, @@ -59628,16 +62574,16 @@ "binop": null, "updateContext": null }, - "start": 8779, - "end": 8781, + "start": 9201, + "end": 9203, "loc": { "start": { - "line": 296, - "column": 42 + "line": 315, + "column": 29 }, "end": { - "line": 296, - "column": 44 + "line": 315, + "column": 31 } } }, @@ -59653,16 +62599,16 @@ "postfix": false, "binop": null }, - "start": 8782, - "end": 8783, + "start": 9204, + "end": 9205, "loc": { "start": { - "line": 296, - "column": 45 + "line": 315, + "column": 32 }, "end": { - "line": 296, - "column": 46 + "line": 315, + "column": 33 } } }, @@ -59678,17 +62624,17 @@ "postfix": false, "binop": null }, - "value": "chat", - "start": 8786, - "end": 8790, + "value": "console", + "start": 9208, + "end": 9215, "loc": { "start": { - "line": 297, + "line": 316, "column": 2 }, "end": { - "line": 297, - "column": 6 + "line": 316, + "column": 9 } } }, @@ -59705,16 +62651,16 @@ "binop": null, "updateContext": null }, - "start": 8790, - "end": 8791, + "start": 9215, + "end": 9216, "loc": { "start": { - "line": 297, - "column": 6 + "line": 316, + "column": 9 }, "end": { - "line": 297, - "column": 7 + "line": 316, + "column": 10 } } }, @@ -59730,17 +62676,17 @@ "postfix": false, "binop": null }, - "value": "addLoginMessage", - "start": 8791, - "end": 8806, + "value": "log", + "start": 9216, + "end": 9219, "loc": { "start": { - "line": 297, - "column": 7 + "line": 316, + "column": 10 }, "end": { - "line": 297, - "column": 22 + "line": 316, + "column": 13 } } }, @@ -59756,22 +62702,22 @@ "postfix": false, "binop": null }, - "start": 8806, - "end": 8807, + "start": 9219, + "end": 9220, "loc": { "start": { - "line": 297, - "column": 22 + "line": 316, + "column": 13 }, "end": { - "line": 297, - "column": 23 + "line": 316, + "column": 14 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -59779,45 +62725,47 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 8807, - "end": 8811, + "value": "You LEVELED UP! Level: ", + "start": 9220, + "end": 9245, "loc": { "start": { - "line": 297, - "column": 23 + "line": 316, + "column": 14 }, "end": { - "line": 297, - "column": 27 + "line": 316, + "column": 39 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 8811, - "end": 8812, + "value": "+", + "start": 9246, + "end": 9247, "loc": { "start": { - "line": 297, - "column": 27 + "line": 316, + "column": 40 }, "end": { - "line": 297, - "column": 28 + "line": 316, + "column": 41 } } }, @@ -59833,24 +62781,24 @@ "postfix": false, "binop": null }, - "value": "sender", - "start": 8812, - "end": 8818, + "value": "data", + "start": 9248, + "end": 9252, "loc": { "start": { - "line": 297, - "column": 28 + "line": 316, + "column": 42 }, "end": { - "line": 297, - "column": 34 + "line": 316, + "column": 46 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -59860,23 +62808,22 @@ "binop": null, "updateContext": null }, - "start": 8818, - "end": 8819, + "start": 9252, + "end": 9253, "loc": { "start": { - "line": 297, - "column": 34 + "line": 316, + "column": 46 }, "end": { - "line": 297, - "column": 35 + "line": 316, + "column": 47 } } }, { "type": { - "label": "false", - "keyword": "false", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -59884,20 +62831,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "false", - "start": 8820, - "end": 8825, + "value": "newLevel", + "start": 9253, + "end": 9261, "loc": { "start": { - "line": 297, - "column": 36 + "line": 316, + "column": 47 }, "end": { - "line": 297, - "column": 41 + "line": 316, + "column": 55 } } }, @@ -59913,16 +62859,16 @@ "postfix": false, "binop": null }, - "start": 8825, - "end": 8826, + "start": 9261, + "end": 9262, "loc": { "start": { - "line": 297, - "column": 41 + "line": 316, + "column": 55 }, "end": { - "line": 297, - "column": 42 + "line": 316, + "column": 56 } } }, @@ -59938,15 +62884,15 @@ "postfix": false, "binop": null }, - "start": 8828, - "end": 8829, + "start": 9264, + "end": 9265, "loc": { "start": { - "line": 298, + "line": 317, "column": 1 }, "end": { - "line": 298, + "line": 317, "column": 2 } } @@ -59963,32 +62909,32 @@ "postfix": false, "binop": null }, - "start": 8829, - "end": 8830, + "start": 9265, + "end": 9266, "loc": { "start": { - "line": 298, + "line": 317, "column": 2 }, "end": { - "line": 298, + "line": 317, "column": 3 } } }, { "type": "CommentLine", - "value": " Receive information about room players", - "start": 8833, - "end": 8874, + "value": " Respawn", + "start": 9269, + "end": 9279, "loc": { "start": { - "line": 300, + "line": 319, "column": 1 }, "end": { - "line": 300, - "column": 42 + "line": 319, + "column": 11 } } }, @@ -60005,15 +62951,15 @@ "binop": null }, "value": "socket", - "start": 8876, - "end": 8882, + "start": 9281, + "end": 9287, "loc": { "start": { - "line": 301, + "line": 320, "column": 1 }, "end": { - "line": 301, + "line": 320, "column": 7 } } @@ -60031,15 +62977,15 @@ "binop": null, "updateContext": null }, - "start": 8882, - "end": 8883, + "start": 9287, + "end": 9288, "loc": { "start": { - "line": 301, + "line": 320, "column": 7 }, "end": { - "line": 301, + "line": 320, "column": 8 } } @@ -60057,15 +63003,15 @@ "binop": null }, "value": "on", - "start": 8883, - "end": 8885, + "start": 9288, + "end": 9290, "loc": { "start": { - "line": 301, + "line": 320, "column": 8 }, "end": { - "line": 301, + "line": 320, "column": 10 } } @@ -60082,15 +63028,15 @@ "postfix": false, "binop": null }, - "start": 8885, - "end": 8886, + "start": 9290, + "end": 9291, "loc": { "start": { - "line": 301, + "line": 320, "column": 10 }, "end": { - "line": 301, + "line": 320, "column": 11 } } @@ -60108,17 +63054,17 @@ "binop": null, "updateContext": null }, - "value": "roomInfo", - "start": 8886, - "end": 8896, + "value": "serverSendPlayerDeath", + "start": 9291, + "end": 9314, "loc": { "start": { - "line": 301, + "line": 320, "column": 11 }, "end": { - "line": 301, - "column": 21 + "line": 320, + "column": 34 } } }, @@ -60135,16 +63081,16 @@ "binop": null, "updateContext": null }, - "start": 8896, - "end": 8897, + "start": 9314, + "end": 9315, "loc": { "start": { - "line": 301, - "column": 21 + "line": 320, + "column": 34 }, "end": { - "line": 301, - "column": 22 + "line": 320, + "column": 35 } } }, @@ -60160,16 +63106,16 @@ "postfix": false, "binop": null }, - "start": 8898, - "end": 8899, + "start": 9316, + "end": 9317, "loc": { "start": { - "line": 301, - "column": 23 + "line": 320, + "column": 36 }, "end": { - "line": 301, - "column": 24 + "line": 320, + "column": 37 } } }, @@ -60186,16 +63132,16 @@ "binop": null }, "value": "data", - "start": 8899, - "end": 8903, + "start": 9317, + "end": 9321, "loc": { "start": { - "line": 301, - "column": 24 + "line": 320, + "column": 37 }, "end": { - "line": 301, - "column": 28 + "line": 320, + "column": 41 } } }, @@ -60211,16 +63157,16 @@ "postfix": false, "binop": null }, - "start": 8903, - "end": 8904, + "start": 9321, + "end": 9322, "loc": { "start": { - "line": 301, - "column": 28 + "line": 320, + "column": 41 }, "end": { - "line": 301, - "column": 29 + "line": 320, + "column": 42 } } }, @@ -60234,26 +63180,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null, + "updateContext": null + }, + "start": 9323, + "end": 9325, + "loc": { + "start": { + "line": 320, + "column": 43 + }, + "end": { + "line": 320, + "column": 45 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null }, - "start": 8905, - "end": 8907, + "start": 9326, + "end": 9327, "loc": { "start": { - "line": 301, - "column": 30 + "line": 320, + "column": 46 }, "end": { - "line": 301, - "column": 32 + "line": 320, + "column": 47 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -60262,32 +63233,43 @@ "postfix": false, "binop": null }, - "start": 8908, - "end": 8909, + "value": "console", + "start": 9330, + "end": 9337, "loc": { "start": { - "line": 301, - "column": 33 + "line": 321, + "column": 2 }, "end": { - "line": 301, - "column": 34 + "line": 321, + "column": 9 } } }, { - "type": "CommentLine", - "value": " Update lobby info. Pass to app.js", - "start": 8912, - "end": 8948, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9337, + "end": 9338, "loc": { "start": { - "line": 302, - "column": 2 + "line": 321, + "column": 9 }, "end": { - "line": 302, - "column": 38 + "line": 321, + "column": 10 } } }, @@ -60303,16 +63285,16 @@ "postfix": false, "binop": null }, - "value": "updateLobby", - "start": 8951, - "end": 8962, + "value": "log", + "start": 9338, + "end": 9341, "loc": { "start": { - "line": 303, - "column": 2 + "line": 321, + "column": 10 }, "end": { - "line": 303, + "line": 321, "column": 13 } } @@ -60329,22 +63311,22 @@ "postfix": false, "binop": null }, - "start": 8962, - "end": 8963, + "start": 9341, + "end": 9342, "loc": { "start": { - "line": 303, + "line": 321, "column": 13 }, "end": { - "line": 303, + "line": 321, "column": 14 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -60352,19 +63334,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 8963, - "end": 8967, + "value": "You Died!", + "start": 9342, + "end": 9353, "loc": { "start": { - "line": 303, + "line": 321, "column": 14 }, "end": { - "line": 303, - "column": 18 + "line": 321, + "column": 25 } } }, @@ -60380,72 +63363,76 @@ "postfix": false, "binop": null }, - "start": 8967, - "end": 8968, - "loc": { - "start": { - "line": 303, - "column": 18 - }, - "end": { - "line": 303, - "column": 19 - } - } - }, - { - "type": "CommentLine", - "value": " if(GLOBAL.DEBUG) {", - "start": 8972, - "end": 8993, + "start": 9353, + "end": 9354, "loc": { "start": { - "line": 305, - "column": 2 + "line": 321, + "column": 25 }, "end": { - "line": 305, - "column": 23 + "line": 321, + "column": 26 } } }, { - "type": "CommentLine", - "value": " console.log(\"rcvd: \",data);", - "start": 8996, - "end": 9030, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "objects", + "start": 9357, + "end": 9364, "loc": { "start": { - "line": 306, + "line": 322, "column": 2 }, "end": { - "line": 306, - "column": 36 + "line": 322, + "column": 9 } } }, { - "type": "CommentLine", - "value": " }", - "start": 9033, - "end": 9037, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9364, + "end": 9365, "loc": { "start": { - "line": 307, - "column": 2 + "line": 322, + "column": 9 }, "end": { - "line": 307, - "column": 6 + "line": 322, + "column": 10 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -60453,41 +63440,43 @@ "postfix": false, "binop": null }, - "start": 9039, - "end": 9040, + "value": "players", + "start": 9365, + "end": 9372, "loc": { "start": { - "line": 308, - "column": 1 + "line": 322, + "column": 10 }, "end": { - "line": 308, - "column": 2 + "line": 322, + "column": 17 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9040, - "end": 9041, + "start": 9372, + "end": 9373, "loc": { "start": { - "line": 308, - "column": 2 + "line": 322, + "column": 17 }, "end": { - "line": 308, - "column": 3 + "line": 322, + "column": 18 } } }, @@ -60504,16 +63493,16 @@ "binop": null }, "value": "socket", - "start": 9044, - "end": 9050, + "start": 9373, + "end": 9379, "loc": { "start": { - "line": 310, - "column": 1 + "line": 322, + "column": 18 }, "end": { - "line": 310, - "column": 7 + "line": 322, + "column": 24 } } }, @@ -60530,16 +63519,16 @@ "binop": null, "updateContext": null }, - "start": 9050, - "end": 9051, + "start": 9379, + "end": 9380, "loc": { "start": { - "line": 310, - "column": 7 + "line": 322, + "column": 24 }, "end": { - "line": 310, - "column": 8 + "line": 322, + "column": 25 } } }, @@ -60555,50 +63544,51 @@ "postfix": false, "binop": null }, - "value": "on", - "start": 9051, - "end": 9053, + "value": "id", + "start": 9380, + "end": 9382, "loc": { "start": { - "line": 310, - "column": 8 + "line": 322, + "column": 25 }, "end": { - "line": 310, - "column": 10 + "line": 322, + "column": 27 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "]", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9053, - "end": 9054, + "start": 9382, + "end": 9383, "loc": { "start": { - "line": 310, - "column": 10 + "line": 322, + "column": 27 }, "end": { - "line": 310, - "column": 11 + "line": 322, + "column": 28 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -60607,43 +63597,42 @@ "binop": null, "updateContext": null }, - "value": "serverSendStartGame", - "start": 9054, - "end": 9075, + "start": 9383, + "end": 9384, "loc": { "start": { - "line": 310, - "column": 11 + "line": 322, + "column": 28 }, "end": { - "line": 310, - "column": 32 + "line": 322, + "column": 29 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9075, - "end": 9076, + "value": "setData", + "start": 9384, + "end": 9391, "loc": { "start": { - "line": 310, - "column": 32 + "line": 322, + "column": 29 }, "end": { - "line": 310, - "column": 33 + "line": 322, + "column": 36 } } }, @@ -60659,16 +63648,16 @@ "postfix": false, "binop": null }, - "start": 9077, - "end": 9078, + "start": 9391, + "end": 9392, "loc": { "start": { - "line": 310, - "column": 34 + "line": 322, + "column": 36 }, "end": { - "line": 310, - "column": 35 + "line": 322, + "column": 37 } } }, @@ -60685,22 +63674,22 @@ "binop": null }, "value": "data", - "start": 9078, - "end": 9082, + "start": 9392, + "end": 9396, "loc": { "start": { - "line": 310, - "column": 35 + "line": 322, + "column": 37 }, "end": { - "line": 310, - "column": 39 + "line": 322, + "column": 41 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -60708,69 +63697,71 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9082, - "end": 9083, + "start": 9396, + "end": 9397, "loc": { "start": { - "line": 310, - "column": 39 + "line": 322, + "column": 41 }, "end": { - "line": 310, - "column": 40 + "line": 322, + "column": 42 } } }, { "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9084, - "end": 9086, + "value": "posX", + "start": 9397, + "end": 9401, "loc": { "start": { - "line": 310, - "column": 41 + "line": 322, + "column": 42 }, "end": { - "line": 310, - "column": 43 + "line": 322, + "column": 46 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9087, - "end": 9088, + "start": 9401, + "end": 9402, "loc": { "start": { - "line": 310, - "column": 44 + "line": 322, + "column": 46 }, "end": { - "line": 310, - "column": 45 + "line": 322, + "column": 47 } } }, @@ -60786,17 +63777,17 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 9091, - "end": 9098, + "value": "data", + "start": 9403, + "end": 9407, "loc": { "start": { - "line": 311, - "column": 2 + "line": 322, + "column": 48 }, "end": { - "line": 311, - "column": 9 + "line": 322, + "column": 52 } } }, @@ -60813,16 +63804,16 @@ "binop": null, "updateContext": null }, - "start": 9098, - "end": 9099, + "start": 9407, + "end": 9408, "loc": { "start": { - "line": 311, - "column": 9 + "line": 322, + "column": 52 }, "end": { - "line": 311, - "column": 10 + "line": 322, + "column": 53 } } }, @@ -60838,48 +63829,49 @@ "postfix": false, "binop": null }, - "value": "log", - "start": 9099, - "end": 9102, + "value": "posY", + "start": 9408, + "end": 9412, "loc": { "start": { - "line": 311, - "column": 10 + "line": 322, + "column": 53 }, "end": { - "line": 311, - "column": 13 + "line": 322, + "column": 57 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9102, - "end": 9103, + "start": 9412, + "end": 9413, "loc": { "start": { - "line": 311, - "column": 13 + "line": 322, + "column": 57 }, "end": { - "line": 311, - "column": 14 + "line": 322, + "column": 58 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -60887,26 +63879,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "game has started", - "start": 9103, - "end": 9121, + "value": "data", + "start": 9414, + "end": 9418, "loc": { "start": { - "line": 311, - "column": 14 + "line": 322, + "column": 59 }, "end": { - "line": 311, - "column": 32 + "line": 322, + "column": 63 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -60914,18 +63905,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9121, - "end": 9122, + "start": 9418, + "end": 9419, "loc": { "start": { - "line": 311, - "column": 32 + "line": 322, + "column": 63 }, "end": { - "line": 311, - "column": 33 + "line": 322, + "column": 64 } } }, @@ -60941,49 +63933,49 @@ "postfix": false, "binop": null }, - "value": "startGame", - "start": 9125, - "end": 9134, + "value": "vx", + "start": 9419, + "end": 9421, "loc": { "start": { - "line": 312, - "column": 2 + "line": 322, + "column": 64 }, "end": { - "line": 312, - "column": 11 + "line": 322, + "column": 66 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9134, - "end": 9135, + "start": 9421, + "end": 9422, "loc": { "start": { - "line": 312, - "column": 11 + "line": 322, + "column": 66 }, "end": { - "line": 312, - "column": 12 + "line": 322, + "column": 67 } } }, { "type": { - "label": "false", - "keyword": "false", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -60991,27 +63983,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "false", - "start": 9135, - "end": 9140, + "value": "data", + "start": 9423, + "end": 9427, "loc": { "start": { - "line": 312, - "column": 12 + "line": 322, + "column": 68 }, "end": { - "line": 312, - "column": 17 + "line": 322, + "column": 72 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -61021,16 +64012,16 @@ "binop": null, "updateContext": null }, - "start": 9140, - "end": 9141, + "start": 9427, + "end": 9428, "loc": { "start": { - "line": 312, - "column": 17 + "line": 322, + "column": 72 }, "end": { - "line": 312, - "column": 18 + "line": 322, + "column": 73 } } }, @@ -61046,23 +64037,23 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 9142, - "end": 9146, + "value": "vy", + "start": 9428, + "end": 9430, "loc": { "start": { - "line": 312, - "column": 19 + "line": 322, + "column": 73 }, "end": { - "line": 312, - "column": 23 + "line": 322, + "column": 75 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -61070,19 +64061,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9146, - "end": 9147, + "start": 9430, + "end": 9431, "loc": { "start": { - "line": 312, - "column": 23 + "line": 322, + "column": 75 }, "end": { - "line": 312, - "column": 24 + "line": 322, + "column": 76 } } }, @@ -61098,48 +64088,23 @@ "postfix": false, "binop": null }, - "value": "teams", - "start": 9147, - "end": 9152, - "loc": { - "start": { - "line": 312, - "column": 24 - }, - "end": { - "line": 312, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9152, - "end": 9153, + "value": "socket", + "start": 9434, + "end": 9440, "loc": { "start": { - "line": 312, - "column": 29 + "line": 323, + "column": 2 }, "end": { - "line": 312, - "column": 30 + "line": 323, + "column": 8 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -61147,26 +64112,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9155, - "end": 9156, + "start": 9440, + "end": 9441, "loc": { "start": { - "line": 313, - "column": 1 + "line": 323, + "column": 8 }, "end": { - "line": 313, - "column": 2 + "line": 323, + "column": 9 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -61174,23 +64140,24 @@ "postfix": false, "binop": null }, - "start": 9156, - "end": 9157, + "value": "emit", + "start": 9441, + "end": 9445, "loc": { "start": { - "line": 313, - "column": 2 + "line": 323, + "column": 9 }, "end": { - "line": 313, - "column": 3 + "line": 323, + "column": 13 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -61199,25 +64166,24 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 9160, - "end": 9166, + "start": 9445, + "end": 9446, "loc": { "start": { - "line": 315, - "column": 1 + "line": 323, + "column": 13 }, "end": { - "line": 315, - "column": 7 + "line": 323, + "column": 14 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -61226,48 +64192,49 @@ "binop": null, "updateContext": null }, - "start": 9166, - "end": 9167, + "value": "verifyPlayerDeath", + "start": 9446, + "end": 9465, "loc": { "start": { - "line": 315, - "column": 7 + "line": 323, + "column": 14 }, "end": { - "line": 315, - "column": 8 + "line": 323, + "column": 33 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "on", - "start": 9167, - "end": 9169, + "start": 9465, + "end": 9466, "loc": { "start": { - "line": 315, - "column": 8 + "line": 323, + "column": 33 }, "end": { - "line": 315, - "column": 10 + "line": 323, + "column": 34 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -61277,22 +64244,22 @@ "postfix": false, "binop": null }, - "start": 9169, - "end": 9170, + "start": 9467, + "end": 9468, "loc": { "start": { - "line": 315, - "column": 10 + "line": 323, + "column": 35 }, "end": { - "line": 315, - "column": 11 + "line": 323, + "column": 36 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -61300,26 +64267,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "levelUp", - "start": 9170, - "end": 9179, + "value": "id", + "start": 9469, + "end": 9471, "loc": { "start": { - "line": 315, - "column": 11 + "line": 323, + "column": 37 }, "end": { - "line": 315, - "column": 20 + "line": 323, + "column": 39 } } }, { "type": { - "label": ",", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -61330,23 +64296,23 @@ "binop": null, "updateContext": null }, - "start": 9179, - "end": 9180, + "start": 9471, + "end": 9472, "loc": { "start": { - "line": 315, - "column": 20 + "line": 323, + "column": 39 }, "end": { - "line": 315, - "column": 21 + "line": 323, + "column": 40 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -61355,50 +64321,51 @@ "postfix": false, "binop": null }, - "start": 9181, - "end": 9182, + "value": "socket", + "start": 9473, + "end": 9479, "loc": { "start": { - "line": 315, - "column": 22 + "line": 323, + "column": 41 }, "end": { - "line": 315, - "column": 23 + "line": 323, + "column": 47 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 9182, - "end": 9186, + "start": 9479, + "end": 9480, "loc": { "start": { - "line": 315, - "column": 23 + "line": 323, + "column": 47 }, "end": { - "line": 315, - "column": 27 + "line": 323, + "column": 48 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -61406,50 +64373,50 @@ "postfix": false, "binop": null }, - "start": 9186, - "end": 9187, + "value": "id", + "start": 9480, + "end": 9482, "loc": { "start": { - "line": 315, - "column": 27 + "line": 323, + "column": 48 }, "end": { - "line": 315, - "column": 28 + "line": 323, + "column": 50 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9188, - "end": 9190, + "start": 9483, + "end": 9484, "loc": { "start": { - "line": 315, - "column": 29 + "line": 323, + "column": 51 }, "end": { - "line": 315, - "column": 31 + "line": 323, + "column": 52 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -61457,16 +64424,16 @@ "postfix": false, "binop": null }, - "start": 9191, - "end": 9192, + "start": 9484, + "end": 9485, "loc": { "start": { - "line": 315, - "column": 32 + "line": 323, + "column": 52 }, "end": { - "line": 315, - "column": 33 + "line": 323, + "column": 53 } } }, @@ -61483,15 +64450,15 @@ "binop": null }, "value": "console", - "start": 9195, - "end": 9202, + "start": 9488, + "end": 9495, "loc": { "start": { - "line": 316, + "line": 324, "column": 2 }, "end": { - "line": 316, + "line": 324, "column": 9 } } @@ -61509,15 +64476,15 @@ "binop": null, "updateContext": null }, - "start": 9202, - "end": 9203, + "start": 9495, + "end": 9496, "loc": { "start": { - "line": 316, + "line": 324, "column": 9 }, "end": { - "line": 316, + "line": 324, "column": 10 } } @@ -61535,15 +64502,15 @@ "binop": null }, "value": "log", - "start": 9203, - "end": 9206, + "start": 9496, + "end": 9499, "loc": { "start": { - "line": 316, + "line": 324, "column": 10 }, "end": { - "line": 316, + "line": 324, "column": 13 } } @@ -61560,22 +64527,22 @@ "postfix": false, "binop": null }, - "start": 9206, - "end": 9207, + "start": 9499, + "end": 9500, "loc": { "start": { - "line": 316, + "line": 324, "column": 13 }, "end": { - "line": 316, + "line": 324, "column": 14 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -61583,47 +64550,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "You LEVELED UP! Level: ", - "start": 9207, - "end": 9232, + "value": "objects", + "start": 9500, + "end": 9507, "loc": { "start": { - "line": 316, + "line": 324, "column": 14 }, "end": { - "line": 316, - "column": 39 + "line": 324, + "column": 21 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 9233, - "end": 9234, + "start": 9507, + "end": 9508, "loc": { "start": { - "line": 316, - "column": 40 + "line": 324, + "column": 21 }, "end": { - "line": 316, - "column": 41 + "line": 324, + "column": 22 } } }, @@ -61639,25 +64604,25 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 9235, - "end": 9239, + "value": "players", + "start": 9508, + "end": 9515, "loc": { "start": { - "line": 316, - "column": 42 + "line": 324, + "column": 22 }, "end": { - "line": 316, - "column": 46 + "line": 324, + "column": 29 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -61666,16 +64631,16 @@ "binop": null, "updateContext": null }, - "start": 9239, - "end": 9240, + "start": 9515, + "end": 9516, "loc": { "start": { - "line": 316, - "column": 46 + "line": 324, + "column": 29 }, "end": { - "line": 316, - "column": 47 + "line": 324, + "column": 30 } } }, @@ -61691,23 +64656,23 @@ "postfix": false, "binop": null }, - "value": "newLevel", - "start": 9240, - "end": 9248, + "value": "socket", + "start": 9516, + "end": 9522, "loc": { "start": { - "line": 316, - "column": 47 + "line": 324, + "column": 30 }, "end": { - "line": 316, - "column": 55 + "line": 324, + "column": 36 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -61715,24 +64680,51 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9522, + "end": 9523, + "loc": { + "start": { + "line": 324, + "column": 36 + }, + "end": { + "line": 324, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null }, - "start": 9248, - "end": 9249, + "value": "id", + "start": 9523, + "end": 9525, "loc": { "start": { - "line": 316, - "column": 55 + "line": 324, + "column": 37 }, "end": { - "line": 316, - "column": 56 + "line": 324, + "column": 39 } } }, { "type": { - "label": "}", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -61740,18 +64732,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9251, - "end": 9252, + "start": 9525, + "end": 9526, "loc": { "start": { - "line": 317, - "column": 1 + "line": 324, + "column": 39 }, "end": { - "line": 317, - "column": 2 + "line": 324, + "column": 40 } } }, @@ -61767,39 +64760,49 @@ "postfix": false, "binop": null }, - "start": 9252, - "end": 9253, + "start": 9526, + "end": 9527, "loc": { "start": { - "line": 317, - "column": 2 + "line": 324, + "column": 40 }, "end": { - "line": 317, - "column": 3 + "line": 324, + "column": 41 } } }, { - "type": "CommentLine", - "value": " Respawn", - "start": 9256, - "end": 9266, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateAtomList", + "start": 9530, + "end": 9544, "loc": { "start": { - "line": 319, - "column": 1 + "line": 325, + "column": 2 }, "end": { - "line": 319, - "column": 11 + "line": 325, + "column": 16 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -61808,23 +64811,22 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 9268, - "end": 9274, + "start": 9544, + "end": 9545, "loc": { "start": { - "line": 320, - "column": 1 + "line": 325, + "column": 16 }, "end": { - "line": 320, - "column": 7 + "line": 325, + "column": 17 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -61832,27 +64834,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9274, - "end": 9275, + "start": 9545, + "end": 9546, "loc": { "start": { - "line": 320, - "column": 7 + "line": 325, + "column": 17 }, "end": { - "line": 320, - "column": 8 + "line": 325, + "column": 18 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -61860,25 +64861,24 @@ "postfix": false, "binop": null }, - "value": "on", - "start": 9275, - "end": 9277, + "start": 9548, + "end": 9549, "loc": { "start": { - "line": 320, - "column": 8 + "line": 326, + "column": 1 }, "end": { - "line": 320, - "column": 10 + "line": 326, + "column": 2 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -61886,22 +64886,38 @@ "postfix": false, "binop": null }, - "start": 9277, - "end": 9278, + "start": 9549, + "end": 9550, "loc": { "start": { - "line": 320, - "column": 10 + "line": 326, + "column": 2 }, "end": { - "line": 320, - "column": 11 + "line": 326, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Another player died", + "start": 9553, + "end": 9575, + "loc": { + "start": { + "line": 328, + "column": 1 + }, + "end": { + "line": 328, + "column": 23 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -61909,27 +64925,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "serverSendPlayerDeath", - "start": 9278, - "end": 9301, + "value": "socket", + "start": 9577, + "end": 9583, "loc": { "start": { - "line": 320, - "column": 11 + "line": 329, + "column": 1 }, "end": { - "line": 320, - "column": 34 + "line": 329, + "column": 7 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -61939,23 +64954,23 @@ "binop": null, "updateContext": null }, - "start": 9301, - "end": 9302, + "start": 9583, + "end": 9584, "loc": { "start": { - "line": 320, - "column": 34 + "line": 329, + "column": 7 }, "end": { - "line": 320, - "column": 35 + "line": 329, + "column": 8 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -61964,23 +64979,24 @@ "postfix": false, "binop": null }, - "start": 9303, - "end": 9304, + "value": "on", + "start": 9584, + "end": 9586, "loc": { "start": { - "line": 320, - "column": 36 + "line": 329, + "column": 8 }, "end": { - "line": 320, - "column": 37 + "line": 329, + "column": 10 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -61989,48 +65005,49 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 9304, - "end": 9308, + "start": 9586, + "end": 9587, "loc": { "start": { - "line": 320, - "column": 37 + "line": 329, + "column": 10 }, "end": { - "line": 320, - "column": 41 + "line": 329, + "column": 11 } } }, { "type": { - "label": ")", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9308, - "end": 9309, + "value": "serverSendNotifyPlayerDeath", + "start": 9587, + "end": 9616, "loc": { "start": { - "line": 320, - "column": 41 + "line": 329, + "column": 11 }, "end": { - "line": 320, - "column": 42 + "line": 329, + "column": 40 } } }, { "type": { - "label": "=>", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -62041,22 +65058,22 @@ "binop": null, "updateContext": null }, - "start": 9310, - "end": 9312, + "start": 9616, + "end": 9617, "loc": { "start": { - "line": 320, - "column": 43 + "line": 329, + "column": 40 }, "end": { - "line": 320, - "column": 45 + "line": 329, + "column": 41 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -62066,16 +65083,16 @@ "postfix": false, "binop": null }, - "start": 9313, - "end": 9314, + "start": 9618, + "end": 9619, "loc": { "start": { - "line": 320, - "column": 46 + "line": 329, + "column": 42 }, "end": { - "line": 320, - "column": 47 + "line": 329, + "column": 43 } } }, @@ -62091,23 +65108,23 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 9317, - "end": 9324, + "value": "data", + "start": 9619, + "end": 9623, "loc": { "start": { - "line": 321, - "column": 2 + "line": 329, + "column": 43 }, "end": { - "line": 321, - "column": 9 + "line": 329, + "column": 47 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -62115,51 +65132,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9324, - "end": 9325, + "start": 9623, + "end": 9624, "loc": { "start": { - "line": 321, - "column": 9 + "line": 329, + "column": 47 }, "end": { - "line": 321, - "column": 10 + "line": 329, + "column": 48 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "log", - "start": 9325, - "end": 9328, + "start": 9625, + "end": 9627, "loc": { "start": { - "line": 321, - "column": 10 + "line": 329, + "column": 49 }, "end": { - "line": 321, - "column": 13 + "line": 329, + "column": 51 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -62169,43 +65185,57 @@ "postfix": false, "binop": null }, - "start": 9328, - "end": 9329, + "start": 9628, + "end": 9629, "loc": { "start": { - "line": 321, - "column": 13 + "line": 329, + "column": 52 }, "end": { - "line": 321, - "column": 14 + "line": 329, + "column": 53 + } + } + }, + { + "type": "CommentLine", + "value": " Append to chat TODO", + "start": 9632, + "end": 9654, + "loc": { + "start": { + "line": 330, + "column": 2 + }, + "end": { + "line": 330, + "column": 24 } } }, { "type": { - "label": "string", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "You Died!", - "start": 9329, - "end": 9340, + "start": 9656, + "end": 9657, "loc": { "start": { - "line": 321, - "column": 14 + "line": 331, + "column": 1 }, "end": { - "line": 321, - "column": 25 + "line": 331, + "column": 2 } } }, @@ -62221,16 +65251,32 @@ "postfix": false, "binop": null }, - "start": 9340, - "end": 9341, + "start": 9657, + "end": 9658, "loc": { "start": { - "line": 321, - "column": 25 + "line": 331, + "column": 2 }, "end": { - "line": 321, - "column": 26 + "line": 331, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Update timer", + "start": 9661, + "end": 9676, + "loc": { + "start": { + "line": 333, + "column": 1 + }, + "end": { + "line": 333, + "column": 16 } } }, @@ -62246,17 +65292,17 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 9344, - "end": 9351, + "value": "socket", + "start": 9678, + "end": 9684, "loc": { "start": { - "line": 322, - "column": 2 + "line": 334, + "column": 1 }, "end": { - "line": 322, - "column": 9 + "line": 334, + "column": 7 } } }, @@ -62273,16 +65319,16 @@ "binop": null, "updateContext": null }, - "start": 9351, - "end": 9352, + "start": 9684, + "end": 9685, "loc": { "start": { - "line": 322, - "column": 9 + "line": 334, + "column": 7 }, "end": { - "line": 322, - "column": 10 + "line": 334, + "column": 8 } } }, @@ -62298,23 +65344,23 @@ "postfix": false, "binop": null }, - "value": "players", - "start": 9352, - "end": 9359, + "value": "on", + "start": 9685, + "end": 9687, "loc": { "start": { - "line": 322, - "column": 10 + "line": 334, + "column": 8 }, "end": { - "line": 322, - "column": 17 + "line": 334, + "column": 10 } } }, { "type": { - "label": "[", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -62322,25 +65368,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9359, - "end": 9360, + "start": 9687, + "end": 9688, "loc": { "start": { - "line": 322, - "column": 17 + "line": 334, + "column": 10 }, "end": { - "line": 322, - "column": 18 + "line": 334, + "column": 11 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -62348,26 +65393,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "socket", - "start": 9360, - "end": 9366, + "value": "time", + "start": 9688, + "end": 9694, "loc": { "start": { - "line": 322, - "column": 18 + "line": 334, + "column": 11 }, "end": { - "line": 322, - "column": 24 + "line": 334, + "column": 17 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -62377,23 +65423,23 @@ "binop": null, "updateContext": null }, - "start": 9366, - "end": 9367, + "start": 9694, + "end": 9695, "loc": { "start": { - "line": 322, - "column": 24 + "line": 334, + "column": 17 }, "end": { - "line": 322, - "column": 25 + "line": 334, + "column": 18 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -62402,49 +65448,48 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 9367, - "end": 9369, + "start": 9696, + "end": 9697, "loc": { "start": { - "line": 322, - "column": 25 + "line": 334, + "column": 19 }, "end": { - "line": 322, - "column": 27 + "line": 334, + "column": 20 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9369, - "end": 9370, + "value": "data", + "start": 9697, + "end": 9701, "loc": { "start": { - "line": 322, - "column": 27 + "line": 334, + "column": 20 }, "end": { - "line": 322, - "column": 28 + "line": 334, + "column": 24 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -62452,51 +65497,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9370, - "end": 9371, + "start": 9701, + "end": 9702, "loc": { "start": { - "line": 322, - "column": 28 + "line": 334, + "column": 24 }, "end": { - "line": 322, - "column": 29 + "line": 334, + "column": 25 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setData", - "start": 9371, - "end": 9378, + "start": 9703, + "end": 9705, "loc": { "start": { - "line": 322, - "column": 29 + "line": 334, + "column": 26 }, "end": { - "line": 322, - "column": 36 + "line": 334, + "column": 28 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -62506,16 +65550,16 @@ "postfix": false, "binop": null }, - "start": 9378, - "end": 9379, + "start": 9706, + "end": 9707, "loc": { "start": { - "line": 322, - "column": 36 + "line": 334, + "column": 29 }, "end": { - "line": 322, - "column": 37 + "line": 334, + "column": 30 } } }, @@ -62531,17 +65575,17 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 9379, - "end": 9383, + "value": "document", + "start": 9710, + "end": 9718, "loc": { "start": { - "line": 322, - "column": 37 + "line": 335, + "column": 2 }, "end": { - "line": 322, - "column": 41 + "line": 335, + "column": 10 } } }, @@ -62558,16 +65602,16 @@ "binop": null, "updateContext": null }, - "start": 9383, - "end": 9384, + "start": 9718, + "end": 9719, "loc": { "start": { - "line": 322, - "column": 41 + "line": 335, + "column": 10 }, "end": { - "line": 322, - "column": 42 + "line": 335, + "column": 11 } } }, @@ -62583,25 +65627,50 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 9384, - "end": 9388, + "value": "getElementById", + "start": 9719, + "end": 9733, "loc": { "start": { - "line": 322, - "column": 42 + "line": 335, + "column": 11 }, "end": { - "line": 322, - "column": 46 + "line": 335, + "column": 25 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9733, + "end": 9734, + "loc": { + "start": { + "line": 335, + "column": 25 + }, + "end": { + "line": 335, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -62610,24 +65679,25 @@ "binop": null, "updateContext": null }, - "start": 9388, - "end": 9389, + "value": "timer", + "start": 9734, + "end": 9741, "loc": { "start": { - "line": 322, - "column": 46 + "line": 335, + "column": 26 }, "end": { - "line": 322, - "column": 47 + "line": 335, + "column": 33 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -62635,17 +65705,16 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 9390, - "end": 9394, + "start": 9741, + "end": 9742, "loc": { "start": { - "line": 322, - "column": 48 + "line": 335, + "column": 33 }, "end": { - "line": 322, - "column": 52 + "line": 335, + "column": 34 } } }, @@ -62662,16 +65731,16 @@ "binop": null, "updateContext": null }, - "start": 9394, - "end": 9395, + "start": 9742, + "end": 9743, "loc": { "start": { - "line": 322, - "column": 52 + "line": 335, + "column": 34 }, "end": { - "line": 322, - "column": 53 + "line": 335, + "column": 35 } } }, @@ -62687,49 +65756,50 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 9395, - "end": 9399, + "value": "innerHTML", + "start": 9743, + "end": 9752, "loc": { "start": { - "line": 322, - "column": 53 + "line": 335, + "column": 35 }, "end": { - "line": 322, - "column": 57 + "line": 335, + "column": 44 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 9399, - "end": 9400, + "value": "=", + "start": 9753, + "end": 9754, "loc": { "start": { - "line": 322, - "column": 57 + "line": 335, + "column": 45 }, "end": { - "line": 322, - "column": 58 + "line": 335, + "column": 46 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -62737,45 +65807,47 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 9401, - "end": 9405, + "value": "

", + "start": 9755, + "end": 9760, "loc": { "start": { - "line": 322, - "column": 59 + "line": 335, + "column": 47 }, "end": { - "line": 322, - "column": 63 + "line": 335, + "column": 52 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 9405, - "end": 9406, + "value": "+", + "start": 9761, + "end": 9762, "loc": { "start": { - "line": 322, - "column": 63 + "line": 335, + "column": 53 }, "end": { - "line": 322, - "column": 64 + "line": 335, + "column": 54 } } }, @@ -62791,24 +65863,24 @@ "postfix": false, "binop": null }, - "value": "vx", - "start": 9406, - "end": 9408, + "value": "data", + "start": 9763, + "end": 9767, "loc": { "start": { - "line": 322, - "column": 64 + "line": 335, + "column": 55 }, "end": { - "line": 322, - "column": 66 + "line": 335, + "column": 59 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -62818,16 +65890,16 @@ "binop": null, "updateContext": null }, - "start": 9408, - "end": 9409, + "start": 9767, + "end": 9768, "loc": { "start": { - "line": 322, - "column": 66 + "line": 335, + "column": 59 }, "end": { - "line": 322, - "column": 67 + "line": 335, + "column": 60 } } }, @@ -62843,25 +65915,52 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 9410, - "end": 9414, + "value": "time", + "start": 9768, + "end": 9772, "loc": { "start": { - "line": 322, - "column": 68 + "line": 335, + "column": 60 }, "end": { - "line": 322, - "column": 72 + "line": 335, + "column": 64 } } }, { "type": { - "label": ".", + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 9773, + "end": 9774, + "loc": { + "start": { + "line": 335, + "column": 65 + }, + "end": { + "line": 335, + "column": 66 + } + } + }, + { + "type": { + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -62870,24 +65969,25 @@ "binop": null, "updateContext": null }, - "start": 9414, - "end": 9415, + "value": "

", + "start": 9775, + "end": 9781, "loc": { "start": { - "line": 322, - "column": 72 + "line": 335, + "column": 67 }, "end": { - "line": 322, + "line": 335, "column": 73 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -62895,17 +65995,16 @@ "postfix": false, "binop": null }, - "value": "vy", - "start": 9415, - "end": 9417, + "start": 9783, + "end": 9784, "loc": { "start": { - "line": 322, - "column": 73 + "line": 336, + "column": 1 }, "end": { - "line": 322, - "column": 75 + "line": 336, + "column": 2 } } }, @@ -62921,16 +66020,32 @@ "postfix": false, "binop": null }, - "start": 9417, - "end": 9418, + "start": 9784, + "end": 9785, + "loc": { + "start": { + "line": 336, + "column": 2 + }, + "end": { + "line": 336, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Update scores", + "start": 9788, + "end": 9804, "loc": { "start": { - "line": 322, - "column": 75 + "line": 338, + "column": 1 }, "end": { - "line": 322, - "column": 76 + "line": 338, + "column": 17 } } }, @@ -62947,16 +66062,16 @@ "binop": null }, "value": "socket", - "start": 9421, - "end": 9427, + "start": 9806, + "end": 9812, "loc": { "start": { - "line": 323, - "column": 2 + "line": 339, + "column": 1 }, "end": { - "line": 323, - "column": 8 + "line": 339, + "column": 7 } } }, @@ -62973,16 +66088,16 @@ "binop": null, "updateContext": null }, - "start": 9427, - "end": 9428, + "start": 9812, + "end": 9813, "loc": { "start": { - "line": 323, - "column": 8 + "line": 339, + "column": 7 }, "end": { - "line": 323, - "column": 9 + "line": 339, + "column": 8 } } }, @@ -62998,17 +66113,17 @@ "postfix": false, "binop": null }, - "value": "emit", - "start": 9428, - "end": 9432, + "value": "on", + "start": 9813, + "end": 9815, "loc": { "start": { - "line": 323, - "column": 9 + "line": 339, + "column": 8 }, "end": { - "line": 323, - "column": 13 + "line": 339, + "column": 10 } } }, @@ -63024,16 +66139,16 @@ "postfix": false, "binop": null }, - "start": 9432, - "end": 9433, + "start": 9815, + "end": 9816, "loc": { "start": { - "line": 323, - "column": 13 + "line": 339, + "column": 10 }, "end": { - "line": 323, - "column": 14 + "line": 339, + "column": 11 } } }, @@ -63050,17 +66165,17 @@ "binop": null, "updateContext": null }, - "value": "verifyPlayerDeath", - "start": 9433, - "end": 9452, + "value": "serverSendScoreUpdate", + "start": 9816, + "end": 9839, "loc": { "start": { - "line": 323, - "column": 14 + "line": 339, + "column": 11 }, "end": { - "line": 323, - "column": 33 + "line": 339, + "column": 34 } } }, @@ -63077,22 +66192,22 @@ "binop": null, "updateContext": null }, - "start": 9452, - "end": 9453, + "start": 9839, + "end": 9840, "loc": { "start": { - "line": 323, - "column": 33 + "line": 339, + "column": 34 }, "end": { - "line": 323, - "column": 34 + "line": 339, + "column": 35 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -63102,16 +66217,16 @@ "postfix": false, "binop": null }, - "start": 9454, - "end": 9455, + "start": 9841, + "end": 9842, "loc": { "start": { - "line": 323, - "column": 35 + "line": 339, + "column": 36 }, "end": { - "line": 323, - "column": 36 + "line": 339, + "column": 37 } } }, @@ -63127,51 +66242,25 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 9456, - "end": 9458, + "value": "data", + "start": 9842, + "end": 9846, "loc": { "start": { - "line": 323, + "line": 339, "column": 37 }, "end": { - "line": 323, - "column": 39 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9458, - "end": 9459, - "loc": { - "start": { - "line": 323, - "column": 39 - }, - "end": { - "line": 323, - "column": 40 + "line": 339, + "column": 41 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -63179,24 +66268,23 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 9460, - "end": 9466, + "start": 9846, + "end": 9847, "loc": { "start": { - "line": 323, + "line": 339, "column": 41 }, "end": { - "line": 323, - "column": 47 + "line": 339, + "column": 42 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -63206,23 +66294,23 @@ "binop": null, "updateContext": null }, - "start": 9466, - "end": 9467, + "start": 9848, + "end": 9850, "loc": { "start": { - "line": 323, - "column": 47 + "line": 339, + "column": 43 }, "end": { - "line": 323, - "column": 48 + "line": 339, + "column": 45 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -63231,25 +66319,24 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 9467, - "end": 9469, + "start": 9851, + "end": 9852, "loc": { "start": { - "line": 323, - "column": 48 + "line": 339, + "column": 46 }, "end": { - "line": 323, - "column": 50 + "line": 339, + "column": 47 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -63257,24 +66344,25 @@ "postfix": false, "binop": null }, - "start": 9470, - "end": 9471, + "value": "updateScores", + "start": 9855, + "end": 9867, "loc": { "start": { - "line": 323, - "column": 51 + "line": 340, + "column": 2 }, "end": { - "line": 323, - "column": 52 + "line": 340, + "column": 14 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -63282,16 +66370,16 @@ "postfix": false, "binop": null }, - "start": 9471, - "end": 9472, + "start": 9867, + "end": 9868, "loc": { "start": { - "line": 323, - "column": 52 + "line": 340, + "column": 14 }, "end": { - "line": 323, - "column": 53 + "line": 340, + "column": 15 } } }, @@ -63307,17 +66395,17 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 9475, - "end": 9482, + "value": "data", + "start": 9868, + "end": 9872, "loc": { "start": { - "line": 324, - "column": 2 + "line": 340, + "column": 15 }, "end": { - "line": 324, - "column": 9 + "line": 340, + "column": 19 } } }, @@ -63334,16 +66422,16 @@ "binop": null, "updateContext": null }, - "start": 9482, - "end": 9483, + "start": 9872, + "end": 9873, "loc": { "start": { - "line": 324, - "column": 9 + "line": 340, + "column": 19 }, "end": { - "line": 324, - "column": 10 + "line": 340, + "column": 20 } } }, @@ -63359,42 +66447,43 @@ "postfix": false, "binop": null }, - "value": "log", - "start": 9483, - "end": 9486, + "value": "teamSlot", + "start": 9873, + "end": 9881, "loc": { "start": { - "line": 324, - "column": 10 + "line": 340, + "column": 20 }, "end": { - "line": 324, - "column": 13 + "line": 340, + "column": 28 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9486, - "end": 9487, + "start": 9881, + "end": 9882, "loc": { "start": { - "line": 324, - "column": 13 + "line": 340, + "column": 28 }, "end": { - "line": 324, - "column": 14 + "line": 340, + "column": 29 } } }, @@ -63410,17 +66499,17 @@ "postfix": false, "binop": null }, - "value": "objects", - "start": 9487, - "end": 9494, + "value": "data", + "start": 9883, + "end": 9887, "loc": { "start": { - "line": 324, - "column": 14 + "line": 340, + "column": 30 }, "end": { - "line": 324, - "column": 21 + "line": 340, + "column": 34 } } }, @@ -63437,16 +66526,16 @@ "binop": null, "updateContext": null }, - "start": 9494, - "end": 9495, + "start": 9887, + "end": 9888, "loc": { "start": { - "line": 324, - "column": 21 + "line": 340, + "column": 34 }, "end": { - "line": 324, - "column": 22 + "line": 340, + "column": 35 } } }, @@ -63462,51 +66551,50 @@ "postfix": false, "binop": null }, - "value": "players", - "start": 9495, - "end": 9502, + "value": "increment", + "start": 9888, + "end": 9897, "loc": { "start": { - "line": 324, - "column": 22 + "line": 340, + "column": 35 }, "end": { - "line": 324, - "column": 29 + "line": 340, + "column": 44 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9502, - "end": 9503, + "start": 9897, + "end": 9898, "loc": { "start": { - "line": 324, - "column": 29 + "line": 340, + "column": 44 }, "end": { - "line": 324, - "column": 30 + "line": 340, + "column": 45 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -63514,23 +66602,22 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 9503, - "end": 9509, + "start": 9900, + "end": 9901, "loc": { "start": { - "line": 324, - "column": 30 + "line": 341, + "column": 1 }, "end": { - "line": 324, - "column": 36 + "line": 341, + "column": 2 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -63538,19 +66625,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9509, - "end": 9510, + "start": 9901, + "end": 9902, "loc": { "start": { - "line": 324, - "column": 36 + "line": 341, + "column": 2 }, "end": { - "line": 324, - "column": 37 + "line": 341, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " A player has won", + "start": 9905, + "end": 9924, + "loc": { + "start": { + "line": 343, + "column": 1 + }, + "end": { + "line": 343, + "column": 20 } } }, @@ -63566,23 +66668,23 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 9510, - "end": 9512, + "value": "socket", + "start": 9926, + "end": 9932, "loc": { "start": { - "line": 324, - "column": 37 + "line": 344, + "column": 1 }, "end": { - "line": 324, - "column": 39 + "line": 344, + "column": 7 } } }, { "type": { - "label": "]", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -63593,24 +66695,24 @@ "binop": null, "updateContext": null }, - "start": 9512, - "end": 9513, + "start": 9932, + "end": 9933, "loc": { "start": { - "line": 324, - "column": 39 + "line": 344, + "column": 7 }, "end": { - "line": 324, - "column": 40 + "line": 344, + "column": 8 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -63618,23 +66720,24 @@ "postfix": false, "binop": null }, - "start": 9513, - "end": 9514, + "value": "on", + "start": 9933, + "end": 9935, "loc": { "start": { - "line": 324, - "column": 40 + "line": 344, + "column": 8 }, "end": { - "line": 324, - "column": 41 + "line": 344, + "column": 10 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -63643,75 +66746,77 @@ "postfix": false, "binop": null }, - "value": "updateAtomList", - "start": 9517, - "end": 9531, + "start": 9935, + "end": 9936, "loc": { "start": { - "line": 325, - "column": 2 + "line": 344, + "column": 10 }, "end": { - "line": 325, - "column": 16 + "line": 344, + "column": 11 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9531, - "end": 9532, + "value": "serverSendWinner", + "start": 9936, + "end": 9954, "loc": { "start": { - "line": 325, - "column": 16 + "line": 344, + "column": 11 }, "end": { - "line": 325, - "column": 17 + "line": 344, + "column": 29 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9532, - "end": 9533, + "start": 9954, + "end": 9955, "loc": { "start": { - "line": 325, - "column": 17 + "line": 344, + "column": 29 }, "end": { - "line": 325, - "column": 18 + "line": 344, + "column": 30 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -63719,24 +66824,24 @@ "postfix": false, "binop": null }, - "start": 9535, - "end": 9536, + "start": 9956, + "end": 9957, "loc": { "start": { - "line": 326, - "column": 1 + "line": 344, + "column": 31 }, "end": { - "line": 326, - "column": 2 + "line": 344, + "column": 32 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -63744,40 +66849,25 @@ "postfix": false, "binop": null }, - "start": 9536, - "end": 9537, - "loc": { - "start": { - "line": 326, - "column": 2 - }, - "end": { - "line": 326, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Another player died", - "start": 9540, - "end": 9562, + "value": "data", + "start": 9957, + "end": 9961, "loc": { "start": { - "line": 328, - "column": 1 + "line": 344, + "column": 32 }, "end": { - "line": 328, - "column": 23 + "line": 344, + "column": 36 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -63785,24 +66875,23 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 9564, - "end": 9570, + "start": 9961, + "end": 9962, "loc": { "start": { - "line": 329, - "column": 1 + "line": 344, + "column": 36 }, "end": { - "line": 329, - "column": 7 + "line": 344, + "column": 37 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -63812,23 +66901,23 @@ "binop": null, "updateContext": null }, - "start": 9570, - "end": 9571, + "start": 9963, + "end": 9965, "loc": { "start": { - "line": 329, - "column": 7 + "line": 344, + "column": 38 }, "end": { - "line": 329, - "column": 8 + "line": 344, + "column": 40 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -63837,24 +66926,23 @@ "postfix": false, "binop": null }, - "value": "on", - "start": 9571, - "end": 9573, + "start": 9966, + "end": 9967, "loc": { "start": { - "line": 329, - "column": 8 + "line": 344, + "column": 41 }, "end": { - "line": 329, - "column": 10 + "line": 344, + "column": 42 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -63863,51 +66951,51 @@ "postfix": false, "binop": null }, - "start": 9573, - "end": 9574, + "value": "setIngame", + "start": 9970, + "end": 9979, "loc": { "start": { - "line": 329, - "column": 10 + "line": 345, + "column": 2 }, "end": { - "line": 329, + "line": 345, "column": 11 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "serverSendNotifyPlayerDeath", - "start": 9574, - "end": 9603, + "start": 9979, + "end": 9980, "loc": { "start": { - "line": 329, + "line": 345, "column": 11 }, "end": { - "line": 329, - "column": 40 + "line": 345, + "column": 12 } } }, { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -63916,24 +67004,25 @@ "binop": null, "updateContext": null }, - "start": 9603, - "end": 9604, + "value": "false", + "start": 9980, + "end": 9985, "loc": { "start": { - "line": 329, - "column": 40 + "line": 345, + "column": 12 }, "end": { - "line": 329, - "column": 41 + "line": 345, + "column": 17 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -63941,50 +67030,40 @@ "postfix": false, "binop": null }, - "start": 9605, - "end": 9606, + "start": 9985, + "end": 9986, "loc": { "start": { - "line": 329, - "column": 42 + "line": 345, + "column": 17 }, "end": { - "line": 329, - "column": 43 + "line": 345, + "column": 18 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 9606, - "end": 9610, + "type": "CommentLine", + "value": " Disable keyboard controls and rendering", + "start": 9987, + "end": 10029, "loc": { "start": { - "line": 329, - "column": 43 + "line": 345, + "column": 19 }, "end": { - "line": 329, - "column": 47 + "line": 345, + "column": 61 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -63992,49 +67071,49 @@ "postfix": false, "binop": null }, - "start": 9610, - "end": 9611, + "value": "displayWinner", + "start": 10032, + "end": 10045, "loc": { "start": { - "line": 329, - "column": 47 + "line": 346, + "column": 2 }, "end": { - "line": 329, - "column": 48 + "line": 346, + "column": 15 } } }, { "type": { - "label": "=>", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9612, - "end": 9614, + "start": 10045, + "end": 10046, "loc": { "start": { - "line": 329, - "column": 49 + "line": 346, + "column": 15 }, "end": { - "line": 329, - "column": 51 + "line": 346, + "column": 16 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -64043,32 +67122,42 @@ "postfix": false, "binop": null }, - "start": 9615, - "end": 9616, + "value": "data", + "start": 10046, + "end": 10050, "loc": { "start": { - "line": 329, - "column": 52 + "line": 346, + "column": 16 }, "end": { - "line": 329, - "column": 53 + "line": 346, + "column": 20 } } }, { - "type": "CommentLine", - "value": " Append to chat TODO", - "start": 9619, - "end": 9641, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10050, + "end": 10051, "loc": { "start": { - "line": 330, - "column": 2 + "line": 346, + "column": 20 }, "end": { - "line": 330, - "column": 24 + "line": 346, + "column": 21 } } }, @@ -64084,15 +67173,15 @@ "postfix": false, "binop": null }, - "start": 9643, - "end": 9644, + "start": 10053, + "end": 10054, "loc": { "start": { - "line": 331, + "line": 347, "column": 1 }, "end": { - "line": 331, + "line": 347, "column": 2 } } @@ -64109,32 +67198,32 @@ "postfix": false, "binop": null }, - "start": 9644, - "end": 9645, + "start": 10054, + "end": 10055, "loc": { "start": { - "line": 331, + "line": 347, "column": 2 }, "end": { - "line": 331, + "line": 347, "column": 3 } } }, { "type": "CommentLine", - "value": " Update timer", - "start": 9648, - "end": 9663, + "value": " Sync team colors", + "start": 10058, + "end": 10077, "loc": { "start": { - "line": 333, + "line": 349, "column": 1 }, "end": { - "line": 333, - "column": 16 + "line": 349, + "column": 20 } } }, @@ -64151,15 +67240,15 @@ "binop": null }, "value": "socket", - "start": 9665, - "end": 9671, + "start": 10079, + "end": 10085, "loc": { "start": { - "line": 334, + "line": 350, "column": 1 }, "end": { - "line": 334, + "line": 350, "column": 7 } } @@ -64177,15 +67266,15 @@ "binop": null, "updateContext": null }, - "start": 9671, - "end": 9672, + "start": 10085, + "end": 10086, "loc": { "start": { - "line": 334, + "line": 350, "column": 7 }, "end": { - "line": 334, + "line": 350, "column": 8 } } @@ -64203,15 +67292,15 @@ "binop": null }, "value": "on", - "start": 9672, - "end": 9674, + "start": 10086, + "end": 10088, "loc": { "start": { - "line": 334, + "line": 350, "column": 8 }, "end": { - "line": 334, + "line": 350, "column": 10 } } @@ -64228,15 +67317,15 @@ "postfix": false, "binop": null }, - "start": 9674, - "end": 9675, + "start": 10088, + "end": 10089, "loc": { "start": { - "line": 334, + "line": 350, "column": 10 }, "end": { - "line": 334, + "line": 350, "column": 11 } } @@ -64254,17 +67343,17 @@ "binop": null, "updateContext": null }, - "value": "time", - "start": 9675, - "end": 9681, + "value": "serverSendTeamColors", + "start": 10089, + "end": 10111, "loc": { "start": { - "line": 334, + "line": 350, "column": 11 }, "end": { - "line": 334, - "column": 17 + "line": 350, + "column": 33 } } }, @@ -64281,16 +67370,16 @@ "binop": null, "updateContext": null }, - "start": 9681, - "end": 9682, + "start": 10111, + "end": 10112, "loc": { "start": { - "line": 334, - "column": 17 + "line": 350, + "column": 33 }, "end": { - "line": 334, - "column": 18 + "line": 350, + "column": 34 } } }, @@ -64306,16 +67395,16 @@ "postfix": false, "binop": null }, - "start": 9683, - "end": 9684, + "start": 10113, + "end": 10114, "loc": { "start": { - "line": 334, - "column": 19 + "line": 350, + "column": 35 }, "end": { - "line": 334, - "column": 20 + "line": 350, + "column": 36 } } }, @@ -64332,16 +67421,16 @@ "binop": null }, "value": "data", - "start": 9684, - "end": 9688, + "start": 10114, + "end": 10118, "loc": { "start": { - "line": 334, - "column": 20 + "line": 350, + "column": 36 }, "end": { - "line": 334, - "column": 24 + "line": 350, + "column": 40 } } }, @@ -64357,16 +67446,16 @@ "postfix": false, "binop": null }, - "start": 9688, - "end": 9689, + "start": 10118, + "end": 10119, "loc": { "start": { - "line": 334, - "column": 24 + "line": 350, + "column": 40 }, "end": { - "line": 334, - "column": 25 + "line": 350, + "column": 41 } } }, @@ -64383,16 +67472,16 @@ "binop": null, "updateContext": null }, - "start": 9690, - "end": 9692, + "start": 10120, + "end": 10122, "loc": { "start": { - "line": 334, - "column": 26 + "line": 350, + "column": 42 }, "end": { - "line": 334, - "column": 28 + "line": 350, + "column": 44 } } }, @@ -64408,16 +67497,16 @@ "postfix": false, "binop": null }, - "start": 9693, - "end": 9694, + "start": 10123, + "end": 10124, "loc": { "start": { - "line": 334, - "column": 29 + "line": 350, + "column": 45 }, "end": { - "line": 334, - "column": 30 + "line": 350, + "column": 46 } } }, @@ -64433,43 +67522,44 @@ "postfix": false, "binop": null }, - "value": "document", - "start": 9697, - "end": 9705, + "value": "teamColors", + "start": 10127, + "end": 10137, "loc": { "start": { - "line": 335, + "line": 351, "column": 2 }, "end": { - "line": 335, - "column": 10 + "line": 351, + "column": 12 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 9705, - "end": 9706, + "value": "=", + "start": 10138, + "end": 10139, "loc": { "start": { - "line": 335, - "column": 10 + "line": 351, + "column": 13 }, "end": { - "line": 335, - "column": 11 + "line": 351, + "column": 14 } } }, @@ -64485,48 +67575,23 @@ "postfix": false, "binop": null }, - "value": "getElementById", - "start": 9706, - "end": 9720, - "loc": { - "start": { - "line": 335, - "column": 11 - }, - "end": { - "line": 335, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9720, - "end": 9721, + "value": "data", + "start": 10140, + "end": 10144, "loc": { "start": { - "line": 335, - "column": 25 + "line": 351, + "column": 15 }, "end": { - "line": 335, - "column": 26 + "line": 351, + "column": 19 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -64534,45 +67599,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "timer", - "start": 9721, - "end": 9728, - "loc": { - "start": { - "line": 335, - "column": 26 - }, - "end": { - "line": 335, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null }, - "start": 9728, - "end": 9729, + "value": "console", + "start": 10147, + "end": 10154, "loc": { "start": { - "line": 335, - "column": 33 + "line": 352, + "column": 2 }, "end": { - "line": 335, - "column": 34 + "line": 352, + "column": 9 } } }, @@ -64589,16 +67628,16 @@ "binop": null, "updateContext": null }, - "start": 9729, - "end": 9730, + "start": 10154, + "end": 10155, "loc": { "start": { - "line": 335, - "column": 34 + "line": 352, + "column": 9 }, "end": { - "line": 335, - "column": 35 + "line": 352, + "column": 10 } } }, @@ -64614,98 +67653,42 @@ "postfix": false, "binop": null }, - "value": "innerHTML", - "start": 9730, - "end": 9739, + "value": "log", + "start": 10155, + "end": 10158, "loc": { "start": { - "line": 335, - "column": 35 + "line": 352, + "column": 10 }, "end": { - "line": 335, - "column": 44 + "line": 352, + "column": 13 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9740, - "end": 9741, - "loc": { - "start": { - "line": 335, - "column": 45 - }, - "end": { - "line": 335, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "

", - "start": 9742, - "end": 9747, - "loc": { - "start": { - "line": 335, - "column": 47 - }, - "end": { - "line": 335, - "column": 52 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "+", - "start": 9748, - "end": 9749, + "start": 10158, + "end": 10159, "loc": { "start": { - "line": 335, - "column": 53 + "line": 352, + "column": 13 }, "end": { - "line": 335, - "column": 54 + "line": 352, + "column": 14 } } }, @@ -64721,23 +67704,23 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 9750, - "end": 9754, + "value": "teamColors", + "start": 10159, + "end": 10169, "loc": { "start": { - "line": 335, - "column": 55 + "line": 352, + "column": 14 }, "end": { - "line": 335, - "column": 59 + "line": 352, + "column": 24 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -64745,99 +67728,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9754, - "end": 9755, - "loc": { - "start": { - "line": 335, - "column": 59 - }, - "end": { - "line": 335, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null }, - "value": "time", - "start": 9755, - "end": 9759, - "loc": { - "start": { - "line": 335, - "column": 60 - }, - "end": { - "line": 335, - "column": 64 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 9760, - "end": 9761, - "loc": { - "start": { - "line": 335, - "column": 65 - }, - "end": { - "line": 335, - "column": 66 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "

", - "start": 9762, - "end": 9768, + "start": 10169, + "end": 10170, "loc": { "start": { - "line": 335, - "column": 67 + "line": 352, + "column": 24 }, "end": { - "line": 335, - "column": 73 + "line": 352, + "column": 25 } } }, @@ -64853,15 +67755,15 @@ "postfix": false, "binop": null }, - "start": 9770, - "end": 9771, + "start": 10172, + "end": 10173, "loc": { "start": { - "line": 336, + "line": 353, "column": 1 }, "end": { - "line": 336, + "line": 353, "column": 2 } } @@ -64878,32 +67780,32 @@ "postfix": false, "binop": null }, - "start": 9771, - "end": 9772, + "start": 10173, + "end": 10174, "loc": { "start": { - "line": 336, + "line": 353, "column": 2 }, "end": { - "line": 336, + "line": 353, "column": 3 } } }, { "type": "CommentLine", - "value": " Update scores", - "start": 9775, - "end": 9791, + "value": " Change texture when a tile has been captured", + "start": 10177, + "end": 10224, "loc": { "start": { - "line": 338, + "line": 355, "column": 1 }, "end": { - "line": 338, - "column": 17 + "line": 355, + "column": 48 } } }, @@ -64920,15 +67822,15 @@ "binop": null }, "value": "socket", - "start": 9793, - "end": 9799, + "start": 10226, + "end": 10232, "loc": { "start": { - "line": 339, + "line": 356, "column": 1 }, "end": { - "line": 339, + "line": 356, "column": 7 } } @@ -64946,15 +67848,15 @@ "binop": null, "updateContext": null }, - "start": 9799, - "end": 9800, + "start": 10232, + "end": 10233, "loc": { "start": { - "line": 339, + "line": 356, "column": 7 }, "end": { - "line": 339, + "line": 356, "column": 8 } } @@ -64972,15 +67874,15 @@ "binop": null }, "value": "on", - "start": 9800, - "end": 9802, + "start": 10233, + "end": 10235, "loc": { "start": { - "line": 339, + "line": 356, "column": 8 }, "end": { - "line": 339, + "line": 356, "column": 10 } } @@ -64997,15 +67899,15 @@ "postfix": false, "binop": null }, - "start": 9802, - "end": 9803, + "start": 10235, + "end": 10236, "loc": { "start": { - "line": 339, + "line": 356, "column": 10 }, "end": { - "line": 339, + "line": 356, "column": 11 } } @@ -65023,16 +67925,16 @@ "binop": null, "updateContext": null }, - "value": "serverSendScoreUpdate", - "start": 9803, - "end": 9826, + "value": "serverSendTileCapture", + "start": 10236, + "end": 10259, "loc": { "start": { - "line": 339, + "line": 356, "column": 11 }, "end": { - "line": 339, + "line": 356, "column": 34 } } @@ -65050,15 +67952,15 @@ "binop": null, "updateContext": null }, - "start": 9826, - "end": 9827, + "start": 10259, + "end": 10260, "loc": { "start": { - "line": 339, + "line": 356, "column": 34 }, "end": { - "line": 339, + "line": 356, "column": 35 } } @@ -65075,15 +67977,15 @@ "postfix": false, "binop": null }, - "start": 9828, - "end": 9829, + "start": 10261, + "end": 10262, "loc": { "start": { - "line": 339, + "line": 356, "column": 36 }, "end": { - "line": 339, + "line": 356, "column": 37 } } @@ -65101,15 +68003,15 @@ "binop": null }, "value": "data", - "start": 9829, - "end": 9833, + "start": 10262, + "end": 10266, "loc": { "start": { - "line": 339, + "line": 356, "column": 37 }, "end": { - "line": 339, + "line": 356, "column": 41 } } @@ -65126,15 +68028,15 @@ "postfix": false, "binop": null }, - "start": 9833, - "end": 9834, + "start": 10266, + "end": 10267, "loc": { "start": { - "line": 339, + "line": 356, "column": 41 }, "end": { - "line": 339, + "line": 356, "column": 42 } } @@ -65152,15 +68054,15 @@ "binop": null, "updateContext": null }, - "start": 9835, - "end": 9837, + "start": 10268, + "end": 10270, "loc": { "start": { - "line": 339, + "line": 356, "column": 43 }, "end": { - "line": 339, + "line": 356, "column": 45 } } @@ -65177,15 +68079,15 @@ "postfix": false, "binop": null }, - "start": 9838, - "end": 9839, + "start": 10271, + "end": 10272, "loc": { "start": { - "line": 339, + "line": 356, "column": 46 }, "end": { - "line": 339, + "line": 356, "column": 47 } } @@ -65202,42 +68104,43 @@ "postfix": false, "binop": null }, - "value": "updateScores", - "start": 9842, - "end": 9854, + "value": "objects", + "start": 10275, + "end": 10282, "loc": { "start": { - "line": 340, + "line": 357, "column": 2 }, "end": { - "line": 340, - "column": 14 + "line": 357, + "column": 9 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9854, - "end": 9855, + "start": 10282, + "end": 10283, "loc": { "start": { - "line": 340, - "column": 14 + "line": 357, + "column": 9 }, "end": { - "line": 340, - "column": 15 + "line": 357, + "column": 10 } } }, @@ -65253,25 +68156,25 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 9855, - "end": 9859, + "value": "tiles", + "start": 10283, + "end": 10288, "loc": { "start": { - "line": 340, - "column": 15 + "line": 357, + "column": 10 }, "end": { - "line": 340, - "column": 19 + "line": 357, + "column": 15 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -65280,22 +68183,22 @@ "binop": null, "updateContext": null }, - "start": 9859, - "end": 9860, + "start": 10288, + "end": 10289, "loc": { "start": { - "line": 340, - "column": 19 + "line": 357, + "column": 15 }, "end": { - "line": 340, - "column": 20 + "line": 357, + "column": 16 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -65303,45 +68206,47 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "teamSlot", - "start": 9860, - "end": 9868, + "value": "tile_", + "start": 10289, + "end": 10296, "loc": { "start": { - "line": 340, - "column": 20 + "line": 357, + "column": 16 }, "end": { - "line": 340, - "column": 28 + "line": 357, + "column": 23 } } }, { "type": { - "label": ",", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 9868, - "end": 9869, + "value": "+", + "start": 10297, + "end": 10298, "loc": { "start": { - "line": 340, - "column": 28 + "line": 357, + "column": 24 }, "end": { - "line": 340, - "column": 29 + "line": 357, + "column": 25 } } }, @@ -65358,16 +68263,16 @@ "binop": null }, "value": "data", - "start": 9870, - "end": 9874, + "start": 10299, + "end": 10303, "loc": { "start": { - "line": 340, - "column": 30 + "line": 357, + "column": 26 }, "end": { - "line": 340, - "column": 34 + "line": 357, + "column": 30 } } }, @@ -65384,16 +68289,16 @@ "binop": null, "updateContext": null }, - "start": 9874, - "end": 9875, + "start": 10303, + "end": 10304, "loc": { "start": { - "line": 340, - "column": 34 + "line": 357, + "column": 30 }, "end": { - "line": 340, - "column": 35 + "line": 357, + "column": 31 } } }, @@ -65409,108 +68314,98 @@ "postfix": false, "binop": null }, - "value": "increment", - "start": 9875, - "end": 9884, + "value": "tileY", + "start": 10304, + "end": 10309, "loc": { "start": { - "line": 340, - "column": 35 + "line": 357, + "column": 31 }, "end": { - "line": 340, - "column": 44 + "line": 357, + "column": 36 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 9884, - "end": 9885, + "value": "+", + "start": 10310, + "end": 10311, "loc": { "start": { - "line": 340, - "column": 44 + "line": 357, + "column": 37 }, "end": { - "line": 340, - "column": 45 + "line": 357, + "column": 38 } } }, { "type": { - "label": "}", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9887, - "end": 9888, + "value": "_", + "start": 10312, + "end": 10315, "loc": { "start": { - "line": 341, - "column": 1 + "line": 357, + "column": 39 }, "end": { - "line": 341, - "column": 2 + "line": 357, + "column": 42 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 9888, - "end": 9889, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 341, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " A player has won", - "start": 9892, - "end": 9911, + "value": "+", + "start": 10316, + "end": 10317, "loc": { "start": { - "line": 343, - "column": 1 + "line": 357, + "column": 43 }, "end": { - "line": 343, - "column": 20 + "line": 357, + "column": 44 } } }, @@ -65526,17 +68421,17 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 9913, - "end": 9919, + "value": "data", + "start": 10318, + "end": 10322, "loc": { "start": { - "line": 344, - "column": 1 + "line": 357, + "column": 45 }, "end": { - "line": 344, - "column": 7 + "line": 357, + "column": 49 } } }, @@ -65553,16 +68448,16 @@ "binop": null, "updateContext": null }, - "start": 9919, - "end": 9920, + "start": 10322, + "end": 10323, "loc": { "start": { - "line": 344, - "column": 7 + "line": 357, + "column": 49 }, "end": { - "line": 344, - "column": 8 + "line": 357, + "column": 50 } } }, @@ -65578,50 +68473,25 @@ "postfix": false, "binop": null }, - "value": "on", - "start": 9920, - "end": 9922, - "loc": { - "start": { - "line": 344, - "column": 8 - }, - "end": { - "line": 344, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9922, - "end": 9923, + "value": "tileX", + "start": 10323, + "end": 10328, "loc": { "start": { - "line": 344, - "column": 10 + "line": 357, + "column": 50 }, "end": { - "line": 344, - "column": 11 + "line": 357, + "column": 55 } } }, { "type": { - "label": "string", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -65630,24 +68500,23 @@ "binop": null, "updateContext": null }, - "value": "serverSendWinner", - "start": 9923, - "end": 9941, + "start": 10328, + "end": 10329, "loc": { "start": { - "line": 344, - "column": 11 + "line": 357, + "column": 55 }, "end": { - "line": 344, - "column": 29 + "line": 357, + "column": 56 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -65657,41 +68526,16 @@ "binop": null, "updateContext": null }, - "start": 9941, - "end": 9942, - "loc": { - "start": { - "line": 344, - "column": 29 - }, - "end": { - "line": 344, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9943, - "end": 9944, + "start": 10329, + "end": 10330, "loc": { "start": { - "line": 344, - "column": 31 + "line": 357, + "column": 56 }, "end": { - "line": 344, - "column": 32 + "line": 357, + "column": 57 } } }, @@ -65707,74 +68551,50 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 9944, - "end": 9948, - "loc": { - "start": { - "line": 344, - "column": 32 - }, - "end": { - "line": 344, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9948, - "end": 9949, + "value": "texture", + "start": 10330, + "end": 10337, "loc": { "start": { - "line": 344, - "column": 36 + "line": 357, + "column": 57 }, "end": { - "line": 344, - "column": 37 + "line": 357, + "column": 64 } } }, { "type": { - "label": "=>", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 9950, - "end": 9952, + "value": "=", + "start": 10338, + "end": 10339, "loc": { "start": { - "line": 344, - "column": 38 + "line": 357, + "column": 65 }, "end": { - "line": 344, - "column": 40 + "line": 357, + "column": 66 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -65784,16 +68604,16 @@ "postfix": false, "binop": null }, - "start": 9953, - "end": 9954, + "start": 10340, + "end": 10341, "loc": { "start": { - "line": 344, - "column": 41 + "line": 357, + "column": 67 }, "end": { - "line": 344, - "column": 42 + "line": 357, + "column": 68 } } }, @@ -65809,51 +68629,25 @@ "postfix": false, "binop": null }, - "value": "setIngame", - "start": 9957, - "end": 9966, - "loc": { - "start": { - "line": 345, - "column": 2 - }, - "end": { - "line": 345, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9966, - "end": 9967, + "value": "spritesheet", + "start": 10341, + "end": 10352, "loc": { "start": { - "line": 345, - "column": 11 + "line": 357, + "column": 68 }, "end": { - "line": 345, - "column": 12 + "line": 357, + "column": 79 } } }, { "type": { - "label": "false", - "keyword": "false", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -65862,58 +68656,16 @@ "binop": null, "updateContext": null }, - "value": "false", - "start": 9967, - "end": 9972, - "loc": { - "start": { - "line": 345, - "column": 12 - }, - "end": { - "line": 345, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9972, - "end": 9973, - "loc": { - "start": { - "line": 345, - "column": 17 - }, - "end": { - "line": 345, - "column": 18 - } - } - }, - { - "type": "CommentLine", - "value": " Disable keyboard controls and rendering", - "start": 9974, - "end": 10016, + "start": 10352, + "end": 10353, "loc": { "start": { - "line": 345, - "column": 19 + "line": 357, + "column": 79 }, "end": { - "line": 345, - "column": 61 + "line": 357, + "column": 80 } } }, @@ -65929,23 +68681,23 @@ "postfix": false, "binop": null }, - "value": "displayWinner", - "start": 10019, - "end": 10032, + "value": "textures", + "start": 10353, + "end": 10361, "loc": { "start": { - "line": 346, - "column": 2 + "line": 357, + "column": 80 }, "end": { - "line": 346, - "column": 15 + "line": 357, + "column": 88 } } }, { "type": { - "label": "(", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -65953,18 +68705,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 10032, - "end": 10033, + "start": 10361, + "end": 10362, "loc": { "start": { - "line": 346, - "column": 15 + "line": 357, + "column": 88 }, "end": { - "line": 346, - "column": 16 + "line": 357, + "column": 89 } } }, @@ -65981,22 +68734,22 @@ "binop": null }, "value": "data", - "start": 10033, - "end": 10037, + "start": 10362, + "end": 10366, "loc": { "start": { - "line": 346, - "column": 16 + "line": 357, + "column": 89 }, "end": { - "line": 346, - "column": 20 + "line": 357, + "column": 93 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -66004,26 +68757,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 10037, - "end": 10038, + "start": 10366, + "end": 10367, "loc": { "start": { - "line": 346, - "column": 20 + "line": 357, + "column": 93 }, "end": { - "line": 346, - "column": 21 + "line": 357, + "column": 94 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -66031,57 +68785,44 @@ "postfix": false, "binop": null }, - "start": 10040, - "end": 10041, + "value": "teamNumber", + "start": 10367, + "end": 10377, "loc": { "start": { - "line": 347, - "column": 1 + "line": 357, + "column": 94 }, "end": { - "line": 347, - "column": 2 + "line": 357, + "column": 104 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10041, - "end": 10042, - "loc": { - "start": { - "line": 347, - "column": 2 - }, - "end": { - "line": 347, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Team colors", - "start": 10045, - "end": 10059, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 10378, + "end": 10379, "loc": { "start": { - "line": 349, - "column": 1 + "line": 357, + "column": 105 }, "end": { - "line": 349, - "column": 15 + "line": 357, + "column": 106 } } }, @@ -66097,17 +68838,17 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 10061, - "end": 10067, + "value": "objects", + "start": 10380, + "end": 10387, "loc": { "start": { - "line": 350, - "column": 1 + "line": 357, + "column": 107 }, "end": { - "line": 350, - "column": 7 + "line": 357, + "column": 114 } } }, @@ -66124,16 +68865,16 @@ "binop": null, "updateContext": null }, - "start": 10067, - "end": 10068, + "start": 10387, + "end": 10388, "loc": { "start": { - "line": 350, - "column": 7 + "line": 357, + "column": 114 }, "end": { - "line": 350, - "column": 8 + "line": 357, + "column": 115 } } }, @@ -66149,23 +68890,23 @@ "postfix": false, "binop": null }, - "value": "on", - "start": 10068, - "end": 10070, + "value": "tiles", + "start": 10388, + "end": 10393, "loc": { "start": { - "line": 350, - "column": 8 + "line": 357, + "column": 115 }, "end": { - "line": 350, - "column": 10 + "line": 357, + "column": 120 } } }, { "type": { - "label": "(", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -66173,18 +68914,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 10070, - "end": 10071, + "start": 10393, + "end": 10394, "loc": { "start": { - "line": 350, - "column": 10 + "line": 357, + "column": 120 }, "end": { - "line": 350, - "column": 11 + "line": 357, + "column": 121 } } }, @@ -66201,50 +68943,51 @@ "binop": null, "updateContext": null }, - "value": "serverSendTeamColors", - "start": 10071, - "end": 10093, + "value": "tile_", + "start": 10394, + "end": 10401, "loc": { "start": { - "line": 350, - "column": 11 + "line": 357, + "column": 121 }, "end": { - "line": 350, - "column": 33 + "line": 357, + "column": 128 } } }, { "type": { - "label": ",", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 10093, - "end": 10094, + "value": "+", + "start": 10402, + "end": 10403, "loc": { "start": { - "line": 350, - "column": 33 + "line": 357, + "column": 129 }, "end": { - "line": 350, - "column": 34 + "line": 357, + "column": 130 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -66253,50 +68996,51 @@ "postfix": false, "binop": null }, - "start": 10095, - "end": 10096, + "value": "data", + "start": 10404, + "end": 10408, "loc": { "start": { - "line": 350, - "column": 35 + "line": 357, + "column": 131 }, "end": { - "line": 350, - "column": 36 + "line": 357, + "column": 135 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 10096, - "end": 10100, + "start": 10408, + "end": 10409, "loc": { "start": { - "line": 350, - "column": 36 + "line": 357, + "column": 135 }, "end": { - "line": 350, - "column": 40 + "line": 357, + "column": 136 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -66304,24 +69048,52 @@ "postfix": false, "binop": null }, - "start": 10100, - "end": 10101, + "value": "tileY", + "start": 10409, + "end": 10414, "loc": { "start": { - "line": 350, - "column": 40 + "line": 357, + "column": 136 }, "end": { - "line": 350, - "column": 41 + "line": 357, + "column": 141 } } }, { "type": { - "label": "=>", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 10415, + "end": 10416, + "loc": { + "start": { + "line": 357, + "column": 142 + }, + "end": { + "line": 357, + "column": 143 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -66330,41 +69102,44 @@ "binop": null, "updateContext": null }, - "start": 10102, - "end": 10104, + "value": "_", + "start": 10417, + "end": 10420, "loc": { "start": { - "line": 350, - "column": 42 + "line": 357, + "column": 144 }, "end": { - "line": 350, - "column": 44 + "line": 357, + "column": 147 } } }, { "type": { - "label": "{", + "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 10105, - "end": 10106, + "value": "+", + "start": 10421, + "end": 10422, "loc": { "start": { - "line": 350, - "column": 45 + "line": 357, + "column": 148 }, "end": { - "line": 350, - "column": 46 + "line": 357, + "column": 149 } } }, @@ -66380,44 +69155,43 @@ "postfix": false, "binop": null }, - "value": "teamColors", - "start": 10109, - "end": 10119, + "value": "data", + "start": 10423, + "end": 10427, "loc": { "start": { - "line": 351, - "column": 2 + "line": 357, + "column": 150 }, "end": { - "line": 351, - "column": 12 + "line": 357, + "column": 154 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 10120, - "end": 10121, + "start": 10427, + "end": 10428, "loc": { "start": { - "line": 351, - "column": 13 + "line": 357, + "column": 154 }, "end": { - "line": 351, - "column": 14 + "line": 357, + "column": 155 } } }, @@ -66433,43 +69207,43 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 10122, - "end": 10126, + "value": "tileX", + "start": 10428, + "end": 10433, "loc": { "start": { - "line": 351, - "column": 15 + "line": 357, + "column": 155 }, "end": { - "line": 351, - "column": 19 + "line": 357, + "column": 160 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "console", - "start": 10129, - "end": 10136, + "start": 10433, + "end": 10434, "loc": { "start": { - "line": 352, - "column": 2 + "line": 357, + "column": 160 }, "end": { - "line": 352, - "column": 9 + "line": 357, + "column": 161 } } }, @@ -66486,16 +69260,16 @@ "binop": null, "updateContext": null }, - "start": 10136, - "end": 10137, + "start": 10434, + "end": 10435, "loc": { "start": { - "line": 352, - "column": 9 + "line": 357, + "column": 161 }, "end": { - "line": 352, - "column": 10 + "line": 357, + "column": 162 } } }, @@ -66511,42 +69285,43 @@ "postfix": false, "binop": null }, - "value": "log", - "start": 10137, - "end": 10140, + "value": "tile", + "start": 10435, + "end": 10439, "loc": { "start": { - "line": 352, - "column": 10 + "line": 357, + "column": 162 }, "end": { - "line": 352, - "column": 13 + "line": 357, + "column": 166 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 10140, - "end": 10141, + "start": 10439, + "end": 10440, "loc": { "start": { - "line": 352, - "column": 13 + "line": 357, + "column": 166 }, "end": { - "line": 352, - "column": 14 + "line": 357, + "column": 167 } } }, @@ -66562,17 +69337,43 @@ "postfix": false, "binop": null }, - "value": "teamColors", - "start": 10141, - "end": 10151, + "value": "texture", + "start": 10440, + "end": 10447, "loc": { "start": { - "line": 352, - "column": 14 + "line": 357, + "column": 167 }, "end": { - "line": 352, - "column": 24 + "line": 357, + "column": 174 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10447, + "end": 10448, + "loc": { + "start": { + "line": 357, + "column": 174 + }, + "end": { + "line": 357, + "column": 175 } } }, @@ -66588,16 +69389,32 @@ "postfix": false, "binop": null }, - "start": 10151, - "end": 10152, + "start": 10448, + "end": 10449, "loc": { "start": { - "line": 352, - "column": 24 + "line": 357, + "column": 175 }, "end": { - "line": 352, - "column": 25 + "line": 357, + "column": 176 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(objects.tiles['tile_' + data.tileY + '_' + data.tileX].texture)", + "start": 10452, + "end": 10530, + "loc": { + "start": { + "line": 358, + "column": 2 + }, + "end": { + "line": 358, + "column": 80 } } }, @@ -66613,15 +69430,15 @@ "postfix": false, "binop": null }, - "start": 10154, - "end": 10155, + "start": 10532, + "end": 10533, "loc": { "start": { - "line": 353, + "line": 359, "column": 1 }, "end": { - "line": 353, + "line": 359, "column": 2 } } @@ -66638,15 +69455,15 @@ "postfix": false, "binop": null }, - "start": 10155, - "end": 10156, + "start": 10533, + "end": 10534, "loc": { "start": { - "line": 353, + "line": 359, "column": 2 }, "end": { - "line": 353, + "line": 359, "column": 3 } } @@ -66663,15 +69480,15 @@ "postfix": false, "binop": null }, - "start": 10157, - "end": 10158, + "start": 10535, + "end": 10536, "loc": { "start": { - "line": 354, + "line": 360, "column": 0 }, "end": { - "line": 354, + "line": 360, "column": 1 } } @@ -66679,15 +69496,15 @@ { "type": "CommentBlock", "value": "\n ********************\n * Helper Functions *\n ********************\n ", - "start": 10160, - "end": 10232, + "start": 10538, + "end": 10610, "loc": { "start": { - "line": 356, + "line": 362, "column": 0 }, "end": { - "line": 360, + "line": 366, "column": 3 } } @@ -66695,15 +69512,15 @@ { "type": "CommentLine", "value": " Helper function for serverSendObjectRemoval", - "start": 10234, - "end": 10280, + "start": 10612, + "end": 10658, "loc": { "start": { - "line": 362, + "line": 368, "column": 0 }, "end": { - "line": 362, + "line": 368, "column": 46 } } @@ -66722,15 +69539,15 @@ "binop": null }, "value": "function", - "start": 10281, - "end": 10289, + "start": 10659, + "end": 10667, "loc": { "start": { - "line": 363, + "line": 369, "column": 0 }, "end": { - "line": 363, + "line": 369, "column": 8 } } @@ -66748,15 +69565,15 @@ "binop": null }, "value": "removeObject", - "start": 10290, - "end": 10302, + "start": 10668, + "end": 10680, "loc": { "start": { - "line": 363, + "line": 369, "column": 9 }, "end": { - "line": 363, + "line": 369, "column": 21 } } @@ -66773,15 +69590,15 @@ "postfix": false, "binop": null }, - "start": 10303, - "end": 10304, + "start": 10681, + "end": 10682, "loc": { "start": { - "line": 363, + "line": 369, "column": 22 }, "end": { - "line": 363, + "line": 369, "column": 23 } } @@ -66799,15 +69616,15 @@ "binop": null }, "value": "data", - "start": 10304, - "end": 10308, + "start": 10682, + "end": 10686, "loc": { "start": { - "line": 363, + "line": 369, "column": 23 }, "end": { - "line": 363, + "line": 369, "column": 27 } } @@ -66824,15 +69641,15 @@ "postfix": false, "binop": null }, - "start": 10308, - "end": 10309, + "start": 10686, + "end": 10687, "loc": { "start": { - "line": 363, + "line": 369, "column": 27 }, "end": { - "line": 363, + "line": 369, "column": 28 } } @@ -66849,15 +69666,15 @@ "postfix": false, "binop": null }, - "start": 10310, - "end": 10311, + "start": 10688, + "end": 10689, "loc": { "start": { - "line": 363, + "line": 369, "column": 29 }, "end": { - "line": 363, + "line": 369, "column": 30 } } @@ -66877,15 +69694,15 @@ "updateContext": null }, "value": "if", - "start": 10313, - "end": 10315, + "start": 10691, + "end": 10693, "loc": { "start": { - "line": 364, + "line": 370, "column": 1 }, "end": { - "line": 364, + "line": 370, "column": 3 } } @@ -66902,15 +69719,15 @@ "postfix": false, "binop": null }, - "start": 10316, - "end": 10317, + "start": 10694, + "end": 10695, "loc": { "start": { - "line": 364, + "line": 370, "column": 4 }, "end": { - "line": 364, + "line": 370, "column": 5 } } @@ -66928,15 +69745,15 @@ "binop": null }, "value": "objects", - "start": 10317, - "end": 10324, + "start": 10695, + "end": 10702, "loc": { "start": { - "line": 364, + "line": 370, "column": 5 }, "end": { - "line": 364, + "line": 370, "column": 12 } } @@ -66954,15 +69771,15 @@ "binop": null, "updateContext": null }, - "start": 10324, - "end": 10325, + "start": 10702, + "end": 10703, "loc": { "start": { - "line": 364, + "line": 370, "column": 12 }, "end": { - "line": 364, + "line": 370, "column": 13 } } @@ -66980,15 +69797,15 @@ "binop": null }, "value": "data", - "start": 10325, - "end": 10329, + "start": 10703, + "end": 10707, "loc": { "start": { - "line": 364, + "line": 370, "column": 13 }, "end": { - "line": 364, + "line": 370, "column": 17 } } @@ -67006,15 +69823,15 @@ "binop": null, "updateContext": null }, - "start": 10329, - "end": 10330, + "start": 10707, + "end": 10708, "loc": { "start": { - "line": 364, + "line": 370, "column": 17 }, "end": { - "line": 364, + "line": 370, "column": 18 } } @@ -67032,15 +69849,15 @@ "binop": null }, "value": "type", - "start": 10330, - "end": 10334, + "start": 10708, + "end": 10712, "loc": { "start": { - "line": 364, + "line": 370, "column": 18 }, "end": { - "line": 364, + "line": 370, "column": 22 } } @@ -67058,15 +69875,15 @@ "binop": null, "updateContext": null }, - "start": 10334, - "end": 10335, + "start": 10712, + "end": 10713, "loc": { "start": { - "line": 364, + "line": 370, "column": 22 }, "end": { - "line": 364, + "line": 370, "column": 23 } } @@ -67084,15 +69901,15 @@ "binop": null, "updateContext": null }, - "start": 10335, - "end": 10336, + "start": 10713, + "end": 10714, "loc": { "start": { - "line": 364, + "line": 370, "column": 23 }, "end": { - "line": 364, + "line": 370, "column": 24 } } @@ -67110,15 +69927,15 @@ "binop": null }, "value": "data", - "start": 10336, - "end": 10340, + "start": 10714, + "end": 10718, "loc": { "start": { - "line": 364, + "line": 370, "column": 24 }, "end": { - "line": 364, + "line": 370, "column": 28 } } @@ -67136,15 +69953,15 @@ "binop": null, "updateContext": null }, - "start": 10340, - "end": 10341, + "start": 10718, + "end": 10719, "loc": { "start": { - "line": 364, + "line": 370, "column": 28 }, "end": { - "line": 364, + "line": 370, "column": 29 } } @@ -67162,15 +69979,15 @@ "binop": null }, "value": "id", - "start": 10341, - "end": 10343, + "start": 10719, + "end": 10721, "loc": { "start": { - "line": 364, + "line": 370, "column": 29 }, "end": { - "line": 364, + "line": 370, "column": 31 } } @@ -67188,15 +70005,15 @@ "binop": null, "updateContext": null }, - "start": 10343, - "end": 10344, + "start": 10721, + "end": 10722, "loc": { "start": { - "line": 364, + "line": 370, "column": 31 }, "end": { - "line": 364, + "line": 370, "column": 32 } } @@ -67215,15 +70032,15 @@ "updateContext": null }, "value": "!==", - "start": 10345, - "end": 10348, + "start": 10723, + "end": 10726, "loc": { "start": { - "line": 364, + "line": 370, "column": 33 }, "end": { - "line": 364, + "line": 370, "column": 36 } } @@ -67241,15 +70058,15 @@ "binop": null }, "value": "undefined", - "start": 10349, - "end": 10358, + "start": 10727, + "end": 10736, "loc": { "start": { - "line": 364, + "line": 370, "column": 37 }, "end": { - "line": 364, + "line": 370, "column": 46 } } @@ -67268,15 +70085,15 @@ "updateContext": null }, "value": "&&", - "start": 10359, - "end": 10361, + "start": 10737, + "end": 10739, "loc": { "start": { - "line": 364, + "line": 370, "column": 47 }, "end": { - "line": 364, + "line": 370, "column": 49 } } @@ -67294,15 +70111,15 @@ "binop": null }, "value": "objects", - "start": 10362, - "end": 10369, + "start": 10740, + "end": 10747, "loc": { "start": { - "line": 364, + "line": 370, "column": 50 }, "end": { - "line": 364, + "line": 370, "column": 57 } } @@ -67320,15 +70137,15 @@ "binop": null, "updateContext": null }, - "start": 10369, - "end": 10370, + "start": 10747, + "end": 10748, "loc": { "start": { - "line": 364, + "line": 370, "column": 57 }, "end": { - "line": 364, + "line": 370, "column": 58 } } @@ -67346,15 +70163,15 @@ "binop": null }, "value": "data", - "start": 10370, - "end": 10374, + "start": 10748, + "end": 10752, "loc": { "start": { - "line": 364, + "line": 370, "column": 58 }, "end": { - "line": 364, + "line": 370, "column": 62 } } @@ -67372,15 +70189,15 @@ "binop": null, "updateContext": null }, - "start": 10374, - "end": 10375, + "start": 10752, + "end": 10753, "loc": { "start": { - "line": 364, + "line": 370, "column": 62 }, "end": { - "line": 364, + "line": 370, "column": 63 } } @@ -67398,15 +70215,15 @@ "binop": null }, "value": "type", - "start": 10375, - "end": 10379, + "start": 10753, + "end": 10757, "loc": { "start": { - "line": 364, + "line": 370, "column": 63 }, "end": { - "line": 364, + "line": 370, "column": 67 } } @@ -67424,15 +70241,15 @@ "binop": null, "updateContext": null }, - "start": 10379, - "end": 10380, + "start": 10757, + "end": 10758, "loc": { "start": { - "line": 364, + "line": 370, "column": 67 }, "end": { - "line": 364, + "line": 370, "column": 68 } } @@ -67450,15 +70267,15 @@ "binop": null, "updateContext": null }, - "start": 10380, - "end": 10381, + "start": 10758, + "end": 10759, "loc": { "start": { - "line": 364, + "line": 370, "column": 68 }, "end": { - "line": 364, + "line": 370, "column": 69 } } @@ -67476,15 +70293,15 @@ "binop": null }, "value": "data", - "start": 10381, - "end": 10385, + "start": 10759, + "end": 10763, "loc": { "start": { - "line": 364, + "line": 370, "column": 69 }, "end": { - "line": 364, + "line": 370, "column": 73 } } @@ -67502,15 +70319,15 @@ "binop": null, "updateContext": null }, - "start": 10385, - "end": 10386, + "start": 10763, + "end": 10764, "loc": { "start": { - "line": 364, + "line": 370, "column": 73 }, "end": { - "line": 364, + "line": 370, "column": 74 } } @@ -67528,15 +70345,15 @@ "binop": null }, "value": "id", - "start": 10386, - "end": 10388, + "start": 10764, + "end": 10766, "loc": { "start": { - "line": 364, + "line": 370, "column": 74 }, "end": { - "line": 364, + "line": 370, "column": 76 } } @@ -67554,15 +70371,15 @@ "binop": null, "updateContext": null }, - "start": 10388, - "end": 10389, + "start": 10766, + "end": 10767, "loc": { "start": { - "line": 364, + "line": 370, "column": 76 }, "end": { - "line": 364, + "line": 370, "column": 77 } } @@ -67581,15 +70398,15 @@ "updateContext": null }, "value": "!==", - "start": 10390, - "end": 10393, + "start": 10768, + "end": 10771, "loc": { "start": { - "line": 364, + "line": 370, "column": 78 }, "end": { - "line": 364, + "line": 370, "column": 81 } } @@ -67609,15 +70426,15 @@ "updateContext": null }, "value": "null", - "start": 10394, - "end": 10398, + "start": 10772, + "end": 10776, "loc": { "start": { - "line": 364, + "line": 370, "column": 82 }, "end": { - "line": 364, + "line": 370, "column": 86 } } @@ -67634,15 +70451,15 @@ "postfix": false, "binop": null }, - "start": 10398, - "end": 10399, + "start": 10776, + "end": 10777, "loc": { "start": { - "line": 364, + "line": 370, "column": 86 }, "end": { - "line": 364, + "line": 370, "column": 87 } } @@ -67659,15 +70476,15 @@ "postfix": false, "binop": null }, - "start": 10400, - "end": 10401, + "start": 10778, + "end": 10779, "loc": { "start": { - "line": 364, + "line": 370, "column": 88 }, "end": { - "line": 364, + "line": 370, "column": 89 } } @@ -67685,15 +70502,15 @@ "binop": null }, "value": "objects", - "start": 10404, - "end": 10411, + "start": 10782, + "end": 10789, "loc": { "start": { - "line": 365, + "line": 371, "column": 2 }, "end": { - "line": 365, + "line": 371, "column": 9 } } @@ -67711,15 +70528,15 @@ "binop": null, "updateContext": null }, - "start": 10411, - "end": 10412, + "start": 10789, + "end": 10790, "loc": { "start": { - "line": 365, + "line": 371, "column": 9 }, "end": { - "line": 365, + "line": 371, "column": 10 } } @@ -67737,15 +70554,15 @@ "binop": null }, "value": "data", - "start": 10412, - "end": 10416, + "start": 10790, + "end": 10794, "loc": { "start": { - "line": 365, + "line": 371, "column": 10 }, "end": { - "line": 365, + "line": 371, "column": 14 } } @@ -67763,15 +70580,15 @@ "binop": null, "updateContext": null }, - "start": 10416, - "end": 10417, + "start": 10794, + "end": 10795, "loc": { "start": { - "line": 365, + "line": 371, "column": 14 }, "end": { - "line": 365, + "line": 371, "column": 15 } } @@ -67789,15 +70606,15 @@ "binop": null }, "value": "type", - "start": 10417, - "end": 10421, + "start": 10795, + "end": 10799, "loc": { "start": { - "line": 365, + "line": 371, "column": 15 }, "end": { - "line": 365, + "line": 371, "column": 19 } } @@ -67815,15 +70632,15 @@ "binop": null, "updateContext": null }, - "start": 10421, - "end": 10422, + "start": 10799, + "end": 10800, "loc": { "start": { - "line": 365, + "line": 371, "column": 19 }, "end": { - "line": 365, + "line": 371, "column": 20 } } @@ -67841,15 +70658,15 @@ "binop": null, "updateContext": null }, - "start": 10422, - "end": 10423, + "start": 10800, + "end": 10801, "loc": { "start": { - "line": 365, + "line": 371, "column": 20 }, "end": { - "line": 365, + "line": 371, "column": 21 } } @@ -67867,15 +70684,15 @@ "binop": null }, "value": "data", - "start": 10423, - "end": 10427, + "start": 10801, + "end": 10805, "loc": { "start": { - "line": 365, + "line": 371, "column": 21 }, "end": { - "line": 365, + "line": 371, "column": 25 } } @@ -67893,15 +70710,15 @@ "binop": null, "updateContext": null }, - "start": 10427, - "end": 10428, + "start": 10805, + "end": 10806, "loc": { "start": { - "line": 365, + "line": 371, "column": 25 }, "end": { - "line": 365, + "line": 371, "column": 26 } } @@ -67919,15 +70736,15 @@ "binop": null }, "value": "id", - "start": 10428, - "end": 10430, + "start": 10806, + "end": 10808, "loc": { "start": { - "line": 365, + "line": 371, "column": 26 }, "end": { - "line": 365, + "line": 371, "column": 28 } } @@ -67945,15 +70762,15 @@ "binop": null, "updateContext": null }, - "start": 10430, - "end": 10431, + "start": 10808, + "end": 10809, "loc": { "start": { - "line": 365, + "line": 371, "column": 28 }, "end": { - "line": 365, + "line": 371, "column": 29 } } @@ -67971,15 +70788,15 @@ "binop": null, "updateContext": null }, - "start": 10431, - "end": 10432, + "start": 10809, + "end": 10810, "loc": { "start": { - "line": 365, + "line": 371, "column": 29 }, "end": { - "line": 365, + "line": 371, "column": 30 } } @@ -67997,15 +70814,15 @@ "binop": null }, "value": "hide", - "start": 10432, - "end": 10436, + "start": 10810, + "end": 10814, "loc": { "start": { - "line": 365, + "line": 371, "column": 30 }, "end": { - "line": 365, + "line": 371, "column": 34 } } @@ -68022,15 +70839,15 @@ "postfix": false, "binop": null }, - "start": 10436, - "end": 10437, + "start": 10814, + "end": 10815, "loc": { "start": { - "line": 365, + "line": 371, "column": 34 }, "end": { - "line": 365, + "line": 371, "column": 35 } } @@ -68047,15 +70864,15 @@ "postfix": false, "binop": null }, - "start": 10437, - "end": 10438, + "start": 10815, + "end": 10816, "loc": { "start": { - "line": 365, + "line": 371, "column": 35 }, "end": { - "line": 365, + "line": 371, "column": 36 } } @@ -68073,15 +70890,15 @@ "binop": null }, "value": "objects", - "start": 10441, - "end": 10448, + "start": 10819, + "end": 10826, "loc": { "start": { - "line": 366, + "line": 372, "column": 2 }, "end": { - "line": 366, + "line": 372, "column": 9 } } @@ -68099,15 +70916,15 @@ "binop": null, "updateContext": null }, - "start": 10448, - "end": 10449, + "start": 10826, + "end": 10827, "loc": { "start": { - "line": 366, + "line": 372, "column": 9 }, "end": { - "line": 366, + "line": 372, "column": 10 } } @@ -68125,15 +70942,15 @@ "binop": null }, "value": "data", - "start": 10449, - "end": 10453, + "start": 10827, + "end": 10831, "loc": { "start": { - "line": 366, + "line": 372, "column": 10 }, "end": { - "line": 366, + "line": 372, "column": 14 } } @@ -68151,15 +70968,15 @@ "binop": null, "updateContext": null }, - "start": 10453, - "end": 10454, + "start": 10831, + "end": 10832, "loc": { "start": { - "line": 366, + "line": 372, "column": 14 }, "end": { - "line": 366, + "line": 372, "column": 15 } } @@ -68177,15 +70994,15 @@ "binop": null }, "value": "type", - "start": 10454, - "end": 10458, + "start": 10832, + "end": 10836, "loc": { "start": { - "line": 366, + "line": 372, "column": 15 }, "end": { - "line": 366, + "line": 372, "column": 19 } } @@ -68203,15 +71020,15 @@ "binop": null, "updateContext": null }, - "start": 10458, - "end": 10459, + "start": 10836, + "end": 10837, "loc": { "start": { - "line": 366, + "line": 372, "column": 19 }, "end": { - "line": 366, + "line": 372, "column": 20 } } @@ -68229,15 +71046,15 @@ "binop": null, "updateContext": null }, - "start": 10459, - "end": 10460, + "start": 10837, + "end": 10838, "loc": { "start": { - "line": 366, + "line": 372, "column": 20 }, "end": { - "line": 366, + "line": 372, "column": 21 } } @@ -68255,15 +71072,15 @@ "binop": null }, "value": "data", - "start": 10460, - "end": 10464, + "start": 10838, + "end": 10842, "loc": { "start": { - "line": 366, + "line": 372, "column": 21 }, "end": { - "line": 366, + "line": 372, "column": 25 } } @@ -68281,15 +71098,15 @@ "binop": null, "updateContext": null }, - "start": 10464, - "end": 10465, + "start": 10842, + "end": 10843, "loc": { "start": { - "line": 366, + "line": 372, "column": 25 }, "end": { - "line": 366, + "line": 372, "column": 26 } } @@ -68307,15 +71124,15 @@ "binop": null }, "value": "id", - "start": 10465, - "end": 10467, + "start": 10843, + "end": 10845, "loc": { "start": { - "line": 366, + "line": 372, "column": 26 }, "end": { - "line": 366, + "line": 372, "column": 28 } } @@ -68333,15 +71150,15 @@ "binop": null, "updateContext": null }, - "start": 10467, - "end": 10468, + "start": 10845, + "end": 10846, "loc": { "start": { - "line": 366, + "line": 372, "column": 28 }, "end": { - "line": 366, + "line": 372, "column": 29 } } @@ -68359,15 +71176,15 @@ "binop": null, "updateContext": null }, - "start": 10468, - "end": 10469, + "start": 10846, + "end": 10847, "loc": { "start": { - "line": 366, + "line": 372, "column": 29 }, "end": { - "line": 366, + "line": 372, "column": 30 } } @@ -68385,15 +71202,15 @@ "binop": null }, "value": "destroy", - "start": 10469, - "end": 10476, + "start": 10847, + "end": 10854, "loc": { "start": { - "line": 366, + "line": 372, "column": 30 }, "end": { - "line": 366, + "line": 372, "column": 37 } } @@ -68410,15 +71227,15 @@ "postfix": false, "binop": null }, - "start": 10476, - "end": 10477, + "start": 10854, + "end": 10855, "loc": { "start": { - "line": 366, + "line": 372, "column": 37 }, "end": { - "line": 366, + "line": 372, "column": 38 } } @@ -68435,15 +71252,15 @@ "postfix": false, "binop": null }, - "start": 10477, - "end": 10478, + "start": 10855, + "end": 10856, "loc": { "start": { - "line": 366, + "line": 372, "column": 38 }, "end": { - "line": 366, + "line": 372, "column": 39 } } @@ -68451,15 +71268,15 @@ { "type": "CommentLine", "value": " delete objects[data.type][data.id];", - "start": 10481, - "end": 10519, + "start": 10859, + "end": 10897, "loc": { "start": { - "line": 367, + "line": 373, "column": 2 }, "end": { - "line": 367, + "line": 373, "column": 40 } } @@ -68479,15 +71296,15 @@ "updateContext": null }, "value": "return", - "start": 10522, - "end": 10528, + "start": 10900, + "end": 10906, "loc": { "start": { - "line": 368, + "line": 374, "column": 2 }, "end": { - "line": 368, + "line": 374, "column": 8 } } @@ -68507,15 +71324,15 @@ "updateContext": null }, "value": "true", - "start": 10529, - "end": 10533, + "start": 10907, + "end": 10911, "loc": { "start": { - "line": 368, + "line": 374, "column": 9 }, "end": { - "line": 368, + "line": 374, "column": 13 } } @@ -68532,15 +71349,15 @@ "postfix": false, "binop": null }, - "start": 10535, - "end": 10536, + "start": 10913, + "end": 10914, "loc": { "start": { - "line": 369, + "line": 375, "column": 1 }, "end": { - "line": 369, + "line": 375, "column": 2 } } @@ -68560,15 +71377,15 @@ "updateContext": null }, "value": "else", - "start": 10538, - "end": 10542, + "start": 10916, + "end": 10920, "loc": { "start": { - "line": 370, + "line": 376, "column": 1 }, "end": { - "line": 370, + "line": 376, "column": 5 } } @@ -68585,15 +71402,15 @@ "postfix": false, "binop": null }, - "start": 10543, - "end": 10544, + "start": 10921, + "end": 10922, "loc": { "start": { - "line": 370, + "line": 376, "column": 6 }, "end": { - "line": 370, + "line": 376, "column": 7 } } @@ -68613,15 +71430,15 @@ "updateContext": null }, "value": "return", - "start": 10547, - "end": 10553, + "start": 10925, + "end": 10931, "loc": { "start": { - "line": 371, + "line": 377, "column": 2 }, "end": { - "line": 371, + "line": 377, "column": 8 } } @@ -68641,15 +71458,15 @@ "updateContext": null }, "value": "false", - "start": 10554, - "end": 10559, + "start": 10932, + "end": 10937, "loc": { "start": { - "line": 371, + "line": 377, "column": 9 }, "end": { - "line": 371, + "line": 377, "column": 14 } } @@ -68666,15 +71483,15 @@ "postfix": false, "binop": null }, - "start": 10561, - "end": 10562, + "start": 10939, + "end": 10940, "loc": { "start": { - "line": 372, + "line": 378, "column": 1 }, "end": { - "line": 372, + "line": 378, "column": 2 } } @@ -68691,15 +71508,15 @@ "postfix": false, "binop": null }, - "start": 10563, - "end": 10564, + "start": 10941, + "end": 10942, "loc": { "start": { - "line": 373, + "line": 379, "column": 0 }, "end": { - "line": 373, + "line": 379, "column": 1 } } @@ -68717,15 +71534,15 @@ "binop": null, "updateContext": null }, - "start": 10565, - "end": 10565, + "start": 10943, + "end": 10943, "loc": { "start": { - "line": 374, + "line": 380, "column": 0 }, "end": { - "line": 374, + "line": 380, "column": 0 } } diff --git a/docs/ast/source/server/server.js.json b/docs/ast/source/server/server.js.json index f5c4934..0f3d95e 100644 --- a/docs/ast/source/server/server.js.json +++ b/docs/ast/source/server/server.js.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 10228, + "end": 10231, "loc": { "start": { "line": 1, @@ -15,7 +15,7 @@ "program": { "type": "Program", "start": 0, - "end": 10228, + "end": 10231, "loc": { "start": { "line": 1, @@ -2088,7 +2088,7 @@ { "type": "ExpressionStatement", "start": 2157, - "end": 7233, + "end": 7236, "loc": { "start": { "line": 66, @@ -2102,7 +2102,7 @@ "expression": { "type": "CallExpression", "start": 2157, - "end": 7233, + "end": 7236, "loc": { "start": { "line": 66, @@ -2189,7 +2189,7 @@ { "type": "ArrowFunctionExpression", "start": 2177, - "end": 7232, + "end": 7235, "loc": { "start": { "line": 66, @@ -2226,7 +2226,7 @@ "body": { "type": "BlockStatement", "start": 2187, - "end": 7232, + "end": 7235, "loc": { "start": { "line": 66, @@ -13688,7 +13688,7 @@ { "type": "ExpressionStatement", "start": 5951, - "end": 6199, + "end": 6202, "loc": { "start": { "line": 184, @@ -13702,7 +13702,7 @@ "expression": { "type": "CallExpression", "start": 5951, - "end": 6199, + "end": 6202, "loc": { "start": { "line": 184, @@ -13789,7 +13789,7 @@ { "type": "ArrowFunctionExpression", "start": 5976, - "end": 6198, + "end": 6201, "loc": { "start": { "line": 184, @@ -13826,7 +13826,7 @@ "body": { "type": "BlockStatement", "start": 5986, - "end": 6198, + "end": 6201, "loc": { "start": { "line": 184, @@ -13841,7 +13841,7 @@ { "type": "IfStatement", "start": 5990, - "end": 6195, + "end": 6198, "loc": { "start": { "line": 185, @@ -13905,7 +13905,7 @@ "consequent": { "type": "BlockStatement", "start": 6008, - "end": 6195, + "end": 6198, "loc": { "start": { "line": 185, @@ -13917,274 +13917,10 @@ } }, "body": [ - { - "type": "ExpressionStatement", - "start": 6013, - "end": 6067, - "loc": { - "start": { - "line": 186, - "column": 3 - }, - "end": { - "line": 186, - "column": 57 - } - }, - "expression": { - "type": "CallExpression", - "start": 6013, - "end": 6067, - "loc": { - "start": { - "line": 186, - "column": 3 - }, - "end": { - "line": 186, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6013, - "end": 6024, - "loc": { - "start": { - "line": 186, - "column": 3 - }, - "end": { - "line": 186, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 6013, - "end": 6020, - "loc": { - "start": { - "line": 186, - "column": 3 - }, - "end": { - "line": 186, - "column": 10 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 6021, - "end": 6024, - "loc": { - "start": { - "line": 186, - "column": 11 - }, - "end": { - "line": 186, - "column": 14 - }, - "identifierName": "log" - }, - "name": "log" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 6025, - "end": 6066, - "loc": { - "start": { - "line": 186, - "column": 15 - }, - "end": { - "line": 186, - "column": 56 - } - }, - "object": { - "type": "MemberExpression", - "start": 6025, - "end": 6057, - "loc": { - "start": { - "line": 186, - "column": 15 - }, - "end": { - "line": 186, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 6025, - "end": 6044, - "loc": { - "start": { - "line": 186, - "column": 15 - }, - "end": { - "line": 186, - "column": 34 - } - }, - "object": { - "type": "MemberExpression", - "start": 6025, - "end": 6036, - "loc": { - "start": { - "line": 186, - "column": 15 - }, - "end": { - "line": 186, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 6025, - "end": 6030, - "loc": { - "start": { - "line": 186, - "column": 15 - }, - "end": { - "line": 186, - "column": 20 - }, - "identifierName": "rooms" - }, - "name": "rooms" - }, - "property": { - "type": "Identifier", - "start": 6031, - "end": 6035, - "loc": { - "start": { - "line": 186, - "column": 21 - }, - "end": { - "line": 186, - "column": 25 - }, - "identifierName": "room" - }, - "name": "room" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 6037, - "end": 6044, - "loc": { - "start": { - "line": 186, - "column": 27 - }, - "end": { - "line": 186, - "column": 34 - }, - "identifierName": "players" - }, - "name": "players" - }, - "computed": false - }, - "property": { - "type": "MemberExpression", - "start": 6045, - "end": 6056, - "loc": { - "start": { - "line": 186, - "column": 35 - }, - "end": { - "line": 186, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 6045, - "end": 6049, - "loc": { - "start": { - "line": 186, - "column": 35 - }, - "end": { - "line": 186, - "column": 39 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 6050, - "end": 6056, - "loc": { - "start": { - "line": 186, - "column": 40 - }, - "end": { - "line": 186, - "column": 46 - }, - "identifierName": "player" - }, - "name": "player" - }, - "computed": false - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 6058, - "end": 6066, - "loc": { - "start": { - "line": 186, - "column": 48 - }, - "end": { - "line": 186, - "column": 56 - }, - "identifierName": "atomList" - }, - "name": "atomList" - }, - "computed": false - } - ] - } - }, { "type": "ForInStatement", - "start": 6071, - "end": 6191, + "start": 6074, + "end": 6194, "loc": { "start": { "line": 187, @@ -14197,8 +13933,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 6076, - "end": 6081, + "start": 6079, + "end": 6084, "loc": { "start": { "line": 187, @@ -14212,8 +13948,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 6080, - "end": 6081, + "start": 6083, + "end": 6084, "loc": { "start": { "line": 187, @@ -14226,8 +13962,8 @@ }, "id": { "type": "Identifier", - "start": 6080, - "end": 6081, + "start": 6083, + "end": 6084, "loc": { "start": { "line": 187, @@ -14239,17 +13975,20 @@ }, "identifierName": "i" }, - "name": "i" + "name": "i", + "leadingComments": null }, - "init": null + "init": null, + "leadingComments": null } ], - "kind": "let" + "kind": "let", + "leadingComments": null }, "right": { "type": "MemberExpression", - "start": 6085, - "end": 6126, + "start": 6088, + "end": 6129, "loc": { "start": { "line": 187, @@ -14262,8 +14001,8 @@ }, "object": { "type": "MemberExpression", - "start": 6085, - "end": 6117, + "start": 6088, + "end": 6120, "loc": { "start": { "line": 187, @@ -14276,8 +14015,8 @@ }, "object": { "type": "MemberExpression", - "start": 6085, - "end": 6104, + "start": 6088, + "end": 6107, "loc": { "start": { "line": 187, @@ -14290,8 +14029,8 @@ }, "object": { "type": "MemberExpression", - "start": 6085, - "end": 6096, + "start": 6088, + "end": 6099, "loc": { "start": { "line": 187, @@ -14304,8 +14043,8 @@ }, "object": { "type": "Identifier", - "start": 6085, - "end": 6090, + "start": 6088, + "end": 6093, "loc": { "start": { "line": 187, @@ -14321,8 +14060,8 @@ }, "property": { "type": "Identifier", - "start": 6091, - "end": 6095, + "start": 6094, + "end": 6098, "loc": { "start": { "line": 187, @@ -14340,8 +14079,8 @@ }, "property": { "type": "Identifier", - "start": 6097, - "end": 6104, + "start": 6100, + "end": 6107, "loc": { "start": { "line": 187, @@ -14359,8 +14098,8 @@ }, "property": { "type": "MemberExpression", - "start": 6105, - "end": 6116, + "start": 6108, + "end": 6119, "loc": { "start": { "line": 187, @@ -14373,8 +14112,8 @@ }, "object": { "type": "Identifier", - "start": 6105, - "end": 6109, + "start": 6108, + "end": 6112, "loc": { "start": { "line": 187, @@ -14390,8 +14129,8 @@ }, "property": { "type": "Identifier", - "start": 6110, - "end": 6116, + "start": 6113, + "end": 6119, "loc": { "start": { "line": 187, @@ -14411,8 +14150,8 @@ }, "property": { "type": "Identifier", - "start": 6118, - "end": 6126, + "start": 6121, + "end": 6129, "loc": { "start": { "line": 187, @@ -14430,8 +14169,8 @@ }, "body": { "type": "BlockStatement", - "start": 6128, - "end": 6191, + "start": 6131, + "end": 6194, "loc": { "start": { "line": 187, @@ -14445,8 +14184,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6134, - "end": 6186, + "start": 6137, + "end": 6189, "loc": { "start": { "line": 188, @@ -14459,8 +14198,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6134, - "end": 6186, + "start": 6137, + "end": 6189, "loc": { "start": { "line": 188, @@ -14474,8 +14213,8 @@ "operator": "+=", "left": { "type": "MemberExpression", - "start": 6134, - "end": 6178, + "start": 6137, + "end": 6181, "loc": { "start": { "line": 188, @@ -14488,8 +14227,8 @@ }, "object": { "type": "MemberExpression", - "start": 6134, - "end": 6175, + "start": 6137, + "end": 6178, "loc": { "start": { "line": 188, @@ -14502,8 +14241,8 @@ }, "object": { "type": "MemberExpression", - "start": 6134, - "end": 6166, + "start": 6137, + "end": 6169, "loc": { "start": { "line": 188, @@ -14516,8 +14255,8 @@ }, "object": { "type": "MemberExpression", - "start": 6134, - "end": 6153, + "start": 6137, + "end": 6156, "loc": { "start": { "line": 188, @@ -14530,8 +14269,8 @@ }, "object": { "type": "MemberExpression", - "start": 6134, - "end": 6145, + "start": 6137, + "end": 6148, "loc": { "start": { "line": 188, @@ -14544,8 +14283,8 @@ }, "object": { "type": "Identifier", - "start": 6134, - "end": 6139, + "start": 6137, + "end": 6142, "loc": { "start": { "line": 188, @@ -14561,8 +14300,8 @@ }, "property": { "type": "Identifier", - "start": 6140, - "end": 6144, + "start": 6143, + "end": 6147, "loc": { "start": { "line": 188, @@ -14580,8 +14319,8 @@ }, "property": { "type": "Identifier", - "start": 6146, - "end": 6153, + "start": 6149, + "end": 6156, "loc": { "start": { "line": 188, @@ -14599,8 +14338,8 @@ }, "property": { "type": "MemberExpression", - "start": 6154, - "end": 6165, + "start": 6157, + "end": 6168, "loc": { "start": { "line": 188, @@ -14613,8 +14352,8 @@ }, "object": { "type": "Identifier", - "start": 6154, - "end": 6158, + "start": 6157, + "end": 6161, "loc": { "start": { "line": 188, @@ -14630,8 +14369,8 @@ }, "property": { "type": "Identifier", - "start": 6159, - "end": 6165, + "start": 6162, + "end": 6168, "loc": { "start": { "line": 188, @@ -14651,8 +14390,8 @@ }, "property": { "type": "Identifier", - "start": 6167, - "end": 6175, + "start": 6170, + "end": 6178, "loc": { "start": { "line": 188, @@ -14670,8 +14409,8 @@ }, "property": { "type": "Identifier", - "start": 6176, - "end": 6177, + "start": 6179, + "end": 6180, "loc": { "start": { "line": 188, @@ -14689,8 +14428,8 @@ }, "right": { "type": "NumericLiteral", - "start": 6182, - "end": 6186, + "start": 6185, + "end": 6189, "loc": { "start": { "line": 188, @@ -14711,7 +14450,25 @@ } ], "directives": [] - } + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " console.log(rooms[room].players[data.player].atomList)", + "start": 6013, + "end": 6070, + "loc": { + "start": { + "line": 186, + "column": 3 + }, + "end": { + "line": 186, + "column": 60 + } + } + } + ] } ], "directives": [] @@ -14746,8 +14503,8 @@ }, { "type": "ExpressionStatement", - "start": 6202, - "end": 7230, + "start": 6205, + "end": 7233, "loc": { "start": { "line": 193, @@ -14760,8 +14517,8 @@ }, "expression": { "type": "CallExpression", - "start": 6202, - "end": 7230, + "start": 6205, + "end": 7233, "loc": { "start": { "line": 193, @@ -14774,8 +14531,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6202, - "end": 6211, + "start": 6205, + "end": 6214, "loc": { "start": { "line": 193, @@ -14788,8 +14545,8 @@ }, "object": { "type": "Identifier", - "start": 6202, - "end": 6208, + "start": 6205, + "end": 6211, "loc": { "start": { "line": 193, @@ -14805,8 +14562,8 @@ }, "property": { "type": "Identifier", - "start": 6209, - "end": 6211, + "start": 6212, + "end": 6214, "loc": { "start": { "line": 193, @@ -14825,8 +14582,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 6212, - "end": 6224, + "start": 6215, + "end": 6227, "loc": { "start": { "line": 193, @@ -14845,8 +14602,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 6226, - "end": 7229, + "start": 6229, + "end": 7232, "loc": { "start": { "line": 193, @@ -14864,8 +14621,8 @@ "params": [ { "type": "Identifier", - "start": 6226, - "end": 6230, + "start": 6229, + "end": 6233, "loc": { "start": { "line": 193, @@ -14882,8 +14639,8 @@ ], "body": { "type": "BlockStatement", - "start": 6234, - "end": 7229, + "start": 6237, + "end": 7232, "loc": { "start": { "line": 193, @@ -14897,8 +14654,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6238, - "end": 6388, + "start": 6241, + "end": 6391, "loc": { "start": { "line": 194, @@ -14911,8 +14668,8 @@ }, "expression": { "type": "CallExpression", - "start": 6238, - "end": 6388, + "start": 6241, + "end": 6391, "loc": { "start": { "line": 194, @@ -14925,8 +14682,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6238, - "end": 6249, + "start": 6241, + "end": 6252, "loc": { "start": { "line": 194, @@ -14939,8 +14696,8 @@ }, "object": { "type": "Identifier", - "start": 6238, - "end": 6245, + "start": 6241, + "end": 6248, "loc": { "start": { "line": 194, @@ -14956,8 +14713,8 @@ }, "property": { "type": "Identifier", - "start": 6246, - "end": 6249, + "start": 6249, + "end": 6252, "loc": { "start": { "line": 194, @@ -14976,8 +14733,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 6250, - "end": 6387, + "start": 6253, + "end": 6390, "loc": { "start": { "line": 194, @@ -14990,8 +14747,8 @@ }, "left": { "type": "BinaryExpression", - "start": 6250, - "end": 6380, + "start": 6253, + "end": 6383, "loc": { "start": { "line": 194, @@ -15004,8 +14761,8 @@ }, "left": { "type": "BinaryExpression", - "start": 6250, - "end": 6373, + "start": 6253, + "end": 6376, "loc": { "start": { "line": 194, @@ -15018,8 +14775,8 @@ }, "left": { "type": "BinaryExpression", - "start": 6250, - "end": 6327, + "start": 6253, + "end": 6330, "loc": { "start": { "line": 194, @@ -15032,8 +14789,8 @@ }, "left": { "type": "BinaryExpression", - "start": 6250, - "end": 6301, + "start": 6253, + "end": 6304, "loc": { "start": { "line": 194, @@ -15046,8 +14803,8 @@ }, "left": { "type": "MemberExpression", - "start": 6250, - "end": 6270, + "start": 6253, + "end": 6273, "loc": { "start": { "line": 194, @@ -15060,8 +14817,8 @@ }, "object": { "type": "MemberExpression", - "start": 6250, - "end": 6265, + "start": 6253, + "end": 6268, "loc": { "start": { "line": 194, @@ -15074,8 +14831,8 @@ }, "object": { "type": "StringLiteral", - "start": 6250, - "end": 6260, + "start": 6253, + "end": 6263, "loc": { "start": { "line": 194, @@ -15094,8 +14851,8 @@ }, "property": { "type": "Identifier", - "start": 6261, - "end": 6265, + "start": 6264, + "end": 6268, "loc": { "start": { "line": 194, @@ -15113,8 +14870,8 @@ }, "property": { "type": "Identifier", - "start": 6266, - "end": 6270, + "start": 6269, + "end": 6273, "loc": { "start": { "line": 194, @@ -15133,8 +14890,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 6273, - "end": 6301, + "start": 6276, + "end": 6304, "loc": { "start": { "line": 194, @@ -15147,8 +14904,8 @@ }, "object": { "type": "StringLiteral", - "start": 6273, - "end": 6297, + "start": 6276, + "end": 6300, "loc": { "start": { "line": 194, @@ -15167,8 +14924,8 @@ }, "property": { "type": "Identifier", - "start": 6298, - "end": 6301, + "start": 6301, + "end": 6304, "loc": { "start": { "line": 194, @@ -15188,8 +14945,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 6304, - "end": 6327, + "start": 6307, + "end": 6330, "loc": { "start": { "line": 194, @@ -15202,8 +14959,8 @@ }, "object": { "type": "BinaryExpression", - "start": 6305, - "end": 6319, + "start": 6308, + "end": 6322, "loc": { "start": { "line": 194, @@ -15216,8 +14973,8 @@ }, "left": { "type": "StringLiteral", - "start": 6305, - "end": 6307, + "start": 6308, + "end": 6310, "loc": { "start": { "line": 194, @@ -15237,8 +14994,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 6310, - "end": 6319, + "start": 6313, + "end": 6322, "loc": { "start": { "line": 194, @@ -15251,8 +15008,8 @@ }, "object": { "type": "Identifier", - "start": 6310, - "end": 6316, + "start": 6313, + "end": 6319, "loc": { "start": { "line": 194, @@ -15268,8 +15025,8 @@ }, "property": { "type": "Identifier", - "start": 6317, - "end": 6319, + "start": 6320, + "end": 6322, "loc": { "start": { "line": 194, @@ -15287,13 +15044,13 @@ }, "extra": { "parenthesized": true, - "parenStart": 6304 + "parenStart": 6307 } }, "property": { "type": "Identifier", - "start": 6321, - "end": 6327, + "start": 6324, + "end": 6330, "loc": { "start": { "line": 194, @@ -15313,8 +15070,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 6330, - "end": 6373, + "start": 6333, + "end": 6376, "loc": { "start": { "line": 194, @@ -15327,8 +15084,8 @@ }, "object": { "type": "BinaryExpression", - "start": 6331, - "end": 6366, + "start": 6334, + "end": 6369, "loc": { "start": { "line": 194, @@ -15341,8 +15098,8 @@ }, "left": { "type": "StringLiteral", - "start": 6331, - "end": 6333, + "start": 6334, + "end": 6336, "loc": { "start": { "line": 194, @@ -15362,8 +15119,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 6336, - "end": 6366, + "start": 6339, + "end": 6369, "loc": { "start": { "line": 194, @@ -15376,8 +15133,8 @@ }, "object": { "type": "MemberExpression", - "start": 6336, - "end": 6355, + "start": 6339, + "end": 6358, "loc": { "start": { "line": 194, @@ -15390,8 +15147,8 @@ }, "object": { "type": "MemberExpression", - "start": 6336, - "end": 6347, + "start": 6339, + "end": 6350, "loc": { "start": { "line": 194, @@ -15404,8 +15161,8 @@ }, "object": { "type": "Identifier", - "start": 6336, - "end": 6341, + "start": 6339, + "end": 6344, "loc": { "start": { "line": 194, @@ -15421,8 +15178,8 @@ }, "property": { "type": "Identifier", - "start": 6342, - "end": 6346, + "start": 6345, + "end": 6349, "loc": { "start": { "line": 194, @@ -15440,8 +15197,8 @@ }, "property": { "type": "Identifier", - "start": 6348, - "end": 6355, + "start": 6351, + "end": 6358, "loc": { "start": { "line": 194, @@ -15459,8 +15216,8 @@ }, "property": { "type": "MemberExpression", - "start": 6356, - "end": 6365, + "start": 6359, + "end": 6368, "loc": { "start": { "line": 194, @@ -15473,8 +15230,8 @@ }, "object": { "type": "Identifier", - "start": 6356, - "end": 6362, + "start": 6359, + "end": 6365, "loc": { "start": { "line": 194, @@ -15490,8 +15247,8 @@ }, "property": { "type": "Identifier", - "start": 6363, - "end": 6365, + "start": 6366, + "end": 6368, "loc": { "start": { "line": 194, @@ -15511,13 +15268,13 @@ }, "extra": { "parenthesized": true, - "parenStart": 6330 + "parenStart": 6333 } }, "property": { "type": "Identifier", - "start": 6368, - "end": 6373, + "start": 6371, + "end": 6376, "loc": { "start": { "line": 194, @@ -15537,8 +15294,8 @@ "operator": "+", "right": { "type": "StringLiteral", - "start": 6376, - "end": 6380, + "start": 6379, + "end": 6383, "loc": { "start": { "line": 194, @@ -15559,8 +15316,8 @@ "operator": "+", "right": { "type": "Identifier", - "start": 6383, - "end": 6387, + "start": 6386, + "end": 6390, "loc": { "start": { "line": 194, @@ -15580,8 +15337,8 @@ }, { "type": "ExpressionStatement", - "start": 6392, - "end": 6463, + "start": 6395, + "end": 6466, "loc": { "start": { "line": 196, @@ -15594,8 +15351,8 @@ }, "expression": { "type": "CallExpression", - "start": 6392, - "end": 6463, + "start": 6395, + "end": 6466, "loc": { "start": { "line": 196, @@ -15608,8 +15365,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6392, - "end": 6422, + "start": 6395, + "end": 6425, "loc": { "start": { "line": 196, @@ -15622,8 +15379,8 @@ }, "object": { "type": "MemberExpression", - "start": 6392, - "end": 6417, + "start": 6395, + "end": 6420, "loc": { "start": { "line": 196, @@ -15636,8 +15393,8 @@ }, "object": { "type": "CallExpression", - "start": 6392, - "end": 6407, + "start": 6395, + "end": 6410, "loc": { "start": { "line": 196, @@ -15650,8 +15407,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6392, - "end": 6401, + "start": 6395, + "end": 6404, "loc": { "start": { "line": 196, @@ -15664,8 +15421,8 @@ }, "object": { "type": "Identifier", - "start": 6392, - "end": 6398, + "start": 6395, + "end": 6401, "loc": { "start": { "line": 196, @@ -15681,8 +15438,8 @@ }, "property": { "type": "Identifier", - "start": 6399, - "end": 6401, + "start": 6402, + "end": 6404, "loc": { "start": { "line": 196, @@ -15701,8 +15458,8 @@ "arguments": [ { "type": "Identifier", - "start": 6402, - "end": 6406, + "start": 6405, + "end": 6409, "loc": { "start": { "line": 196, @@ -15720,8 +15477,8 @@ }, "property": { "type": "Identifier", - "start": 6408, - "end": 6417, + "start": 6411, + "end": 6420, "loc": { "start": { "line": 196, @@ -15739,8 +15496,8 @@ }, "property": { "type": "Identifier", - "start": 6418, - "end": 6422, + "start": 6421, + "end": 6425, "loc": { "start": { "line": 196, @@ -15759,8 +15516,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 6423, - "end": 6443, + "start": 6426, + "end": 6446, "loc": { "start": { "line": 196, @@ -15779,8 +15536,8 @@ }, { "type": "ObjectExpression", - "start": 6445, - "end": 6462, + "start": 6448, + "end": 6465, "loc": { "start": { "line": 196, @@ -15794,8 +15551,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 6447, - "end": 6460, + "start": 6450, + "end": 6463, "loc": { "start": { "line": 196, @@ -15811,8 +15568,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6447, - "end": 6449, + "start": 6450, + "end": 6452, "loc": { "start": { "line": 196, @@ -15828,8 +15585,8 @@ }, "value": { "type": "MemberExpression", - "start": 6451, - "end": 6460, + "start": 6454, + "end": 6463, "loc": { "start": { "line": 196, @@ -15842,8 +15599,8 @@ }, "object": { "type": "Identifier", - "start": 6451, - "end": 6457, + "start": 6454, + "end": 6460, "loc": { "start": { "line": 196, @@ -15859,8 +15616,8 @@ }, "property": { "type": "Identifier", - "start": 6458, - "end": 6460, + "start": 6461, + "end": 6463, "loc": { "start": { "line": 196, @@ -15886,8 +15643,8 @@ { "type": "CommentLine", "value": " Broadcast to everyone in the room to delete the player", - "start": 6464, - "end": 6521, + "start": 6467, + "end": 6524, "loc": { "start": { "line": 196, @@ -15903,8 +15660,8 @@ }, { "type": "ExpressionStatement", - "start": 6525, - "end": 6562, + "start": 6528, + "end": 6565, "loc": { "start": { "line": 198, @@ -15917,8 +15674,8 @@ }, "expression": { "type": "UnaryExpression", - "start": 6525, - "end": 6562, + "start": 6528, + "end": 6565, "loc": { "start": { "line": 198, @@ -15933,8 +15690,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 6532, - "end": 6562, + "start": 6535, + "end": 6565, "loc": { "start": { "line": 198, @@ -15947,8 +15704,8 @@ }, "object": { "type": "MemberExpression", - "start": 6532, - "end": 6551, + "start": 6535, + "end": 6554, "loc": { "start": { "line": 198, @@ -15961,8 +15718,8 @@ }, "object": { "type": "MemberExpression", - "start": 6532, - "end": 6543, + "start": 6535, + "end": 6546, "loc": { "start": { "line": 198, @@ -15975,8 +15732,8 @@ }, "object": { "type": "Identifier", - "start": 6532, - "end": 6537, + "start": 6535, + "end": 6540, "loc": { "start": { "line": 198, @@ -15993,8 +15750,8 @@ }, "property": { "type": "Identifier", - "start": 6538, - "end": 6542, + "start": 6541, + "end": 6545, "loc": { "start": { "line": 198, @@ -16013,8 +15770,8 @@ }, "property": { "type": "Identifier", - "start": 6544, - "end": 6551, + "start": 6547, + "end": 6554, "loc": { "start": { "line": 198, @@ -16033,8 +15790,8 @@ }, "property": { "type": "MemberExpression", - "start": 6552, - "end": 6561, + "start": 6555, + "end": 6564, "loc": { "start": { "line": 198, @@ -16047,8 +15804,8 @@ }, "object": { "type": "Identifier", - "start": 6552, - "end": 6558, + "start": 6555, + "end": 6561, "loc": { "start": { "line": 198, @@ -16064,8 +15821,8 @@ }, "property": { "type": "Identifier", - "start": 6559, - "end": 6561, + "start": 6562, + "end": 6564, "loc": { "start": { "line": 198, @@ -16095,8 +15852,8 @@ { "type": "CommentLine", "value": " Broadcast to everyone in the room to delete the player", - "start": 6464, - "end": 6521, + "start": 6467, + "end": 6524, "loc": { "start": { "line": 196, @@ -16113,8 +15870,8 @@ { "type": "CommentLine", "value": " Remove the server side player", - "start": 6563, - "end": 6595, + "start": 6566, + "end": 6598, "loc": { "start": { "line": 198, @@ -16129,8 +15886,8 @@ { "type": "CommentLine", "value": " Delete room if there is nobody inside", - "start": 6599, - "end": 6639, + "start": 6602, + "end": 6642, "loc": { "start": { "line": 200, @@ -16146,8 +15903,8 @@ }, { "type": "IfStatement", - "start": 6642, - "end": 7226, + "start": 6645, + "end": 7229, "loc": { "start": { "line": 201, @@ -16160,8 +15917,8 @@ }, "test": { "type": "BinaryExpression", - "start": 6646, - "end": 6691, + "start": 6649, + "end": 6694, "loc": { "start": { "line": 201, @@ -16174,8 +15931,8 @@ }, "left": { "type": "MemberExpression", - "start": 6646, - "end": 6685, + "start": 6649, + "end": 6688, "loc": { "start": { "line": 201, @@ -16188,8 +15945,8 @@ }, "object": { "type": "CallExpression", - "start": 6646, - "end": 6678, + "start": 6649, + "end": 6681, "loc": { "start": { "line": 201, @@ -16202,8 +15959,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6646, - "end": 6657, + "start": 6649, + "end": 6660, "loc": { "start": { "line": 201, @@ -16216,8 +15973,8 @@ }, "object": { "type": "Identifier", - "start": 6646, - "end": 6652, + "start": 6649, + "end": 6655, "loc": { "start": { "line": 201, @@ -16234,8 +15991,8 @@ }, "property": { "type": "Identifier", - "start": 6653, - "end": 6657, + "start": 6656, + "end": 6660, "loc": { "start": { "line": 201, @@ -16255,8 +16012,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 6658, - "end": 6677, + "start": 6661, + "end": 6680, "loc": { "start": { "line": 201, @@ -16269,8 +16026,8 @@ }, "object": { "type": "MemberExpression", - "start": 6658, - "end": 6669, + "start": 6661, + "end": 6672, "loc": { "start": { "line": 201, @@ -16283,8 +16040,8 @@ }, "object": { "type": "Identifier", - "start": 6658, - "end": 6663, + "start": 6661, + "end": 6666, "loc": { "start": { "line": 201, @@ -16300,8 +16057,8 @@ }, "property": { "type": "Identifier", - "start": 6664, - "end": 6668, + "start": 6667, + "end": 6671, "loc": { "start": { "line": 201, @@ -16319,8 +16076,8 @@ }, "property": { "type": "Identifier", - "start": 6670, - "end": 6677, + "start": 6673, + "end": 6680, "loc": { "start": { "line": 201, @@ -16341,8 +16098,8 @@ }, "property": { "type": "Identifier", - "start": 6679, - "end": 6685, + "start": 6682, + "end": 6688, "loc": { "start": { "line": 201, @@ -16362,8 +16119,8 @@ "operator": "===", "right": { "type": "NumericLiteral", - "start": 6690, - "end": 6691, + "start": 6693, + "end": 6694, "loc": { "start": { "line": 201, @@ -16384,8 +16141,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6693, - "end": 7226, + "start": 6696, + "end": 7229, "loc": { "start": { "line": 201, @@ -16399,8 +16156,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6698, - "end": 6777, + "start": 6701, + "end": 6780, "loc": { "start": { "line": 202, @@ -16413,8 +16170,8 @@ }, "expression": { "type": "CallExpression", - "start": 6698, - "end": 6777, + "start": 6701, + "end": 6780, "loc": { "start": { "line": 202, @@ -16427,8 +16184,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6698, - "end": 6709, + "start": 6701, + "end": 6712, "loc": { "start": { "line": 202, @@ -16441,8 +16198,8 @@ }, "object": { "type": "Identifier", - "start": 6698, - "end": 6705, + "start": 6701, + "end": 6708, "loc": { "start": { "line": 202, @@ -16458,8 +16215,8 @@ }, "property": { "type": "Identifier", - "start": 6706, - "end": 6709, + "start": 6709, + "end": 6712, "loc": { "start": { "line": 202, @@ -16478,8 +16235,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 6710, - "end": 6776, + "start": 6713, + "end": 6779, "loc": { "start": { "line": 202, @@ -16492,8 +16249,8 @@ }, "left": { "type": "BinaryExpression", - "start": 6710, - "end": 6753, + "start": 6713, + "end": 6756, "loc": { "start": { "line": 202, @@ -16506,8 +16263,8 @@ }, "left": { "type": "MemberExpression", - "start": 6710, - "end": 6731, + "start": 6713, + "end": 6734, "loc": { "start": { "line": 202, @@ -16520,8 +16277,8 @@ }, "object": { "type": "MemberExpression", - "start": 6710, - "end": 6726, + "start": 6713, + "end": 6729, "loc": { "start": { "line": 202, @@ -16534,8 +16291,8 @@ }, "object": { "type": "StringLiteral", - "start": 6710, - "end": 6721, + "start": 6713, + "end": 6724, "loc": { "start": { "line": 202, @@ -16554,8 +16311,8 @@ }, "property": { "type": "Identifier", - "start": 6722, - "end": 6726, + "start": 6725, + "end": 6729, "loc": { "start": { "line": 202, @@ -16573,8 +16330,8 @@ }, "property": { "type": "Identifier", - "start": 6727, - "end": 6731, + "start": 6730, + "end": 6734, "loc": { "start": { "line": 202, @@ -16593,8 +16350,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 6734, - "end": 6753, + "start": 6737, + "end": 6756, "loc": { "start": { "line": 202, @@ -16607,8 +16364,8 @@ }, "object": { "type": "StringLiteral", - "start": 6734, - "end": 6749, + "start": 6737, + "end": 6752, "loc": { "start": { "line": 202, @@ -16627,8 +16384,8 @@ }, "property": { "type": "Identifier", - "start": 6750, - "end": 6753, + "start": 6753, + "end": 6756, "loc": { "start": { "line": 202, @@ -16648,8 +16405,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 6756, - "end": 6776, + "start": 6759, + "end": 6779, "loc": { "start": { "line": 202, @@ -16662,8 +16419,8 @@ }, "object": { "type": "MemberExpression", - "start": 6756, - "end": 6772, + "start": 6759, + "end": 6775, "loc": { "start": { "line": 202, @@ -16676,8 +16433,8 @@ }, "object": { "type": "BinaryExpression", - "start": 6757, - "end": 6766, + "start": 6760, + "end": 6769, "loc": { "start": { "line": 202, @@ -16690,8 +16447,8 @@ }, "left": { "type": "Identifier", - "start": 6757, - "end": 6761, + "start": 6760, + "end": 6764, "loc": { "start": { "line": 202, @@ -16708,8 +16465,8 @@ "operator": "+", "right": { "type": "StringLiteral", - "start": 6764, - "end": 6766, + "start": 6767, + "end": 6769, "loc": { "start": { "line": 202, @@ -16728,13 +16485,13 @@ }, "extra": { "parenthesized": true, - "parenStart": 6756 + "parenStart": 6759 } }, "property": { "type": "Identifier", - "start": 6768, - "end": 6772, + "start": 6771, + "end": 6775, "loc": { "start": { "line": 202, @@ -16752,8 +16509,8 @@ }, "property": { "type": "Identifier", - "start": 6773, - "end": 6776, + "start": 6776, + "end": 6779, "loc": { "start": { "line": 202, @@ -16775,8 +16532,8 @@ }, { "type": "ExpressionStatement", - "start": 6781, - "end": 6823, + "start": 6784, + "end": 6826, "loc": { "start": { "line": 203, @@ -16789,8 +16546,8 @@ }, "expression": { "type": "UnaryExpression", - "start": 6781, - "end": 6823, + "start": 6784, + "end": 6826, "loc": { "start": { "line": 203, @@ -16805,8 +16562,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 6788, - "end": 6823, + "start": 6791, + "end": 6826, "loc": { "start": { "line": 203, @@ -16819,8 +16576,8 @@ }, "object": { "type": "MemberExpression", - "start": 6788, - "end": 6812, + "start": 6791, + "end": 6815, "loc": { "start": { "line": 203, @@ -16833,8 +16590,8 @@ }, "object": { "type": "MemberExpression", - "start": 6788, - "end": 6806, + "start": 6791, + "end": 6809, "loc": { "start": { "line": 203, @@ -16847,8 +16604,8 @@ }, "object": { "type": "MemberExpression", - "start": 6788, - "end": 6798, + "start": 6791, + "end": 6801, "loc": { "start": { "line": 203, @@ -16861,8 +16618,8 @@ }, "object": { "type": "Identifier", - "start": 6788, - "end": 6790, + "start": 6791, + "end": 6793, "loc": { "start": { "line": 203, @@ -16878,8 +16635,8 @@ }, "property": { "type": "Identifier", - "start": 6791, - "end": 6798, + "start": 6794, + "end": 6801, "loc": { "start": { "line": 203, @@ -16897,8 +16654,8 @@ }, "property": { "type": "Identifier", - "start": 6799, - "end": 6806, + "start": 6802, + "end": 6809, "loc": { "start": { "line": 203, @@ -16916,8 +16673,8 @@ }, "property": { "type": "Identifier", - "start": 6807, - "end": 6812, + "start": 6810, + "end": 6815, "loc": { "start": { "line": 203, @@ -16935,8 +16692,8 @@ }, "property": { "type": "MemberExpression", - "start": 6813, - "end": 6822, + "start": 6816, + "end": 6825, "loc": { "start": { "line": 203, @@ -16949,8 +16706,8 @@ }, "object": { "type": "Identifier", - "start": 6813, - "end": 6819, + "start": 6816, + "end": 6822, "loc": { "start": { "line": 203, @@ -16966,8 +16723,8 @@ }, "property": { "type": "Identifier", - "start": 6820, - "end": 6822, + "start": 6823, + "end": 6825, "loc": { "start": { "line": 203, @@ -16992,8 +16749,8 @@ }, { "type": "ExpressionStatement", - "start": 6827, - "end": 6845, + "start": 6830, + "end": 6848, "loc": { "start": { "line": 204, @@ -17006,8 +16763,8 @@ }, "expression": { "type": "UnaryExpression", - "start": 6827, - "end": 6845, + "start": 6830, + "end": 6848, "loc": { "start": { "line": 204, @@ -17022,8 +16779,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 6834, - "end": 6845, + "start": 6837, + "end": 6848, "loc": { "start": { "line": 204, @@ -17036,8 +16793,8 @@ }, "object": { "type": "Identifier", - "start": 6834, - "end": 6839, + "start": 6837, + "end": 6842, "loc": { "start": { "line": 204, @@ -17053,8 +16810,8 @@ }, "property": { "type": "Identifier", - "start": 6840, - "end": 6844, + "start": 6843, + "end": 6847, "loc": { "start": { "line": 204, @@ -17077,8 +16834,8 @@ }, { "type": "IfStatement", - "start": 6850, - "end": 7222, + "start": 6853, + "end": 7225, "loc": { "start": { "line": 206, @@ -17091,8 +16848,8 @@ }, "test": { "type": "BinaryExpression", - "start": 6854, - "end": 6888, + "start": 6857, + "end": 6891, "loc": { "start": { "line": 206, @@ -17105,8 +16862,8 @@ }, "left": { "type": "Identifier", - "start": 6854, - "end": 6858, + "start": 6857, + "end": 6861, "loc": { "start": { "line": 206, @@ -17123,8 +16880,8 @@ "operator": "!==", "right": { "type": "MemberExpression", - "start": 6863, - "end": 6888, + "start": 6866, + "end": 6891, "loc": { "start": { "line": 206, @@ -17137,8 +16894,8 @@ }, "object": { "type": "Identifier", - "start": 6863, - "end": 6869, + "start": 6866, + "end": 6872, "loc": { "start": { "line": 206, @@ -17154,8 +16911,8 @@ }, "property": { "type": "Identifier", - "start": 6870, - "end": 6888, + "start": 6873, + "end": 6891, "loc": { "start": { "line": 206, @@ -17174,8 +16931,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6890, - "end": 7222, + "start": 6893, + "end": 7225, "loc": { "start": { "line": 206, @@ -17189,8 +16946,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6927, - "end": 6996, + "start": 6930, + "end": 6999, "loc": { "start": { "line": 208, @@ -17203,8 +16960,8 @@ }, "expression": { "type": "CallExpression", - "start": 6927, - "end": 6996, + "start": 6930, + "end": 6999, "loc": { "start": { "line": 208, @@ -17217,8 +16974,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6927, - "end": 6953, + "start": 6930, + "end": 6956, "loc": { "start": { "line": 208, @@ -17231,8 +16988,8 @@ }, "object": { "type": "MemberExpression", - "start": 6927, - "end": 6946, + "start": 6930, + "end": 6949, "loc": { "start": { "line": 208, @@ -17245,8 +17002,8 @@ }, "object": { "type": "MemberExpression", - "start": 6927, - "end": 6938, + "start": 6930, + "end": 6941, "loc": { "start": { "line": 208, @@ -17259,8 +17016,8 @@ }, "object": { "type": "Identifier", - "start": 6927, - "end": 6932, + "start": 6930, + "end": 6935, "loc": { "start": { "line": 208, @@ -17277,8 +17034,8 @@ }, "property": { "type": "Identifier", - "start": 6933, - "end": 6937, + "start": 6936, + "end": 6940, "loc": { "start": { "line": 208, @@ -17297,8 +17054,8 @@ }, "property": { "type": "Identifier", - "start": 6939, - "end": 6946, + "start": 6942, + "end": 6949, "loc": { "start": { "line": 208, @@ -17317,8 +17074,8 @@ }, "property": { "type": "Identifier", - "start": 6947, - "end": 6953, + "start": 6950, + "end": 6956, "loc": { "start": { "line": 208, @@ -17338,8 +17095,8 @@ "arguments": [ { "type": "CallExpression", - "start": 6954, - "end": 6992, + "start": 6957, + "end": 6995, "loc": { "start": { "line": 208, @@ -17352,8 +17109,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6954, - "end": 6981, + "start": 6957, + "end": 6984, "loc": { "start": { "line": 208, @@ -17366,8 +17123,8 @@ }, "object": { "type": "MemberExpression", - "start": 6954, - "end": 6973, + "start": 6957, + "end": 6976, "loc": { "start": { "line": 208, @@ -17380,8 +17137,8 @@ }, "object": { "type": "MemberExpression", - "start": 6954, - "end": 6965, + "start": 6957, + "end": 6968, "loc": { "start": { "line": 208, @@ -17394,8 +17151,8 @@ }, "object": { "type": "Identifier", - "start": 6954, - "end": 6959, + "start": 6957, + "end": 6962, "loc": { "start": { "line": 208, @@ -17411,8 +17168,8 @@ }, "property": { "type": "Identifier", - "start": 6960, - "end": 6964, + "start": 6963, + "end": 6967, "loc": { "start": { "line": 208, @@ -17430,8 +17187,8 @@ }, "property": { "type": "Identifier", - "start": 6966, - "end": 6973, + "start": 6969, + "end": 6976, "loc": { "start": { "line": 208, @@ -17449,8 +17206,8 @@ }, "property": { "type": "Identifier", - "start": 6974, - "end": 6981, + "start": 6977, + "end": 6984, "loc": { "start": { "line": 208, @@ -17469,8 +17226,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 6982, - "end": 6991, + "start": 6985, + "end": 6994, "loc": { "start": { "line": 208, @@ -17483,8 +17240,8 @@ }, "object": { "type": "Identifier", - "start": 6982, - "end": 6988, + "start": 6985, + "end": 6991, "loc": { "start": { "line": 208, @@ -17500,8 +17257,8 @@ }, "property": { "type": "Identifier", - "start": 6989, - "end": 6991, + "start": 6992, + "end": 6994, "loc": { "start": { "line": 208, @@ -17521,8 +17278,8 @@ }, { "type": "NumericLiteral", - "start": 6994, - "end": 6995, + "start": 6997, + "end": 6998, "loc": { "start": { "line": 208, @@ -17547,8 +17304,8 @@ { "type": "CommentLine", "value": " Remove from teams array", - "start": 6896, - "end": 6922, + "start": 6899, + "end": 6925, "loc": { "start": { "line": 207, @@ -17565,8 +17322,8 @@ { "type": "CommentLine", "value": " rooms[room].teams[team].players.splice(rooms[room].teams[team].players.indexOf(socket.id), 1);", - "start": 7001, - "end": 7098, + "start": 7004, + "end": 7101, "loc": { "start": { "line": 209, @@ -17581,8 +17338,8 @@ { "type": "CommentLine", "value": " Delete team if all players have left", - "start": 7104, - "end": 7143, + "start": 7107, + "end": 7146, "loc": { "start": { "line": 211, @@ -17598,8 +17355,8 @@ }, { "type": "IfStatement", - "start": 7148, - "end": 7217, + "start": 7151, + "end": 7220, "loc": { "start": { "line": 212, @@ -17612,8 +17369,8 @@ }, "test": { "type": "BinaryExpression", - "start": 7152, - "end": 7184, + "start": 7155, + "end": 7187, "loc": { "start": { "line": 212, @@ -17626,8 +17383,8 @@ }, "left": { "type": "MemberExpression", - "start": 7152, - "end": 7178, + "start": 7155, + "end": 7181, "loc": { "start": { "line": 212, @@ -17640,8 +17397,8 @@ }, "object": { "type": "MemberExpression", - "start": 7152, - "end": 7171, + "start": 7155, + "end": 7174, "loc": { "start": { "line": 212, @@ -17654,8 +17411,8 @@ }, "object": { "type": "MemberExpression", - "start": 7152, - "end": 7163, + "start": 7155, + "end": 7166, "loc": { "start": { "line": 212, @@ -17668,8 +17425,8 @@ }, "object": { "type": "Identifier", - "start": 7152, - "end": 7157, + "start": 7155, + "end": 7160, "loc": { "start": { "line": 212, @@ -17686,8 +17443,8 @@ }, "property": { "type": "Identifier", - "start": 7158, - "end": 7162, + "start": 7161, + "end": 7165, "loc": { "start": { "line": 212, @@ -17706,8 +17463,8 @@ }, "property": { "type": "Identifier", - "start": 7164, - "end": 7171, + "start": 7167, + "end": 7174, "loc": { "start": { "line": 212, @@ -17726,8 +17483,8 @@ }, "property": { "type": "Identifier", - "start": 7172, - "end": 7178, + "start": 7175, + "end": 7181, "loc": { "start": { "line": 212, @@ -17747,8 +17504,8 @@ "operator": "===", "right": { "type": "NumericLiteral", - "start": 7183, - "end": 7184, + "start": 7186, + "end": 7187, "loc": { "start": { "line": 212, @@ -17769,8 +17526,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7186, - "end": 7217, + "start": 7189, + "end": 7220, "loc": { "start": { "line": 212, @@ -17784,8 +17541,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7193, - "end": 7211, + "start": 7196, + "end": 7214, "loc": { "start": { "line": 213, @@ -17798,8 +17555,8 @@ }, "expression": { "type": "UnaryExpression", - "start": 7193, - "end": 7211, + "start": 7196, + "end": 7214, "loc": { "start": { "line": 213, @@ -17814,8 +17571,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 7200, - "end": 7211, + "start": 7203, + "end": 7214, "loc": { "start": { "line": 213, @@ -17828,8 +17585,8 @@ }, "object": { "type": "Identifier", - "start": 7200, - "end": 7205, + "start": 7203, + "end": 7208, "loc": { "start": { "line": 213, @@ -17845,8 +17602,8 @@ }, "property": { "type": "Identifier", - "start": 7206, - "end": 7210, + "start": 7209, + "end": 7213, "loc": { "start": { "line": 213, @@ -17875,8 +17632,8 @@ { "type": "CommentLine", "value": " rooms[room].teams[team].players.splice(rooms[room].teams[team].players.indexOf(socket.id), 1);", - "start": 7001, - "end": 7098, + "start": 7004, + "end": 7101, "loc": { "start": { "line": 209, @@ -17891,8 +17648,8 @@ { "type": "CommentLine", "value": " Delete team if all players have left", - "start": 7104, - "end": 7143, + "start": 7107, + "end": 7146, "loc": { "start": { "line": 211, @@ -17919,8 +17676,8 @@ { "type": "CommentLine", "value": " Remove the server side player", - "start": 6563, - "end": 6595, + "start": 6566, + "end": 6598, "loc": { "start": { "line": 198, @@ -17935,8 +17692,8 @@ { "type": "CommentLine", "value": " Delete room if there is nobody inside", - "start": 6599, - "end": 6639, + "start": 6602, + "end": 6642, "loc": { "start": { "line": 200, @@ -17987,8 +17744,8 @@ { "type": "CommentLine", "value": " Notify on console when server has started", - "start": 7235, - "end": 7279, + "start": 7238, + "end": 7282, "loc": { "start": { "line": 220, @@ -18004,8 +17761,8 @@ }, { "type": "VariableDeclaration", - "start": 7280, - "end": 7330, + "start": 7283, + "end": 7333, "loc": { "start": { "line": 221, @@ -18019,8 +17776,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7286, - "end": 7330, + "start": 7289, + "end": 7333, "loc": { "start": { "line": 221, @@ -18033,8 +17790,8 @@ }, "id": { "type": "Identifier", - "start": 7286, - "end": 7296, + "start": 7289, + "end": 7299, "loc": { "start": { "line": 221, @@ -18051,8 +17808,8 @@ }, "init": { "type": "LogicalExpression", - "start": 7299, - "end": 7330, + "start": 7302, + "end": 7333, "loc": { "start": { "line": 221, @@ -18065,8 +17822,8 @@ }, "left": { "type": "MemberExpression", - "start": 7299, - "end": 7315, + "start": 7302, + "end": 7318, "loc": { "start": { "line": 221, @@ -18079,8 +17836,8 @@ }, "object": { "type": "MemberExpression", - "start": 7299, - "end": 7310, + "start": 7302, + "end": 7313, "loc": { "start": { "line": 221, @@ -18093,8 +17850,8 @@ }, "object": { "type": "Identifier", - "start": 7299, - "end": 7306, + "start": 7302, + "end": 7309, "loc": { "start": { "line": 221, @@ -18110,8 +17867,8 @@ }, "property": { "type": "Identifier", - "start": 7307, - "end": 7310, + "start": 7310, + "end": 7313, "loc": { "start": { "line": 221, @@ -18129,8 +17886,8 @@ }, "property": { "type": "Identifier", - "start": 7311, - "end": 7315, + "start": 7314, + "end": 7318, "loc": { "start": { "line": 221, @@ -18149,8 +17906,8 @@ "operator": "||", "right": { "type": "MemberExpression", - "start": 7319, - "end": 7330, + "start": 7322, + "end": 7333, "loc": { "start": { "line": 221, @@ -18163,8 +17920,8 @@ }, "object": { "type": "Identifier", - "start": 7319, - "end": 7325, + "start": 7322, + "end": 7328, "loc": { "start": { "line": 221, @@ -18180,8 +17937,8 @@ }, "property": { "type": "Identifier", - "start": 7326, - "end": 7330, + "start": 7329, + "end": 7333, "loc": { "start": { "line": 221, @@ -18206,8 +17963,8 @@ { "type": "CommentLine", "value": " Notify on console when server has started", - "start": 7235, - "end": 7279, + "start": 7238, + "end": 7282, "loc": { "start": { "line": 220, @@ -18223,8 +17980,8 @@ }, { "type": "ExpressionStatement", - "start": 7331, - "end": 7453, + "start": 7334, + "end": 7456, "loc": { "start": { "line": 222, @@ -18237,8 +17994,8 @@ }, "expression": { "type": "CallExpression", - "start": 7331, - "end": 7453, + "start": 7334, + "end": 7456, "loc": { "start": { "line": 222, @@ -18251,8 +18008,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7331, - "end": 7342, + "start": 7334, + "end": 7345, "loc": { "start": { "line": 222, @@ -18265,8 +18022,8 @@ }, "object": { "type": "Identifier", - "start": 7331, - "end": 7335, + "start": 7334, + "end": 7338, "loc": { "start": { "line": 222, @@ -18282,8 +18039,8 @@ }, "property": { "type": "Identifier", - "start": 7336, - "end": 7342, + "start": 7339, + "end": 7345, "loc": { "start": { "line": 222, @@ -18302,8 +18059,8 @@ "arguments": [ { "type": "Identifier", - "start": 7343, - "end": 7353, + "start": 7346, + "end": 7356, "loc": { "start": { "line": 222, @@ -18319,8 +18076,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 7355, - "end": 7452, + "start": 7358, + "end": 7455, "loc": { "start": { "line": 222, @@ -18338,8 +18095,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 7361, - "end": 7452, + "start": 7364, + "end": 7455, "loc": { "start": { "line": 222, @@ -18353,8 +18110,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7364, - "end": 7374, + "start": 7367, + "end": 7377, "loc": { "start": { "line": 223, @@ -18367,8 +18124,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 7364, - "end": 7374, + "start": 7367, + "end": 7377, "loc": { "start": { "line": 223, @@ -18382,8 +18139,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 7364, - "end": 7369, + "start": 7367, + "end": 7372, "loc": { "start": { "line": 223, @@ -18399,8 +18156,8 @@ }, "right": { "type": "ObjectExpression", - "start": 7372, - "end": 7374, + "start": 7375, + "end": 7377, "loc": { "start": { "line": 223, @@ -18417,8 +18174,8 @@ }, { "type": "ExpressionStatement", - "start": 7376, - "end": 7450, + "start": 7379, + "end": 7453, "loc": { "start": { "line": 224, @@ -18431,8 +18188,8 @@ }, "expression": { "type": "CallExpression", - "start": 7376, - "end": 7450, + "start": 7379, + "end": 7453, "loc": { "start": { "line": 224, @@ -18445,8 +18202,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7376, - "end": 7387, + "start": 7379, + "end": 7390, "loc": { "start": { "line": 224, @@ -18459,8 +18216,8 @@ }, "object": { "type": "Identifier", - "start": 7376, - "end": 7383, + "start": 7379, + "end": 7386, "loc": { "start": { "line": 224, @@ -18476,8 +18233,8 @@ }, "property": { "type": "Identifier", - "start": 7384, - "end": 7387, + "start": 7387, + "end": 7390, "loc": { "start": { "line": 224, @@ -18496,8 +18253,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 7388, - "end": 7449, + "start": 7391, + "end": 7452, "loc": { "start": { "line": 224, @@ -18510,8 +18267,8 @@ }, "left": { "type": "MemberExpression", - "start": 7388, - "end": 7409, + "start": 7391, + "end": 7412, "loc": { "start": { "line": 224, @@ -18524,8 +18281,8 @@ }, "object": { "type": "MemberExpression", - "start": 7388, - "end": 7404, + "start": 7391, + "end": 7407, "loc": { "start": { "line": 224, @@ -18538,8 +18295,8 @@ }, "object": { "type": "StringLiteral", - "start": 7388, - "end": 7399, + "start": 7391, + "end": 7402, "loc": { "start": { "line": 224, @@ -18558,8 +18315,8 @@ }, "property": { "type": "Identifier", - "start": 7400, - "end": 7404, + "start": 7403, + "end": 7407, "loc": { "start": { "line": 224, @@ -18577,8 +18334,8 @@ }, "property": { "type": "Identifier", - "start": 7405, - "end": 7409, + "start": 7408, + "end": 7412, "loc": { "start": { "line": 224, @@ -18597,8 +18354,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 7412, - "end": 7449, + "start": 7415, + "end": 7452, "loc": { "start": { "line": 224, @@ -18611,8 +18368,8 @@ }, "object": { "type": "TemplateLiteral", - "start": 7412, - "end": 7444, + "start": 7415, + "end": 7447, "loc": { "start": { "line": 224, @@ -18626,8 +18383,8 @@ "expressions": [ { "type": "Identifier", - "start": 7432, - "end": 7442, + "start": 7435, + "end": 7445, "loc": { "start": { "line": 224, @@ -18645,8 +18402,8 @@ "quasis": [ { "type": "TemplateElement", - "start": 7413, - "end": 7430, + "start": 7416, + "end": 7433, "loc": { "start": { "line": 224, @@ -18665,8 +18422,8 @@ }, { "type": "TemplateElement", - "start": 7443, - "end": 7443, + "start": 7446, + "end": 7446, "loc": { "start": { "line": 224, @@ -18687,8 +18444,8 @@ }, "property": { "type": "Identifier", - "start": 7445, - "end": 7449, + "start": 7448, + "end": 7452, "loc": { "start": { "line": 224, @@ -18719,8 +18476,8 @@ { "type": "CommentBlock", "value": "*\n * Sets a new value for a protected server field.\n * Adopted from https://stackoverflow.com/questions/18936915/dynamically-set-property-of-nested-object\n * @param {*} value The value to set\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n ", - "start": 7455, - "end": 7887, + "start": 7458, + "end": 7890, "loc": { "start": { "line": 227, @@ -18736,8 +18493,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 7888, - "end": 8408, + "start": 7891, + "end": 8411, "loc": { "start": { "line": 234, @@ -18752,8 +18509,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 7895, - "end": 8408, + "start": 7898, + "end": 8411, "loc": { "start": { "line": 234, @@ -18766,8 +18523,8 @@ }, "id": { "type": "Identifier", - "start": 7904, - "end": 7912, + "start": 7907, + "end": 7915, "loc": { "start": { "line": 234, @@ -18788,8 +18545,8 @@ "params": [ { "type": "Identifier", - "start": 7914, - "end": 7919, + "start": 7917, + "end": 7922, "loc": { "start": { "line": 234, @@ -18805,8 +18562,8 @@ }, { "type": "Identifier", - "start": 7921, - "end": 7925, + "start": 7924, + "end": 7928, "loc": { "start": { "line": 234, @@ -18823,8 +18580,8 @@ ], "body": { "type": "BlockStatement", - "start": 7927, - "end": 8408, + "start": 7930, + "end": 8411, "loc": { "start": { "line": 234, @@ -18838,8 +18595,8 @@ "body": [ { "type": "IfStatement", - "start": 7930, - "end": 8040, + "start": 7933, + "end": 8043, "loc": { "start": { "line": 235, @@ -18852,8 +18609,8 @@ }, "test": { "type": "LogicalExpression", - "start": 7934, - "end": 7973, + "start": 7937, + "end": 7976, "loc": { "start": { "line": 235, @@ -18866,8 +18623,8 @@ }, "left": { "type": "BinaryExpression", - "start": 7934, - "end": 7952, + "start": 7937, + "end": 7955, "loc": { "start": { "line": 235, @@ -18880,8 +18637,8 @@ }, "left": { "type": "Identifier", - "start": 7934, - "end": 7938, + "start": 7937, + "end": 7941, "loc": { "start": { "line": 235, @@ -18898,8 +18655,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 7943, - "end": 7952, + "start": 7946, + "end": 7955, "loc": { "start": { "line": 235, @@ -18917,8 +18674,8 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 7956, - "end": 7973, + "start": 7959, + "end": 7976, "loc": { "start": { "line": 235, @@ -18931,8 +18688,8 @@ }, "left": { "type": "MemberExpression", - "start": 7956, - "end": 7967, + "start": 7959, + "end": 7970, "loc": { "start": { "line": 235, @@ -18945,8 +18702,8 @@ }, "object": { "type": "Identifier", - "start": 7956, - "end": 7960, + "start": 7959, + "end": 7963, "loc": { "start": { "line": 235, @@ -18962,8 +18719,8 @@ }, "property": { "type": "Identifier", - "start": 7961, - "end": 7967, + "start": 7964, + "end": 7970, "loc": { "start": { "line": 235, @@ -18982,8 +18739,8 @@ "operator": "===", "right": { "type": "NumericLiteral", - "start": 7972, - "end": 7973, + "start": 7975, + "end": 7976, "loc": { "start": { "line": 235, @@ -19004,8 +18761,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7975, - "end": 8040, + "start": 7978, + "end": 8043, "loc": { "start": { "line": 235, @@ -19019,8 +18776,8 @@ "body": [ { "type": "ThrowStatement", - "start": 7979, - "end": 8037, + "start": 7982, + "end": 8040, "loc": { "start": { "line": 236, @@ -19033,8 +18790,8 @@ }, "argument": { "type": "NewExpression", - "start": 7985, - "end": 8037, + "start": 7988, + "end": 8040, "loc": { "start": { "line": 236, @@ -19047,8 +18804,8 @@ }, "callee": { "type": "Identifier", - "start": 7989, - "end": 7994, + "start": 7992, + "end": 7997, "loc": { "start": { "line": 236, @@ -19065,8 +18822,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7995, - "end": 8036, + "start": 7998, + "end": 8039, "loc": { "start": { "line": 236, @@ -19093,8 +18850,8 @@ }, { "type": "VariableDeclaration", - "start": 8043, - "end": 8129, + "start": 8046, + "end": 8132, "loc": { "start": { "line": 239, @@ -19108,8 +18865,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8047, - "end": 8129, + "start": 8050, + "end": 8132, "loc": { "start": { "line": 239, @@ -19122,8 +18879,8 @@ }, "id": { "type": "Identifier", - "start": 8047, - "end": 8053, + "start": 8050, + "end": 8056, "loc": { "start": { "line": 239, @@ -19139,8 +18896,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 8056, - "end": 8129, + "start": 8059, + "end": 8132, "loc": { "start": { "line": 239, @@ -19153,8 +18910,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8057, - "end": 8076, + "start": 8060, + "end": 8079, "loc": { "start": { "line": 239, @@ -19167,8 +18924,8 @@ }, "left": { "type": "MemberExpression", - "start": 8057, - "end": 8064, + "start": 8060, + "end": 8067, "loc": { "start": { "line": 239, @@ -19181,8 +18938,8 @@ }, "object": { "type": "Identifier", - "start": 8057, - "end": 8061, + "start": 8060, + "end": 8064, "loc": { "start": { "line": 239, @@ -19198,8 +18955,8 @@ }, "property": { "type": "NumericLiteral", - "start": 8062, - "end": 8063, + "start": 8065, + "end": 8066, "loc": { "start": { "line": 239, @@ -19221,8 +18978,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8069, - "end": 8076, + "start": 8072, + "end": 8079, "loc": { "start": { "line": 239, @@ -19241,13 +18998,13 @@ }, "extra": { "parenthesized": true, - "parenStart": 8056 + "parenStart": 8059 } }, "consequent": { "type": "Identifier", - "start": 8080, - "end": 8085, + "start": 8083, + "end": 8088, "loc": { "start": { "line": 239, @@ -19263,8 +19020,8 @@ }, "alternate": { "type": "ConditionalExpression", - "start": 8088, - "end": 8129, + "start": 8091, + "end": 8132, "loc": { "start": { "line": 239, @@ -19277,8 +19034,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8089, - "end": 8108, + "start": 8092, + "end": 8111, "loc": { "start": { "line": 239, @@ -19291,8 +19048,8 @@ }, "left": { "type": "MemberExpression", - "start": 8089, - "end": 8096, + "start": 8092, + "end": 8099, "loc": { "start": { "line": 239, @@ -19305,8 +19062,8 @@ }, "object": { "type": "Identifier", - "start": 8089, - "end": 8093, + "start": 8092, + "end": 8096, "loc": { "start": { "line": 239, @@ -19322,8 +19079,8 @@ }, "property": { "type": "NumericLiteral", - "start": 8094, - "end": 8095, + "start": 8097, + "end": 8098, "loc": { "start": { "line": 239, @@ -19345,8 +19102,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8101, - "end": 8108, + "start": 8104, + "end": 8111, "loc": { "start": { "line": 239, @@ -19365,13 +19122,13 @@ }, "extra": { "parenthesized": true, - "parenStart": 8088 + "parenStart": 8091 } }, "consequent": { "type": "Identifier", - "start": 8112, - "end": 8117, + "start": 8115, + "end": 8120, "loc": { "start": { "line": 239, @@ -19387,8 +19144,8 @@ }, "alternate": { "type": "Identifier", - "start": 8120, - "end": 8129, + "start": 8123, + "end": 8132, "loc": { "start": { "line": 239, @@ -19410,8 +19167,8 @@ }, { "type": "IfStatement", - "start": 8131, - "end": 8226, + "start": 8134, + "end": 8229, "loc": { "start": { "line": 240, @@ -19424,8 +19181,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8135, - "end": 8155, + "start": 8138, + "end": 8158, "loc": { "start": { "line": 240, @@ -19438,8 +19195,8 @@ }, "left": { "type": "Identifier", - "start": 8135, - "end": 8141, + "start": 8138, + "end": 8144, "loc": { "start": { "line": 240, @@ -19456,8 +19213,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 8146, - "end": 8155, + "start": 8149, + "end": 8158, "loc": { "start": { "line": 240, @@ -19474,8 +19231,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8157, - "end": 8226, + "start": 8160, + "end": 8229, "loc": { "start": { "line": 240, @@ -19489,8 +19246,8 @@ "body": [ { "type": "ThrowStatement", - "start": 8161, - "end": 8223, + "start": 8164, + "end": 8226, "loc": { "start": { "line": 241, @@ -19503,8 +19260,8 @@ }, "argument": { "type": "NewExpression", - "start": 8167, - "end": 8223, + "start": 8170, + "end": 8226, "loc": { "start": { "line": 241, @@ -19517,8 +19274,8 @@ }, "callee": { "type": "Identifier", - "start": 8171, - "end": 8176, + "start": 8174, + "end": 8179, "loc": { "start": { "line": 241, @@ -19535,8 +19292,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 8177, - "end": 8222, + "start": 8180, + "end": 8225, "loc": { "start": { "line": 241, @@ -19549,8 +19306,8 @@ }, "left": { "type": "BinaryExpression", - "start": 8177, - "end": 8201, + "start": 8180, + "end": 8204, "loc": { "start": { "line": 241, @@ -19563,8 +19320,8 @@ }, "left": { "type": "StringLiteral", - "start": 8177, - "end": 8191, + "start": 8180, + "end": 8194, "loc": { "start": { "line": 241, @@ -19584,8 +19341,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 8194, - "end": 8201, + "start": 8197, + "end": 8204, "loc": { "start": { "line": 241, @@ -19598,8 +19355,8 @@ }, "object": { "type": "Identifier", - "start": 8194, - "end": 8198, + "start": 8197, + "end": 8201, "loc": { "start": { "line": 241, @@ -19615,8 +19372,8 @@ }, "property": { "type": "NumericLiteral", - "start": 8199, - "end": 8200, + "start": 8202, + "end": 8203, "loc": { "start": { "line": 241, @@ -19639,8 +19396,8 @@ "operator": "+", "right": { "type": "StringLiteral", - "start": 8204, - "end": 8222, + "start": 8207, + "end": 8225, "loc": { "start": { "line": 241, @@ -19668,8 +19425,8 @@ }, { "type": "VariableDeclaration", - "start": 8229, - "end": 8250, + "start": 8232, + "end": 8253, "loc": { "start": { "line": 244, @@ -19683,8 +19440,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8233, - "end": 8250, + "start": 8236, + "end": 8253, "loc": { "start": { "line": 244, @@ -19697,8 +19454,8 @@ }, "id": { "type": "Identifier", - "start": 8233, - "end": 8236, + "start": 8236, + "end": 8239, "loc": { "start": { "line": 244, @@ -19714,8 +19471,8 @@ }, "init": { "type": "MemberExpression", - "start": 8239, - "end": 8250, + "start": 8242, + "end": 8253, "loc": { "start": { "line": 244, @@ -19728,8 +19485,8 @@ }, "object": { "type": "Identifier", - "start": 8239, - "end": 8243, + "start": 8242, + "end": 8246, "loc": { "start": { "line": 244, @@ -19745,8 +19502,8 @@ }, "property": { "type": "Identifier", - "start": 8244, - "end": 8250, + "start": 8247, + "end": 8253, "loc": { "start": { "line": 244, @@ -19768,8 +19525,8 @@ }, { "type": "ForStatement", - "start": 8252, - "end": 8374, + "start": 8255, + "end": 8377, "loc": { "start": { "line": 245, @@ -19782,8 +19539,8 @@ }, "init": { "type": "VariableDeclaration", - "start": 8257, - "end": 8266, + "start": 8260, + "end": 8269, "loc": { "start": { "line": 245, @@ -19797,8 +19554,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8261, - "end": 8266, + "start": 8264, + "end": 8269, "loc": { "start": { "line": 245, @@ -19811,8 +19568,8 @@ }, "id": { "type": "Identifier", - "start": 8261, - "end": 8262, + "start": 8264, + "end": 8265, "loc": { "start": { "line": 245, @@ -19828,8 +19585,8 @@ }, "init": { "type": "NumericLiteral", - "start": 8265, - "end": 8266, + "start": 8268, + "end": 8269, "loc": { "start": { "line": 245, @@ -19852,8 +19609,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8268, - "end": 8279, + "start": 8271, + "end": 8282, "loc": { "start": { "line": 245, @@ -19866,8 +19623,8 @@ }, "left": { "type": "Identifier", - "start": 8268, - "end": 8269, + "start": 8271, + "end": 8272, "loc": { "start": { "line": 245, @@ -19884,8 +19641,8 @@ "operator": "<", "right": { "type": "BinaryExpression", - "start": 8272, - "end": 8279, + "start": 8275, + "end": 8282, "loc": { "start": { "line": 245, @@ -19898,8 +19655,8 @@ }, "left": { "type": "Identifier", - "start": 8272, - "end": 8275, + "start": 8275, + "end": 8278, "loc": { "start": { "line": 245, @@ -19916,8 +19673,8 @@ "operator": "-", "right": { "type": "NumericLiteral", - "start": 8278, - "end": 8279, + "start": 8281, + "end": 8282, "loc": { "start": { "line": 245, @@ -19938,8 +19695,8 @@ }, "update": { "type": "UpdateExpression", - "start": 8281, - "end": 8284, + "start": 8284, + "end": 8287, "loc": { "start": { "line": 245, @@ -19954,8 +19711,8 @@ "prefix": false, "argument": { "type": "Identifier", - "start": 8281, - "end": 8282, + "start": 8284, + "end": 8285, "loc": { "start": { "line": 245, @@ -19972,8 +19729,8 @@ }, "body": { "type": "BlockStatement", - "start": 8286, - "end": 8374, + "start": 8289, + "end": 8377, "loc": { "start": { "line": 245, @@ -19987,8 +19744,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 8290, - "end": 8308, + "start": 8293, + "end": 8311, "loc": { "start": { "line": 246, @@ -20002,8 +19759,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8294, - "end": 8308, + "start": 8297, + "end": 8311, "loc": { "start": { "line": 246, @@ -20016,8 +19773,8 @@ }, "id": { "type": "Identifier", - "start": 8294, - "end": 8298, + "start": 8297, + "end": 8301, "loc": { "start": { "line": 246, @@ -20033,8 +19790,8 @@ }, "init": { "type": "MemberExpression", - "start": 8301, - "end": 8308, + "start": 8304, + "end": 8311, "loc": { "start": { "line": 246, @@ -20047,8 +19804,8 @@ }, "object": { "type": "Identifier", - "start": 8301, - "end": 8305, + "start": 8304, + "end": 8308, "loc": { "start": { "line": 246, @@ -20064,8 +19821,8 @@ }, "property": { "type": "Identifier", - "start": 8306, - "end": 8307, + "start": 8309, + "end": 8310, "loc": { "start": { "line": 246, @@ -20087,8 +19844,8 @@ }, { "type": "IfStatement", - "start": 8311, - "end": 8347, + "start": 8314, + "end": 8350, "loc": { "start": { "line": 247, @@ -20101,8 +19858,8 @@ }, "test": { "type": "UnaryExpression", - "start": 8315, - "end": 8328, + "start": 8318, + "end": 8331, "loc": { "start": { "line": 247, @@ -20117,8 +19874,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8316, - "end": 8328, + "start": 8319, + "end": 8331, "loc": { "start": { "line": 247, @@ -20131,8 +19888,8 @@ }, "object": { "type": "Identifier", - "start": 8316, - "end": 8322, + "start": 8319, + "end": 8325, "loc": { "start": { "line": 247, @@ -20148,8 +19905,8 @@ }, "property": { "type": "Identifier", - "start": 8323, - "end": 8327, + "start": 8326, + "end": 8330, "loc": { "start": { "line": 247, @@ -20171,8 +19928,8 @@ }, "consequent": { "type": "ExpressionStatement", - "start": 8330, - "end": 8347, + "start": 8333, + "end": 8350, "loc": { "start": { "line": 247, @@ -20185,8 +19942,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8330, - "end": 8347, + "start": 8333, + "end": 8350, "loc": { "start": { "line": 247, @@ -20200,8 +19957,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8330, - "end": 8342, + "start": 8333, + "end": 8345, "loc": { "start": { "line": 247, @@ -20214,8 +19971,8 @@ }, "object": { "type": "Identifier", - "start": 8330, - "end": 8336, + "start": 8333, + "end": 8339, "loc": { "start": { "line": 247, @@ -20231,8 +19988,8 @@ }, "property": { "type": "Identifier", - "start": 8337, - "end": 8341, + "start": 8340, + "end": 8344, "loc": { "start": { "line": 247, @@ -20250,8 +20007,8 @@ }, "right": { "type": "ObjectExpression", - "start": 8345, - "end": 8347, + "start": 8348, + "end": 8350, "loc": { "start": { "line": 247, @@ -20270,8 +20027,8 @@ }, { "type": "ExpressionStatement", - "start": 8350, - "end": 8371, + "start": 8353, + "end": 8374, "loc": { "start": { "line": 248, @@ -20284,8 +20041,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8350, - "end": 8371, + "start": 8353, + "end": 8374, "loc": { "start": { "line": 248, @@ -20299,8 +20056,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8350, - "end": 8356, + "start": 8353, + "end": 8359, "loc": { "start": { "line": 248, @@ -20316,8 +20073,8 @@ }, "right": { "type": "MemberExpression", - "start": 8359, - "end": 8371, + "start": 8362, + "end": 8374, "loc": { "start": { "line": 248, @@ -20330,8 +20087,8 @@ }, "object": { "type": "Identifier", - "start": 8359, - "end": 8365, + "start": 8362, + "end": 8368, "loc": { "start": { "line": 248, @@ -20347,8 +20104,8 @@ }, "property": { "type": "Identifier", - "start": 8366, - "end": 8370, + "start": 8369, + "end": 8373, "loc": { "start": { "line": 248, @@ -20372,8 +20129,8 @@ }, { "type": "ExpressionStatement", - "start": 8377, - "end": 8406, + "start": 8380, + "end": 8409, "loc": { "start": { "line": 251, @@ -20386,8 +20143,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8377, - "end": 8406, + "start": 8380, + "end": 8409, "loc": { "start": { "line": 251, @@ -20401,8 +20158,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8377, - "end": 8398, + "start": 8380, + "end": 8401, "loc": { "start": { "line": 251, @@ -20415,8 +20172,8 @@ }, "object": { "type": "Identifier", - "start": 8377, - "end": 8383, + "start": 8380, + "end": 8386, "loc": { "start": { "line": 251, @@ -20432,8 +20189,8 @@ }, "property": { "type": "MemberExpression", - "start": 8384, - "end": 8397, + "start": 8387, + "end": 8400, "loc": { "start": { "line": 251, @@ -20446,8 +20203,8 @@ }, "object": { "type": "Identifier", - "start": 8384, - "end": 8388, + "start": 8387, + "end": 8391, "loc": { "start": { "line": 251, @@ -20463,8 +20220,8 @@ }, "property": { "type": "BinaryExpression", - "start": 8389, - "end": 8396, + "start": 8392, + "end": 8399, "loc": { "start": { "line": 251, @@ -20477,8 +20234,8 @@ }, "left": { "type": "Identifier", - "start": 8389, - "end": 8392, + "start": 8392, + "end": 8395, "loc": { "start": { "line": 251, @@ -20495,8 +20252,8 @@ "operator": "-", "right": { "type": "NumericLiteral", - "start": 8395, - "end": 8396, + "start": 8398, + "end": 8399, "loc": { "start": { "line": 251, @@ -20520,8 +20277,8 @@ }, "right": { "type": "Identifier", - "start": 8401, - "end": 8406, + "start": 8404, + "end": 8409, "loc": { "start": { "line": 251, @@ -20545,8 +20302,8 @@ { "type": "CommentBlock", "value": "*\n * Sets a new value for a protected server field.\n * Adopted from https://stackoverflow.com/questions/18936915/dynamically-set-property-of-nested-object\n * @param {*} value The value to set\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n ", - "start": 7455, - "end": 7887, + "start": 7458, + "end": 7890, "loc": { "start": { "line": 227, @@ -20563,8 +20320,8 @@ { "type": "CommentBlock", "value": "*\n * Shorthand to add or concatenate an amount to a field.\n * Best used with numbers or strings.\n * @param {*} amount Amount to increment the field by.\n * @param {*} path Path to the field.\n ", - "start": 8410, - "end": 8605, + "start": 8413, + "end": 8608, "loc": { "start": { "line": 254, @@ -20582,8 +20339,8 @@ { "type": "CommentBlock", "value": "*\n * Sets a new value for a protected server field.\n * Adopted from https://stackoverflow.com/questions/18936915/dynamically-set-property-of-nested-object\n * @param {*} value The value to set\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n ", - "start": 7455, - "end": 7887, + "start": 7458, + "end": 7890, "loc": { "start": { "line": 227, @@ -20600,8 +20357,8 @@ { "type": "CommentBlock", "value": "*\n * Shorthand to add or concatenate an amount to a field.\n * Best used with numbers or strings.\n * @param {*} amount Amount to increment the field by.\n * @param {*} path Path to the field.\n ", - "start": 8410, - "end": 8605, + "start": 8413, + "end": 8608, "loc": { "start": { "line": 254, @@ -20617,8 +20374,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 8606, - "end": 8696, + "start": 8609, + "end": 8699, "loc": { "start": { "line": 260, @@ -20633,8 +20390,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 8613, - "end": 8696, + "start": 8616, + "end": 8699, "loc": { "start": { "line": 260, @@ -20647,8 +20404,8 @@ }, "id": { "type": "Identifier", - "start": 8622, - "end": 8636, + "start": 8625, + "end": 8639, "loc": { "start": { "line": 260, @@ -20669,8 +20426,8 @@ "params": [ { "type": "Identifier", - "start": 8638, - "end": 8644, + "start": 8641, + "end": 8647, "loc": { "start": { "line": 260, @@ -20686,8 +20443,8 @@ }, { "type": "Identifier", - "start": 8646, - "end": 8650, + "start": 8649, + "end": 8653, "loc": { "start": { "line": 260, @@ -20704,8 +20461,8 @@ ], "body": { "type": "BlockStatement", - "start": 8652, - "end": 8696, + "start": 8655, + "end": 8699, "loc": { "start": { "line": 260, @@ -20719,8 +20476,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8655, - "end": 8694, + "start": 8658, + "end": 8697, "loc": { "start": { "line": 261, @@ -20733,8 +20490,8 @@ }, "expression": { "type": "CallExpression", - "start": 8655, - "end": 8694, + "start": 8658, + "end": 8697, "loc": { "start": { "line": 261, @@ -20747,8 +20504,8 @@ }, "callee": { "type": "Identifier", - "start": 8655, - "end": 8663, + "start": 8658, + "end": 8666, "loc": { "start": { "line": 261, @@ -20765,8 +20522,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 8664, - "end": 8687, + "start": 8667, + "end": 8690, "loc": { "start": { "line": 261, @@ -20779,8 +20536,8 @@ }, "left": { "type": "CallExpression", - "start": 8664, - "end": 8678, + "start": 8667, + "end": 8681, "loc": { "start": { "line": 261, @@ -20793,8 +20550,8 @@ }, "callee": { "type": "Identifier", - "start": 8664, - "end": 8672, + "start": 8667, + "end": 8675, "loc": { "start": { "line": 261, @@ -20811,8 +20568,8 @@ "arguments": [ { "type": "Identifier", - "start": 8673, - "end": 8677, + "start": 8676, + "end": 8680, "loc": { "start": { "line": 261, @@ -20831,8 +20588,8 @@ "operator": "+", "right": { "type": "Identifier", - "start": 8681, - "end": 8687, + "start": 8684, + "end": 8690, "loc": { "start": { "line": 261, @@ -20849,8 +20606,8 @@ }, { "type": "Identifier", - "start": 8689, - "end": 8693, + "start": 8692, + "end": 8696, "loc": { "start": { "line": 261, @@ -20875,8 +20632,8 @@ { "type": "CommentBlock", "value": "*\n * Shorthand to add or concatenate an amount to a field.\n * Best used with numbers or strings.\n * @param {*} amount Amount to increment the field by.\n * @param {*} path Path to the field.\n ", - "start": 8410, - "end": 8605, + "start": 8413, + "end": 8608, "loc": { "start": { "line": 254, @@ -20893,8 +20650,8 @@ { "type": "CommentBlock", "value": "*\n * Returns the value given a path to that value.\n * Adopted from https://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n * @returns The value for the given field.\n ", - "start": 8698, - "end": 9144, + "start": 8701, + "end": 9147, "loc": { "start": { "line": 264, @@ -20912,8 +20669,8 @@ { "type": "CommentBlock", "value": "*\n * Shorthand to add or concatenate an amount to a field.\n * Best used with numbers or strings.\n * @param {*} amount Amount to increment the field by.\n * @param {*} path Path to the field.\n ", - "start": 8410, - "end": 8605, + "start": 8413, + "end": 8608, "loc": { "start": { "line": 254, @@ -20930,8 +20687,8 @@ { "type": "CommentBlock", "value": "*\n * Returns the value given a path to that value.\n * Adopted from https://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n * @returns The value for the given field.\n ", - "start": 8698, - "end": 9144, + "start": 8701, + "end": 9147, "loc": { "start": { "line": 264, @@ -20947,8 +20704,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 9145, - "end": 9696, + "start": 9148, + "end": 9699, "loc": { "start": { "line": 271, @@ -20963,8 +20720,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 9152, - "end": 9696, + "start": 9155, + "end": 9699, "loc": { "start": { "line": 271, @@ -20977,8 +20734,8 @@ }, "id": { "type": "Identifier", - "start": 9161, - "end": 9169, + "start": 9164, + "end": 9172, "loc": { "start": { "line": 271, @@ -20999,8 +20756,8 @@ "params": [ { "type": "Identifier", - "start": 9171, - "end": 9175, + "start": 9174, + "end": 9178, "loc": { "start": { "line": 271, @@ -21017,8 +20774,8 @@ ], "body": { "type": "BlockStatement", - "start": 9177, - "end": 9696, + "start": 9180, + "end": 9699, "loc": { "start": { "line": 271, @@ -21032,8 +20789,8 @@ "body": [ { "type": "IfStatement", - "start": 9180, - "end": 9290, + "start": 9183, + "end": 9293, "loc": { "start": { "line": 272, @@ -21046,8 +20803,8 @@ }, "test": { "type": "LogicalExpression", - "start": 9184, - "end": 9223, + "start": 9187, + "end": 9226, "loc": { "start": { "line": 272, @@ -21060,8 +20817,8 @@ }, "left": { "type": "BinaryExpression", - "start": 9184, - "end": 9202, + "start": 9187, + "end": 9205, "loc": { "start": { "line": 272, @@ -21074,8 +20831,8 @@ }, "left": { "type": "Identifier", - "start": 9184, - "end": 9188, + "start": 9187, + "end": 9191, "loc": { "start": { "line": 272, @@ -21092,8 +20849,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 9193, - "end": 9202, + "start": 9196, + "end": 9205, "loc": { "start": { "line": 272, @@ -21111,8 +20868,8 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 9206, - "end": 9223, + "start": 9209, + "end": 9226, "loc": { "start": { "line": 272, @@ -21125,8 +20882,8 @@ }, "left": { "type": "MemberExpression", - "start": 9206, - "end": 9217, + "start": 9209, + "end": 9220, "loc": { "start": { "line": 272, @@ -21139,8 +20896,8 @@ }, "object": { "type": "Identifier", - "start": 9206, - "end": 9210, + "start": 9209, + "end": 9213, "loc": { "start": { "line": 272, @@ -21156,8 +20913,8 @@ }, "property": { "type": "Identifier", - "start": 9211, - "end": 9217, + "start": 9214, + "end": 9220, "loc": { "start": { "line": 272, @@ -21176,8 +20933,8 @@ "operator": "===", "right": { "type": "NumericLiteral", - "start": 9222, - "end": 9223, + "start": 9225, + "end": 9226, "loc": { "start": { "line": 272, @@ -21198,8 +20955,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9225, - "end": 9290, + "start": 9228, + "end": 9293, "loc": { "start": { "line": 272, @@ -21213,8 +20970,8 @@ "body": [ { "type": "ThrowStatement", - "start": 9229, - "end": 9287, + "start": 9232, + "end": 9290, "loc": { "start": { "line": 273, @@ -21227,8 +20984,8 @@ }, "argument": { "type": "NewExpression", - "start": 9235, - "end": 9287, + "start": 9238, + "end": 9290, "loc": { "start": { "line": 273, @@ -21241,8 +20998,8 @@ }, "callee": { "type": "Identifier", - "start": 9239, - "end": 9244, + "start": 9242, + "end": 9247, "loc": { "start": { "line": 273, @@ -21259,8 +21016,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9245, - "end": 9286, + "start": 9248, + "end": 9289, "loc": { "start": { "line": 273, @@ -21287,8 +21044,8 @@ }, { "type": "IfStatement", - "start": 9292, - "end": 9389, + "start": 9295, + "end": 9392, "loc": { "start": { "line": 275, @@ -21301,8 +21058,8 @@ }, "test": { "type": "BinaryExpression", - "start": 9296, - "end": 9321, + "start": 9299, + "end": 9324, "loc": { "start": { "line": 275, @@ -21315,8 +21072,8 @@ }, "left": { "type": "MemberExpression", - "start": 9296, - "end": 9307, + "start": 9299, + "end": 9310, "loc": { "start": { "line": 275, @@ -21329,8 +21086,8 @@ }, "object": { "type": "Identifier", - "start": 9296, - "end": 9300, + "start": 9299, + "end": 9303, "loc": { "start": { "line": 275, @@ -21346,8 +21103,8 @@ }, "property": { "type": "Identifier", - "start": 9301, - "end": 9307, + "start": 9304, + "end": 9310, "loc": { "start": { "line": 275, @@ -21366,8 +21123,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 9312, - "end": 9321, + "start": 9315, + "end": 9324, "loc": { "start": { "line": 275, @@ -21384,8 +21141,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9323, - "end": 9389, + "start": 9326, + "end": 9392, "loc": { "start": { "line": 275, @@ -21399,8 +21156,8 @@ "body": [ { "type": "ThrowStatement", - "start": 9327, - "end": 9386, + "start": 9330, + "end": 9389, "loc": { "start": { "line": 276, @@ -21413,8 +21170,8 @@ }, "argument": { "type": "NewExpression", - "start": 9333, - "end": 9386, + "start": 9336, + "end": 9389, "loc": { "start": { "line": 276, @@ -21427,8 +21184,8 @@ }, "callee": { "type": "Identifier", - "start": 9337, - "end": 9342, + "start": 9340, + "end": 9345, "loc": { "start": { "line": 276, @@ -21445,8 +21202,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 9343, - "end": 9385, + "start": 9346, + "end": 9388, "loc": { "start": { "line": 276, @@ -21473,8 +21230,8 @@ }, { "type": "VariableDeclaration", - "start": 9392, - "end": 9475, + "start": 9395, + "end": 9478, "loc": { "start": { "line": 279, @@ -21488,8 +21245,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 9396, - "end": 9475, + "start": 9399, + "end": 9478, "loc": { "start": { "line": 279, @@ -21502,8 +21259,8 @@ }, "id": { "type": "Identifier", - "start": 9396, - "end": 9399, + "start": 9399, + "end": 9402, "loc": { "start": { "line": 279, @@ -21519,8 +21276,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 9402, - "end": 9475, + "start": 9405, + "end": 9478, "loc": { "start": { "line": 279, @@ -21533,8 +21290,8 @@ }, "test": { "type": "BinaryExpression", - "start": 9403, - "end": 9422, + "start": 9406, + "end": 9425, "loc": { "start": { "line": 279, @@ -21547,8 +21304,8 @@ }, "left": { "type": "MemberExpression", - "start": 9403, - "end": 9410, + "start": 9406, + "end": 9413, "loc": { "start": { "line": 279, @@ -21561,8 +21318,8 @@ }, "object": { "type": "Identifier", - "start": 9403, - "end": 9407, + "start": 9406, + "end": 9410, "loc": { "start": { "line": 279, @@ -21578,8 +21335,8 @@ }, "property": { "type": "NumericLiteral", - "start": 9408, - "end": 9409, + "start": 9411, + "end": 9412, "loc": { "start": { "line": 279, @@ -21601,8 +21358,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 9415, - "end": 9422, + "start": 9418, + "end": 9425, "loc": { "start": { "line": 279, @@ -21621,13 +21378,13 @@ }, "extra": { "parenthesized": true, - "parenStart": 9402 + "parenStart": 9405 } }, "consequent": { "type": "Identifier", - "start": 9426, - "end": 9431, + "start": 9429, + "end": 9434, "loc": { "start": { "line": 279, @@ -21643,8 +21400,8 @@ }, "alternate": { "type": "ConditionalExpression", - "start": 9434, - "end": 9475, + "start": 9437, + "end": 9478, "loc": { "start": { "line": 279, @@ -21657,8 +21414,8 @@ }, "test": { "type": "BinaryExpression", - "start": 9435, - "end": 9454, + "start": 9438, + "end": 9457, "loc": { "start": { "line": 279, @@ -21671,8 +21428,8 @@ }, "left": { "type": "MemberExpression", - "start": 9435, - "end": 9442, + "start": 9438, + "end": 9445, "loc": { "start": { "line": 279, @@ -21685,8 +21442,8 @@ }, "object": { "type": "Identifier", - "start": 9435, - "end": 9439, + "start": 9438, + "end": 9442, "loc": { "start": { "line": 279, @@ -21702,8 +21459,8 @@ }, "property": { "type": "NumericLiteral", - "start": 9440, - "end": 9441, + "start": 9443, + "end": 9444, "loc": { "start": { "line": 279, @@ -21725,8 +21482,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 9447, - "end": 9454, + "start": 9450, + "end": 9457, "loc": { "start": { "line": 279, @@ -21745,13 +21502,13 @@ }, "extra": { "parenthesized": true, - "parenStart": 9434 + "parenStart": 9437 } }, "consequent": { "type": "Identifier", - "start": 9458, - "end": 9463, + "start": 9461, + "end": 9466, "loc": { "start": { "line": 279, @@ -21767,8 +21524,8 @@ }, "alternate": { "type": "Identifier", - "start": 9466, - "end": 9475, + "start": 9469, + "end": 9478, "loc": { "start": { "line": 279, @@ -21790,8 +21547,8 @@ }, { "type": "IfStatement", - "start": 9477, - "end": 9588, + "start": 9480, + "end": 9591, "loc": { "start": { "line": 280, @@ -21804,8 +21561,8 @@ }, "test": { "type": "BinaryExpression", - "start": 9481, - "end": 9498, + "start": 9484, + "end": 9501, "loc": { "start": { "line": 280, @@ -21818,8 +21575,8 @@ }, "left": { "type": "Identifier", - "start": 9481, - "end": 9484, + "start": 9484, + "end": 9487, "loc": { "start": { "line": 280, @@ -21836,8 +21593,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 9489, - "end": 9498, + "start": 9492, + "end": 9501, "loc": { "start": { "line": 280, @@ -21854,8 +21611,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9500, - "end": 9588, + "start": 9503, + "end": 9591, "loc": { "start": { "line": 280, @@ -21869,8 +21626,8 @@ "body": [ { "type": "ThrowStatement", - "start": 9504, - "end": 9585, + "start": 9507, + "end": 9588, "loc": { "start": { "line": 281, @@ -21883,8 +21640,8 @@ }, "argument": { "type": "NewExpression", - "start": 9510, - "end": 9585, + "start": 9513, + "end": 9588, "loc": { "start": { "line": 281, @@ -21897,8 +21654,8 @@ }, "callee": { "type": "Identifier", - "start": 9514, - "end": 9519, + "start": 9517, + "end": 9522, "loc": { "start": { "line": 281, @@ -21915,8 +21672,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 9520, - "end": 9584, + "start": 9523, + "end": 9587, "loc": { "start": { "line": 281, @@ -21929,8 +21686,8 @@ }, "left": { "type": "BinaryExpression", - "start": 9520, - "end": 9563, + "start": 9523, + "end": 9566, "loc": { "start": { "line": 281, @@ -21943,8 +21700,8 @@ }, "left": { "type": "StringLiteral", - "start": 9520, - "end": 9553, + "start": 9523, + "end": 9556, "loc": { "start": { "line": 281, @@ -21964,8 +21721,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 9556, - "end": 9563, + "start": 9559, + "end": 9566, "loc": { "start": { "line": 281, @@ -21978,8 +21735,8 @@ }, "object": { "type": "Identifier", - "start": 9556, - "end": 9560, + "start": 9559, + "end": 9563, "loc": { "start": { "line": 281, @@ -21995,8 +21752,8 @@ }, "property": { "type": "NumericLiteral", - "start": 9561, - "end": 9562, + "start": 9564, + "end": 9565, "loc": { "start": { "line": 281, @@ -22019,8 +21776,8 @@ "operator": "+", "right": { "type": "StringLiteral", - "start": 9566, - "end": 9584, + "start": 9569, + "end": 9587, "loc": { "start": { "line": 281, @@ -22048,8 +21805,8 @@ }, { "type": "ForStatement", - "start": 9591, - "end": 9654, + "start": 9594, + "end": 9657, "loc": { "start": { "line": 284, @@ -22062,8 +21819,8 @@ }, "init": { "type": "VariableDeclaration", - "start": 9596, - "end": 9605, + "start": 9599, + "end": 9608, "loc": { "start": { "line": 284, @@ -22077,8 +21834,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 9600, - "end": 9605, + "start": 9603, + "end": 9608, "loc": { "start": { "line": 284, @@ -22091,8 +21848,8 @@ }, "id": { "type": "Identifier", - "start": 9600, - "end": 9601, + "start": 9603, + "end": 9604, "loc": { "start": { "line": 284, @@ -22108,8 +21865,8 @@ }, "init": { "type": "NumericLiteral", - "start": 9604, - "end": 9605, + "start": 9607, + "end": 9608, "loc": { "start": { "line": 284, @@ -22132,8 +21889,8 @@ }, "test": { "type": "BinaryExpression", - "start": 9607, - "end": 9622, + "start": 9610, + "end": 9625, "loc": { "start": { "line": 284, @@ -22146,8 +21903,8 @@ }, "left": { "type": "Identifier", - "start": 9607, - "end": 9608, + "start": 9610, + "end": 9611, "loc": { "start": { "line": 284, @@ -22164,8 +21921,8 @@ "operator": "<", "right": { "type": "MemberExpression", - "start": 9611, - "end": 9622, + "start": 9614, + "end": 9625, "loc": { "start": { "line": 284, @@ -22178,8 +21935,8 @@ }, "object": { "type": "Identifier", - "start": 9611, - "end": 9615, + "start": 9614, + "end": 9618, "loc": { "start": { "line": 284, @@ -22195,8 +21952,8 @@ }, "property": { "type": "Identifier", - "start": 9616, - "end": 9622, + "start": 9619, + "end": 9625, "loc": { "start": { "line": 284, @@ -22215,8 +21972,8 @@ }, "update": { "type": "UpdateExpression", - "start": 9624, - "end": 9627, + "start": 9627, + "end": 9630, "loc": { "start": { "line": 284, @@ -22231,8 +21988,8 @@ "prefix": false, "argument": { "type": "Identifier", - "start": 9624, - "end": 9625, + "start": 9627, + "end": 9628, "loc": { "start": { "line": 284, @@ -22249,8 +22006,8 @@ }, "body": { "type": "BlockStatement", - "start": 9629, - "end": 9654, + "start": 9632, + "end": 9657, "loc": { "start": { "line": 284, @@ -22264,8 +22021,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9633, - "end": 9651, + "start": 9636, + "end": 9654, "loc": { "start": { "line": 285, @@ -22278,8 +22035,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 9633, - "end": 9651, + "start": 9636, + "end": 9654, "loc": { "start": { "line": 285, @@ -22293,8 +22050,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 9633, - "end": 9636, + "start": 9636, + "end": 9639, "loc": { "start": { "line": 285, @@ -22310,8 +22067,8 @@ }, "right": { "type": "MemberExpression", - "start": 9639, - "end": 9651, + "start": 9642, + "end": 9654, "loc": { "start": { "line": 285, @@ -22324,8 +22081,8 @@ }, "object": { "type": "Identifier", - "start": 9639, - "end": 9642, + "start": 9642, + "end": 9645, "loc": { "start": { "line": 285, @@ -22341,8 +22098,8 @@ }, "property": { "type": "MemberExpression", - "start": 9643, - "end": 9650, + "start": 9646, + "end": 9653, "loc": { "start": { "line": 285, @@ -22355,8 +22112,8 @@ }, "object": { "type": "Identifier", - "start": 9643, - "end": 9647, + "start": 9646, + "end": 9650, "loc": { "start": { "line": 285, @@ -22372,8 +22129,8 @@ }, "property": { "type": "Identifier", - "start": 9648, - "end": 9649, + "start": 9651, + "end": 9652, "loc": { "start": { "line": 285, @@ -22401,8 +22158,8 @@ { "type": "CommentLine", "value": " console.log(path, obj);", - "start": 9656, - "end": 9682, + "start": 9659, + "end": 9685, "loc": { "start": { "line": 287, @@ -22418,8 +22175,8 @@ }, { "type": "ReturnStatement", - "start": 9684, - "end": 9694, + "start": 9687, + "end": 9697, "loc": { "start": { "line": 288, @@ -22432,8 +22189,8 @@ }, "argument": { "type": "Identifier", - "start": 9691, - "end": 9694, + "start": 9694, + "end": 9697, "loc": { "start": { "line": 288, @@ -22452,8 +22209,8 @@ { "type": "CommentLine", "value": " console.log(path, obj);", - "start": 9656, - "end": 9682, + "start": 9659, + "end": 9685, "loc": { "start": { "line": 287, @@ -22475,8 +22232,8 @@ { "type": "CommentBlock", "value": "*\n * Returns the value given a path to that value.\n * Adopted from https://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n * @returns The value for the given field.\n ", - "start": 8698, - "end": 9144, + "start": 8701, + "end": 9147, "loc": { "start": { "line": 264, @@ -22493,8 +22250,8 @@ { "type": "CommentBlock", "value": "*\n * Deletes one of the three types of gameObjects synced to the server\n * @param {string} type Either players, atoms, compounds\n * @param {*} id ID of the object to delete\n * @param {string} room Room name to delete in\n * @param {*} socket socket.io instance\n ", - "start": 9698, - "end": 9963, + "start": 9701, + "end": 9966, "loc": { "start": { "line": 291, @@ -22512,8 +22269,8 @@ { "type": "CommentBlock", "value": "*\n * Returns the value given a path to that value.\n * Adopted from https://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n * @returns The value for the given field.\n ", - "start": 8698, - "end": 9144, + "start": 8701, + "end": 9147, "loc": { "start": { "line": 264, @@ -22530,8 +22287,8 @@ { "type": "CommentBlock", "value": "*\n * Deletes one of the three types of gameObjects synced to the server\n * @param {string} type Either players, atoms, compounds\n * @param {*} id ID of the object to delete\n * @param {string} room Room name to delete in\n * @param {*} socket socket.io instance\n ", - "start": 9698, - "end": 9963, + "start": 9701, + "end": 9966, "loc": { "start": { "line": 291, @@ -22547,8 +22304,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 9964, - "end": 10227, + "start": 9967, + "end": 10230, "loc": { "start": { "line": 298, @@ -22563,8 +22320,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 9971, - "end": 10227, + "start": 9974, + "end": 10230, "loc": { "start": { "line": 298, @@ -22577,8 +22334,8 @@ }, "id": { "type": "Identifier", - "start": 9980, - "end": 9992, + "start": 9983, + "end": 9995, "loc": { "start": { "line": 298, @@ -22599,8 +22356,8 @@ "params": [ { "type": "Identifier", - "start": 9994, - "end": 9998, + "start": 9997, + "end": 10001, "loc": { "start": { "line": 298, @@ -22616,8 +22373,8 @@ }, { "type": "Identifier", - "start": 10000, - "end": 10002, + "start": 10003, + "end": 10005, "loc": { "start": { "line": 298, @@ -22633,8 +22390,8 @@ }, { "type": "Identifier", - "start": 10004, - "end": 10008, + "start": 10007, + "end": 10011, "loc": { "start": { "line": 298, @@ -22650,8 +22407,8 @@ }, { "type": "Identifier", - "start": 10010, - "end": 10016, + "start": 10013, + "end": 10019, "loc": { "start": { "line": 298, @@ -22668,8 +22425,8 @@ ], "body": { "type": "BlockStatement", - "start": 10018, - "end": 10227, + "start": 10021, + "end": 10230, "loc": { "start": { "line": 298, @@ -22683,8 +22440,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 10021, - "end": 10049, + "start": 10024, + "end": 10052, "loc": { "start": { "line": 299, @@ -22697,8 +22454,8 @@ }, "expression": { "type": "UnaryExpression", - "start": 10021, - "end": 10049, + "start": 10024, + "end": 10052, "loc": { "start": { "line": 299, @@ -22713,8 +22470,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 10028, - "end": 10049, + "start": 10031, + "end": 10052, "loc": { "start": { "line": 299, @@ -22727,8 +22484,8 @@ }, "object": { "type": "MemberExpression", - "start": 10028, - "end": 10045, + "start": 10031, + "end": 10048, "loc": { "start": { "line": 299, @@ -22741,8 +22498,8 @@ }, "object": { "type": "MemberExpression", - "start": 10028, - "end": 10039, + "start": 10031, + "end": 10042, "loc": { "start": { "line": 299, @@ -22755,8 +22512,8 @@ }, "object": { "type": "Identifier", - "start": 10028, - "end": 10033, + "start": 10031, + "end": 10036, "loc": { "start": { "line": 299, @@ -22772,8 +22529,8 @@ }, "property": { "type": "Identifier", - "start": 10034, - "end": 10038, + "start": 10037, + "end": 10041, "loc": { "start": { "line": 299, @@ -22791,8 +22548,8 @@ }, "property": { "type": "Identifier", - "start": 10040, - "end": 10044, + "start": 10043, + "end": 10047, "loc": { "start": { "line": 299, @@ -22810,8 +22567,8 @@ }, "property": { "type": "Identifier", - "start": 10046, - "end": 10048, + "start": 10049, + "end": 10051, "loc": { "start": { "line": 299, @@ -22837,8 +22594,8 @@ { "type": "CommentLine", "value": " Send clientside message", - "start": 10052, - "end": 10078, + "start": 10055, + "end": 10081, "loc": { "start": { "line": 301, @@ -22854,8 +22611,8 @@ }, { "type": "ExpressionStatement", - "start": 10080, - "end": 10161, + "start": 10083, + "end": 10164, "loc": { "start": { "line": 302, @@ -22868,8 +22625,8 @@ }, "expression": { "type": "CallExpression", - "start": 10080, - "end": 10161, + "start": 10083, + "end": 10164, "loc": { "start": { "line": 302, @@ -22882,8 +22639,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10080, - "end": 10110, + "start": 10083, + "end": 10113, "loc": { "start": { "line": 302, @@ -22896,8 +22653,8 @@ }, "object": { "type": "MemberExpression", - "start": 10080, - "end": 10105, + "start": 10083, + "end": 10108, "loc": { "start": { "line": 302, @@ -22910,8 +22667,8 @@ }, "object": { "type": "CallExpression", - "start": 10080, - "end": 10095, + "start": 10083, + "end": 10098, "loc": { "start": { "line": 302, @@ -22924,8 +22681,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10080, - "end": 10089, + "start": 10083, + "end": 10092, "loc": { "start": { "line": 302, @@ -22938,8 +22695,8 @@ }, "object": { "type": "Identifier", - "start": 10080, - "end": 10086, + "start": 10083, + "end": 10089, "loc": { "start": { "line": 302, @@ -22956,8 +22713,8 @@ }, "property": { "type": "Identifier", - "start": 10087, - "end": 10089, + "start": 10090, + "end": 10092, "loc": { "start": { "line": 302, @@ -22977,8 +22734,8 @@ "arguments": [ { "type": "Identifier", - "start": 10090, - "end": 10094, + "start": 10093, + "end": 10097, "loc": { "start": { "line": 302, @@ -22997,8 +22754,8 @@ }, "property": { "type": "Identifier", - "start": 10096, - "end": 10105, + "start": 10099, + "end": 10108, "loc": { "start": { "line": 302, @@ -23017,8 +22774,8 @@ }, "property": { "type": "Identifier", - "start": 10106, - "end": 10110, + "start": 10109, + "end": 10113, "loc": { "start": { "line": 302, @@ -23038,8 +22795,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 10111, - "end": 10136, + "start": 10114, + "end": 10139, "loc": { "start": { "line": 302, @@ -23058,8 +22815,8 @@ }, { "type": "ObjectExpression", - "start": 10138, - "end": 10160, + "start": 10141, + "end": 10163, "loc": { "start": { "line": 302, @@ -23073,8 +22830,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 10140, - "end": 10146, + "start": 10143, + "end": 10149, "loc": { "start": { "line": 302, @@ -23090,8 +22847,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 10140, - "end": 10142, + "start": 10143, + "end": 10145, "loc": { "start": { "line": 302, @@ -23107,8 +22864,8 @@ }, "value": { "type": "Identifier", - "start": 10144, - "end": 10146, + "start": 10147, + "end": 10149, "loc": { "start": { "line": 302, @@ -23125,8 +22882,8 @@ }, { "type": "ObjectProperty", - "start": 10148, - "end": 10158, + "start": 10151, + "end": 10161, "loc": { "start": { "line": 302, @@ -23142,8 +22899,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 10148, - "end": 10152, + "start": 10151, + "end": 10155, "loc": { "start": { "line": 302, @@ -23159,8 +22916,8 @@ }, "value": { "type": "Identifier", - "start": 10154, - "end": 10158, + "start": 10157, + "end": 10161, "loc": { "start": { "line": 302, @@ -23184,8 +22941,8 @@ { "type": "CommentLine", "value": " Send clientside message", - "start": 10052, - "end": 10078, + "start": 10055, + "end": 10081, "loc": { "start": { "line": 301, @@ -23201,8 +22958,8 @@ }, { "type": "ExpressionStatement", - "start": 10163, - "end": 10225, + "start": 10166, + "end": 10228, "loc": { "start": { "line": 303, @@ -23215,8 +22972,8 @@ }, "expression": { "type": "CallExpression", - "start": 10163, - "end": 10225, + "start": 10166, + "end": 10228, "loc": { "start": { "line": 303, @@ -23229,8 +22986,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10163, - "end": 10174, + "start": 10166, + "end": 10177, "loc": { "start": { "line": 303, @@ -23243,8 +23000,8 @@ }, "object": { "type": "Identifier", - "start": 10163, - "end": 10169, + "start": 10166, + "end": 10172, "loc": { "start": { "line": 303, @@ -23260,8 +23017,8 @@ }, "property": { "type": "Identifier", - "start": 10170, - "end": 10174, + "start": 10173, + "end": 10177, "loc": { "start": { "line": 303, @@ -23280,8 +23037,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 10175, - "end": 10200, + "start": 10178, + "end": 10203, "loc": { "start": { "line": 303, @@ -23300,8 +23057,8 @@ }, { "type": "ObjectExpression", - "start": 10202, - "end": 10224, + "start": 10205, + "end": 10227, "loc": { "start": { "line": 303, @@ -23315,8 +23072,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 10204, - "end": 10210, + "start": 10207, + "end": 10213, "loc": { "start": { "line": 303, @@ -23332,8 +23089,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 10204, - "end": 10206, + "start": 10207, + "end": 10209, "loc": { "start": { "line": 303, @@ -23349,8 +23106,8 @@ }, "value": { "type": "Identifier", - "start": 10208, - "end": 10210, + "start": 10211, + "end": 10213, "loc": { "start": { "line": 303, @@ -23367,8 +23124,8 @@ }, { "type": "ObjectProperty", - "start": 10212, - "end": 10222, + "start": 10215, + "end": 10225, "loc": { "start": { "line": 303, @@ -23384,8 +23141,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 10212, - "end": 10216, + "start": 10215, + "end": 10219, "loc": { "start": { "line": 303, @@ -23401,8 +23158,8 @@ }, "value": { "type": "Identifier", - "start": 10218, - "end": 10222, + "start": 10221, + "end": 10225, "loc": { "start": { "line": 303, @@ -23429,8 +23186,8 @@ { "type": "CommentBlock", "value": "*\n * Deletes one of the three types of gameObjects synced to the server\n * @param {string} type Either players, atoms, compounds\n * @param {*} id ID of the object to delete\n * @param {string} room Room name to delete in\n * @param {*} socket socket.io instance\n ", - "start": 9698, - "end": 9963, + "start": 9701, + "end": 9966, "loc": { "start": { "line": 291, @@ -23449,8 +23206,8 @@ { "type": "CommentBlock", "value": "*\n * Deletes one of the three types of gameObjects synced to the server\n * @param {string} type Either players, atoms, compounds\n * @param {*} id ID of the object to delete\n * @param {string} room Room name to delete in\n * @param {*} socket socket.io instance\n ", - "start": 9698, - "end": 9963, + "start": 9701, + "end": 9966, "loc": { "start": { "line": 291, @@ -23804,11 +23561,27 @@ } } }, + { + "type": "CommentLine", + "value": " console.log(rooms[room].players[data.player].atomList)", + "start": 6013, + "end": 6070, + "loc": { + "start": { + "line": 186, + "column": 3 + }, + "end": { + "line": 186, + "column": 60 + } + } + }, { "type": "CommentLine", "value": " Broadcast to everyone in the room to delete the player", - "start": 6464, - "end": 6521, + "start": 6467, + "end": 6524, "loc": { "start": { "line": 196, @@ -23823,8 +23596,8 @@ { "type": "CommentLine", "value": " Remove the server side player", - "start": 6563, - "end": 6595, + "start": 6566, + "end": 6598, "loc": { "start": { "line": 198, @@ -23839,8 +23612,8 @@ { "type": "CommentLine", "value": " Delete room if there is nobody inside", - "start": 6599, - "end": 6639, + "start": 6602, + "end": 6642, "loc": { "start": { "line": 200, @@ -23855,8 +23628,8 @@ { "type": "CommentLine", "value": " Remove from teams array", - "start": 6896, - "end": 6922, + "start": 6899, + "end": 6925, "loc": { "start": { "line": 207, @@ -23871,8 +23644,8 @@ { "type": "CommentLine", "value": " rooms[room].teams[team].players.splice(rooms[room].teams[team].players.indexOf(socket.id), 1);", - "start": 7001, - "end": 7098, + "start": 7004, + "end": 7101, "loc": { "start": { "line": 209, @@ -23887,8 +23660,8 @@ { "type": "CommentLine", "value": " Delete team if all players have left", - "start": 7104, - "end": 7143, + "start": 7107, + "end": 7146, "loc": { "start": { "line": 211, @@ -23903,8 +23676,8 @@ { "type": "CommentLine", "value": " Notify on console when server has started", - "start": 7235, - "end": 7279, + "start": 7238, + "end": 7282, "loc": { "start": { "line": 220, @@ -23919,8 +23692,8 @@ { "type": "CommentBlock", "value": "*\n * Sets a new value for a protected server field.\n * Adopted from https://stackoverflow.com/questions/18936915/dynamically-set-property-of-nested-object\n * @param {*} value The value to set\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n ", - "start": 7455, - "end": 7887, + "start": 7458, + "end": 7890, "loc": { "start": { "line": 227, @@ -23935,8 +23708,8 @@ { "type": "CommentBlock", "value": "*\n * Shorthand to add or concatenate an amount to a field.\n * Best used with numbers or strings.\n * @param {*} amount Amount to increment the field by.\n * @param {*} path Path to the field.\n ", - "start": 8410, - "end": 8605, + "start": 8413, + "end": 8608, "loc": { "start": { "line": 254, @@ -23951,8 +23724,8 @@ { "type": "CommentBlock", "value": "*\n * Returns the value given a path to that value.\n * Adopted from https://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n * @returns The value for the given field.\n ", - "start": 8698, - "end": 9144, + "start": 8701, + "end": 9147, "loc": { "start": { "line": 264, @@ -23967,8 +23740,8 @@ { "type": "CommentLine", "value": " console.log(path, obj);", - "start": 9656, - "end": 9682, + "start": 9659, + "end": 9685, "loc": { "start": { "line": 287, @@ -23983,8 +23756,8 @@ { "type": "CommentBlock", "value": "*\n * Deletes one of the three types of gameObjects synced to the server\n * @param {string} type Either players, atoms, compounds\n * @param {*} id ID of the object to delete\n * @param {string} room Room name to delete in\n * @param {*} socket socket.io instance\n ", - "start": 9698, - "end": 9963, + "start": 9701, + "end": 9966, "loc": { "start": { "line": 291, @@ -23999,8 +23772,8 @@ { "type": "CommentLine", "value": " Send clientside message", - "start": 10052, - "end": 10078, + "start": 10055, + "end": 10081, "loc": { "start": { "line": 301, @@ -48776,20 +48549,10 @@ } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", + "type": "CommentLine", + "value": " console.log(rooms[room].players[data.player].atomList)", "start": 6013, - "end": 6020, + "end": 6070, "loc": { "start": { "line": 186, @@ -48797,447 +48560,7 @@ }, "end": { "line": 186, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6020, - "end": 6021, - "loc": { - "start": { - "line": 186, - "column": 10 - }, - "end": { - "line": 186, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "log", - "start": 6021, - "end": 6024, - "loc": { - "start": { - "line": 186, - "column": 11 - }, - "end": { - "line": 186, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6024, - "end": 6025, - "loc": { - "start": { - "line": 186, - "column": 14 - }, - "end": { - "line": 186, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rooms", - "start": 6025, - "end": 6030, - "loc": { - "start": { - "line": 186, - "column": 15 - }, - "end": { - "line": 186, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6030, - "end": 6031, - "loc": { - "start": { - "line": 186, - "column": 20 - }, - "end": { - "line": 186, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "room", - "start": 6031, - "end": 6035, - "loc": { - "start": { - "line": 186, - "column": 21 - }, - "end": { - "line": 186, - "column": 25 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6035, - "end": 6036, - "loc": { - "start": { - "line": 186, - "column": 25 - }, - "end": { - "line": 186, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6036, - "end": 6037, - "loc": { - "start": { - "line": 186, - "column": 26 - }, - "end": { - "line": 186, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "players", - "start": 6037, - "end": 6044, - "loc": { - "start": { - "line": 186, - "column": 27 - }, - "end": { - "line": 186, - "column": 34 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6044, - "end": 6045, - "loc": { - "start": { - "line": 186, - "column": 34 - }, - "end": { - "line": 186, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 6045, - "end": 6049, - "loc": { - "start": { - "line": 186, - "column": 35 - }, - "end": { - "line": 186, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6049, - "end": 6050, - "loc": { - "start": { - "line": 186, - "column": 39 - }, - "end": { - "line": 186, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "player", - "start": 6050, - "end": 6056, - "loc": { - "start": { - "line": 186, - "column": 40 - }, - "end": { - "line": 186, - "column": 46 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6056, - "end": 6057, - "loc": { - "start": { - "line": 186, - "column": 46 - }, - "end": { - "line": 186, - "column": 47 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6057, - "end": 6058, - "loc": { - "start": { - "line": 186, - "column": 47 - }, - "end": { - "line": 186, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "atomList", - "start": 6058, - "end": 6066, - "loc": { - "start": { - "line": 186, - "column": 48 - }, - "end": { - "line": 186, - "column": 56 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6066, - "end": 6067, - "loc": { - "start": { - "line": 186, - "column": 56 - }, - "end": { - "line": 186, - "column": 57 + "column": 60 } } }, @@ -49256,8 +48579,8 @@ "updateContext": null }, "value": "for", - "start": 6071, - "end": 6074, + "start": 6074, + "end": 6077, "loc": { "start": { "line": 187, @@ -49281,8 +48604,8 @@ "postfix": false, "binop": null }, - "start": 6075, - "end": 6076, + "start": 6078, + "end": 6079, "loc": { "start": { "line": 187, @@ -49309,8 +48632,8 @@ "updateContext": null }, "value": "let", - "start": 6076, - "end": 6079, + "start": 6079, + "end": 6082, "loc": { "start": { "line": 187, @@ -49335,8 +48658,8 @@ "binop": null }, "value": "i", - "start": 6080, - "end": 6081, + "start": 6083, + "end": 6084, "loc": { "start": { "line": 187, @@ -49363,8 +48686,8 @@ "updateContext": null }, "value": "in", - "start": 6082, - "end": 6084, + "start": 6085, + "end": 6087, "loc": { "start": { "line": 187, @@ -49389,8 +48712,8 @@ "binop": null }, "value": "rooms", - "start": 6085, - "end": 6090, + "start": 6088, + "end": 6093, "loc": { "start": { "line": 187, @@ -49415,8 +48738,8 @@ "binop": null, "updateContext": null }, - "start": 6090, - "end": 6091, + "start": 6093, + "end": 6094, "loc": { "start": { "line": 187, @@ -49441,8 +48764,8 @@ "binop": null }, "value": "room", - "start": 6091, - "end": 6095, + "start": 6094, + "end": 6098, "loc": { "start": { "line": 187, @@ -49467,8 +48790,8 @@ "binop": null, "updateContext": null }, - "start": 6095, - "end": 6096, + "start": 6098, + "end": 6099, "loc": { "start": { "line": 187, @@ -49493,8 +48816,8 @@ "binop": null, "updateContext": null }, - "start": 6096, - "end": 6097, + "start": 6099, + "end": 6100, "loc": { "start": { "line": 187, @@ -49519,8 +48842,8 @@ "binop": null }, "value": "players", - "start": 6097, - "end": 6104, + "start": 6100, + "end": 6107, "loc": { "start": { "line": 187, @@ -49545,8 +48868,8 @@ "binop": null, "updateContext": null }, - "start": 6104, - "end": 6105, + "start": 6107, + "end": 6108, "loc": { "start": { "line": 187, @@ -49571,8 +48894,8 @@ "binop": null }, "value": "data", - "start": 6105, - "end": 6109, + "start": 6108, + "end": 6112, "loc": { "start": { "line": 187, @@ -49597,8 +48920,8 @@ "binop": null, "updateContext": null }, - "start": 6109, - "end": 6110, + "start": 6112, + "end": 6113, "loc": { "start": { "line": 187, @@ -49623,8 +48946,8 @@ "binop": null }, "value": "player", - "start": 6110, - "end": 6116, + "start": 6113, + "end": 6119, "loc": { "start": { "line": 187, @@ -49649,8 +48972,8 @@ "binop": null, "updateContext": null }, - "start": 6116, - "end": 6117, + "start": 6119, + "end": 6120, "loc": { "start": { "line": 187, @@ -49675,8 +48998,8 @@ "binop": null, "updateContext": null }, - "start": 6117, - "end": 6118, + "start": 6120, + "end": 6121, "loc": { "start": { "line": 187, @@ -49701,8 +49024,8 @@ "binop": null }, "value": "atomList", - "start": 6118, - "end": 6126, + "start": 6121, + "end": 6129, "loc": { "start": { "line": 187, @@ -49726,8 +49049,8 @@ "postfix": false, "binop": null }, - "start": 6126, - "end": 6127, + "start": 6129, + "end": 6130, "loc": { "start": { "line": 187, @@ -49751,8 +49074,8 @@ "postfix": false, "binop": null }, - "start": 6128, - "end": 6129, + "start": 6131, + "end": 6132, "loc": { "start": { "line": 187, @@ -49777,8 +49100,8 @@ "binop": null }, "value": "rooms", - "start": 6134, - "end": 6139, + "start": 6137, + "end": 6142, "loc": { "start": { "line": 188, @@ -49803,8 +49126,8 @@ "binop": null, "updateContext": null }, - "start": 6139, - "end": 6140, + "start": 6142, + "end": 6143, "loc": { "start": { "line": 188, @@ -49829,8 +49152,8 @@ "binop": null }, "value": "room", - "start": 6140, - "end": 6144, + "start": 6143, + "end": 6147, "loc": { "start": { "line": 188, @@ -49855,8 +49178,8 @@ "binop": null, "updateContext": null }, - "start": 6144, - "end": 6145, + "start": 6147, + "end": 6148, "loc": { "start": { "line": 188, @@ -49881,8 +49204,8 @@ "binop": null, "updateContext": null }, - "start": 6145, - "end": 6146, + "start": 6148, + "end": 6149, "loc": { "start": { "line": 188, @@ -49907,8 +49230,8 @@ "binop": null }, "value": "players", - "start": 6146, - "end": 6153, + "start": 6149, + "end": 6156, "loc": { "start": { "line": 188, @@ -49933,8 +49256,8 @@ "binop": null, "updateContext": null }, - "start": 6153, - "end": 6154, + "start": 6156, + "end": 6157, "loc": { "start": { "line": 188, @@ -49959,8 +49282,8 @@ "binop": null }, "value": "data", - "start": 6154, - "end": 6158, + "start": 6157, + "end": 6161, "loc": { "start": { "line": 188, @@ -49985,8 +49308,8 @@ "binop": null, "updateContext": null }, - "start": 6158, - "end": 6159, + "start": 6161, + "end": 6162, "loc": { "start": { "line": 188, @@ -50011,8 +49334,8 @@ "binop": null }, "value": "player", - "start": 6159, - "end": 6165, + "start": 6162, + "end": 6168, "loc": { "start": { "line": 188, @@ -50037,8 +49360,8 @@ "binop": null, "updateContext": null }, - "start": 6165, - "end": 6166, + "start": 6168, + "end": 6169, "loc": { "start": { "line": 188, @@ -50063,8 +49386,8 @@ "binop": null, "updateContext": null }, - "start": 6166, - "end": 6167, + "start": 6169, + "end": 6170, "loc": { "start": { "line": 188, @@ -50089,8 +49412,8 @@ "binop": null }, "value": "atomList", - "start": 6167, - "end": 6175, + "start": 6170, + "end": 6178, "loc": { "start": { "line": 188, @@ -50115,8 +49438,8 @@ "binop": null, "updateContext": null }, - "start": 6175, - "end": 6176, + "start": 6178, + "end": 6179, "loc": { "start": { "line": 188, @@ -50141,8 +49464,8 @@ "binop": null }, "value": "i", - "start": 6176, - "end": 6177, + "start": 6179, + "end": 6180, "loc": { "start": { "line": 188, @@ -50167,8 +49490,8 @@ "binop": null, "updateContext": null }, - "start": 6177, - "end": 6178, + "start": 6180, + "end": 6181, "loc": { "start": { "line": 188, @@ -50194,8 +49517,8 @@ "updateContext": null }, "value": "+=", - "start": 6179, - "end": 6181, + "start": 6182, + "end": 6184, "loc": { "start": { "line": 188, @@ -50221,8 +49544,8 @@ "updateContext": null }, "value": 5000, - "start": 6182, - "end": 6186, + "start": 6185, + "end": 6189, "loc": { "start": { "line": 188, @@ -50246,8 +49569,8 @@ "postfix": false, "binop": null }, - "start": 6190, - "end": 6191, + "start": 6193, + "end": 6194, "loc": { "start": { "line": 189, @@ -50271,8 +49594,8 @@ "postfix": false, "binop": null }, - "start": 6194, - "end": 6195, + "start": 6197, + "end": 6198, "loc": { "start": { "line": 190, @@ -50296,8 +49619,8 @@ "postfix": false, "binop": null }, - "start": 6197, - "end": 6198, + "start": 6200, + "end": 6201, "loc": { "start": { "line": 191, @@ -50321,8 +49644,8 @@ "postfix": false, "binop": null }, - "start": 6198, - "end": 6199, + "start": 6201, + "end": 6202, "loc": { "start": { "line": 191, @@ -50347,8 +49670,8 @@ "binop": null }, "value": "socket", - "start": 6202, - "end": 6208, + "start": 6205, + "end": 6211, "loc": { "start": { "line": 193, @@ -50373,8 +49696,8 @@ "binop": null, "updateContext": null }, - "start": 6208, - "end": 6209, + "start": 6211, + "end": 6212, "loc": { "start": { "line": 193, @@ -50399,8 +49722,8 @@ "binop": null }, "value": "on", - "start": 6209, - "end": 6211, + "start": 6212, + "end": 6214, "loc": { "start": { "line": 193, @@ -50424,8 +49747,8 @@ "postfix": false, "binop": null }, - "start": 6211, - "end": 6212, + "start": 6214, + "end": 6215, "loc": { "start": { "line": 193, @@ -50451,8 +49774,8 @@ "updateContext": null }, "value": "disconnect", - "start": 6212, - "end": 6224, + "start": 6215, + "end": 6227, "loc": { "start": { "line": 193, @@ -50477,8 +49800,8 @@ "binop": null, "updateContext": null }, - "start": 6224, - "end": 6225, + "start": 6227, + "end": 6228, "loc": { "start": { "line": 193, @@ -50503,8 +49826,8 @@ "binop": null }, "value": "data", - "start": 6226, - "end": 6230, + "start": 6229, + "end": 6233, "loc": { "start": { "line": 193, @@ -50529,8 +49852,8 @@ "binop": null, "updateContext": null }, - "start": 6231, - "end": 6233, + "start": 6234, + "end": 6236, "loc": { "start": { "line": 193, @@ -50554,8 +49877,8 @@ "postfix": false, "binop": null }, - "start": 6234, - "end": 6235, + "start": 6237, + "end": 6238, "loc": { "start": { "line": 193, @@ -50580,8 +49903,8 @@ "binop": null }, "value": "console", - "start": 6238, - "end": 6245, + "start": 6241, + "end": 6248, "loc": { "start": { "line": 194, @@ -50606,8 +49929,8 @@ "binop": null, "updateContext": null }, - "start": 6245, - "end": 6246, + "start": 6248, + "end": 6249, "loc": { "start": { "line": 194, @@ -50632,8 +49955,8 @@ "binop": null }, "value": "log", - "start": 6246, - "end": 6249, + "start": 6249, + "end": 6252, "loc": { "start": { "line": 194, @@ -50657,8 +49980,8 @@ "postfix": false, "binop": null }, - "start": 6249, - "end": 6250, + "start": 6252, + "end": 6253, "loc": { "start": { "line": 194, @@ -50684,8 +50007,8 @@ "updateContext": null }, "value": "[Server]", - "start": 6250, - "end": 6260, + "start": 6253, + "end": 6263, "loc": { "start": { "line": 194, @@ -50710,8 +50033,8 @@ "binop": null, "updateContext": null }, - "start": 6260, - "end": 6261, + "start": 6263, + "end": 6264, "loc": { "start": { "line": 194, @@ -50736,8 +50059,8 @@ "binop": null }, "value": "bold", - "start": 6261, - "end": 6265, + "start": 6264, + "end": 6268, "loc": { "start": { "line": 194, @@ -50762,8 +50085,8 @@ "binop": null, "updateContext": null }, - "start": 6265, - "end": 6266, + "start": 6268, + "end": 6269, "loc": { "start": { "line": 194, @@ -50788,8 +50111,8 @@ "binop": null }, "value": "blue", - "start": 6266, - "end": 6270, + "start": 6269, + "end": 6273, "loc": { "start": { "line": 194, @@ -50815,8 +50138,8 @@ "updateContext": null }, "value": "+", - "start": 6271, - "end": 6272, + "start": 6274, + "end": 6275, "loc": { "start": { "line": 194, @@ -50842,8 +50165,8 @@ "updateContext": null }, "value": " Disconnect Received: ", - "start": 6273, - "end": 6297, + "start": 6276, + "end": 6300, "loc": { "start": { "line": 194, @@ -50868,8 +50191,8 @@ "binop": null, "updateContext": null }, - "start": 6297, - "end": 6298, + "start": 6300, + "end": 6301, "loc": { "start": { "line": 194, @@ -50894,8 +50217,8 @@ "binop": null }, "value": "red", - "start": 6298, - "end": 6301, + "start": 6301, + "end": 6304, "loc": { "start": { "line": 194, @@ -50921,8 +50244,8 @@ "updateContext": null }, "value": "+", - "start": 6302, - "end": 6303, + "start": 6305, + "end": 6306, "loc": { "start": { "line": 194, @@ -50946,8 +50269,8 @@ "postfix": false, "binop": null }, - "start": 6304, - "end": 6305, + "start": 6307, + "end": 6308, "loc": { "start": { "line": 194, @@ -50973,8 +50296,8 @@ "updateContext": null }, "value": "", - "start": 6305, - "end": 6307, + "start": 6308, + "end": 6310, "loc": { "start": { "line": 194, @@ -51000,8 +50323,8 @@ "updateContext": null }, "value": "+", - "start": 6308, - "end": 6309, + "start": 6311, + "end": 6312, "loc": { "start": { "line": 194, @@ -51026,8 +50349,8 @@ "binop": null }, "value": "socket", - "start": 6310, - "end": 6316, + "start": 6313, + "end": 6319, "loc": { "start": { "line": 194, @@ -51052,8 +50375,8 @@ "binop": null, "updateContext": null }, - "start": 6316, - "end": 6317, + "start": 6319, + "end": 6320, "loc": { "start": { "line": 194, @@ -51078,8 +50401,8 @@ "binop": null }, "value": "id", - "start": 6317, - "end": 6319, + "start": 6320, + "end": 6322, "loc": { "start": { "line": 194, @@ -51103,8 +50426,8 @@ "postfix": false, "binop": null }, - "start": 6319, - "end": 6320, + "start": 6322, + "end": 6323, "loc": { "start": { "line": 194, @@ -51129,8 +50452,8 @@ "binop": null, "updateContext": null }, - "start": 6320, - "end": 6321, + "start": 6323, + "end": 6324, "loc": { "start": { "line": 194, @@ -51155,8 +50478,8 @@ "binop": null }, "value": "yellow", - "start": 6321, - "end": 6327, + "start": 6324, + "end": 6330, "loc": { "start": { "line": 194, @@ -51182,8 +50505,8 @@ "updateContext": null }, "value": "+", - "start": 6328, - "end": 6329, + "start": 6331, + "end": 6332, "loc": { "start": { "line": 194, @@ -51207,8 +50530,8 @@ "postfix": false, "binop": null }, - "start": 6330, - "end": 6331, + "start": 6333, + "end": 6334, "loc": { "start": { "line": 194, @@ -51234,8 +50557,8 @@ "updateContext": null }, "value": "", - "start": 6331, - "end": 6333, + "start": 6334, + "end": 6336, "loc": { "start": { "line": 194, @@ -51261,8 +50584,8 @@ "updateContext": null }, "value": "+", - "start": 6334, - "end": 6335, + "start": 6337, + "end": 6338, "loc": { "start": { "line": 194, @@ -51287,8 +50610,8 @@ "binop": null }, "value": "rooms", - "start": 6336, - "end": 6341, + "start": 6339, + "end": 6344, "loc": { "start": { "line": 194, @@ -51313,8 +50636,8 @@ "binop": null, "updateContext": null }, - "start": 6341, - "end": 6342, + "start": 6344, + "end": 6345, "loc": { "start": { "line": 194, @@ -51339,8 +50662,8 @@ "binop": null }, "value": "room", - "start": 6342, - "end": 6346, + "start": 6345, + "end": 6349, "loc": { "start": { "line": 194, @@ -51365,8 +50688,8 @@ "binop": null, "updateContext": null }, - "start": 6346, - "end": 6347, + "start": 6349, + "end": 6350, "loc": { "start": { "line": 194, @@ -51391,8 +50714,8 @@ "binop": null, "updateContext": null }, - "start": 6347, - "end": 6348, + "start": 6350, + "end": 6351, "loc": { "start": { "line": 194, @@ -51417,8 +50740,8 @@ "binop": null }, "value": "players", - "start": 6348, - "end": 6355, + "start": 6351, + "end": 6358, "loc": { "start": { "line": 194, @@ -51443,8 +50766,8 @@ "binop": null, "updateContext": null }, - "start": 6355, - "end": 6356, + "start": 6358, + "end": 6359, "loc": { "start": { "line": 194, @@ -51469,8 +50792,8 @@ "binop": null }, "value": "socket", - "start": 6356, - "end": 6362, + "start": 6359, + "end": 6365, "loc": { "start": { "line": 194, @@ -51495,8 +50818,8 @@ "binop": null, "updateContext": null }, - "start": 6362, - "end": 6363, + "start": 6365, + "end": 6366, "loc": { "start": { "line": 194, @@ -51521,8 +50844,8 @@ "binop": null }, "value": "id", - "start": 6363, - "end": 6365, + "start": 6366, + "end": 6368, "loc": { "start": { "line": 194, @@ -51547,8 +50870,8 @@ "binop": null, "updateContext": null }, - "start": 6365, - "end": 6366, + "start": 6368, + "end": 6369, "loc": { "start": { "line": 194, @@ -51572,8 +50895,8 @@ "postfix": false, "binop": null }, - "start": 6366, - "end": 6367, + "start": 6369, + "end": 6370, "loc": { "start": { "line": 194, @@ -51598,8 +50921,8 @@ "binop": null, "updateContext": null }, - "start": 6367, - "end": 6368, + "start": 6370, + "end": 6371, "loc": { "start": { "line": 194, @@ -51624,8 +50947,8 @@ "binop": null }, "value": "green", - "start": 6368, - "end": 6373, + "start": 6371, + "end": 6376, "loc": { "start": { "line": 194, @@ -51651,8 +50974,8 @@ "updateContext": null }, "value": "+", - "start": 6374, - "end": 6375, + "start": 6377, + "end": 6378, "loc": { "start": { "line": 194, @@ -51678,8 +51001,8 @@ "updateContext": null }, "value": ": ", - "start": 6376, - "end": 6380, + "start": 6379, + "end": 6383, "loc": { "start": { "line": 194, @@ -51705,8 +51028,8 @@ "updateContext": null }, "value": "+", - "start": 6381, - "end": 6382, + "start": 6384, + "end": 6385, "loc": { "start": { "line": 194, @@ -51731,8 +51054,8 @@ "binop": null }, "value": "data", - "start": 6383, - "end": 6387, + "start": 6386, + "end": 6390, "loc": { "start": { "line": 194, @@ -51756,8 +51079,8 @@ "postfix": false, "binop": null }, - "start": 6387, - "end": 6388, + "start": 6390, + "end": 6391, "loc": { "start": { "line": 194, @@ -51782,8 +51105,8 @@ "binop": null }, "value": "socket", - "start": 6392, - "end": 6398, + "start": 6395, + "end": 6401, "loc": { "start": { "line": 196, @@ -51808,8 +51131,8 @@ "binop": null, "updateContext": null }, - "start": 6398, - "end": 6399, + "start": 6401, + "end": 6402, "loc": { "start": { "line": 196, @@ -51834,8 +51157,8 @@ "binop": null }, "value": "to", - "start": 6399, - "end": 6401, + "start": 6402, + "end": 6404, "loc": { "start": { "line": 196, @@ -51859,8 +51182,8 @@ "postfix": false, "binop": null }, - "start": 6401, - "end": 6402, + "start": 6404, + "end": 6405, "loc": { "start": { "line": 196, @@ -51885,8 +51208,8 @@ "binop": null }, "value": "room", - "start": 6402, - "end": 6406, + "start": 6405, + "end": 6409, "loc": { "start": { "line": 196, @@ -51910,8 +51233,8 @@ "postfix": false, "binop": null }, - "start": 6406, - "end": 6407, + "start": 6409, + "end": 6410, "loc": { "start": { "line": 196, @@ -51936,8 +51259,8 @@ "binop": null, "updateContext": null }, - "start": 6407, - "end": 6408, + "start": 6410, + "end": 6411, "loc": { "start": { "line": 196, @@ -51962,8 +51285,8 @@ "binop": null }, "value": "broadcast", - "start": 6408, - "end": 6417, + "start": 6411, + "end": 6420, "loc": { "start": { "line": 196, @@ -51988,8 +51311,8 @@ "binop": null, "updateContext": null }, - "start": 6417, - "end": 6418, + "start": 6420, + "end": 6421, "loc": { "start": { "line": 196, @@ -52014,8 +51337,8 @@ "binop": null }, "value": "emit", - "start": 6418, - "end": 6422, + "start": 6421, + "end": 6425, "loc": { "start": { "line": 196, @@ -52039,8 +51362,8 @@ "postfix": false, "binop": null }, - "start": 6422, - "end": 6423, + "start": 6425, + "end": 6426, "loc": { "start": { "line": 196, @@ -52066,8 +51389,8 @@ "updateContext": null }, "value": "disconnectedPlayer", - "start": 6423, - "end": 6443, + "start": 6426, + "end": 6446, "loc": { "start": { "line": 196, @@ -52092,8 +51415,8 @@ "binop": null, "updateContext": null }, - "start": 6443, - "end": 6444, + "start": 6446, + "end": 6447, "loc": { "start": { "line": 196, @@ -52117,8 +51440,8 @@ "postfix": false, "binop": null }, - "start": 6445, - "end": 6446, + "start": 6448, + "end": 6449, "loc": { "start": { "line": 196, @@ -52143,8 +51466,8 @@ "binop": null }, "value": "id", - "start": 6447, - "end": 6449, + "start": 6450, + "end": 6452, "loc": { "start": { "line": 196, @@ -52169,8 +51492,8 @@ "binop": null, "updateContext": null }, - "start": 6449, - "end": 6450, + "start": 6452, + "end": 6453, "loc": { "start": { "line": 196, @@ -52195,8 +51518,8 @@ "binop": null }, "value": "socket", - "start": 6451, - "end": 6457, + "start": 6454, + "end": 6460, "loc": { "start": { "line": 196, @@ -52221,8 +51544,8 @@ "binop": null, "updateContext": null }, - "start": 6457, - "end": 6458, + "start": 6460, + "end": 6461, "loc": { "start": { "line": 196, @@ -52247,8 +51570,8 @@ "binop": null }, "value": "id", - "start": 6458, - "end": 6460, + "start": 6461, + "end": 6463, "loc": { "start": { "line": 196, @@ -52272,8 +51595,8 @@ "postfix": false, "binop": null }, - "start": 6461, - "end": 6462, + "start": 6464, + "end": 6465, "loc": { "start": { "line": 196, @@ -52297,8 +51620,8 @@ "postfix": false, "binop": null }, - "start": 6462, - "end": 6463, + "start": 6465, + "end": 6466, "loc": { "start": { "line": 196, @@ -52313,8 +51636,8 @@ { "type": "CommentLine", "value": " Broadcast to everyone in the room to delete the player", - "start": 6464, - "end": 6521, + "start": 6467, + "end": 6524, "loc": { "start": { "line": 196, @@ -52341,8 +51664,8 @@ "updateContext": null }, "value": "delete", - "start": 6525, - "end": 6531, + "start": 6528, + "end": 6534, "loc": { "start": { "line": 198, @@ -52367,8 +51690,8 @@ "binop": null }, "value": "rooms", - "start": 6532, - "end": 6537, + "start": 6535, + "end": 6540, "loc": { "start": { "line": 198, @@ -52393,8 +51716,8 @@ "binop": null, "updateContext": null }, - "start": 6537, - "end": 6538, + "start": 6540, + "end": 6541, "loc": { "start": { "line": 198, @@ -52419,8 +51742,8 @@ "binop": null }, "value": "room", - "start": 6538, - "end": 6542, + "start": 6541, + "end": 6545, "loc": { "start": { "line": 198, @@ -52445,8 +51768,8 @@ "binop": null, "updateContext": null }, - "start": 6542, - "end": 6543, + "start": 6545, + "end": 6546, "loc": { "start": { "line": 198, @@ -52471,8 +51794,8 @@ "binop": null, "updateContext": null }, - "start": 6543, - "end": 6544, + "start": 6546, + "end": 6547, "loc": { "start": { "line": 198, @@ -52497,8 +51820,8 @@ "binop": null }, "value": "players", - "start": 6544, - "end": 6551, + "start": 6547, + "end": 6554, "loc": { "start": { "line": 198, @@ -52523,8 +51846,8 @@ "binop": null, "updateContext": null }, - "start": 6551, - "end": 6552, + "start": 6554, + "end": 6555, "loc": { "start": { "line": 198, @@ -52549,8 +51872,8 @@ "binop": null }, "value": "socket", - "start": 6552, - "end": 6558, + "start": 6555, + "end": 6561, "loc": { "start": { "line": 198, @@ -52575,8 +51898,8 @@ "binop": null, "updateContext": null }, - "start": 6558, - "end": 6559, + "start": 6561, + "end": 6562, "loc": { "start": { "line": 198, @@ -52601,8 +51924,8 @@ "binop": null }, "value": "id", - "start": 6559, - "end": 6561, + "start": 6562, + "end": 6564, "loc": { "start": { "line": 198, @@ -52627,8 +51950,8 @@ "binop": null, "updateContext": null }, - "start": 6561, - "end": 6562, + "start": 6564, + "end": 6565, "loc": { "start": { "line": 198, @@ -52643,8 +51966,8 @@ { "type": "CommentLine", "value": " Remove the server side player", - "start": 6563, - "end": 6595, + "start": 6566, + "end": 6598, "loc": { "start": { "line": 198, @@ -52659,8 +51982,8 @@ { "type": "CommentLine", "value": " Delete room if there is nobody inside", - "start": 6599, - "end": 6639, + "start": 6602, + "end": 6642, "loc": { "start": { "line": 200, @@ -52687,8 +52010,8 @@ "updateContext": null }, "value": "if", - "start": 6642, - "end": 6644, + "start": 6645, + "end": 6647, "loc": { "start": { "line": 201, @@ -52712,8 +52035,8 @@ "postfix": false, "binop": null }, - "start": 6645, - "end": 6646, + "start": 6648, + "end": 6649, "loc": { "start": { "line": 201, @@ -52738,8 +52061,8 @@ "binop": null }, "value": "Object", - "start": 6646, - "end": 6652, + "start": 6649, + "end": 6655, "loc": { "start": { "line": 201, @@ -52764,8 +52087,8 @@ "binop": null, "updateContext": null }, - "start": 6652, - "end": 6653, + "start": 6655, + "end": 6656, "loc": { "start": { "line": 201, @@ -52790,8 +52113,8 @@ "binop": null }, "value": "keys", - "start": 6653, - "end": 6657, + "start": 6656, + "end": 6660, "loc": { "start": { "line": 201, @@ -52815,8 +52138,8 @@ "postfix": false, "binop": null }, - "start": 6657, - "end": 6658, + "start": 6660, + "end": 6661, "loc": { "start": { "line": 201, @@ -52841,8 +52164,8 @@ "binop": null }, "value": "rooms", - "start": 6658, - "end": 6663, + "start": 6661, + "end": 6666, "loc": { "start": { "line": 201, @@ -52867,8 +52190,8 @@ "binop": null, "updateContext": null }, - "start": 6663, - "end": 6664, + "start": 6666, + "end": 6667, "loc": { "start": { "line": 201, @@ -52893,8 +52216,8 @@ "binop": null }, "value": "room", - "start": 6664, - "end": 6668, + "start": 6667, + "end": 6671, "loc": { "start": { "line": 201, @@ -52919,8 +52242,8 @@ "binop": null, "updateContext": null }, - "start": 6668, - "end": 6669, + "start": 6671, + "end": 6672, "loc": { "start": { "line": 201, @@ -52945,8 +52268,8 @@ "binop": null, "updateContext": null }, - "start": 6669, - "end": 6670, + "start": 6672, + "end": 6673, "loc": { "start": { "line": 201, @@ -52971,8 +52294,8 @@ "binop": null }, "value": "players", - "start": 6670, - "end": 6677, + "start": 6673, + "end": 6680, "loc": { "start": { "line": 201, @@ -52996,8 +52319,8 @@ "postfix": false, "binop": null }, - "start": 6677, - "end": 6678, + "start": 6680, + "end": 6681, "loc": { "start": { "line": 201, @@ -53022,8 +52345,8 @@ "binop": null, "updateContext": null }, - "start": 6678, - "end": 6679, + "start": 6681, + "end": 6682, "loc": { "start": { "line": 201, @@ -53048,8 +52371,8 @@ "binop": null }, "value": "length", - "start": 6679, - "end": 6685, + "start": 6682, + "end": 6688, "loc": { "start": { "line": 201, @@ -53075,8 +52398,8 @@ "updateContext": null }, "value": "===", - "start": 6686, - "end": 6689, + "start": 6689, + "end": 6692, "loc": { "start": { "line": 201, @@ -53102,8 +52425,8 @@ "updateContext": null }, "value": 0, - "start": 6690, - "end": 6691, + "start": 6693, + "end": 6694, "loc": { "start": { "line": 201, @@ -53127,8 +52450,8 @@ "postfix": false, "binop": null }, - "start": 6691, - "end": 6692, + "start": 6694, + "end": 6695, "loc": { "start": { "line": 201, @@ -53152,8 +52475,8 @@ "postfix": false, "binop": null }, - "start": 6693, - "end": 6694, + "start": 6696, + "end": 6697, "loc": { "start": { "line": 201, @@ -53178,8 +52501,8 @@ "binop": null }, "value": "console", - "start": 6698, - "end": 6705, + "start": 6701, + "end": 6708, "loc": { "start": { "line": 202, @@ -53204,8 +52527,8 @@ "binop": null, "updateContext": null }, - "start": 6705, - "end": 6706, + "start": 6708, + "end": 6709, "loc": { "start": { "line": 202, @@ -53230,8 +52553,8 @@ "binop": null }, "value": "log", - "start": 6706, - "end": 6709, + "start": 6709, + "end": 6712, "loc": { "start": { "line": 202, @@ -53255,8 +52578,8 @@ "postfix": false, "binop": null }, - "start": 6709, - "end": 6710, + "start": 6712, + "end": 6713, "loc": { "start": { "line": 202, @@ -53282,8 +52605,8 @@ "updateContext": null }, "value": "[Server] ", - "start": 6710, - "end": 6721, + "start": 6713, + "end": 6724, "loc": { "start": { "line": 202, @@ -53308,8 +52631,8 @@ "binop": null, "updateContext": null }, - "start": 6721, - "end": 6722, + "start": 6724, + "end": 6725, "loc": { "start": { "line": 202, @@ -53334,8 +52657,8 @@ "binop": null }, "value": "bold", - "start": 6722, - "end": 6726, + "start": 6725, + "end": 6729, "loc": { "start": { "line": 202, @@ -53360,8 +52683,8 @@ "binop": null, "updateContext": null }, - "start": 6726, - "end": 6727, + "start": 6729, + "end": 6730, "loc": { "start": { "line": 202, @@ -53386,8 +52709,8 @@ "binop": null }, "value": "blue", - "start": 6727, - "end": 6731, + "start": 6730, + "end": 6734, "loc": { "start": { "line": 202, @@ -53413,8 +52736,8 @@ "updateContext": null }, "value": "+", - "start": 6732, - "end": 6733, + "start": 6735, + "end": 6736, "loc": { "start": { "line": 202, @@ -53440,8 +52763,8 @@ "updateContext": null }, "value": "Closing room ", - "start": 6734, - "end": 6749, + "start": 6737, + "end": 6752, "loc": { "start": { "line": 202, @@ -53466,8 +52789,8 @@ "binop": null, "updateContext": null }, - "start": 6749, - "end": 6750, + "start": 6752, + "end": 6753, "loc": { "start": { "line": 202, @@ -53492,8 +52815,8 @@ "binop": null }, "value": "red", - "start": 6750, - "end": 6753, + "start": 6753, + "end": 6756, "loc": { "start": { "line": 202, @@ -53519,8 +52842,8 @@ "updateContext": null }, "value": "+", - "start": 6754, - "end": 6755, + "start": 6757, + "end": 6758, "loc": { "start": { "line": 202, @@ -53544,8 +52867,8 @@ "postfix": false, "binop": null }, - "start": 6756, - "end": 6757, + "start": 6759, + "end": 6760, "loc": { "start": { "line": 202, @@ -53570,8 +52893,8 @@ "binop": null }, "value": "room", - "start": 6757, - "end": 6761, + "start": 6760, + "end": 6764, "loc": { "start": { "line": 202, @@ -53597,8 +52920,8 @@ "updateContext": null }, "value": "+", - "start": 6762, - "end": 6763, + "start": 6765, + "end": 6766, "loc": { "start": { "line": 202, @@ -53624,8 +52947,8 @@ "updateContext": null }, "value": "", - "start": 6764, - "end": 6766, + "start": 6767, + "end": 6769, "loc": { "start": { "line": 202, @@ -53649,8 +52972,8 @@ "postfix": false, "binop": null }, - "start": 6766, - "end": 6767, + "start": 6769, + "end": 6770, "loc": { "start": { "line": 202, @@ -53675,8 +52998,8 @@ "binop": null, "updateContext": null }, - "start": 6767, - "end": 6768, + "start": 6770, + "end": 6771, "loc": { "start": { "line": 202, @@ -53701,8 +53024,8 @@ "binop": null }, "value": "bold", - "start": 6768, - "end": 6772, + "start": 6771, + "end": 6775, "loc": { "start": { "line": 202, @@ -53727,8 +53050,8 @@ "binop": null, "updateContext": null }, - "start": 6772, - "end": 6773, + "start": 6775, + "end": 6776, "loc": { "start": { "line": 202, @@ -53753,8 +53076,8 @@ "binop": null }, "value": "red", - "start": 6773, - "end": 6776, + "start": 6776, + "end": 6779, "loc": { "start": { "line": 202, @@ -53778,8 +53101,8 @@ "postfix": false, "binop": null }, - "start": 6776, - "end": 6777, + "start": 6779, + "end": 6780, "loc": { "start": { "line": 202, @@ -53806,8 +53129,8 @@ "updateContext": null }, "value": "delete", - "start": 6781, - "end": 6787, + "start": 6784, + "end": 6790, "loc": { "start": { "line": 203, @@ -53832,8 +53155,8 @@ "binop": null }, "value": "io", - "start": 6788, - "end": 6790, + "start": 6791, + "end": 6793, "loc": { "start": { "line": 203, @@ -53858,8 +53181,8 @@ "binop": null, "updateContext": null }, - "start": 6790, - "end": 6791, + "start": 6793, + "end": 6794, "loc": { "start": { "line": 203, @@ -53884,8 +53207,8 @@ "binop": null }, "value": "sockets", - "start": 6791, - "end": 6798, + "start": 6794, + "end": 6801, "loc": { "start": { "line": 203, @@ -53910,8 +53233,8 @@ "binop": null, "updateContext": null }, - "start": 6798, - "end": 6799, + "start": 6801, + "end": 6802, "loc": { "start": { "line": 203, @@ -53936,8 +53259,8 @@ "binop": null }, "value": "adapter", - "start": 6799, - "end": 6806, + "start": 6802, + "end": 6809, "loc": { "start": { "line": 203, @@ -53962,8 +53285,8 @@ "binop": null, "updateContext": null }, - "start": 6806, - "end": 6807, + "start": 6809, + "end": 6810, "loc": { "start": { "line": 203, @@ -53988,8 +53311,8 @@ "binop": null }, "value": "rooms", - "start": 6807, - "end": 6812, + "start": 6810, + "end": 6815, "loc": { "start": { "line": 203, @@ -54014,8 +53337,8 @@ "binop": null, "updateContext": null }, - "start": 6812, - "end": 6813, + "start": 6815, + "end": 6816, "loc": { "start": { "line": 203, @@ -54040,8 +53363,8 @@ "binop": null }, "value": "socket", - "start": 6813, - "end": 6819, + "start": 6816, + "end": 6822, "loc": { "start": { "line": 203, @@ -54066,8 +53389,8 @@ "binop": null, "updateContext": null }, - "start": 6819, - "end": 6820, + "start": 6822, + "end": 6823, "loc": { "start": { "line": 203, @@ -54092,8 +53415,8 @@ "binop": null }, "value": "id", - "start": 6820, - "end": 6822, + "start": 6823, + "end": 6825, "loc": { "start": { "line": 203, @@ -54118,8 +53441,8 @@ "binop": null, "updateContext": null }, - "start": 6822, - "end": 6823, + "start": 6825, + "end": 6826, "loc": { "start": { "line": 203, @@ -54146,8 +53469,8 @@ "updateContext": null }, "value": "delete", - "start": 6827, - "end": 6833, + "start": 6830, + "end": 6836, "loc": { "start": { "line": 204, @@ -54172,8 +53495,8 @@ "binop": null }, "value": "rooms", - "start": 6834, - "end": 6839, + "start": 6837, + "end": 6842, "loc": { "start": { "line": 204, @@ -54198,8 +53521,8 @@ "binop": null, "updateContext": null }, - "start": 6839, - "end": 6840, + "start": 6842, + "end": 6843, "loc": { "start": { "line": 204, @@ -54224,8 +53547,8 @@ "binop": null }, "value": "room", - "start": 6840, - "end": 6844, + "start": 6843, + "end": 6847, "loc": { "start": { "line": 204, @@ -54250,8 +53573,8 @@ "binop": null, "updateContext": null }, - "start": 6844, - "end": 6845, + "start": 6847, + "end": 6848, "loc": { "start": { "line": 204, @@ -54278,8 +53601,8 @@ "updateContext": null }, "value": "if", - "start": 6850, - "end": 6852, + "start": 6853, + "end": 6855, "loc": { "start": { "line": 206, @@ -54303,8 +53626,8 @@ "postfix": false, "binop": null }, - "start": 6853, - "end": 6854, + "start": 6856, + "end": 6857, "loc": { "start": { "line": 206, @@ -54329,8 +53652,8 @@ "binop": null }, "value": "room", - "start": 6854, - "end": 6858, + "start": 6857, + "end": 6861, "loc": { "start": { "line": 206, @@ -54356,8 +53679,8 @@ "updateContext": null }, "value": "!==", - "start": 6859, - "end": 6862, + "start": 6862, + "end": 6865, "loc": { "start": { "line": 206, @@ -54382,8 +53705,8 @@ "binop": null }, "value": "GLOBAL", - "start": 6863, - "end": 6869, + "start": 6866, + "end": 6872, "loc": { "start": { "line": 206, @@ -54408,8 +53731,8 @@ "binop": null, "updateContext": null }, - "start": 6869, - "end": 6870, + "start": 6872, + "end": 6873, "loc": { "start": { "line": 206, @@ -54434,8 +53757,8 @@ "binop": null }, "value": "NO_ROOM_IDENTIFIER", - "start": 6870, - "end": 6888, + "start": 6873, + "end": 6891, "loc": { "start": { "line": 206, @@ -54459,8 +53782,8 @@ "postfix": false, "binop": null }, - "start": 6888, - "end": 6889, + "start": 6891, + "end": 6892, "loc": { "start": { "line": 206, @@ -54484,8 +53807,8 @@ "postfix": false, "binop": null }, - "start": 6890, - "end": 6891, + "start": 6893, + "end": 6894, "loc": { "start": { "line": 206, @@ -54500,8 +53823,8 @@ { "type": "CommentLine", "value": " Remove from teams array", - "start": 6896, - "end": 6922, + "start": 6899, + "end": 6925, "loc": { "start": { "line": 207, @@ -54526,8 +53849,8 @@ "binop": null }, "value": "teams", - "start": 6927, - "end": 6932, + "start": 6930, + "end": 6935, "loc": { "start": { "line": 208, @@ -54552,8 +53875,8 @@ "binop": null, "updateContext": null }, - "start": 6932, - "end": 6933, + "start": 6935, + "end": 6936, "loc": { "start": { "line": 208, @@ -54578,8 +53901,8 @@ "binop": null }, "value": "team", - "start": 6933, - "end": 6937, + "start": 6936, + "end": 6940, "loc": { "start": { "line": 208, @@ -54604,8 +53927,8 @@ "binop": null, "updateContext": null }, - "start": 6937, - "end": 6938, + "start": 6940, + "end": 6941, "loc": { "start": { "line": 208, @@ -54630,8 +53953,8 @@ "binop": null, "updateContext": null }, - "start": 6938, - "end": 6939, + "start": 6941, + "end": 6942, "loc": { "start": { "line": 208, @@ -54656,8 +53979,8 @@ "binop": null }, "value": "players", - "start": 6939, - "end": 6946, + "start": 6942, + "end": 6949, "loc": { "start": { "line": 208, @@ -54682,8 +54005,8 @@ "binop": null, "updateContext": null }, - "start": 6946, - "end": 6947, + "start": 6949, + "end": 6950, "loc": { "start": { "line": 208, @@ -54708,8 +54031,8 @@ "binop": null }, "value": "splice", - "start": 6947, - "end": 6953, + "start": 6950, + "end": 6956, "loc": { "start": { "line": 208, @@ -54733,8 +54056,8 @@ "postfix": false, "binop": null }, - "start": 6953, - "end": 6954, + "start": 6956, + "end": 6957, "loc": { "start": { "line": 208, @@ -54759,8 +54082,8 @@ "binop": null }, "value": "teams", - "start": 6954, - "end": 6959, + "start": 6957, + "end": 6962, "loc": { "start": { "line": 208, @@ -54785,8 +54108,8 @@ "binop": null, "updateContext": null }, - "start": 6959, - "end": 6960, + "start": 6962, + "end": 6963, "loc": { "start": { "line": 208, @@ -54811,8 +54134,8 @@ "binop": null }, "value": "team", - "start": 6960, - "end": 6964, + "start": 6963, + "end": 6967, "loc": { "start": { "line": 208, @@ -54837,8 +54160,8 @@ "binop": null, "updateContext": null }, - "start": 6964, - "end": 6965, + "start": 6967, + "end": 6968, "loc": { "start": { "line": 208, @@ -54863,8 +54186,8 @@ "binop": null, "updateContext": null }, - "start": 6965, - "end": 6966, + "start": 6968, + "end": 6969, "loc": { "start": { "line": 208, @@ -54889,8 +54212,8 @@ "binop": null }, "value": "players", - "start": 6966, - "end": 6973, + "start": 6969, + "end": 6976, "loc": { "start": { "line": 208, @@ -54915,8 +54238,8 @@ "binop": null, "updateContext": null }, - "start": 6973, - "end": 6974, + "start": 6976, + "end": 6977, "loc": { "start": { "line": 208, @@ -54941,8 +54264,8 @@ "binop": null }, "value": "indexOf", - "start": 6974, - "end": 6981, + "start": 6977, + "end": 6984, "loc": { "start": { "line": 208, @@ -54966,8 +54289,8 @@ "postfix": false, "binop": null }, - "start": 6981, - "end": 6982, + "start": 6984, + "end": 6985, "loc": { "start": { "line": 208, @@ -54992,8 +54315,8 @@ "binop": null }, "value": "socket", - "start": 6982, - "end": 6988, + "start": 6985, + "end": 6991, "loc": { "start": { "line": 208, @@ -55018,8 +54341,8 @@ "binop": null, "updateContext": null }, - "start": 6988, - "end": 6989, + "start": 6991, + "end": 6992, "loc": { "start": { "line": 208, @@ -55044,8 +54367,8 @@ "binop": null }, "value": "id", - "start": 6989, - "end": 6991, + "start": 6992, + "end": 6994, "loc": { "start": { "line": 208, @@ -55069,8 +54392,8 @@ "postfix": false, "binop": null }, - "start": 6991, - "end": 6992, + "start": 6994, + "end": 6995, "loc": { "start": { "line": 208, @@ -55095,8 +54418,8 @@ "binop": null, "updateContext": null }, - "start": 6992, - "end": 6993, + "start": 6995, + "end": 6996, "loc": { "start": { "line": 208, @@ -55122,8 +54445,8 @@ "updateContext": null }, "value": 1, - "start": 6994, - "end": 6995, + "start": 6997, + "end": 6998, "loc": { "start": { "line": 208, @@ -55147,8 +54470,8 @@ "postfix": false, "binop": null }, - "start": 6995, - "end": 6996, + "start": 6998, + "end": 6999, "loc": { "start": { "line": 208, @@ -55163,8 +54486,8 @@ { "type": "CommentLine", "value": " rooms[room].teams[team].players.splice(rooms[room].teams[team].players.indexOf(socket.id), 1);", - "start": 7001, - "end": 7098, + "start": 7004, + "end": 7101, "loc": { "start": { "line": 209, @@ -55179,8 +54502,8 @@ { "type": "CommentLine", "value": " Delete team if all players have left", - "start": 7104, - "end": 7143, + "start": 7107, + "end": 7146, "loc": { "start": { "line": 211, @@ -55207,8 +54530,8 @@ "updateContext": null }, "value": "if", - "start": 7148, - "end": 7150, + "start": 7151, + "end": 7153, "loc": { "start": { "line": 212, @@ -55232,8 +54555,8 @@ "postfix": false, "binop": null }, - "start": 7151, - "end": 7152, + "start": 7154, + "end": 7155, "loc": { "start": { "line": 212, @@ -55258,8 +54581,8 @@ "binop": null }, "value": "teams", - "start": 7152, - "end": 7157, + "start": 7155, + "end": 7160, "loc": { "start": { "line": 212, @@ -55284,8 +54607,8 @@ "binop": null, "updateContext": null }, - "start": 7157, - "end": 7158, + "start": 7160, + "end": 7161, "loc": { "start": { "line": 212, @@ -55310,8 +54633,8 @@ "binop": null }, "value": "team", - "start": 7158, - "end": 7162, + "start": 7161, + "end": 7165, "loc": { "start": { "line": 212, @@ -55336,8 +54659,8 @@ "binop": null, "updateContext": null }, - "start": 7162, - "end": 7163, + "start": 7165, + "end": 7166, "loc": { "start": { "line": 212, @@ -55362,8 +54685,8 @@ "binop": null, "updateContext": null }, - "start": 7163, - "end": 7164, + "start": 7166, + "end": 7167, "loc": { "start": { "line": 212, @@ -55388,8 +54711,8 @@ "binop": null }, "value": "players", - "start": 7164, - "end": 7171, + "start": 7167, + "end": 7174, "loc": { "start": { "line": 212, @@ -55414,8 +54737,8 @@ "binop": null, "updateContext": null }, - "start": 7171, - "end": 7172, + "start": 7174, + "end": 7175, "loc": { "start": { "line": 212, @@ -55440,8 +54763,8 @@ "binop": null }, "value": "length", - "start": 7172, - "end": 7178, + "start": 7175, + "end": 7181, "loc": { "start": { "line": 212, @@ -55467,8 +54790,8 @@ "updateContext": null }, "value": "===", - "start": 7179, - "end": 7182, + "start": 7182, + "end": 7185, "loc": { "start": { "line": 212, @@ -55494,8 +54817,8 @@ "updateContext": null }, "value": 0, - "start": 7183, - "end": 7184, + "start": 7186, + "end": 7187, "loc": { "start": { "line": 212, @@ -55519,8 +54842,8 @@ "postfix": false, "binop": null }, - "start": 7184, - "end": 7185, + "start": 7187, + "end": 7188, "loc": { "start": { "line": 212, @@ -55544,8 +54867,8 @@ "postfix": false, "binop": null }, - "start": 7186, - "end": 7187, + "start": 7189, + "end": 7190, "loc": { "start": { "line": 212, @@ -55572,8 +54895,8 @@ "updateContext": null }, "value": "delete", - "start": 7193, - "end": 7199, + "start": 7196, + "end": 7202, "loc": { "start": { "line": 213, @@ -55598,8 +54921,8 @@ "binop": null }, "value": "teams", - "start": 7200, - "end": 7205, + "start": 7203, + "end": 7208, "loc": { "start": { "line": 213, @@ -55624,8 +54947,8 @@ "binop": null, "updateContext": null }, - "start": 7205, - "end": 7206, + "start": 7208, + "end": 7209, "loc": { "start": { "line": 213, @@ -55650,8 +54973,8 @@ "binop": null }, "value": "team", - "start": 7206, - "end": 7210, + "start": 7209, + "end": 7213, "loc": { "start": { "line": 213, @@ -55676,8 +54999,8 @@ "binop": null, "updateContext": null }, - "start": 7210, - "end": 7211, + "start": 7213, + "end": 7214, "loc": { "start": { "line": 213, @@ -55701,8 +55024,8 @@ "postfix": false, "binop": null }, - "start": 7216, - "end": 7217, + "start": 7219, + "end": 7220, "loc": { "start": { "line": 214, @@ -55726,8 +55049,8 @@ "postfix": false, "binop": null }, - "start": 7221, - "end": 7222, + "start": 7224, + "end": 7225, "loc": { "start": { "line": 215, @@ -55751,8 +55074,8 @@ "postfix": false, "binop": null }, - "start": 7225, - "end": 7226, + "start": 7228, + "end": 7229, "loc": { "start": { "line": 216, @@ -55776,8 +55099,8 @@ "postfix": false, "binop": null }, - "start": 7228, - "end": 7229, + "start": 7231, + "end": 7232, "loc": { "start": { "line": 217, @@ -55801,8 +55124,8 @@ "postfix": false, "binop": null }, - "start": 7229, - "end": 7230, + "start": 7232, + "end": 7233, "loc": { "start": { "line": 217, @@ -55826,8 +55149,8 @@ "postfix": false, "binop": null }, - "start": 7231, - "end": 7232, + "start": 7234, + "end": 7235, "loc": { "start": { "line": 218, @@ -55851,8 +55174,8 @@ "postfix": false, "binop": null }, - "start": 7232, - "end": 7233, + "start": 7235, + "end": 7236, "loc": { "start": { "line": 218, @@ -55867,8 +55190,8 @@ { "type": "CommentLine", "value": " Notify on console when server has started", - "start": 7235, - "end": 7279, + "start": 7238, + "end": 7282, "loc": { "start": { "line": 220, @@ -55895,8 +55218,8 @@ "updateContext": null }, "value": "const", - "start": 7280, - "end": 7285, + "start": 7283, + "end": 7288, "loc": { "start": { "line": 221, @@ -55921,8 +55244,8 @@ "binop": null }, "value": "serverPort", - "start": 7286, - "end": 7296, + "start": 7289, + "end": 7299, "loc": { "start": { "line": 221, @@ -55948,8 +55271,8 @@ "updateContext": null }, "value": "=", - "start": 7297, - "end": 7298, + "start": 7300, + "end": 7301, "loc": { "start": { "line": 221, @@ -55974,8 +55297,8 @@ "binop": null }, "value": "process", - "start": 7299, - "end": 7306, + "start": 7302, + "end": 7309, "loc": { "start": { "line": 221, @@ -56000,8 +55323,8 @@ "binop": null, "updateContext": null }, - "start": 7306, - "end": 7307, + "start": 7309, + "end": 7310, "loc": { "start": { "line": 221, @@ -56026,8 +55349,8 @@ "binop": null }, "value": "env", - "start": 7307, - "end": 7310, + "start": 7310, + "end": 7313, "loc": { "start": { "line": 221, @@ -56052,8 +55375,8 @@ "binop": null, "updateContext": null }, - "start": 7310, - "end": 7311, + "start": 7313, + "end": 7314, "loc": { "start": { "line": 221, @@ -56078,8 +55401,8 @@ "binop": null }, "value": "PORT", - "start": 7311, - "end": 7315, + "start": 7314, + "end": 7318, "loc": { "start": { "line": 221, @@ -56105,8 +55428,8 @@ "updateContext": null }, "value": "||", - "start": 7316, - "end": 7318, + "start": 7319, + "end": 7321, "loc": { "start": { "line": 221, @@ -56131,8 +55454,8 @@ "binop": null }, "value": "config", - "start": 7319, - "end": 7325, + "start": 7322, + "end": 7328, "loc": { "start": { "line": 221, @@ -56157,8 +55480,8 @@ "binop": null, "updateContext": null }, - "start": 7325, - "end": 7326, + "start": 7328, + "end": 7329, "loc": { "start": { "line": 221, @@ -56183,8 +55506,8 @@ "binop": null }, "value": "port", - "start": 7326, - "end": 7330, + "start": 7329, + "end": 7333, "loc": { "start": { "line": 221, @@ -56209,8 +55532,8 @@ "binop": null }, "value": "http", - "start": 7331, - "end": 7335, + "start": 7334, + "end": 7338, "loc": { "start": { "line": 222, @@ -56235,8 +55558,8 @@ "binop": null, "updateContext": null }, - "start": 7335, - "end": 7336, + "start": 7338, + "end": 7339, "loc": { "start": { "line": 222, @@ -56261,8 +55584,8 @@ "binop": null }, "value": "listen", - "start": 7336, - "end": 7342, + "start": 7339, + "end": 7345, "loc": { "start": { "line": 222, @@ -56286,8 +55609,8 @@ "postfix": false, "binop": null }, - "start": 7342, - "end": 7343, + "start": 7345, + "end": 7346, "loc": { "start": { "line": 222, @@ -56312,8 +55635,8 @@ "binop": null }, "value": "serverPort", - "start": 7343, - "end": 7353, + "start": 7346, + "end": 7356, "loc": { "start": { "line": 222, @@ -56338,8 +55661,8 @@ "binop": null, "updateContext": null }, - "start": 7353, - "end": 7354, + "start": 7356, + "end": 7357, "loc": { "start": { "line": 222, @@ -56363,8 +55686,8 @@ "postfix": false, "binop": null }, - "start": 7355, - "end": 7356, + "start": 7358, + "end": 7359, "loc": { "start": { "line": 222, @@ -56388,8 +55711,8 @@ "postfix": false, "binop": null }, - "start": 7356, - "end": 7357, + "start": 7359, + "end": 7360, "loc": { "start": { "line": 222, @@ -56414,8 +55737,8 @@ "binop": null, "updateContext": null }, - "start": 7358, - "end": 7360, + "start": 7361, + "end": 7363, "loc": { "start": { "line": 222, @@ -56439,8 +55762,8 @@ "postfix": false, "binop": null }, - "start": 7361, - "end": 7362, + "start": 7364, + "end": 7365, "loc": { "start": { "line": 222, @@ -56465,8 +55788,8 @@ "binop": null }, "value": "rooms", - "start": 7364, - "end": 7369, + "start": 7367, + "end": 7372, "loc": { "start": { "line": 223, @@ -56492,8 +55815,8 @@ "updateContext": null }, "value": "=", - "start": 7370, - "end": 7371, + "start": 7373, + "end": 7374, "loc": { "start": { "line": 223, @@ -56517,8 +55840,8 @@ "postfix": false, "binop": null }, - "start": 7372, - "end": 7373, + "start": 7375, + "end": 7376, "loc": { "start": { "line": 223, @@ -56542,8 +55865,8 @@ "postfix": false, "binop": null }, - "start": 7373, - "end": 7374, + "start": 7376, + "end": 7377, "loc": { "start": { "line": 223, @@ -56568,8 +55891,8 @@ "binop": null }, "value": "console", - "start": 7376, - "end": 7383, + "start": 7379, + "end": 7386, "loc": { "start": { "line": 224, @@ -56594,8 +55917,8 @@ "binop": null, "updateContext": null }, - "start": 7383, - "end": 7384, + "start": 7386, + "end": 7387, "loc": { "start": { "line": 224, @@ -56620,8 +55943,8 @@ "binop": null }, "value": "log", - "start": 7384, - "end": 7387, + "start": 7387, + "end": 7390, "loc": { "start": { "line": 224, @@ -56645,8 +55968,8 @@ "postfix": false, "binop": null }, - "start": 7387, - "end": 7388, + "start": 7390, + "end": 7391, "loc": { "start": { "line": 224, @@ -56672,8 +55995,8 @@ "updateContext": null }, "value": "[Server] ", - "start": 7388, - "end": 7399, + "start": 7391, + "end": 7402, "loc": { "start": { "line": 224, @@ -56698,8 +56021,8 @@ "binop": null, "updateContext": null }, - "start": 7399, - "end": 7400, + "start": 7402, + "end": 7403, "loc": { "start": { "line": 224, @@ -56724,8 +56047,8 @@ "binop": null }, "value": "bold", - "start": 7400, - "end": 7404, + "start": 7403, + "end": 7407, "loc": { "start": { "line": 224, @@ -56750,8 +56073,8 @@ "binop": null, "updateContext": null }, - "start": 7404, - "end": 7405, + "start": 7407, + "end": 7408, "loc": { "start": { "line": 224, @@ -56776,8 +56099,8 @@ "binop": null }, "value": "blue", - "start": 7405, - "end": 7409, + "start": 7408, + "end": 7412, "loc": { "start": { "line": 224, @@ -56803,8 +56126,8 @@ "updateContext": null }, "value": "+", - "start": 7410, - "end": 7411, + "start": 7413, + "end": 7414, "loc": { "start": { "line": 224, @@ -56828,8 +56151,8 @@ "postfix": false, "binop": null }, - "start": 7412, - "end": 7413, + "start": 7415, + "end": 7416, "loc": { "start": { "line": 224, @@ -56855,8 +56178,8 @@ "updateContext": null }, "value": "started on port: ", - "start": 7413, - "end": 7430, + "start": 7416, + "end": 7433, "loc": { "start": { "line": 224, @@ -56880,8 +56203,8 @@ "postfix": false, "binop": null }, - "start": 7430, - "end": 7432, + "start": 7433, + "end": 7435, "loc": { "start": { "line": 224, @@ -56906,8 +56229,8 @@ "binop": null }, "value": "serverPort", - "start": 7432, - "end": 7442, + "start": 7435, + "end": 7445, "loc": { "start": { "line": 224, @@ -56931,8 +56254,8 @@ "postfix": false, "binop": null }, - "start": 7442, - "end": 7443, + "start": 7445, + "end": 7446, "loc": { "start": { "line": 224, @@ -56958,8 +56281,8 @@ "updateContext": null }, "value": "", - "start": 7443, - "end": 7443, + "start": 7446, + "end": 7446, "loc": { "start": { "line": 224, @@ -56983,8 +56306,8 @@ "postfix": false, "binop": null }, - "start": 7443, - "end": 7444, + "start": 7446, + "end": 7447, "loc": { "start": { "line": 224, @@ -57009,8 +56332,8 @@ "binop": null, "updateContext": null }, - "start": 7444, - "end": 7445, + "start": 7447, + "end": 7448, "loc": { "start": { "line": 224, @@ -57035,8 +56358,8 @@ "binop": null }, "value": "blue", - "start": 7445, - "end": 7449, + "start": 7448, + "end": 7452, "loc": { "start": { "line": 224, @@ -57060,8 +56383,8 @@ "postfix": false, "binop": null }, - "start": 7449, - "end": 7450, + "start": 7452, + "end": 7453, "loc": { "start": { "line": 224, @@ -57085,8 +56408,8 @@ "postfix": false, "binop": null }, - "start": 7451, - "end": 7452, + "start": 7454, + "end": 7455, "loc": { "start": { "line": 225, @@ -57110,8 +56433,8 @@ "postfix": false, "binop": null }, - "start": 7452, - "end": 7453, + "start": 7455, + "end": 7456, "loc": { "start": { "line": 225, @@ -57126,8 +56449,8 @@ { "type": "CommentBlock", "value": "*\n * Sets a new value for a protected server field.\n * Adopted from https://stackoverflow.com/questions/18936915/dynamically-set-property-of-nested-object\n * @param {*} value The value to set\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n ", - "start": 7455, - "end": 7887, + "start": 7458, + "end": 7890, "loc": { "start": { "line": 227, @@ -57154,8 +56477,8 @@ "updateContext": null }, "value": "export", - "start": 7888, - "end": 7894, + "start": 7891, + "end": 7897, "loc": { "start": { "line": 234, @@ -57181,8 +56504,8 @@ "binop": null }, "value": "function", - "start": 7895, - "end": 7903, + "start": 7898, + "end": 7906, "loc": { "start": { "line": 234, @@ -57207,8 +56530,8 @@ "binop": null }, "value": "setField", - "start": 7904, - "end": 7912, + "start": 7907, + "end": 7915, "loc": { "start": { "line": 234, @@ -57232,8 +56555,8 @@ "postfix": false, "binop": null }, - "start": 7913, - "end": 7914, + "start": 7916, + "end": 7917, "loc": { "start": { "line": 234, @@ -57258,8 +56581,8 @@ "binop": null }, "value": "value", - "start": 7914, - "end": 7919, + "start": 7917, + "end": 7922, "loc": { "start": { "line": 234, @@ -57284,8 +56607,8 @@ "binop": null, "updateContext": null }, - "start": 7919, - "end": 7920, + "start": 7922, + "end": 7923, "loc": { "start": { "line": 234, @@ -57310,8 +56633,8 @@ "binop": null }, "value": "path", - "start": 7921, - "end": 7925, + "start": 7924, + "end": 7928, "loc": { "start": { "line": 234, @@ -57335,8 +56658,8 @@ "postfix": false, "binop": null }, - "start": 7925, - "end": 7926, + "start": 7928, + "end": 7929, "loc": { "start": { "line": 234, @@ -57360,8 +56683,8 @@ "postfix": false, "binop": null }, - "start": 7927, - "end": 7928, + "start": 7930, + "end": 7931, "loc": { "start": { "line": 234, @@ -57388,8 +56711,8 @@ "updateContext": null }, "value": "if", - "start": 7930, - "end": 7932, + "start": 7933, + "end": 7935, "loc": { "start": { "line": 235, @@ -57413,8 +56736,8 @@ "postfix": false, "binop": null }, - "start": 7933, - "end": 7934, + "start": 7936, + "end": 7937, "loc": { "start": { "line": 235, @@ -57439,8 +56762,8 @@ "binop": null }, "value": "path", - "start": 7934, - "end": 7938, + "start": 7937, + "end": 7941, "loc": { "start": { "line": 235, @@ -57466,8 +56789,8 @@ "updateContext": null }, "value": "===", - "start": 7939, - "end": 7942, + "start": 7942, + "end": 7945, "loc": { "start": { "line": 235, @@ -57492,8 +56815,8 @@ "binop": null }, "value": "undefined", - "start": 7943, - "end": 7952, + "start": 7946, + "end": 7955, "loc": { "start": { "line": 235, @@ -57519,8 +56842,8 @@ "updateContext": null }, "value": "||", - "start": 7953, - "end": 7955, + "start": 7956, + "end": 7958, "loc": { "start": { "line": 235, @@ -57545,8 +56868,8 @@ "binop": null }, "value": "path", - "start": 7956, - "end": 7960, + "start": 7959, + "end": 7963, "loc": { "start": { "line": 235, @@ -57571,8 +56894,8 @@ "binop": null, "updateContext": null }, - "start": 7960, - "end": 7961, + "start": 7963, + "end": 7964, "loc": { "start": { "line": 235, @@ -57597,8 +56920,8 @@ "binop": null }, "value": "length", - "start": 7961, - "end": 7967, + "start": 7964, + "end": 7970, "loc": { "start": { "line": 235, @@ -57624,8 +56947,8 @@ "updateContext": null }, "value": "===", - "start": 7968, - "end": 7971, + "start": 7971, + "end": 7974, "loc": { "start": { "line": 235, @@ -57651,8 +56974,8 @@ "updateContext": null }, "value": 0, - "start": 7972, - "end": 7973, + "start": 7975, + "end": 7976, "loc": { "start": { "line": 235, @@ -57676,8 +56999,8 @@ "postfix": false, "binop": null }, - "start": 7973, - "end": 7974, + "start": 7976, + "end": 7977, "loc": { "start": { "line": 235, @@ -57701,8 +57024,8 @@ "postfix": false, "binop": null }, - "start": 7975, - "end": 7976, + "start": 7978, + "end": 7979, "loc": { "start": { "line": 235, @@ -57729,8 +57052,8 @@ "updateContext": null }, "value": "throw", - "start": 7979, - "end": 7984, + "start": 7982, + "end": 7987, "loc": { "start": { "line": 236, @@ -57757,8 +57080,8 @@ "updateContext": null }, "value": "new", - "start": 7985, - "end": 7988, + "start": 7988, + "end": 7991, "loc": { "start": { "line": 236, @@ -57783,8 +57106,8 @@ "binop": null }, "value": "Error", - "start": 7989, - "end": 7994, + "start": 7992, + "end": 7997, "loc": { "start": { "line": 236, @@ -57808,8 +57131,8 @@ "postfix": false, "binop": null }, - "start": 7994, - "end": 7995, + "start": 7997, + "end": 7998, "loc": { "start": { "line": 236, @@ -57835,8 +57158,8 @@ "updateContext": null }, "value": "Error in setField: path cannot be empty", - "start": 7995, - "end": 8036, + "start": 7998, + "end": 8039, "loc": { "start": { "line": 236, @@ -57860,8 +57183,8 @@ "postfix": false, "binop": null }, - "start": 8036, - "end": 8037, + "start": 8039, + "end": 8040, "loc": { "start": { "line": 236, @@ -57885,8 +57208,8 @@ "postfix": false, "binop": null }, - "start": 8039, - "end": 8040, + "start": 8042, + "end": 8043, "loc": { "start": { "line": 237, @@ -57913,8 +57236,8 @@ "updateContext": null }, "value": "let", - "start": 8043, - "end": 8046, + "start": 8046, + "end": 8049, "loc": { "start": { "line": 239, @@ -57939,8 +57262,8 @@ "binop": null }, "value": "schema", - "start": 8047, - "end": 8053, + "start": 8050, + "end": 8056, "loc": { "start": { "line": 239, @@ -57966,8 +57289,8 @@ "updateContext": null }, "value": "=", - "start": 8054, - "end": 8055, + "start": 8057, + "end": 8058, "loc": { "start": { "line": 239, @@ -57991,8 +57314,8 @@ "postfix": false, "binop": null }, - "start": 8056, - "end": 8057, + "start": 8059, + "end": 8060, "loc": { "start": { "line": 239, @@ -58017,8 +57340,8 @@ "binop": null }, "value": "path", - "start": 8057, - "end": 8061, + "start": 8060, + "end": 8064, "loc": { "start": { "line": 239, @@ -58043,8 +57366,8 @@ "binop": null, "updateContext": null }, - "start": 8061, - "end": 8062, + "start": 8064, + "end": 8065, "loc": { "start": { "line": 239, @@ -58070,8 +57393,8 @@ "updateContext": null }, "value": 0, - "start": 8062, - "end": 8063, + "start": 8065, + "end": 8066, "loc": { "start": { "line": 239, @@ -58096,8 +57419,8 @@ "binop": null, "updateContext": null }, - "start": 8063, - "end": 8064, + "start": 8066, + "end": 8067, "loc": { "start": { "line": 239, @@ -58123,8 +57446,8 @@ "updateContext": null }, "value": "===", - "start": 8065, - "end": 8068, + "start": 8068, + "end": 8071, "loc": { "start": { "line": 239, @@ -58150,8 +57473,8 @@ "updateContext": null }, "value": "rooms", - "start": 8069, - "end": 8076, + "start": 8072, + "end": 8079, "loc": { "start": { "line": 239, @@ -58175,8 +57498,8 @@ "postfix": false, "binop": null }, - "start": 8076, - "end": 8077, + "start": 8079, + "end": 8080, "loc": { "start": { "line": 239, @@ -58201,8 +57524,8 @@ "binop": null, "updateContext": null }, - "start": 8078, - "end": 8079, + "start": 8081, + "end": 8082, "loc": { "start": { "line": 239, @@ -58227,8 +57550,8 @@ "binop": null }, "value": "rooms", - "start": 8080, - "end": 8085, + "start": 8083, + "end": 8088, "loc": { "start": { "line": 239, @@ -58253,8 +57576,8 @@ "binop": null, "updateContext": null }, - "start": 8086, - "end": 8087, + "start": 8089, + "end": 8090, "loc": { "start": { "line": 239, @@ -58278,8 +57601,8 @@ "postfix": false, "binop": null }, - "start": 8088, - "end": 8089, + "start": 8091, + "end": 8092, "loc": { "start": { "line": 239, @@ -58304,8 +57627,8 @@ "binop": null }, "value": "path", - "start": 8089, - "end": 8093, + "start": 8092, + "end": 8096, "loc": { "start": { "line": 239, @@ -58330,8 +57653,8 @@ "binop": null, "updateContext": null }, - "start": 8093, - "end": 8094, + "start": 8096, + "end": 8097, "loc": { "start": { "line": 239, @@ -58357,8 +57680,8 @@ "updateContext": null }, "value": 0, - "start": 8094, - "end": 8095, + "start": 8097, + "end": 8098, "loc": { "start": { "line": 239, @@ -58383,8 +57706,8 @@ "binop": null, "updateContext": null }, - "start": 8095, - "end": 8096, + "start": 8098, + "end": 8099, "loc": { "start": { "line": 239, @@ -58410,8 +57733,8 @@ "updateContext": null }, "value": "===", - "start": 8097, - "end": 8100, + "start": 8100, + "end": 8103, "loc": { "start": { "line": 239, @@ -58437,8 +57760,8 @@ "updateContext": null }, "value": "teams", - "start": 8101, - "end": 8108, + "start": 8104, + "end": 8111, "loc": { "start": { "line": 239, @@ -58462,8 +57785,8 @@ "postfix": false, "binop": null }, - "start": 8108, - "end": 8109, + "start": 8111, + "end": 8112, "loc": { "start": { "line": 239, @@ -58488,8 +57811,8 @@ "binop": null, "updateContext": null }, - "start": 8110, - "end": 8111, + "start": 8113, + "end": 8114, "loc": { "start": { "line": 239, @@ -58514,8 +57837,8 @@ "binop": null }, "value": "teams", - "start": 8112, - "end": 8117, + "start": 8115, + "end": 8120, "loc": { "start": { "line": 239, @@ -58540,8 +57863,8 @@ "binop": null, "updateContext": null }, - "start": 8118, - "end": 8119, + "start": 8121, + "end": 8122, "loc": { "start": { "line": 239, @@ -58566,8 +57889,8 @@ "binop": null }, "value": "undefined", - "start": 8120, - "end": 8129, + "start": 8123, + "end": 8132, "loc": { "start": { "line": 239, @@ -58594,8 +57917,8 @@ "updateContext": null }, "value": "if", - "start": 8131, - "end": 8133, + "start": 8134, + "end": 8136, "loc": { "start": { "line": 240, @@ -58619,8 +57942,8 @@ "postfix": false, "binop": null }, - "start": 8134, - "end": 8135, + "start": 8137, + "end": 8138, "loc": { "start": { "line": 240, @@ -58645,8 +57968,8 @@ "binop": null }, "value": "schema", - "start": 8135, - "end": 8141, + "start": 8138, + "end": 8144, "loc": { "start": { "line": 240, @@ -58672,8 +57995,8 @@ "updateContext": null }, "value": "===", - "start": 8142, - "end": 8145, + "start": 8145, + "end": 8148, "loc": { "start": { "line": 240, @@ -58698,8 +58021,8 @@ "binop": null }, "value": "undefined", - "start": 8146, - "end": 8155, + "start": 8149, + "end": 8158, "loc": { "start": { "line": 240, @@ -58723,8 +58046,8 @@ "postfix": false, "binop": null }, - "start": 8155, - "end": 8156, + "start": 8158, + "end": 8159, "loc": { "start": { "line": 240, @@ -58748,8 +58071,8 @@ "postfix": false, "binop": null }, - "start": 8157, - "end": 8158, + "start": 8160, + "end": 8161, "loc": { "start": { "line": 240, @@ -58776,8 +58099,8 @@ "updateContext": null }, "value": "throw", - "start": 8161, - "end": 8166, + "start": 8164, + "end": 8169, "loc": { "start": { "line": 241, @@ -58804,8 +58127,8 @@ "updateContext": null }, "value": "new", - "start": 8167, - "end": 8170, + "start": 8170, + "end": 8173, "loc": { "start": { "line": 241, @@ -58830,8 +58153,8 @@ "binop": null }, "value": "Error", - "start": 8171, - "end": 8176, + "start": 8174, + "end": 8179, "loc": { "start": { "line": 241, @@ -58855,8 +58178,8 @@ "postfix": false, "binop": null }, - "start": 8176, - "end": 8177, + "start": 8179, + "end": 8180, "loc": { "start": { "line": 241, @@ -58882,8 +58205,8 @@ "updateContext": null }, "value": "Base object ", - "start": 8177, - "end": 8191, + "start": 8180, + "end": 8194, "loc": { "start": { "line": 241, @@ -58909,8 +58232,8 @@ "updateContext": null }, "value": "+", - "start": 8192, - "end": 8193, + "start": 8195, + "end": 8196, "loc": { "start": { "line": 241, @@ -58935,8 +58258,8 @@ "binop": null }, "value": "path", - "start": 8194, - "end": 8198, + "start": 8197, + "end": 8201, "loc": { "start": { "line": 241, @@ -58961,8 +58284,8 @@ "binop": null, "updateContext": null }, - "start": 8198, - "end": 8199, + "start": 8201, + "end": 8202, "loc": { "start": { "line": 241, @@ -58988,8 +58311,8 @@ "updateContext": null }, "value": 0, - "start": 8199, - "end": 8200, + "start": 8202, + "end": 8203, "loc": { "start": { "line": 241, @@ -59014,8 +58337,8 @@ "binop": null, "updateContext": null }, - "start": 8200, - "end": 8201, + "start": 8203, + "end": 8204, "loc": { "start": { "line": 241, @@ -59041,8 +58364,8 @@ "updateContext": null }, "value": "+", - "start": 8202, - "end": 8203, + "start": 8205, + "end": 8206, "loc": { "start": { "line": 241, @@ -59068,8 +58391,8 @@ "updateContext": null }, "value": " does not exist!", - "start": 8204, - "end": 8222, + "start": 8207, + "end": 8225, "loc": { "start": { "line": 241, @@ -59093,8 +58416,8 @@ "postfix": false, "binop": null }, - "start": 8222, - "end": 8223, + "start": 8225, + "end": 8226, "loc": { "start": { "line": 241, @@ -59118,8 +58441,8 @@ "postfix": false, "binop": null }, - "start": 8225, - "end": 8226, + "start": 8228, + "end": 8229, "loc": { "start": { "line": 242, @@ -59146,8 +58469,8 @@ "updateContext": null }, "value": "let", - "start": 8229, - "end": 8232, + "start": 8232, + "end": 8235, "loc": { "start": { "line": 244, @@ -59172,8 +58495,8 @@ "binop": null }, "value": "len", - "start": 8233, - "end": 8236, + "start": 8236, + "end": 8239, "loc": { "start": { "line": 244, @@ -59199,8 +58522,8 @@ "updateContext": null }, "value": "=", - "start": 8237, - "end": 8238, + "start": 8240, + "end": 8241, "loc": { "start": { "line": 244, @@ -59225,8 +58548,8 @@ "binop": null }, "value": "path", - "start": 8239, - "end": 8243, + "start": 8242, + "end": 8246, "loc": { "start": { "line": 244, @@ -59251,8 +58574,8 @@ "binop": null, "updateContext": null }, - "start": 8243, - "end": 8244, + "start": 8246, + "end": 8247, "loc": { "start": { "line": 244, @@ -59277,8 +58600,8 @@ "binop": null }, "value": "length", - "start": 8244, - "end": 8250, + "start": 8247, + "end": 8253, "loc": { "start": { "line": 244, @@ -59305,8 +58628,8 @@ "updateContext": null }, "value": "for", - "start": 8252, - "end": 8255, + "start": 8255, + "end": 8258, "loc": { "start": { "line": 245, @@ -59330,8 +58653,8 @@ "postfix": false, "binop": null }, - "start": 8256, - "end": 8257, + "start": 8259, + "end": 8260, "loc": { "start": { "line": 245, @@ -59358,8 +58681,8 @@ "updateContext": null }, "value": "let", - "start": 8257, - "end": 8260, + "start": 8260, + "end": 8263, "loc": { "start": { "line": 245, @@ -59384,8 +58707,8 @@ "binop": null }, "value": "i", - "start": 8261, - "end": 8262, + "start": 8264, + "end": 8265, "loc": { "start": { "line": 245, @@ -59411,8 +58734,8 @@ "updateContext": null }, "value": "=", - "start": 8263, - "end": 8264, + "start": 8266, + "end": 8267, "loc": { "start": { "line": 245, @@ -59438,8 +58761,8 @@ "updateContext": null }, "value": 1, - "start": 8265, - "end": 8266, + "start": 8268, + "end": 8269, "loc": { "start": { "line": 245, @@ -59464,8 +58787,8 @@ "binop": null, "updateContext": null }, - "start": 8266, - "end": 8267, + "start": 8269, + "end": 8270, "loc": { "start": { "line": 245, @@ -59490,8 +58813,8 @@ "binop": null }, "value": "i", - "start": 8268, - "end": 8269, + "start": 8271, + "end": 8272, "loc": { "start": { "line": 245, @@ -59517,8 +58840,8 @@ "updateContext": null }, "value": "<", - "start": 8270, - "end": 8271, + "start": 8273, + "end": 8274, "loc": { "start": { "line": 245, @@ -59543,8 +58866,8 @@ "binop": null }, "value": "len", - "start": 8272, - "end": 8275, + "start": 8275, + "end": 8278, "loc": { "start": { "line": 245, @@ -59570,8 +58893,8 @@ "updateContext": null }, "value": "-", - "start": 8276, - "end": 8277, + "start": 8279, + "end": 8280, "loc": { "start": { "line": 245, @@ -59597,8 +58920,8 @@ "updateContext": null }, "value": 1, - "start": 8278, - "end": 8279, + "start": 8281, + "end": 8282, "loc": { "start": { "line": 245, @@ -59623,8 +58946,8 @@ "binop": null, "updateContext": null }, - "start": 8279, - "end": 8280, + "start": 8282, + "end": 8283, "loc": { "start": { "line": 245, @@ -59649,8 +58972,8 @@ "binop": null }, "value": "i", - "start": 8281, - "end": 8282, + "start": 8284, + "end": 8285, "loc": { "start": { "line": 245, @@ -59675,8 +58998,8 @@ "binop": null }, "value": "++", - "start": 8282, - "end": 8284, + "start": 8285, + "end": 8287, "loc": { "start": { "line": 245, @@ -59700,8 +59023,8 @@ "postfix": false, "binop": null }, - "start": 8284, - "end": 8285, + "start": 8287, + "end": 8288, "loc": { "start": { "line": 245, @@ -59725,8 +59048,8 @@ "postfix": false, "binop": null }, - "start": 8286, - "end": 8287, + "start": 8289, + "end": 8290, "loc": { "start": { "line": 245, @@ -59753,8 +59076,8 @@ "updateContext": null }, "value": "let", - "start": 8290, - "end": 8293, + "start": 8293, + "end": 8296, "loc": { "start": { "line": 246, @@ -59779,8 +59102,8 @@ "binop": null }, "value": "elem", - "start": 8294, - "end": 8298, + "start": 8297, + "end": 8301, "loc": { "start": { "line": 246, @@ -59806,8 +59129,8 @@ "updateContext": null }, "value": "=", - "start": 8299, - "end": 8300, + "start": 8302, + "end": 8303, "loc": { "start": { "line": 246, @@ -59832,8 +59155,8 @@ "binop": null }, "value": "path", - "start": 8301, - "end": 8305, + "start": 8304, + "end": 8308, "loc": { "start": { "line": 246, @@ -59858,8 +59181,8 @@ "binop": null, "updateContext": null }, - "start": 8305, - "end": 8306, + "start": 8308, + "end": 8309, "loc": { "start": { "line": 246, @@ -59884,8 +59207,8 @@ "binop": null }, "value": "i", - "start": 8306, - "end": 8307, + "start": 8309, + "end": 8310, "loc": { "start": { "line": 246, @@ -59910,8 +59233,8 @@ "binop": null, "updateContext": null }, - "start": 8307, - "end": 8308, + "start": 8310, + "end": 8311, "loc": { "start": { "line": 246, @@ -59938,8 +59261,8 @@ "updateContext": null }, "value": "if", - "start": 8311, - "end": 8313, + "start": 8314, + "end": 8316, "loc": { "start": { "line": 247, @@ -59963,8 +59286,8 @@ "postfix": false, "binop": null }, - "start": 8314, - "end": 8315, + "start": 8317, + "end": 8318, "loc": { "start": { "line": 247, @@ -59990,8 +59313,8 @@ "updateContext": null }, "value": "!", - "start": 8315, - "end": 8316, + "start": 8318, + "end": 8319, "loc": { "start": { "line": 247, @@ -60016,8 +59339,8 @@ "binop": null }, "value": "schema", - "start": 8316, - "end": 8322, + "start": 8319, + "end": 8325, "loc": { "start": { "line": 247, @@ -60042,8 +59365,8 @@ "binop": null, "updateContext": null }, - "start": 8322, - "end": 8323, + "start": 8325, + "end": 8326, "loc": { "start": { "line": 247, @@ -60068,8 +59391,8 @@ "binop": null }, "value": "elem", - "start": 8323, - "end": 8327, + "start": 8326, + "end": 8330, "loc": { "start": { "line": 247, @@ -60094,8 +59417,8 @@ "binop": null, "updateContext": null }, - "start": 8327, - "end": 8328, + "start": 8330, + "end": 8331, "loc": { "start": { "line": 247, @@ -60119,8 +59442,8 @@ "postfix": false, "binop": null }, - "start": 8328, - "end": 8329, + "start": 8331, + "end": 8332, "loc": { "start": { "line": 247, @@ -60145,8 +59468,8 @@ "binop": null }, "value": "schema", - "start": 8330, - "end": 8336, + "start": 8333, + "end": 8339, "loc": { "start": { "line": 247, @@ -60171,8 +59494,8 @@ "binop": null, "updateContext": null }, - "start": 8336, - "end": 8337, + "start": 8339, + "end": 8340, "loc": { "start": { "line": 247, @@ -60197,8 +59520,8 @@ "binop": null }, "value": "elem", - "start": 8337, - "end": 8341, + "start": 8340, + "end": 8344, "loc": { "start": { "line": 247, @@ -60223,8 +59546,8 @@ "binop": null, "updateContext": null }, - "start": 8341, - "end": 8342, + "start": 8344, + "end": 8345, "loc": { "start": { "line": 247, @@ -60250,8 +59573,8 @@ "updateContext": null }, "value": "=", - "start": 8343, - "end": 8344, + "start": 8346, + "end": 8347, "loc": { "start": { "line": 247, @@ -60275,8 +59598,8 @@ "postfix": false, "binop": null }, - "start": 8345, - "end": 8346, + "start": 8348, + "end": 8349, "loc": { "start": { "line": 247, @@ -60300,8 +59623,8 @@ "postfix": false, "binop": null }, - "start": 8346, - "end": 8347, + "start": 8349, + "end": 8350, "loc": { "start": { "line": 247, @@ -60326,8 +59649,8 @@ "binop": null }, "value": "schema", - "start": 8350, - "end": 8356, + "start": 8353, + "end": 8359, "loc": { "start": { "line": 248, @@ -60353,8 +59676,8 @@ "updateContext": null }, "value": "=", - "start": 8357, - "end": 8358, + "start": 8360, + "end": 8361, "loc": { "start": { "line": 248, @@ -60379,8 +59702,8 @@ "binop": null }, "value": "schema", - "start": 8359, - "end": 8365, + "start": 8362, + "end": 8368, "loc": { "start": { "line": 248, @@ -60405,8 +59728,8 @@ "binop": null, "updateContext": null }, - "start": 8365, - "end": 8366, + "start": 8368, + "end": 8369, "loc": { "start": { "line": 248, @@ -60431,8 +59754,8 @@ "binop": null }, "value": "elem", - "start": 8366, - "end": 8370, + "start": 8369, + "end": 8373, "loc": { "start": { "line": 248, @@ -60457,8 +59780,8 @@ "binop": null, "updateContext": null }, - "start": 8370, - "end": 8371, + "start": 8373, + "end": 8374, "loc": { "start": { "line": 248, @@ -60482,8 +59805,8 @@ "postfix": false, "binop": null }, - "start": 8373, - "end": 8374, + "start": 8376, + "end": 8377, "loc": { "start": { "line": 249, @@ -60508,8 +59831,8 @@ "binop": null }, "value": "schema", - "start": 8377, - "end": 8383, + "start": 8380, + "end": 8386, "loc": { "start": { "line": 251, @@ -60534,8 +59857,8 @@ "binop": null, "updateContext": null }, - "start": 8383, - "end": 8384, + "start": 8386, + "end": 8387, "loc": { "start": { "line": 251, @@ -60560,8 +59883,8 @@ "binop": null }, "value": "path", - "start": 8384, - "end": 8388, + "start": 8387, + "end": 8391, "loc": { "start": { "line": 251, @@ -60586,8 +59909,8 @@ "binop": null, "updateContext": null }, - "start": 8388, - "end": 8389, + "start": 8391, + "end": 8392, "loc": { "start": { "line": 251, @@ -60612,8 +59935,8 @@ "binop": null }, "value": "len", - "start": 8389, - "end": 8392, + "start": 8392, + "end": 8395, "loc": { "start": { "line": 251, @@ -60639,8 +59962,8 @@ "updateContext": null }, "value": "-", - "start": 8393, - "end": 8394, + "start": 8396, + "end": 8397, "loc": { "start": { "line": 251, @@ -60666,8 +59989,8 @@ "updateContext": null }, "value": 1, - "start": 8395, - "end": 8396, + "start": 8398, + "end": 8399, "loc": { "start": { "line": 251, @@ -60692,8 +60015,8 @@ "binop": null, "updateContext": null }, - "start": 8396, - "end": 8397, + "start": 8399, + "end": 8400, "loc": { "start": { "line": 251, @@ -60718,8 +60041,8 @@ "binop": null, "updateContext": null }, - "start": 8397, - "end": 8398, + "start": 8400, + "end": 8401, "loc": { "start": { "line": 251, @@ -60745,8 +60068,8 @@ "updateContext": null }, "value": "=", - "start": 8399, - "end": 8400, + "start": 8402, + "end": 8403, "loc": { "start": { "line": 251, @@ -60771,8 +60094,8 @@ "binop": null }, "value": "value", - "start": 8401, - "end": 8406, + "start": 8404, + "end": 8409, "loc": { "start": { "line": 251, @@ -60796,8 +60119,8 @@ "postfix": false, "binop": null }, - "start": 8407, - "end": 8408, + "start": 8410, + "end": 8411, "loc": { "start": { "line": 252, @@ -60812,8 +60135,8 @@ { "type": "CommentBlock", "value": "*\n * Shorthand to add or concatenate an amount to a field.\n * Best used with numbers or strings.\n * @param {*} amount Amount to increment the field by.\n * @param {*} path Path to the field.\n ", - "start": 8410, - "end": 8605, + "start": 8413, + "end": 8608, "loc": { "start": { "line": 254, @@ -60840,8 +60163,8 @@ "updateContext": null }, "value": "export", - "start": 8606, - "end": 8612, + "start": 8609, + "end": 8615, "loc": { "start": { "line": 260, @@ -60867,8 +60190,8 @@ "binop": null }, "value": "function", - "start": 8613, - "end": 8621, + "start": 8616, + "end": 8624, "loc": { "start": { "line": 260, @@ -60893,8 +60216,8 @@ "binop": null }, "value": "incrementField", - "start": 8622, - "end": 8636, + "start": 8625, + "end": 8639, "loc": { "start": { "line": 260, @@ -60918,8 +60241,8 @@ "postfix": false, "binop": null }, - "start": 8637, - "end": 8638, + "start": 8640, + "end": 8641, "loc": { "start": { "line": 260, @@ -60944,8 +60267,8 @@ "binop": null }, "value": "amount", - "start": 8638, - "end": 8644, + "start": 8641, + "end": 8647, "loc": { "start": { "line": 260, @@ -60970,8 +60293,8 @@ "binop": null, "updateContext": null }, - "start": 8644, - "end": 8645, + "start": 8647, + "end": 8648, "loc": { "start": { "line": 260, @@ -60996,8 +60319,8 @@ "binop": null }, "value": "path", - "start": 8646, - "end": 8650, + "start": 8649, + "end": 8653, "loc": { "start": { "line": 260, @@ -61021,8 +60344,8 @@ "postfix": false, "binop": null }, - "start": 8650, - "end": 8651, + "start": 8653, + "end": 8654, "loc": { "start": { "line": 260, @@ -61046,8 +60369,8 @@ "postfix": false, "binop": null }, - "start": 8652, - "end": 8653, + "start": 8655, + "end": 8656, "loc": { "start": { "line": 260, @@ -61072,8 +60395,8 @@ "binop": null }, "value": "setField", - "start": 8655, - "end": 8663, + "start": 8658, + "end": 8666, "loc": { "start": { "line": 261, @@ -61097,8 +60420,8 @@ "postfix": false, "binop": null }, - "start": 8663, - "end": 8664, + "start": 8666, + "end": 8667, "loc": { "start": { "line": 261, @@ -61123,8 +60446,8 @@ "binop": null }, "value": "getField", - "start": 8664, - "end": 8672, + "start": 8667, + "end": 8675, "loc": { "start": { "line": 261, @@ -61148,8 +60471,8 @@ "postfix": false, "binop": null }, - "start": 8672, - "end": 8673, + "start": 8675, + "end": 8676, "loc": { "start": { "line": 261, @@ -61174,8 +60497,8 @@ "binop": null }, "value": "path", - "start": 8673, - "end": 8677, + "start": 8676, + "end": 8680, "loc": { "start": { "line": 261, @@ -61199,8 +60522,8 @@ "postfix": false, "binop": null }, - "start": 8677, - "end": 8678, + "start": 8680, + "end": 8681, "loc": { "start": { "line": 261, @@ -61226,8 +60549,8 @@ "updateContext": null }, "value": "+", - "start": 8679, - "end": 8680, + "start": 8682, + "end": 8683, "loc": { "start": { "line": 261, @@ -61252,8 +60575,8 @@ "binop": null }, "value": "amount", - "start": 8681, - "end": 8687, + "start": 8684, + "end": 8690, "loc": { "start": { "line": 261, @@ -61278,8 +60601,8 @@ "binop": null, "updateContext": null }, - "start": 8687, - "end": 8688, + "start": 8690, + "end": 8691, "loc": { "start": { "line": 261, @@ -61304,8 +60627,8 @@ "binop": null }, "value": "path", - "start": 8689, - "end": 8693, + "start": 8692, + "end": 8696, "loc": { "start": { "line": 261, @@ -61329,8 +60652,8 @@ "postfix": false, "binop": null }, - "start": 8693, - "end": 8694, + "start": 8696, + "end": 8697, "loc": { "start": { "line": 261, @@ -61354,8 +60677,8 @@ "postfix": false, "binop": null }, - "start": 8695, - "end": 8696, + "start": 8698, + "end": 8699, "loc": { "start": { "line": 262, @@ -61370,8 +60693,8 @@ { "type": "CommentBlock", "value": "*\n * Returns the value given a path to that value.\n * Adopted from https://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n * @returns The value for the given field.\n ", - "start": 8698, - "end": 9144, + "start": 8701, + "end": 9147, "loc": { "start": { "line": 264, @@ -61398,8 +60721,8 @@ "updateContext": null }, "value": "export", - "start": 9145, - "end": 9151, + "start": 9148, + "end": 9154, "loc": { "start": { "line": 271, @@ -61425,8 +60748,8 @@ "binop": null }, "value": "function", - "start": 9152, - "end": 9160, + "start": 9155, + "end": 9163, "loc": { "start": { "line": 271, @@ -61451,8 +60774,8 @@ "binop": null }, "value": "getField", - "start": 9161, - "end": 9169, + "start": 9164, + "end": 9172, "loc": { "start": { "line": 271, @@ -61476,8 +60799,8 @@ "postfix": false, "binop": null }, - "start": 9170, - "end": 9171, + "start": 9173, + "end": 9174, "loc": { "start": { "line": 271, @@ -61502,8 +60825,8 @@ "binop": null }, "value": "path", - "start": 9171, - "end": 9175, + "start": 9174, + "end": 9178, "loc": { "start": { "line": 271, @@ -61527,8 +60850,8 @@ "postfix": false, "binop": null }, - "start": 9175, - "end": 9176, + "start": 9178, + "end": 9179, "loc": { "start": { "line": 271, @@ -61552,8 +60875,8 @@ "postfix": false, "binop": null }, - "start": 9177, - "end": 9178, + "start": 9180, + "end": 9181, "loc": { "start": { "line": 271, @@ -61580,8 +60903,8 @@ "updateContext": null }, "value": "if", - "start": 9180, - "end": 9182, + "start": 9183, + "end": 9185, "loc": { "start": { "line": 272, @@ -61605,8 +60928,8 @@ "postfix": false, "binop": null }, - "start": 9183, - "end": 9184, + "start": 9186, + "end": 9187, "loc": { "start": { "line": 272, @@ -61631,8 +60954,8 @@ "binop": null }, "value": "path", - "start": 9184, - "end": 9188, + "start": 9187, + "end": 9191, "loc": { "start": { "line": 272, @@ -61658,8 +60981,8 @@ "updateContext": null }, "value": "===", - "start": 9189, - "end": 9192, + "start": 9192, + "end": 9195, "loc": { "start": { "line": 272, @@ -61684,8 +61007,8 @@ "binop": null }, "value": "undefined", - "start": 9193, - "end": 9202, + "start": 9196, + "end": 9205, "loc": { "start": { "line": 272, @@ -61711,8 +61034,8 @@ "updateContext": null }, "value": "||", - "start": 9203, - "end": 9205, + "start": 9206, + "end": 9208, "loc": { "start": { "line": 272, @@ -61737,8 +61060,8 @@ "binop": null }, "value": "path", - "start": 9206, - "end": 9210, + "start": 9209, + "end": 9213, "loc": { "start": { "line": 272, @@ -61763,8 +61086,8 @@ "binop": null, "updateContext": null }, - "start": 9210, - "end": 9211, + "start": 9213, + "end": 9214, "loc": { "start": { "line": 272, @@ -61789,8 +61112,8 @@ "binop": null }, "value": "length", - "start": 9211, - "end": 9217, + "start": 9214, + "end": 9220, "loc": { "start": { "line": 272, @@ -61816,8 +61139,8 @@ "updateContext": null }, "value": "===", - "start": 9218, - "end": 9221, + "start": 9221, + "end": 9224, "loc": { "start": { "line": 272, @@ -61843,8 +61166,8 @@ "updateContext": null }, "value": 0, - "start": 9222, - "end": 9223, + "start": 9225, + "end": 9226, "loc": { "start": { "line": 272, @@ -61868,8 +61191,8 @@ "postfix": false, "binop": null }, - "start": 9223, - "end": 9224, + "start": 9226, + "end": 9227, "loc": { "start": { "line": 272, @@ -61893,8 +61216,8 @@ "postfix": false, "binop": null }, - "start": 9225, - "end": 9226, + "start": 9228, + "end": 9229, "loc": { "start": { "line": 272, @@ -61921,8 +61244,8 @@ "updateContext": null }, "value": "throw", - "start": 9229, - "end": 9234, + "start": 9232, + "end": 9237, "loc": { "start": { "line": 273, @@ -61949,8 +61272,8 @@ "updateContext": null }, "value": "new", - "start": 9235, - "end": 9238, + "start": 9238, + "end": 9241, "loc": { "start": { "line": 273, @@ -61975,8 +61298,8 @@ "binop": null }, "value": "Error", - "start": 9239, - "end": 9244, + "start": 9242, + "end": 9247, "loc": { "start": { "line": 273, @@ -62000,8 +61323,8 @@ "postfix": false, "binop": null }, - "start": 9244, - "end": 9245, + "start": 9247, + "end": 9248, "loc": { "start": { "line": 273, @@ -62027,8 +61350,8 @@ "updateContext": null }, "value": "Error in setField: path cannot be empty", - "start": 9245, - "end": 9286, + "start": 9248, + "end": 9289, "loc": { "start": { "line": 273, @@ -62052,8 +61375,8 @@ "postfix": false, "binop": null }, - "start": 9286, - "end": 9287, + "start": 9289, + "end": 9290, "loc": { "start": { "line": 273, @@ -62077,8 +61400,8 @@ "postfix": false, "binop": null }, - "start": 9289, - "end": 9290, + "start": 9292, + "end": 9293, "loc": { "start": { "line": 274, @@ -62105,8 +61428,8 @@ "updateContext": null }, "value": "if", - "start": 9292, - "end": 9294, + "start": 9295, + "end": 9297, "loc": { "start": { "line": 275, @@ -62130,8 +61453,8 @@ "postfix": false, "binop": null }, - "start": 9295, - "end": 9296, + "start": 9298, + "end": 9299, "loc": { "start": { "line": 275, @@ -62156,8 +61479,8 @@ "binop": null }, "value": "path", - "start": 9296, - "end": 9300, + "start": 9299, + "end": 9303, "loc": { "start": { "line": 275, @@ -62182,8 +61505,8 @@ "binop": null, "updateContext": null }, - "start": 9300, - "end": 9301, + "start": 9303, + "end": 9304, "loc": { "start": { "line": 275, @@ -62208,8 +61531,8 @@ "binop": null }, "value": "length", - "start": 9301, - "end": 9307, + "start": 9304, + "end": 9310, "loc": { "start": { "line": 275, @@ -62235,8 +61558,8 @@ "updateContext": null }, "value": "===", - "start": 9308, - "end": 9311, + "start": 9311, + "end": 9314, "loc": { "start": { "line": 275, @@ -62261,8 +61584,8 @@ "binop": null }, "value": "undefined", - "start": 9312, - "end": 9321, + "start": 9315, + "end": 9324, "loc": { "start": { "line": 275, @@ -62286,8 +61609,8 @@ "postfix": false, "binop": null }, - "start": 9321, - "end": 9322, + "start": 9324, + "end": 9325, "loc": { "start": { "line": 275, @@ -62311,8 +61634,8 @@ "postfix": false, "binop": null }, - "start": 9323, - "end": 9324, + "start": 9326, + "end": 9327, "loc": { "start": { "line": 275, @@ -62339,8 +61662,8 @@ "updateContext": null }, "value": "throw", - "start": 9327, - "end": 9332, + "start": 9330, + "end": 9335, "loc": { "start": { "line": 276, @@ -62367,8 +61690,8 @@ "updateContext": null }, "value": "new", - "start": 9333, - "end": 9336, + "start": 9336, + "end": 9339, "loc": { "start": { "line": 276, @@ -62393,8 +61716,8 @@ "binop": null }, "value": "Error", - "start": 9337, - "end": 9342, + "start": 9340, + "end": 9345, "loc": { "start": { "line": 276, @@ -62418,8 +61741,8 @@ "postfix": false, "binop": null }, - "start": 9342, - "end": 9343, + "start": 9345, + "end": 9346, "loc": { "start": { "line": 276, @@ -62445,8 +61768,8 @@ "updateContext": null }, "value": "Error in setField: path must be an array", - "start": 9343, - "end": 9385, + "start": 9346, + "end": 9388, "loc": { "start": { "line": 276, @@ -62470,8 +61793,8 @@ "postfix": false, "binop": null }, - "start": 9385, - "end": 9386, + "start": 9388, + "end": 9389, "loc": { "start": { "line": 276, @@ -62495,8 +61818,8 @@ "postfix": false, "binop": null }, - "start": 9388, - "end": 9389, + "start": 9391, + "end": 9392, "loc": { "start": { "line": 277, @@ -62523,8 +61846,8 @@ "updateContext": null }, "value": "let", - "start": 9392, - "end": 9395, + "start": 9395, + "end": 9398, "loc": { "start": { "line": 279, @@ -62549,8 +61872,8 @@ "binop": null }, "value": "obj", - "start": 9396, - "end": 9399, + "start": 9399, + "end": 9402, "loc": { "start": { "line": 279, @@ -62576,8 +61899,8 @@ "updateContext": null }, "value": "=", - "start": 9400, - "end": 9401, + "start": 9403, + "end": 9404, "loc": { "start": { "line": 279, @@ -62601,8 +61924,8 @@ "postfix": false, "binop": null }, - "start": 9402, - "end": 9403, + "start": 9405, + "end": 9406, "loc": { "start": { "line": 279, @@ -62627,8 +61950,8 @@ "binop": null }, "value": "path", - "start": 9403, - "end": 9407, + "start": 9406, + "end": 9410, "loc": { "start": { "line": 279, @@ -62653,8 +61976,8 @@ "binop": null, "updateContext": null }, - "start": 9407, - "end": 9408, + "start": 9410, + "end": 9411, "loc": { "start": { "line": 279, @@ -62680,8 +62003,8 @@ "updateContext": null }, "value": 0, - "start": 9408, - "end": 9409, + "start": 9411, + "end": 9412, "loc": { "start": { "line": 279, @@ -62706,8 +62029,8 @@ "binop": null, "updateContext": null }, - "start": 9409, - "end": 9410, + "start": 9412, + "end": 9413, "loc": { "start": { "line": 279, @@ -62733,8 +62056,8 @@ "updateContext": null }, "value": "===", - "start": 9411, - "end": 9414, + "start": 9414, + "end": 9417, "loc": { "start": { "line": 279, @@ -62760,8 +62083,8 @@ "updateContext": null }, "value": "rooms", - "start": 9415, - "end": 9422, + "start": 9418, + "end": 9425, "loc": { "start": { "line": 279, @@ -62785,8 +62108,8 @@ "postfix": false, "binop": null }, - "start": 9422, - "end": 9423, + "start": 9425, + "end": 9426, "loc": { "start": { "line": 279, @@ -62811,8 +62134,8 @@ "binop": null, "updateContext": null }, - "start": 9424, - "end": 9425, + "start": 9427, + "end": 9428, "loc": { "start": { "line": 279, @@ -62837,8 +62160,8 @@ "binop": null }, "value": "rooms", - "start": 9426, - "end": 9431, + "start": 9429, + "end": 9434, "loc": { "start": { "line": 279, @@ -62863,8 +62186,8 @@ "binop": null, "updateContext": null }, - "start": 9432, - "end": 9433, + "start": 9435, + "end": 9436, "loc": { "start": { "line": 279, @@ -62888,8 +62211,8 @@ "postfix": false, "binop": null }, - "start": 9434, - "end": 9435, + "start": 9437, + "end": 9438, "loc": { "start": { "line": 279, @@ -62914,8 +62237,8 @@ "binop": null }, "value": "path", - "start": 9435, - "end": 9439, + "start": 9438, + "end": 9442, "loc": { "start": { "line": 279, @@ -62940,8 +62263,8 @@ "binop": null, "updateContext": null }, - "start": 9439, - "end": 9440, + "start": 9442, + "end": 9443, "loc": { "start": { "line": 279, @@ -62967,8 +62290,8 @@ "updateContext": null }, "value": 0, - "start": 9440, - "end": 9441, + "start": 9443, + "end": 9444, "loc": { "start": { "line": 279, @@ -62993,8 +62316,8 @@ "binop": null, "updateContext": null }, - "start": 9441, - "end": 9442, + "start": 9444, + "end": 9445, "loc": { "start": { "line": 279, @@ -63020,8 +62343,8 @@ "updateContext": null }, "value": "===", - "start": 9443, - "end": 9446, + "start": 9446, + "end": 9449, "loc": { "start": { "line": 279, @@ -63047,8 +62370,8 @@ "updateContext": null }, "value": "teams", - "start": 9447, - "end": 9454, + "start": 9450, + "end": 9457, "loc": { "start": { "line": 279, @@ -63072,8 +62395,8 @@ "postfix": false, "binop": null }, - "start": 9454, - "end": 9455, + "start": 9457, + "end": 9458, "loc": { "start": { "line": 279, @@ -63098,8 +62421,8 @@ "binop": null, "updateContext": null }, - "start": 9456, - "end": 9457, + "start": 9459, + "end": 9460, "loc": { "start": { "line": 279, @@ -63124,8 +62447,8 @@ "binop": null }, "value": "teams", - "start": 9458, - "end": 9463, + "start": 9461, + "end": 9466, "loc": { "start": { "line": 279, @@ -63150,8 +62473,8 @@ "binop": null, "updateContext": null }, - "start": 9464, - "end": 9465, + "start": 9467, + "end": 9468, "loc": { "start": { "line": 279, @@ -63176,8 +62499,8 @@ "binop": null }, "value": "undefined", - "start": 9466, - "end": 9475, + "start": 9469, + "end": 9478, "loc": { "start": { "line": 279, @@ -63204,8 +62527,8 @@ "updateContext": null }, "value": "if", - "start": 9477, - "end": 9479, + "start": 9480, + "end": 9482, "loc": { "start": { "line": 280, @@ -63229,8 +62552,8 @@ "postfix": false, "binop": null }, - "start": 9480, - "end": 9481, + "start": 9483, + "end": 9484, "loc": { "start": { "line": 280, @@ -63255,8 +62578,8 @@ "binop": null }, "value": "obj", - "start": 9481, - "end": 9484, + "start": 9484, + "end": 9487, "loc": { "start": { "line": 280, @@ -63282,8 +62605,8 @@ "updateContext": null }, "value": "===", - "start": 9485, - "end": 9488, + "start": 9488, + "end": 9491, "loc": { "start": { "line": 280, @@ -63308,8 +62631,8 @@ "binop": null }, "value": "undefined", - "start": 9489, - "end": 9498, + "start": 9492, + "end": 9501, "loc": { "start": { "line": 280, @@ -63333,8 +62656,8 @@ "postfix": false, "binop": null }, - "start": 9498, - "end": 9499, + "start": 9501, + "end": 9502, "loc": { "start": { "line": 280, @@ -63358,8 +62681,8 @@ "postfix": false, "binop": null }, - "start": 9500, - "end": 9501, + "start": 9503, + "end": 9504, "loc": { "start": { "line": 280, @@ -63386,8 +62709,8 @@ "updateContext": null }, "value": "throw", - "start": 9504, - "end": 9509, + "start": 9507, + "end": 9512, "loc": { "start": { "line": 281, @@ -63414,8 +62737,8 @@ "updateContext": null }, "value": "new", - "start": 9510, - "end": 9513, + "start": 9513, + "end": 9516, "loc": { "start": { "line": 281, @@ -63440,8 +62763,8 @@ "binop": null }, "value": "Error", - "start": 9514, - "end": 9519, + "start": 9517, + "end": 9522, "loc": { "start": { "line": 281, @@ -63465,8 +62788,8 @@ "postfix": false, "binop": null }, - "start": 9519, - "end": 9520, + "start": 9522, + "end": 9523, "loc": { "start": { "line": 281, @@ -63492,8 +62815,8 @@ "updateContext": null }, "value": "Error in setField: Base object ", - "start": 9520, - "end": 9553, + "start": 9523, + "end": 9556, "loc": { "start": { "line": 281, @@ -63519,8 +62842,8 @@ "updateContext": null }, "value": "+", - "start": 9554, - "end": 9555, + "start": 9557, + "end": 9558, "loc": { "start": { "line": 281, @@ -63545,8 +62868,8 @@ "binop": null }, "value": "path", - "start": 9556, - "end": 9560, + "start": 9559, + "end": 9563, "loc": { "start": { "line": 281, @@ -63571,8 +62894,8 @@ "binop": null, "updateContext": null }, - "start": 9560, - "end": 9561, + "start": 9563, + "end": 9564, "loc": { "start": { "line": 281, @@ -63598,8 +62921,8 @@ "updateContext": null }, "value": 0, - "start": 9561, - "end": 9562, + "start": 9564, + "end": 9565, "loc": { "start": { "line": 281, @@ -63624,8 +62947,8 @@ "binop": null, "updateContext": null }, - "start": 9562, - "end": 9563, + "start": 9565, + "end": 9566, "loc": { "start": { "line": 281, @@ -63651,8 +62974,8 @@ "updateContext": null }, "value": "+", - "start": 9564, - "end": 9565, + "start": 9567, + "end": 9568, "loc": { "start": { "line": 281, @@ -63678,8 +63001,8 @@ "updateContext": null }, "value": " does not exist!", - "start": 9566, - "end": 9584, + "start": 9569, + "end": 9587, "loc": { "start": { "line": 281, @@ -63703,8 +63026,8 @@ "postfix": false, "binop": null }, - "start": 9584, - "end": 9585, + "start": 9587, + "end": 9588, "loc": { "start": { "line": 281, @@ -63728,8 +63051,8 @@ "postfix": false, "binop": null }, - "start": 9587, - "end": 9588, + "start": 9590, + "end": 9591, "loc": { "start": { "line": 282, @@ -63756,8 +63079,8 @@ "updateContext": null }, "value": "for", - "start": 9591, - "end": 9594, + "start": 9594, + "end": 9597, "loc": { "start": { "line": 284, @@ -63781,8 +63104,8 @@ "postfix": false, "binop": null }, - "start": 9595, - "end": 9596, + "start": 9598, + "end": 9599, "loc": { "start": { "line": 284, @@ -63809,8 +63132,8 @@ "updateContext": null }, "value": "let", - "start": 9596, - "end": 9599, + "start": 9599, + "end": 9602, "loc": { "start": { "line": 284, @@ -63835,8 +63158,8 @@ "binop": null }, "value": "i", - "start": 9600, - "end": 9601, + "start": 9603, + "end": 9604, "loc": { "start": { "line": 284, @@ -63862,8 +63185,8 @@ "updateContext": null }, "value": "=", - "start": 9602, - "end": 9603, + "start": 9605, + "end": 9606, "loc": { "start": { "line": 284, @@ -63889,8 +63212,8 @@ "updateContext": null }, "value": 1, - "start": 9604, - "end": 9605, + "start": 9607, + "end": 9608, "loc": { "start": { "line": 284, @@ -63915,8 +63238,8 @@ "binop": null, "updateContext": null }, - "start": 9605, - "end": 9606, + "start": 9608, + "end": 9609, "loc": { "start": { "line": 284, @@ -63941,8 +63264,8 @@ "binop": null }, "value": "i", - "start": 9607, - "end": 9608, + "start": 9610, + "end": 9611, "loc": { "start": { "line": 284, @@ -63968,8 +63291,8 @@ "updateContext": null }, "value": "<", - "start": 9609, - "end": 9610, + "start": 9612, + "end": 9613, "loc": { "start": { "line": 284, @@ -63994,8 +63317,8 @@ "binop": null }, "value": "path", - "start": 9611, - "end": 9615, + "start": 9614, + "end": 9618, "loc": { "start": { "line": 284, @@ -64020,8 +63343,8 @@ "binop": null, "updateContext": null }, - "start": 9615, - "end": 9616, + "start": 9618, + "end": 9619, "loc": { "start": { "line": 284, @@ -64046,8 +63369,8 @@ "binop": null }, "value": "length", - "start": 9616, - "end": 9622, + "start": 9619, + "end": 9625, "loc": { "start": { "line": 284, @@ -64072,8 +63395,8 @@ "binop": null, "updateContext": null }, - "start": 9622, - "end": 9623, + "start": 9625, + "end": 9626, "loc": { "start": { "line": 284, @@ -64098,8 +63421,8 @@ "binop": null }, "value": "i", - "start": 9624, - "end": 9625, + "start": 9627, + "end": 9628, "loc": { "start": { "line": 284, @@ -64124,8 +63447,8 @@ "binop": null }, "value": "++", - "start": 9625, - "end": 9627, + "start": 9628, + "end": 9630, "loc": { "start": { "line": 284, @@ -64149,8 +63472,8 @@ "postfix": false, "binop": null }, - "start": 9627, - "end": 9628, + "start": 9630, + "end": 9631, "loc": { "start": { "line": 284, @@ -64174,8 +63497,8 @@ "postfix": false, "binop": null }, - "start": 9629, - "end": 9630, + "start": 9632, + "end": 9633, "loc": { "start": { "line": 284, @@ -64200,8 +63523,8 @@ "binop": null }, "value": "obj", - "start": 9633, - "end": 9636, + "start": 9636, + "end": 9639, "loc": { "start": { "line": 285, @@ -64227,8 +63550,8 @@ "updateContext": null }, "value": "=", - "start": 9637, - "end": 9638, + "start": 9640, + "end": 9641, "loc": { "start": { "line": 285, @@ -64253,8 +63576,8 @@ "binop": null }, "value": "obj", - "start": 9639, - "end": 9642, + "start": 9642, + "end": 9645, "loc": { "start": { "line": 285, @@ -64279,8 +63602,8 @@ "binop": null, "updateContext": null }, - "start": 9642, - "end": 9643, + "start": 9645, + "end": 9646, "loc": { "start": { "line": 285, @@ -64305,8 +63628,8 @@ "binop": null }, "value": "path", - "start": 9643, - "end": 9647, + "start": 9646, + "end": 9650, "loc": { "start": { "line": 285, @@ -64331,8 +63654,8 @@ "binop": null, "updateContext": null }, - "start": 9647, - "end": 9648, + "start": 9650, + "end": 9651, "loc": { "start": { "line": 285, @@ -64357,8 +63680,8 @@ "binop": null }, "value": "i", - "start": 9648, - "end": 9649, + "start": 9651, + "end": 9652, "loc": { "start": { "line": 285, @@ -64383,8 +63706,8 @@ "binop": null, "updateContext": null }, - "start": 9649, - "end": 9650, + "start": 9652, + "end": 9653, "loc": { "start": { "line": 285, @@ -64409,8 +63732,8 @@ "binop": null, "updateContext": null }, - "start": 9650, - "end": 9651, + "start": 9653, + "end": 9654, "loc": { "start": { "line": 285, @@ -64434,8 +63757,8 @@ "postfix": false, "binop": null }, - "start": 9653, - "end": 9654, + "start": 9656, + "end": 9657, "loc": { "start": { "line": 286, @@ -64450,8 +63773,8 @@ { "type": "CommentLine", "value": " console.log(path, obj);", - "start": 9656, - "end": 9682, + "start": 9659, + "end": 9685, "loc": { "start": { "line": 287, @@ -64478,8 +63801,8 @@ "updateContext": null }, "value": "return", - "start": 9684, - "end": 9690, + "start": 9687, + "end": 9693, "loc": { "start": { "line": 288, @@ -64504,8 +63827,8 @@ "binop": null }, "value": "obj", - "start": 9691, - "end": 9694, + "start": 9694, + "end": 9697, "loc": { "start": { "line": 288, @@ -64529,8 +63852,8 @@ "postfix": false, "binop": null }, - "start": 9695, - "end": 9696, + "start": 9698, + "end": 9699, "loc": { "start": { "line": 289, @@ -64545,8 +63868,8 @@ { "type": "CommentBlock", "value": "*\n * Deletes one of the three types of gameObjects synced to the server\n * @param {string} type Either players, atoms, compounds\n * @param {*} id ID of the object to delete\n * @param {string} room Room name to delete in\n * @param {*} socket socket.io instance\n ", - "start": 9698, - "end": 9963, + "start": 9701, + "end": 9966, "loc": { "start": { "line": 291, @@ -64573,8 +63896,8 @@ "updateContext": null }, "value": "export", - "start": 9964, - "end": 9970, + "start": 9967, + "end": 9973, "loc": { "start": { "line": 298, @@ -64600,8 +63923,8 @@ "binop": null }, "value": "function", - "start": 9971, - "end": 9979, + "start": 9974, + "end": 9982, "loc": { "start": { "line": 298, @@ -64626,8 +63949,8 @@ "binop": null }, "value": "deleteObject", - "start": 9980, - "end": 9992, + "start": 9983, + "end": 9995, "loc": { "start": { "line": 298, @@ -64651,8 +63974,8 @@ "postfix": false, "binop": null }, - "start": 9993, - "end": 9994, + "start": 9996, + "end": 9997, "loc": { "start": { "line": 298, @@ -64677,8 +64000,8 @@ "binop": null }, "value": "type", - "start": 9994, - "end": 9998, + "start": 9997, + "end": 10001, "loc": { "start": { "line": 298, @@ -64703,8 +64026,8 @@ "binop": null, "updateContext": null }, - "start": 9998, - "end": 9999, + "start": 10001, + "end": 10002, "loc": { "start": { "line": 298, @@ -64729,8 +64052,8 @@ "binop": null }, "value": "id", - "start": 10000, - "end": 10002, + "start": 10003, + "end": 10005, "loc": { "start": { "line": 298, @@ -64755,8 +64078,8 @@ "binop": null, "updateContext": null }, - "start": 10002, - "end": 10003, + "start": 10005, + "end": 10006, "loc": { "start": { "line": 298, @@ -64781,8 +64104,8 @@ "binop": null }, "value": "room", - "start": 10004, - "end": 10008, + "start": 10007, + "end": 10011, "loc": { "start": { "line": 298, @@ -64807,8 +64130,8 @@ "binop": null, "updateContext": null }, - "start": 10008, - "end": 10009, + "start": 10011, + "end": 10012, "loc": { "start": { "line": 298, @@ -64833,8 +64156,8 @@ "binop": null }, "value": "socket", - "start": 10010, - "end": 10016, + "start": 10013, + "end": 10019, "loc": { "start": { "line": 298, @@ -64858,8 +64181,8 @@ "postfix": false, "binop": null }, - "start": 10016, - "end": 10017, + "start": 10019, + "end": 10020, "loc": { "start": { "line": 298, @@ -64883,8 +64206,8 @@ "postfix": false, "binop": null }, - "start": 10018, - "end": 10019, + "start": 10021, + "end": 10022, "loc": { "start": { "line": 298, @@ -64911,8 +64234,8 @@ "updateContext": null }, "value": "delete", - "start": 10021, - "end": 10027, + "start": 10024, + "end": 10030, "loc": { "start": { "line": 299, @@ -64937,8 +64260,8 @@ "binop": null }, "value": "rooms", - "start": 10028, - "end": 10033, + "start": 10031, + "end": 10036, "loc": { "start": { "line": 299, @@ -64963,8 +64286,8 @@ "binop": null, "updateContext": null }, - "start": 10033, - "end": 10034, + "start": 10036, + "end": 10037, "loc": { "start": { "line": 299, @@ -64989,8 +64312,8 @@ "binop": null }, "value": "room", - "start": 10034, - "end": 10038, + "start": 10037, + "end": 10041, "loc": { "start": { "line": 299, @@ -65015,8 +64338,8 @@ "binop": null, "updateContext": null }, - "start": 10038, - "end": 10039, + "start": 10041, + "end": 10042, "loc": { "start": { "line": 299, @@ -65041,8 +64364,8 @@ "binop": null, "updateContext": null }, - "start": 10039, - "end": 10040, + "start": 10042, + "end": 10043, "loc": { "start": { "line": 299, @@ -65067,8 +64390,8 @@ "binop": null }, "value": "type", - "start": 10040, - "end": 10044, + "start": 10043, + "end": 10047, "loc": { "start": { "line": 299, @@ -65093,8 +64416,8 @@ "binop": null, "updateContext": null }, - "start": 10044, - "end": 10045, + "start": 10047, + "end": 10048, "loc": { "start": { "line": 299, @@ -65119,8 +64442,8 @@ "binop": null, "updateContext": null }, - "start": 10045, - "end": 10046, + "start": 10048, + "end": 10049, "loc": { "start": { "line": 299, @@ -65145,8 +64468,8 @@ "binop": null }, "value": "id", - "start": 10046, - "end": 10048, + "start": 10049, + "end": 10051, "loc": { "start": { "line": 299, @@ -65171,8 +64494,8 @@ "binop": null, "updateContext": null }, - "start": 10048, - "end": 10049, + "start": 10051, + "end": 10052, "loc": { "start": { "line": 299, @@ -65187,8 +64510,8 @@ { "type": "CommentLine", "value": " Send clientside message", - "start": 10052, - "end": 10078, + "start": 10055, + "end": 10081, "loc": { "start": { "line": 301, @@ -65213,8 +64536,8 @@ "binop": null }, "value": "socket", - "start": 10080, - "end": 10086, + "start": 10083, + "end": 10089, "loc": { "start": { "line": 302, @@ -65239,8 +64562,8 @@ "binop": null, "updateContext": null }, - "start": 10086, - "end": 10087, + "start": 10089, + "end": 10090, "loc": { "start": { "line": 302, @@ -65265,8 +64588,8 @@ "binop": null }, "value": "to", - "start": 10087, - "end": 10089, + "start": 10090, + "end": 10092, "loc": { "start": { "line": 302, @@ -65290,8 +64613,8 @@ "postfix": false, "binop": null }, - "start": 10089, - "end": 10090, + "start": 10092, + "end": 10093, "loc": { "start": { "line": 302, @@ -65316,8 +64639,8 @@ "binop": null }, "value": "room", - "start": 10090, - "end": 10094, + "start": 10093, + "end": 10097, "loc": { "start": { "line": 302, @@ -65341,8 +64664,8 @@ "postfix": false, "binop": null }, - "start": 10094, - "end": 10095, + "start": 10097, + "end": 10098, "loc": { "start": { "line": 302, @@ -65367,8 +64690,8 @@ "binop": null, "updateContext": null }, - "start": 10095, - "end": 10096, + "start": 10098, + "end": 10099, "loc": { "start": { "line": 302, @@ -65393,8 +64716,8 @@ "binop": null }, "value": "broadcast", - "start": 10096, - "end": 10105, + "start": 10099, + "end": 10108, "loc": { "start": { "line": 302, @@ -65419,8 +64742,8 @@ "binop": null, "updateContext": null }, - "start": 10105, - "end": 10106, + "start": 10108, + "end": 10109, "loc": { "start": { "line": 302, @@ -65445,8 +64768,8 @@ "binop": null }, "value": "emit", - "start": 10106, - "end": 10110, + "start": 10109, + "end": 10113, "loc": { "start": { "line": 302, @@ -65470,8 +64793,8 @@ "postfix": false, "binop": null }, - "start": 10110, - "end": 10111, + "start": 10113, + "end": 10114, "loc": { "start": { "line": 302, @@ -65497,8 +64820,8 @@ "updateContext": null }, "value": "serverSendObjectRemoval", - "start": 10111, - "end": 10136, + "start": 10114, + "end": 10139, "loc": { "start": { "line": 302, @@ -65523,8 +64846,8 @@ "binop": null, "updateContext": null }, - "start": 10136, - "end": 10137, + "start": 10139, + "end": 10140, "loc": { "start": { "line": 302, @@ -65548,8 +64871,8 @@ "postfix": false, "binop": null }, - "start": 10138, - "end": 10139, + "start": 10141, + "end": 10142, "loc": { "start": { "line": 302, @@ -65574,8 +64897,8 @@ "binop": null }, "value": "id", - "start": 10140, - "end": 10142, + "start": 10143, + "end": 10145, "loc": { "start": { "line": 302, @@ -65600,8 +64923,8 @@ "binop": null, "updateContext": null }, - "start": 10142, - "end": 10143, + "start": 10145, + "end": 10146, "loc": { "start": { "line": 302, @@ -65626,8 +64949,8 @@ "binop": null }, "value": "id", - "start": 10144, - "end": 10146, + "start": 10147, + "end": 10149, "loc": { "start": { "line": 302, @@ -65652,8 +64975,8 @@ "binop": null, "updateContext": null }, - "start": 10146, - "end": 10147, + "start": 10149, + "end": 10150, "loc": { "start": { "line": 302, @@ -65678,8 +65001,8 @@ "binop": null }, "value": "type", - "start": 10148, - "end": 10152, + "start": 10151, + "end": 10155, "loc": { "start": { "line": 302, @@ -65704,8 +65027,8 @@ "binop": null, "updateContext": null }, - "start": 10152, - "end": 10153, + "start": 10155, + "end": 10156, "loc": { "start": { "line": 302, @@ -65730,8 +65053,8 @@ "binop": null }, "value": "type", - "start": 10154, - "end": 10158, + "start": 10157, + "end": 10161, "loc": { "start": { "line": 302, @@ -65755,8 +65078,8 @@ "postfix": false, "binop": null }, - "start": 10159, - "end": 10160, + "start": 10162, + "end": 10163, "loc": { "start": { "line": 302, @@ -65780,8 +65103,8 @@ "postfix": false, "binop": null }, - "start": 10160, - "end": 10161, + "start": 10163, + "end": 10164, "loc": { "start": { "line": 302, @@ -65806,8 +65129,8 @@ "binop": null }, "value": "socket", - "start": 10163, - "end": 10169, + "start": 10166, + "end": 10172, "loc": { "start": { "line": 303, @@ -65832,8 +65155,8 @@ "binop": null, "updateContext": null }, - "start": 10169, - "end": 10170, + "start": 10172, + "end": 10173, "loc": { "start": { "line": 303, @@ -65858,8 +65181,8 @@ "binop": null }, "value": "emit", - "start": 10170, - "end": 10174, + "start": 10173, + "end": 10177, "loc": { "start": { "line": 303, @@ -65883,8 +65206,8 @@ "postfix": false, "binop": null }, - "start": 10174, - "end": 10175, + "start": 10177, + "end": 10178, "loc": { "start": { "line": 303, @@ -65910,8 +65233,8 @@ "updateContext": null }, "value": "serverSendObjectRemoval", - "start": 10175, - "end": 10200, + "start": 10178, + "end": 10203, "loc": { "start": { "line": 303, @@ -65936,8 +65259,8 @@ "binop": null, "updateContext": null }, - "start": 10200, - "end": 10201, + "start": 10203, + "end": 10204, "loc": { "start": { "line": 303, @@ -65961,8 +65284,8 @@ "postfix": false, "binop": null }, - "start": 10202, - "end": 10203, + "start": 10205, + "end": 10206, "loc": { "start": { "line": 303, @@ -65987,8 +65310,8 @@ "binop": null }, "value": "id", - "start": 10204, - "end": 10206, + "start": 10207, + "end": 10209, "loc": { "start": { "line": 303, @@ -66013,8 +65336,8 @@ "binop": null, "updateContext": null }, - "start": 10206, - "end": 10207, + "start": 10209, + "end": 10210, "loc": { "start": { "line": 303, @@ -66039,8 +65362,8 @@ "binop": null }, "value": "id", - "start": 10208, - "end": 10210, + "start": 10211, + "end": 10213, "loc": { "start": { "line": 303, @@ -66065,8 +65388,8 @@ "binop": null, "updateContext": null }, - "start": 10210, - "end": 10211, + "start": 10213, + "end": 10214, "loc": { "start": { "line": 303, @@ -66091,8 +65414,8 @@ "binop": null }, "value": "type", - "start": 10212, - "end": 10216, + "start": 10215, + "end": 10219, "loc": { "start": { "line": 303, @@ -66117,8 +65440,8 @@ "binop": null, "updateContext": null }, - "start": 10216, - "end": 10217, + "start": 10219, + "end": 10220, "loc": { "start": { "line": 303, @@ -66143,8 +65466,8 @@ "binop": null }, "value": "type", - "start": 10218, - "end": 10222, + "start": 10221, + "end": 10225, "loc": { "start": { "line": 303, @@ -66168,8 +65491,8 @@ "postfix": false, "binop": null }, - "start": 10223, - "end": 10224, + "start": 10226, + "end": 10227, "loc": { "start": { "line": 303, @@ -66193,8 +65516,8 @@ "postfix": false, "binop": null }, - "start": 10224, - "end": 10225, + "start": 10227, + "end": 10228, "loc": { "start": { "line": 303, @@ -66218,8 +65541,8 @@ "postfix": false, "binop": null }, - "start": 10226, - "end": 10227, + "start": 10229, + "end": 10230, "loc": { "start": { "line": 304, @@ -66244,8 +65567,8 @@ "binop": null, "updateContext": null }, - "start": 10228, - "end": 10228, + "start": 10231, + "end": 10231, "loc": { "start": { "line": 305, diff --git a/docs/ast/source/server/utils/collision.js.json b/docs/ast/source/server/utils/collision.js.json index 7cf23b2..9ccce8f 100644 --- a/docs/ast/source/server/utils/collision.js.json +++ b/docs/ast/source/server/utils/collision.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 2576, + "end": 2893, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 70, + "line": 76, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 2576, + "end": 2893, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 70, + "line": 76, "column": 0 } }, @@ -350,7 +350,7 @@ { "type": "ImportDeclaration", "start": 138, - "end": 173, + "end": 185, "loc": { "start": { "line": 3, @@ -358,7 +358,7 @@ }, "end": { "line": 3, - "column": 35 + "column": 47 } }, "specifiers": [ @@ -410,20 +410,69 @@ }, "name": "damage" } + }, + { + "type": "ImportSpecifier", + "start": 155, + "end": 165, + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 155, + "end": 165, + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 27 + }, + "identifierName": "damageTile" + }, + "name": "damageTile" + }, + "local": { + "type": "Identifier", + "start": 155, + "end": 165, + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 27 + }, + "identifierName": "damageTile" + }, + "name": "damageTile" + } } ], "source": { "type": "StringLiteral", - "start": 161, - "end": 173, + "start": 173, + "end": 185, "loc": { "start": { "line": 3, - "column": 23 + "column": 35 }, "end": { "line": 3, - "column": 35 + "column": 47 } }, "extra": { @@ -435,8 +484,8 @@ }, { "type": "ImportDeclaration", - "start": 174, - "end": 213, + "start": 186, + "end": 225, "loc": { "start": { "line": 4, @@ -450,8 +499,8 @@ "specifiers": [ { "type": "ImportSpecifier", - "start": 183, - "end": 196, + "start": 195, + "end": 208, "loc": { "start": { "line": 4, @@ -464,8 +513,8 @@ }, "imported": { "type": "Identifier", - "start": 183, - "end": 196, + "start": 195, + "end": 208, "loc": { "start": { "line": 4, @@ -481,8 +530,8 @@ }, "local": { "type": "Identifier", - "start": 183, - "end": 196, + "start": 195, + "end": 208, "loc": { "start": { "line": 4, @@ -500,8 +549,8 @@ ], "source": { "type": "StringLiteral", - "start": 204, - "end": 213, + "start": 216, + "end": 225, "loc": { "start": { "line": 4, @@ -521,8 +570,8 @@ }, { "type": "ImportDeclaration", - "start": 214, - "end": 275, + "start": 226, + "end": 287, "loc": { "start": { "line": 5, @@ -536,8 +585,8 @@ "specifiers": [ { "type": "ImportSpecifier", - "start": 223, - "end": 233, + "start": 235, + "end": 245, "loc": { "start": { "line": 5, @@ -550,8 +599,8 @@ }, "imported": { "type": "Identifier", - "start": 223, - "end": 233, + "start": 235, + "end": 245, "loc": { "start": { "line": 5, @@ -567,8 +616,8 @@ }, "local": { "type": "Identifier", - "start": 223, - "end": 233, + "start": 235, + "end": 245, "loc": { "start": { "line": 5, @@ -585,8 +634,8 @@ }, { "type": "ImportSpecifier", - "start": 235, - "end": 240, + "start": 247, + "end": 252, "loc": { "start": { "line": 5, @@ -599,8 +648,8 @@ }, "imported": { "type": "Identifier", - "start": 235, - "end": 240, + "start": 247, + "end": 252, "loc": { "start": { "line": 5, @@ -616,8 +665,8 @@ }, "local": { "type": "Identifier", - "start": 235, - "end": 240, + "start": 247, + "end": 252, "loc": { "start": { "line": 5, @@ -635,8 +684,8 @@ ], "source": { "type": "StringLiteral", - "start": 248, - "end": 275, + "start": 260, + "end": 287, "loc": { "start": { "line": 5, @@ -656,8 +705,8 @@ }, { "type": "ImportDeclaration", - "start": 276, - "end": 317, + "start": 288, + "end": 329, "loc": { "start": { "line": 6, @@ -671,8 +720,8 @@ "specifiers": [ { "type": "ImportSpecifier", - "start": 285, - "end": 294, + "start": 297, + "end": 306, "loc": { "start": { "line": 6, @@ -685,8 +734,8 @@ }, "imported": { "type": "Identifier", - "start": 285, - "end": 294, + "start": 297, + "end": 306, "loc": { "start": { "line": 6, @@ -702,8 +751,8 @@ }, "local": { "type": "Identifier", - "start": 285, - "end": 294, + "start": 297, + "end": 306, "loc": { "start": { "line": 6, @@ -721,8 +770,8 @@ ], "source": { "type": "StringLiteral", - "start": 302, - "end": 317, + "start": 314, + "end": 329, "loc": { "start": { "line": 6, @@ -745,8 +794,8 @@ { "type": "CommentBlock", "value": "*\n * Runs once a frame, checks for collisions between objects and handles them accordingly.\n * Run using\n * @param {*} socket The socket.io instance\n * @param {string} room The name of the room\n * @param {*} thisPlayer The player object\n * @param {*} tempObjects The list of objects to tick. Should only be the objects rendered on the screen of thisPlayer. Contains compounds, atoms, players\n ", - "start": 319, - "end": 716, + "start": 331, + "end": 728, "loc": { "start": { "line": 8, @@ -762,15 +811,15 @@ }, { "type": "ExportNamedDeclaration", - "start": 717, - "end": 2575, + "start": 729, + "end": 2892, "loc": { "start": { "line": 16, "column": 0 }, "end": { - "line": 69, + "line": 75, "column": 1 } }, @@ -778,22 +827,22 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 724, - "end": 2575, + "start": 736, + "end": 2892, "loc": { "start": { "line": 16, "column": 7 }, "end": { - "line": 69, + "line": 75, "column": 1 } }, "id": { "type": "Identifier", - "start": 733, - "end": 748, + "start": 745, + "end": 760, "loc": { "start": { "line": 16, @@ -814,8 +863,8 @@ "params": [ { "type": "Identifier", - "start": 750, - "end": 756, + "start": 762, + "end": 768, "loc": { "start": { "line": 16, @@ -831,8 +880,8 @@ }, { "type": "Identifier", - "start": 758, - "end": 762, + "start": 770, + "end": 774, "loc": { "start": { "line": 16, @@ -848,8 +897,8 @@ }, { "type": "Identifier", - "start": 764, - "end": 774, + "start": 776, + "end": 786, "loc": { "start": { "line": 16, @@ -865,8 +914,8 @@ }, { "type": "Identifier", - "start": 776, - "end": 787, + "start": 788, + "end": 799, "loc": { "start": { "line": 16, @@ -883,23 +932,23 @@ ], "body": { "type": "BlockStatement", - "start": 789, - "end": 2575, + "start": 801, + "end": 2892, "loc": { "start": { "line": 16, "column": 72 }, "end": { - "line": 69, + "line": 75, "column": 1 } }, "body": [ { "type": "ForInStatement", - "start": 822, - "end": 1405, + "start": 834, + "end": 1417, "loc": { "start": { "line": 18, @@ -912,8 +961,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 827, - "end": 835, + "start": 839, + "end": 847, "loc": { "start": { "line": 18, @@ -927,8 +976,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 831, - "end": 835, + "start": 843, + "end": 847, "loc": { "start": { "line": 18, @@ -941,8 +990,8 @@ }, "id": { "type": "Identifier", - "start": 831, - "end": 835, + "start": 843, + "end": 847, "loc": { "start": { "line": 18, @@ -966,8 +1015,8 @@ }, "right": { "type": "MemberExpression", - "start": 839, - "end": 856, + "start": 851, + "end": 868, "loc": { "start": { "line": 18, @@ -980,8 +1029,8 @@ }, "object": { "type": "Identifier", - "start": 839, - "end": 850, + "start": 851, + "end": 862, "loc": { "start": { "line": 18, @@ -997,8 +1046,8 @@ }, "property": { "type": "Identifier", - "start": 851, - "end": 856, + "start": 863, + "end": 868, "loc": { "start": { "line": 18, @@ -1016,8 +1065,8 @@ }, "body": { "type": "BlockStatement", - "start": 858, - "end": 1405, + "start": 870, + "end": 1417, "loc": { "start": { "line": 18, @@ -1031,8 +1080,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 862, - "end": 1113, + "start": 874, + "end": 1125, "loc": { "start": { "line": 19, @@ -1046,8 +1095,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 866, - "end": 1113, + "start": 878, + "end": 1125, "loc": { "start": { "line": 19, @@ -1060,8 +1109,8 @@ }, "id": { "type": "Identifier", - "start": 866, - "end": 874, + "start": 878, + "end": 886, "loc": { "start": { "line": 19, @@ -1077,8 +1126,8 @@ }, "init": { "type": "CallExpression", - "start": 877, - "end": 1113, + "start": 889, + "end": 1125, "loc": { "start": { "line": 19, @@ -1091,8 +1140,8 @@ }, "callee": { "type": "Identifier", - "start": 877, - "end": 892, + "start": 889, + "end": 904, "loc": { "start": { "line": 19, @@ -1109,8 +1158,8 @@ "arguments": [ { "type": "ObjectExpression", - "start": 897, - "end": 1013, + "start": 909, + "end": 1025, "loc": { "start": { "line": 20, @@ -1124,8 +1173,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 899, - "end": 954, + "start": 911, + "end": 966, "loc": { "start": { "line": 20, @@ -1141,8 +1190,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 899, - "end": 903, + "start": 911, + "end": 915, "loc": { "start": { "line": 20, @@ -1158,8 +1207,8 @@ }, "value": { "type": "BinaryExpression", - "start": 905, - "end": 954, + "start": 917, + "end": 966, "loc": { "start": { "line": 20, @@ -1172,8 +1221,8 @@ }, "left": { "type": "MemberExpression", - "start": 905, - "end": 933, + "start": 917, + "end": 945, "loc": { "start": { "line": 20, @@ -1186,8 +1235,8 @@ }, "object": { "type": "MemberExpression", - "start": 905, - "end": 928, + "start": 917, + "end": 940, "loc": { "start": { "line": 20, @@ -1200,8 +1249,8 @@ }, "object": { "type": "MemberExpression", - "start": 905, - "end": 922, + "start": 917, + "end": 934, "loc": { "start": { "line": 20, @@ -1214,8 +1263,8 @@ }, "object": { "type": "Identifier", - "start": 905, - "end": 916, + "start": 917, + "end": 928, "loc": { "start": { "line": 20, @@ -1231,8 +1280,8 @@ }, "property": { "type": "Identifier", - "start": 917, - "end": 922, + "start": 929, + "end": 934, "loc": { "start": { "line": 20, @@ -1250,8 +1299,8 @@ }, "property": { "type": "Identifier", - "start": 923, - "end": 927, + "start": 935, + "end": 939, "loc": { "start": { "line": 20, @@ -1269,8 +1318,8 @@ }, "property": { "type": "Identifier", - "start": 929, - "end": 933, + "start": 941, + "end": 945, "loc": { "start": { "line": 20, @@ -1289,8 +1338,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 936, - "end": 954, + "start": 948, + "end": 966, "loc": { "start": { "line": 20, @@ -1303,8 +1352,8 @@ }, "object": { "type": "Identifier", - "start": 936, - "end": 942, + "start": 948, + "end": 954, "loc": { "start": { "line": 20, @@ -1320,8 +1369,8 @@ }, "property": { "type": "Identifier", - "start": 943, - "end": 954, + "start": 955, + "end": 966, "loc": { "start": { "line": 20, @@ -1341,8 +1390,8 @@ }, { "type": "ObjectProperty", - "start": 956, - "end": 1011, + "start": 968, + "end": 1023, "loc": { "start": { "line": 20, @@ -1358,8 +1407,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 956, - "end": 960, + "start": 968, + "end": 972, "loc": { "start": { "line": 20, @@ -1375,8 +1424,8 @@ }, "value": { "type": "BinaryExpression", - "start": 962, - "end": 1011, + "start": 974, + "end": 1023, "loc": { "start": { "line": 20, @@ -1389,8 +1438,8 @@ }, "left": { "type": "MemberExpression", - "start": 962, - "end": 990, + "start": 974, + "end": 1002, "loc": { "start": { "line": 20, @@ -1403,8 +1452,8 @@ }, "object": { "type": "MemberExpression", - "start": 962, - "end": 985, + "start": 974, + "end": 997, "loc": { "start": { "line": 20, @@ -1417,8 +1466,8 @@ }, "object": { "type": "MemberExpression", - "start": 962, - "end": 979, + "start": 974, + "end": 991, "loc": { "start": { "line": 20, @@ -1431,8 +1480,8 @@ }, "object": { "type": "Identifier", - "start": 962, - "end": 973, + "start": 974, + "end": 985, "loc": { "start": { "line": 20, @@ -1448,8 +1497,8 @@ }, "property": { "type": "Identifier", - "start": 974, - "end": 979, + "start": 986, + "end": 991, "loc": { "start": { "line": 20, @@ -1467,8 +1516,8 @@ }, "property": { "type": "Identifier", - "start": 980, - "end": 984, + "start": 992, + "end": 996, "loc": { "start": { "line": 20, @@ -1486,8 +1535,8 @@ }, "property": { "type": "Identifier", - "start": 986, - "end": 990, + "start": 998, + "end": 1002, "loc": { "start": { "line": 20, @@ -1506,8 +1555,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 993, - "end": 1011, + "start": 1005, + "end": 1023, "loc": { "start": { "line": 20, @@ -1520,8 +1569,8 @@ }, "object": { "type": "Identifier", - "start": 993, - "end": 999, + "start": 1005, + "end": 1011, "loc": { "start": { "line": 20, @@ -1537,8 +1586,8 @@ }, "property": { "type": "Identifier", - "start": 1000, - "end": 1011, + "start": 1012, + "end": 1023, "loc": { "start": { "line": 20, @@ -1560,8 +1609,8 @@ }, { "type": "ObjectExpression", - "start": 1018, - "end": 1112, + "start": 1030, + "end": 1124, "loc": { "start": { "line": 21, @@ -1575,8 +1624,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1020, - "end": 1064, + "start": 1032, + "end": 1076, "loc": { "start": { "line": 21, @@ -1592,8 +1641,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1020, - "end": 1024, + "start": 1032, + "end": 1036, "loc": { "start": { "line": 21, @@ -1609,8 +1658,8 @@ }, "value": { "type": "BinaryExpression", - "start": 1026, - "end": 1064, + "start": 1038, + "end": 1076, "loc": { "start": { "line": 21, @@ -1623,8 +1672,8 @@ }, "left": { "type": "MemberExpression", - "start": 1026, - "end": 1041, + "start": 1038, + "end": 1053, "loc": { "start": { "line": 21, @@ -1637,8 +1686,8 @@ }, "object": { "type": "Identifier", - "start": 1026, - "end": 1036, + "start": 1038, + "end": 1048, "loc": { "start": { "line": 21, @@ -1654,8 +1703,8 @@ }, "property": { "type": "Identifier", - "start": 1037, - "end": 1041, + "start": 1049, + "end": 1053, "loc": { "start": { "line": 21, @@ -1674,8 +1723,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 1044, - "end": 1064, + "start": 1056, + "end": 1076, "loc": { "start": { "line": 21, @@ -1688,8 +1737,8 @@ }, "object": { "type": "Identifier", - "start": 1044, - "end": 1050, + "start": 1056, + "end": 1062, "loc": { "start": { "line": 21, @@ -1705,8 +1754,8 @@ }, "property": { "type": "Identifier", - "start": 1051, - "end": 1064, + "start": 1063, + "end": 1076, "loc": { "start": { "line": 21, @@ -1726,8 +1775,8 @@ }, { "type": "ObjectProperty", - "start": 1066, - "end": 1110, + "start": 1078, + "end": 1122, "loc": { "start": { "line": 21, @@ -1743,8 +1792,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1066, - "end": 1070, + "start": 1078, + "end": 1082, "loc": { "start": { "line": 21, @@ -1760,8 +1809,8 @@ }, "value": { "type": "BinaryExpression", - "start": 1072, - "end": 1110, + "start": 1084, + "end": 1122, "loc": { "start": { "line": 21, @@ -1774,8 +1823,8 @@ }, "left": { "type": "MemberExpression", - "start": 1072, - "end": 1087, + "start": 1084, + "end": 1099, "loc": { "start": { "line": 21, @@ -1788,8 +1837,8 @@ }, "object": { "type": "Identifier", - "start": 1072, - "end": 1082, + "start": 1084, + "end": 1094, "loc": { "start": { "line": 21, @@ -1805,8 +1854,8 @@ }, "property": { "type": "Identifier", - "start": 1083, - "end": 1087, + "start": 1095, + "end": 1099, "loc": { "start": { "line": 21, @@ -1825,8 +1874,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 1090, - "end": 1110, + "start": 1102, + "end": 1122, "loc": { "start": { "line": 21, @@ -1839,8 +1888,8 @@ }, "object": { "type": "Identifier", - "start": 1090, - "end": 1096, + "start": 1102, + "end": 1108, "loc": { "start": { "line": 21, @@ -1856,8 +1905,8 @@ }, "property": { "type": "Identifier", - "start": 1097, - "end": 1110, + "start": 1109, + "end": 1122, "loc": { "start": { "line": 21, @@ -1885,8 +1934,8 @@ }, { "type": "IfStatement", - "start": 1117, - "end": 1402, + "start": 1129, + "end": 1414, "loc": { "start": { "line": 23, @@ -1899,8 +1948,8 @@ }, "test": { "type": "BinaryExpression", - "start": 1121, - "end": 1161, + "start": 1133, + "end": 1173, "loc": { "start": { "line": 23, @@ -1913,8 +1962,8 @@ }, "left": { "type": "Identifier", - "start": 1121, - "end": 1129, + "start": 1133, + "end": 1141, "loc": { "start": { "line": 23, @@ -1931,8 +1980,8 @@ "operator": "<", "right": { "type": "MemberExpression", - "start": 1132, - "end": 1161, + "start": 1144, + "end": 1173, "loc": { "start": { "line": 23, @@ -1945,8 +1994,8 @@ }, "object": { "type": "Identifier", - "start": 1132, - "end": 1138, + "start": 1144, + "end": 1150, "loc": { "start": { "line": 23, @@ -1962,8 +2011,8 @@ }, "property": { "type": "Identifier", - "start": 1139, - "end": 1161, + "start": 1151, + "end": 1173, "loc": { "start": { "line": 23, @@ -1982,8 +2031,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 1163, - "end": 1402, + "start": 1175, + "end": 1414, "loc": { "start": { "line": 23, @@ -1997,8 +2046,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1193, - "end": 1262, + "start": 1205, + "end": 1274, "loc": { "start": { "line": 25, @@ -2011,8 +2060,8 @@ }, "expression": { "type": "CallExpression", - "start": 1193, - "end": 1262, + "start": 1205, + "end": 1274, "loc": { "start": { "line": 25, @@ -2025,8 +2074,8 @@ }, "callee": { "type": "Identifier", - "start": 1193, - "end": 1206, + "start": 1205, + "end": 1218, "loc": { "start": { "line": 25, @@ -2044,8 +2093,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 1207, - "end": 1220, + "start": 1219, + "end": 1232, "loc": { "start": { "line": 25, @@ -2058,8 +2107,8 @@ }, "object": { "type": "Identifier", - "start": 1207, - "end": 1217, + "start": 1219, + "end": 1229, "loc": { "start": { "line": 25, @@ -2075,8 +2124,8 @@ }, "property": { "type": "Identifier", - "start": 1218, - "end": 1220, + "start": 1230, + "end": 1232, "loc": { "start": { "line": 25, @@ -2094,8 +2143,8 @@ }, { "type": "Identifier", - "start": 1222, - "end": 1226, + "start": 1234, + "end": 1238, "loc": { "start": { "line": 25, @@ -2111,8 +2160,8 @@ }, { "type": "MemberExpression", - "start": 1228, - "end": 1258, + "start": 1240, + "end": 1270, "loc": { "start": { "line": 25, @@ -2125,8 +2174,8 @@ }, "object": { "type": "MemberExpression", - "start": 1228, - "end": 1251, + "start": 1240, + "end": 1263, "loc": { "start": { "line": 25, @@ -2139,8 +2188,8 @@ }, "object": { "type": "MemberExpression", - "start": 1228, - "end": 1245, + "start": 1240, + "end": 1257, "loc": { "start": { "line": 25, @@ -2153,8 +2202,8 @@ }, "object": { "type": "Identifier", - "start": 1228, - "end": 1239, + "start": 1240, + "end": 1251, "loc": { "start": { "line": 25, @@ -2170,8 +2219,8 @@ }, "property": { "type": "Identifier", - "start": 1240, - "end": 1245, + "start": 1252, + "end": 1257, "loc": { "start": { "line": 25, @@ -2189,8 +2238,8 @@ }, "property": { "type": "Identifier", - "start": 1246, - "end": 1250, + "start": 1258, + "end": 1262, "loc": { "start": { "line": 25, @@ -2208,8 +2257,8 @@ }, "property": { "type": "Identifier", - "start": 1252, - "end": 1258, + "start": 1264, + "end": 1270, "loc": { "start": { "line": 25, @@ -2227,8 +2276,8 @@ }, { "type": "NumericLiteral", - "start": 1260, - "end": 1261, + "start": 1272, + "end": 1273, "loc": { "start": { "line": 25, @@ -2252,8 +2301,8 @@ { "type": "CommentLine", "value": " console.log(atom);", - "start": 1168, - "end": 1189, + "start": 1180, + "end": 1201, "loc": { "start": { "line": 24, @@ -2269,8 +2318,8 @@ }, { "type": "ExpressionStatement", - "start": 1266, - "end": 1352, + "start": 1278, + "end": 1364, "loc": { "start": { "line": 26, @@ -2283,8 +2332,8 @@ }, "expression": { "type": "CallExpression", - "start": 1266, - "end": 1352, + "start": 1278, + "end": 1364, "loc": { "start": { "line": 26, @@ -2297,8 +2346,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1266, - "end": 1296, + "start": 1278, + "end": 1308, "loc": { "start": { "line": 26, @@ -2311,8 +2360,8 @@ }, "object": { "type": "MemberExpression", - "start": 1266, - "end": 1291, + "start": 1278, + "end": 1303, "loc": { "start": { "line": 26, @@ -2325,8 +2374,8 @@ }, "object": { "type": "CallExpression", - "start": 1266, - "end": 1281, + "start": 1278, + "end": 1293, "loc": { "start": { "line": 26, @@ -2339,8 +2388,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1266, - "end": 1275, + "start": 1278, + "end": 1287, "loc": { "start": { "line": 26, @@ -2353,8 +2402,8 @@ }, "object": { "type": "Identifier", - "start": 1266, - "end": 1272, + "start": 1278, + "end": 1284, "loc": { "start": { "line": 26, @@ -2370,8 +2419,8 @@ }, "property": { "type": "Identifier", - "start": 1273, - "end": 1275, + "start": 1285, + "end": 1287, "loc": { "start": { "line": 26, @@ -2390,8 +2439,8 @@ "arguments": [ { "type": "Identifier", - "start": 1276, - "end": 1280, + "start": 1288, + "end": 1292, "loc": { "start": { "line": 26, @@ -2409,8 +2458,8 @@ }, "property": { "type": "Identifier", - "start": 1282, - "end": 1291, + "start": 1294, + "end": 1303, "loc": { "start": { "line": 26, @@ -2428,8 +2477,8 @@ }, "property": { "type": "Identifier", - "start": 1292, - "end": 1296, + "start": 1304, + "end": 1308, "loc": { "start": { "line": 26, @@ -2448,8 +2497,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 1297, - "end": 1322, + "start": 1309, + "end": 1334, "loc": { "start": { "line": 26, @@ -2468,8 +2517,8 @@ }, { "type": "ObjectExpression", - "start": 1324, - "end": 1351, + "start": 1336, + "end": 1363, "loc": { "start": { "line": 26, @@ -2483,8 +2532,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1326, - "end": 1334, + "start": 1338, + "end": 1346, "loc": { "start": { "line": 26, @@ -2500,8 +2549,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1326, - "end": 1328, + "start": 1338, + "end": 1340, "loc": { "start": { "line": 26, @@ -2517,8 +2566,8 @@ }, "value": { "type": "Identifier", - "start": 1330, - "end": 1334, + "start": 1342, + "end": 1346, "loc": { "start": { "line": 26, @@ -2535,8 +2584,8 @@ }, { "type": "ObjectProperty", - "start": 1336, - "end": 1349, + "start": 1348, + "end": 1361, "loc": { "start": { "line": 26, @@ -2552,8 +2601,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1336, - "end": 1340, + "start": 1348, + "end": 1352, "loc": { "start": { "line": 26, @@ -2569,8 +2618,8 @@ }, "value": { "type": "StringLiteral", - "start": 1342, - "end": 1349, + "start": 1354, + "end": 1361, "loc": { "start": { "line": 26, @@ -2595,8 +2644,8 @@ }, { "type": "ExpressionStatement", - "start": 1357, - "end": 1398, + "start": 1369, + "end": 1410, "loc": { "start": { "line": 28, @@ -2609,8 +2658,8 @@ }, "expression": { "type": "CallExpression", - "start": 1357, - "end": 1398, + "start": 1369, + "end": 1410, "loc": { "start": { "line": 28, @@ -2623,8 +2672,8 @@ }, "callee": { "type": "Identifier", - "start": 1357, - "end": 1369, + "start": 1369, + "end": 1381, "loc": { "start": { "line": 28, @@ -2641,8 +2690,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 1370, - "end": 1377, + "start": 1382, + "end": 1389, "loc": { "start": { "line": 28, @@ -2661,8 +2710,8 @@ }, { "type": "Identifier", - "start": 1379, - "end": 1383, + "start": 1391, + "end": 1395, "loc": { "start": { "line": 28, @@ -2678,8 +2727,8 @@ }, { "type": "Identifier", - "start": 1385, - "end": 1389, + "start": 1397, + "end": 1401, "loc": { "start": { "line": 28, @@ -2695,8 +2744,8 @@ }, { "type": "Identifier", - "start": 1391, - "end": 1397, + "start": 1403, + "end": 1409, "loc": { "start": { "line": 28, @@ -2726,8 +2775,8 @@ { "type": "CommentLine", "value": " Check for collected atoms", - "start": 792, - "end": 820, + "start": 804, + "end": 832, "loc": { "start": { "line": 17, @@ -2744,8 +2793,8 @@ { "type": "CommentLine", "value": " Check for compound collisions", - "start": 1408, - "end": 1440, + "start": 1420, + "end": 1452, "loc": { "start": { "line": 32, @@ -2761,22 +2810,22 @@ }, { "type": "ForInStatement", - "start": 1442, - "end": 2573, + "start": 1454, + "end": 2890, "loc": { "start": { "line": 33, "column": 1 }, "end": { - "line": 68, + "line": 74, "column": 2 } }, "left": { "type": "VariableDeclaration", - "start": 1447, - "end": 1459, + "start": 1459, + "end": 1471, "loc": { "start": { "line": 33, @@ -2790,8 +2839,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 1451, - "end": 1459, + "start": 1463, + "end": 1471, "loc": { "start": { "line": 33, @@ -2804,8 +2853,8 @@ }, "id": { "type": "Identifier", - "start": 1451, - "end": 1459, + "start": 1463, + "end": 1471, "loc": { "start": { "line": 33, @@ -2829,8 +2878,8 @@ }, "right": { "type": "MemberExpression", - "start": 1463, - "end": 1484, + "start": 1475, + "end": 1496, "loc": { "start": { "line": 33, @@ -2843,8 +2892,8 @@ }, "object": { "type": "Identifier", - "start": 1463, - "end": 1474, + "start": 1475, + "end": 1486, "loc": { "start": { "line": 33, @@ -2860,8 +2909,8 @@ }, "property": { "type": "Identifier", - "start": 1475, - "end": 1484, + "start": 1487, + "end": 1496, "loc": { "start": { "line": 33, @@ -2879,23 +2928,23 @@ }, "body": { "type": "BlockStatement", - "start": 1486, - "end": 2573, + "start": 1498, + "end": 2890, "loc": { "start": { "line": 33, "column": 45 }, "end": { - "line": 68, + "line": 74, "column": 2 } }, "body": [ { "type": "VariableDeclaration", - "start": 1490, - "end": 1531, + "start": 1502, + "end": 1543, "loc": { "start": { "line": 34, @@ -2909,8 +2958,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 1494, - "end": 1531, + "start": 1506, + "end": 1543, "loc": { "start": { "line": 34, @@ -2923,8 +2972,8 @@ }, "id": { "type": "Identifier", - "start": 1494, - "end": 1497, + "start": 1506, + "end": 1509, "loc": { "start": { "line": 34, @@ -2940,8 +2989,8 @@ }, "init": { "type": "MemberExpression", - "start": 1500, - "end": 1531, + "start": 1512, + "end": 1543, "loc": { "start": { "line": 34, @@ -2954,8 +3003,8 @@ }, "object": { "type": "MemberExpression", - "start": 1500, - "end": 1521, + "start": 1512, + "end": 1533, "loc": { "start": { "line": 34, @@ -2968,8 +3017,8 @@ }, "object": { "type": "Identifier", - "start": 1500, - "end": 1511, + "start": 1512, + "end": 1523, "loc": { "start": { "line": 34, @@ -2985,8 +3034,8 @@ }, "property": { "type": "Identifier", - "start": 1512, - "end": 1521, + "start": 1524, + "end": 1533, "loc": { "start": { "line": 34, @@ -3004,8 +3053,8 @@ }, "property": { "type": "Identifier", - "start": 1522, - "end": 1530, + "start": 1534, + "end": 1542, "loc": { "start": { "line": 34, @@ -3027,22 +3076,22 @@ }, { "type": "IfStatement", - "start": 1535, - "end": 2570, + "start": 1547, + "end": 2887, "loc": { "start": { "line": 36, "column": 2 }, "end": { - "line": 67, + "line": 73, "column": 3 } }, "test": { "type": "BinaryExpression", - "start": 1539, - "end": 1574, + "start": 1551, + "end": 1586, "loc": { "start": { "line": 36, @@ -3055,8 +3104,8 @@ }, "left": { "type": "MemberExpression", - "start": 1539, - "end": 1554, + "start": 1551, + "end": 1566, "loc": { "start": { "line": 36, @@ -3069,8 +3118,8 @@ }, "object": { "type": "Identifier", - "start": 1539, - "end": 1542, + "start": 1551, + "end": 1554, "loc": { "start": { "line": 36, @@ -3086,8 +3135,8 @@ }, "property": { "type": "Identifier", - "start": 1543, - "end": 1554, + "start": 1555, + "end": 1566, "loc": { "start": { "line": 36, @@ -3106,8 +3155,8 @@ "operator": "!==", "right": { "type": "MemberExpression", - "start": 1559, - "end": 1574, + "start": 1571, + "end": 1586, "loc": { "start": { "line": 36, @@ -3120,8 +3169,8 @@ }, "object": { "type": "Identifier", - "start": 1559, - "end": 1569, + "start": 1571, + "end": 1581, "loc": { "start": { "line": 36, @@ -3137,8 +3186,8 @@ }, "property": { "type": "Identifier", - "start": 1570, - "end": 1574, + "start": 1582, + "end": 1586, "loc": { "start": { "line": 36, @@ -3157,8 +3206,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 1576, - "end": 2367, + "start": 1588, + "end": 2379, "loc": { "start": { "line": 36, @@ -3172,8 +3221,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 1581, - "end": 1816, + "start": 1593, + "end": 1828, "loc": { "start": { "line": 37, @@ -3187,8 +3236,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 1585, - "end": 1816, + "start": 1597, + "end": 1828, "loc": { "start": { "line": 37, @@ -3201,8 +3250,8 @@ }, "id": { "type": "Identifier", - "start": 1585, - "end": 1593, + "start": 1597, + "end": 1605, "loc": { "start": { "line": 37, @@ -3218,8 +3267,8 @@ }, "init": { "type": "CallExpression", - "start": 1596, - "end": 1816, + "start": 1608, + "end": 1828, "loc": { "start": { "line": 37, @@ -3232,8 +3281,8 @@ }, "callee": { "type": "Identifier", - "start": 1596, - "end": 1611, + "start": 1608, + "end": 1623, "loc": { "start": { "line": 37, @@ -3250,8 +3299,8 @@ "arguments": [ { "type": "ObjectExpression", - "start": 1617, - "end": 1715, + "start": 1629, + "end": 1727, "loc": { "start": { "line": 38, @@ -3265,8 +3314,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1619, - "end": 1665, + "start": 1631, + "end": 1677, "loc": { "start": { "line": 38, @@ -3282,8 +3331,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1619, - "end": 1623, + "start": 1631, + "end": 1635, "loc": { "start": { "line": 38, @@ -3299,8 +3348,8 @@ }, "value": { "type": "BinaryExpression", - "start": 1625, - "end": 1665, + "start": 1637, + "end": 1677, "loc": { "start": { "line": 38, @@ -3313,8 +3362,8 @@ }, "left": { "type": "MemberExpression", - "start": 1625, - "end": 1633, + "start": 1637, + "end": 1645, "loc": { "start": { "line": 38, @@ -3327,8 +3376,8 @@ }, "object": { "type": "Identifier", - "start": 1625, - "end": 1628, + "start": 1637, + "end": 1640, "loc": { "start": { "line": 38, @@ -3344,8 +3393,8 @@ }, "property": { "type": "Identifier", - "start": 1629, - "end": 1633, + "start": 1641, + "end": 1645, "loc": { "start": { "line": 38, @@ -3364,8 +3413,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 1636, - "end": 1665, + "start": 1648, + "end": 1677, "loc": { "start": { "line": 38, @@ -3378,8 +3427,8 @@ }, "left": { "type": "MemberExpression", - "start": 1636, - "end": 1661, + "start": 1648, + "end": 1673, "loc": { "start": { "line": 38, @@ -3392,8 +3441,8 @@ }, "object": { "type": "MemberExpression", - "start": 1636, - "end": 1656, + "start": 1648, + "end": 1668, "loc": { "start": { "line": 38, @@ -3406,8 +3455,8 @@ }, "object": { "type": "MemberExpression", - "start": 1636, - "end": 1649, + "start": 1648, + "end": 1661, "loc": { "start": { "line": 38, @@ -3420,8 +3469,8 @@ }, "object": { "type": "Identifier", - "start": 1636, - "end": 1639, + "start": 1648, + "end": 1651, "loc": { "start": { "line": 38, @@ -3437,8 +3486,8 @@ }, "property": { "type": "Identifier", - "start": 1640, - "end": 1649, + "start": 1652, + "end": 1661, "loc": { "start": { "line": 38, @@ -3456,8 +3505,8 @@ }, "property": { "type": "Identifier", - "start": 1650, - "end": 1656, + "start": 1662, + "end": 1668, "loc": { "start": { "line": 38, @@ -3475,8 +3524,8 @@ }, "property": { "type": "Identifier", - "start": 1657, - "end": 1661, + "start": 1669, + "end": 1673, "loc": { "start": { "line": 38, @@ -3495,8 +3544,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 1664, - "end": 1665, + "start": 1676, + "end": 1677, "loc": { "start": { "line": 38, @@ -3518,8 +3567,8 @@ }, { "type": "ObjectProperty", - "start": 1667, - "end": 1713, + "start": 1679, + "end": 1725, "loc": { "start": { "line": 38, @@ -3535,8 +3584,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1667, - "end": 1671, + "start": 1679, + "end": 1683, "loc": { "start": { "line": 38, @@ -3552,8 +3601,8 @@ }, "value": { "type": "BinaryExpression", - "start": 1673, - "end": 1713, + "start": 1685, + "end": 1725, "loc": { "start": { "line": 38, @@ -3566,8 +3615,8 @@ }, "left": { "type": "MemberExpression", - "start": 1673, - "end": 1681, + "start": 1685, + "end": 1693, "loc": { "start": { "line": 38, @@ -3580,8 +3629,8 @@ }, "object": { "type": "Identifier", - "start": 1673, - "end": 1676, + "start": 1685, + "end": 1688, "loc": { "start": { "line": 38, @@ -3597,8 +3646,8 @@ }, "property": { "type": "Identifier", - "start": 1677, - "end": 1681, + "start": 1689, + "end": 1693, "loc": { "start": { "line": 38, @@ -3617,8 +3666,8 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 1684, - "end": 1713, + "start": 1696, + "end": 1725, "loc": { "start": { "line": 38, @@ -3631,8 +3680,8 @@ }, "left": { "type": "MemberExpression", - "start": 1684, - "end": 1709, + "start": 1696, + "end": 1721, "loc": { "start": { "line": 38, @@ -3645,8 +3694,8 @@ }, "object": { "type": "MemberExpression", - "start": 1684, - "end": 1704, + "start": 1696, + "end": 1716, "loc": { "start": { "line": 38, @@ -3659,8 +3708,8 @@ }, "object": { "type": "MemberExpression", - "start": 1684, - "end": 1697, + "start": 1696, + "end": 1709, "loc": { "start": { "line": 38, @@ -3673,8 +3722,8 @@ }, "object": { "type": "Identifier", - "start": 1684, - "end": 1687, + "start": 1696, + "end": 1699, "loc": { "start": { "line": 38, @@ -3690,8 +3739,8 @@ }, "property": { "type": "Identifier", - "start": 1688, - "end": 1697, + "start": 1700, + "end": 1709, "loc": { "start": { "line": 38, @@ -3709,8 +3758,8 @@ }, "property": { "type": "Identifier", - "start": 1698, - "end": 1704, + "start": 1710, + "end": 1716, "loc": { "start": { "line": 38, @@ -3728,8 +3777,8 @@ }, "property": { "type": "Identifier", - "start": 1705, - "end": 1709, + "start": 1717, + "end": 1721, "loc": { "start": { "line": 38, @@ -3748,8 +3797,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 1712, - "end": 1713, + "start": 1724, + "end": 1725, "loc": { "start": { "line": 38, @@ -3773,8 +3822,8 @@ }, { "type": "ObjectExpression", - "start": 1721, - "end": 1815, + "start": 1733, + "end": 1827, "loc": { "start": { "line": 39, @@ -3788,8 +3837,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1723, - "end": 1767, + "start": 1735, + "end": 1779, "loc": { "start": { "line": 39, @@ -3805,8 +3854,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1723, - "end": 1727, + "start": 1735, + "end": 1739, "loc": { "start": { "line": 39, @@ -3822,8 +3871,8 @@ }, "value": { "type": "BinaryExpression", - "start": 1729, - "end": 1767, + "start": 1741, + "end": 1779, "loc": { "start": { "line": 39, @@ -3836,8 +3885,8 @@ }, "left": { "type": "MemberExpression", - "start": 1729, - "end": 1744, + "start": 1741, + "end": 1756, "loc": { "start": { "line": 39, @@ -3850,8 +3899,8 @@ }, "object": { "type": "Identifier", - "start": 1729, - "end": 1739, + "start": 1741, + "end": 1751, "loc": { "start": { "line": 39, @@ -3867,8 +3916,8 @@ }, "property": { "type": "Identifier", - "start": 1740, - "end": 1744, + "start": 1752, + "end": 1756, "loc": { "start": { "line": 39, @@ -3887,8 +3936,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 1747, - "end": 1767, + "start": 1759, + "end": 1779, "loc": { "start": { "line": 39, @@ -3901,8 +3950,8 @@ }, "object": { "type": "Identifier", - "start": 1747, - "end": 1753, + "start": 1759, + "end": 1765, "loc": { "start": { "line": 39, @@ -3918,8 +3967,8 @@ }, "property": { "type": "Identifier", - "start": 1754, - "end": 1767, + "start": 1766, + "end": 1779, "loc": { "start": { "line": 39, @@ -3939,8 +3988,8 @@ }, { "type": "ObjectProperty", - "start": 1769, - "end": 1813, + "start": 1781, + "end": 1825, "loc": { "start": { "line": 39, @@ -3956,8 +4005,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1769, - "end": 1773, + "start": 1781, + "end": 1785, "loc": { "start": { "line": 39, @@ -3973,8 +4022,8 @@ }, "value": { "type": "BinaryExpression", - "start": 1775, - "end": 1813, + "start": 1787, + "end": 1825, "loc": { "start": { "line": 39, @@ -3987,8 +4036,8 @@ }, "left": { "type": "MemberExpression", - "start": 1775, - "end": 1790, + "start": 1787, + "end": 1802, "loc": { "start": { "line": 39, @@ -4001,8 +4050,8 @@ }, "object": { "type": "Identifier", - "start": 1775, - "end": 1785, + "start": 1787, + "end": 1797, "loc": { "start": { "line": 39, @@ -4018,8 +4067,8 @@ }, "property": { "type": "Identifier", - "start": 1786, - "end": 1790, + "start": 1798, + "end": 1802, "loc": { "start": { "line": 39, @@ -4038,8 +4087,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 1793, - "end": 1813, + "start": 1805, + "end": 1825, "loc": { "start": { "line": 39, @@ -4052,8 +4101,8 @@ }, "object": { "type": "Identifier", - "start": 1793, - "end": 1799, + "start": 1805, + "end": 1811, "loc": { "start": { "line": 39, @@ -4069,8 +4118,8 @@ }, "property": { "type": "Identifier", - "start": 1800, - "end": 1813, + "start": 1812, + "end": 1825, "loc": { "start": { "line": 39, @@ -4101,8 +4150,8 @@ { "type": "CommentLine", "value": " Hit player", - "start": 1821, - "end": 1834, + "start": 1833, + "end": 1846, "loc": { "start": { "line": 41, @@ -4118,8 +4167,8 @@ }, { "type": "IfStatement", - "start": 1838, - "end": 2363, + "start": 1850, + "end": 2375, "loc": { "start": { "line": 42, @@ -4132,8 +4181,8 @@ }, "test": { "type": "BinaryExpression", - "start": 1842, - "end": 1901, + "start": 1854, + "end": 1913, "loc": { "start": { "line": 42, @@ -4146,8 +4195,8 @@ }, "left": { "type": "Identifier", - "start": 1842, - "end": 1850, + "start": 1854, + "end": 1862, "loc": { "start": { "line": 42, @@ -4165,8 +4214,8 @@ "operator": "<", "right": { "type": "BinaryExpression", - "start": 1853, - "end": 1901, + "start": 1865, + "end": 1913, "loc": { "start": { "line": 42, @@ -4179,8 +4228,8 @@ }, "left": { "type": "MemberExpression", - "start": 1853, - "end": 1878, + "start": 1865, + "end": 1890, "loc": { "start": { "line": 42, @@ -4193,8 +4242,8 @@ }, "object": { "type": "MemberExpression", - "start": 1853, - "end": 1873, + "start": 1865, + "end": 1885, "loc": { "start": { "line": 42, @@ -4207,8 +4256,8 @@ }, "object": { "type": "MemberExpression", - "start": 1853, - "end": 1866, + "start": 1865, + "end": 1878, "loc": { "start": { "line": 42, @@ -4221,8 +4270,8 @@ }, "object": { "type": "Identifier", - "start": 1853, - "end": 1856, + "start": 1865, + "end": 1868, "loc": { "start": { "line": 42, @@ -4238,8 +4287,8 @@ }, "property": { "type": "Identifier", - "start": 1857, - "end": 1866, + "start": 1869, + "end": 1878, "loc": { "start": { "line": 42, @@ -4257,8 +4306,8 @@ }, "property": { "type": "Identifier", - "start": 1867, - "end": 1873, + "start": 1879, + "end": 1885, "loc": { "start": { "line": 42, @@ -4276,8 +4325,8 @@ }, "property": { "type": "Identifier", - "start": 1874, - "end": 1878, + "start": 1886, + "end": 1890, "loc": { "start": { "line": 42, @@ -4296,8 +4345,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 1881, - "end": 1901, + "start": 1893, + "end": 1913, "loc": { "start": { "line": 42, @@ -4310,8 +4359,8 @@ }, "object": { "type": "Identifier", - "start": 1881, - "end": 1887, + "start": 1893, + "end": 1899, "loc": { "start": { "line": 42, @@ -4327,8 +4376,8 @@ }, "property": { "type": "Identifier", - "start": 1888, - "end": 1901, + "start": 1900, + "end": 1913, "loc": { "start": { "line": 42, @@ -4349,8 +4398,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 1903, - "end": 2363, + "start": 1915, + "end": 2375, "loc": { "start": { "line": 42, @@ -4364,8 +4413,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 1909, - "end": 1946, + "start": 1921, + "end": 1958, "loc": { "start": { "line": 43, @@ -4379,8 +4428,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 1913, - "end": 1946, + "start": 1925, + "end": 1958, "loc": { "start": { "line": 43, @@ -4393,8 +4442,8 @@ }, "id": { "type": "Identifier", - "start": 1913, - "end": 1916, + "start": 1925, + "end": 1928, "loc": { "start": { "line": 43, @@ -4410,8 +4459,8 @@ }, "init": { "type": "MemberExpression", - "start": 1919, - "end": 1946, + "start": 1931, + "end": 1958, "loc": { "start": { "line": 43, @@ -4424,8 +4473,8 @@ }, "object": { "type": "MemberExpression", - "start": 1919, - "end": 1939, + "start": 1931, + "end": 1951, "loc": { "start": { "line": 43, @@ -4438,8 +4487,8 @@ }, "object": { "type": "MemberExpression", - "start": 1919, - "end": 1932, + "start": 1931, + "end": 1944, "loc": { "start": { "line": 43, @@ -4452,8 +4501,8 @@ }, "object": { "type": "Identifier", - "start": 1919, - "end": 1922, + "start": 1931, + "end": 1934, "loc": { "start": { "line": 43, @@ -4469,8 +4518,8 @@ }, "property": { "type": "Identifier", - "start": 1923, - "end": 1932, + "start": 1935, + "end": 1944, "loc": { "start": { "line": 43, @@ -4488,8 +4537,8 @@ }, "property": { "type": "Identifier", - "start": 1933, - "end": 1939, + "start": 1945, + "end": 1951, "loc": { "start": { "line": 43, @@ -4507,8 +4556,8 @@ }, "property": { "type": "Identifier", - "start": 1940, - "end": 1946, + "start": 1952, + "end": 1958, "loc": { "start": { "line": 43, @@ -4535,8 +4584,8 @@ { "type": "CommentLine", "value": " Deal splash damage if it is a toxic compound or on fire", - "start": 1952, - "end": 2010, + "start": 1964, + "end": 2022, "loc": { "start": { "line": 45, @@ -4552,8 +4601,8 @@ }, { "type": "IfStatement", - "start": 2015, - "end": 2118, + "start": 2027, + "end": 2130, "loc": { "start": { "line": 46, @@ -4566,8 +4615,8 @@ }, "test": { "type": "LogicalExpression", - "start": 2019, - "end": 2064, + "start": 2031, + "end": 2076, "loc": { "start": { "line": 46, @@ -4580,8 +4629,8 @@ }, "left": { "type": "BinaryExpression", - "start": 2019, - "end": 2049, + "start": 2031, + "end": 2061, "loc": { "start": { "line": 46, @@ -4594,8 +4643,8 @@ }, "left": { "type": "MemberExpression", - "start": 2019, - "end": 2037, + "start": 2031, + "end": 2049, "loc": { "start": { "line": 46, @@ -4608,8 +4657,8 @@ }, "object": { "type": "MemberExpression", - "start": 2019, - "end": 2032, + "start": 2031, + "end": 2044, "loc": { "start": { "line": 46, @@ -4622,8 +4671,8 @@ }, "object": { "type": "Identifier", - "start": 2019, - "end": 2022, + "start": 2031, + "end": 2034, "loc": { "start": { "line": 46, @@ -4640,8 +4689,8 @@ }, "property": { "type": "Identifier", - "start": 2023, - "end": 2032, + "start": 2035, + "end": 2044, "loc": { "start": { "line": 46, @@ -4660,8 +4709,8 @@ }, "property": { "type": "Identifier", - "start": 2033, - "end": 2037, + "start": 2045, + "end": 2049, "loc": { "start": { "line": 46, @@ -4681,8 +4730,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 2042, - "end": 2049, + "start": 2054, + "end": 2061, "loc": { "start": { "line": 46, @@ -4704,8 +4753,8 @@ "operator": "||", "right": { "type": "MemberExpression", - "start": 2053, - "end": 2064, + "start": 2065, + "end": 2076, "loc": { "start": { "line": 46, @@ -4718,8 +4767,8 @@ }, "object": { "type": "Identifier", - "start": 2053, - "end": 2056, + "start": 2065, + "end": 2068, "loc": { "start": { "line": 46, @@ -4735,8 +4784,8 @@ }, "property": { "type": "Identifier", - "start": 2057, - "end": 2064, + "start": 2069, + "end": 2076, "loc": { "start": { "line": 46, @@ -4756,8 +4805,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2066, - "end": 2118, + "start": 2078, + "end": 2130, "loc": { "start": { "line": 46, @@ -4771,8 +4820,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2073, - "end": 2112, + "start": 2085, + "end": 2124, "loc": { "start": { "line": 47, @@ -4785,8 +4834,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 2073, - "end": 2112, + "start": 2085, + "end": 2124, "loc": { "start": { "line": 47, @@ -4800,8 +4849,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 2073, - "end": 2076, + "start": 2085, + "end": 2088, "loc": { "start": { "line": 47, @@ -4817,8 +4866,8 @@ }, "right": { "type": "MemberExpression", - "start": 2079, - "end": 2112, + "start": 2091, + "end": 2124, "loc": { "start": { "line": 47, @@ -4831,8 +4880,8 @@ }, "object": { "type": "MemberExpression", - "start": 2079, - "end": 2099, + "start": 2091, + "end": 2111, "loc": { "start": { "line": 47, @@ -4845,8 +4894,8 @@ }, "object": { "type": "MemberExpression", - "start": 2079, - "end": 2092, + "start": 2091, + "end": 2104, "loc": { "start": { "line": 47, @@ -4859,8 +4908,8 @@ }, "object": { "type": "Identifier", - "start": 2079, - "end": 2082, + "start": 2091, + "end": 2094, "loc": { "start": { "line": 47, @@ -4876,8 +4925,8 @@ }, "property": { "type": "Identifier", - "start": 2083, - "end": 2092, + "start": 2095, + "end": 2104, "loc": { "start": { "line": 47, @@ -4895,8 +4944,8 @@ }, "property": { "type": "Identifier", - "start": 2093, - "end": 2099, + "start": 2105, + "end": 2111, "loc": { "start": { "line": 47, @@ -4914,8 +4963,8 @@ }, "property": { "type": "Identifier", - "start": 2100, - "end": 2112, + "start": 2112, + "end": 2124, "loc": { "start": { "line": 47, @@ -4941,8 +4990,8 @@ { "type": "CommentLine", "value": " Deal splash damage if it is a toxic compound or on fire", - "start": 1952, - "end": 2010, + "start": 1964, + "end": 2022, "loc": { "start": { "line": 45, @@ -4958,8 +5007,8 @@ }, { "type": "ExpressionStatement", - "start": 2124, - "end": 2238, + "start": 2136, + "end": 2250, "loc": { "start": { "line": 50, @@ -4972,8 +5021,8 @@ }, "expression": { "type": "CallExpression", - "start": 2124, - "end": 2238, + "start": 2136, + "end": 2250, "loc": { "start": { "line": 50, @@ -4986,8 +5035,8 @@ }, "callee": { "type": "Identifier", - "start": 2124, - "end": 2130, + "start": 2136, + "end": 2142, "loc": { "start": { "line": 50, @@ -5004,8 +5053,8 @@ "arguments": [ { "type": "ObjectExpression", - "start": 2131, - "end": 2223, + "start": 2143, + "end": 2235, "loc": { "start": { "line": 50, @@ -5019,8 +5068,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2138, - "end": 2149, + "start": 2150, + "end": 2161, "loc": { "start": { "line": 51, @@ -5036,8 +5085,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2138, - "end": 2144, + "start": 2150, + "end": 2156, "loc": { "start": { "line": 51, @@ -5053,8 +5102,8 @@ }, "value": { "type": "Identifier", - "start": 2146, - "end": 2149, + "start": 2158, + "end": 2161, "loc": { "start": { "line": 51, @@ -5071,8 +5120,8 @@ }, { "type": "ObjectProperty", - "start": 2156, - "end": 2173, + "start": 2168, + "end": 2185, "loc": { "start": { "line": 52, @@ -5088,8 +5137,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2156, - "end": 2162, + "start": 2168, + "end": 2174, "loc": { "start": { "line": 52, @@ -5105,8 +5154,8 @@ }, "value": { "type": "MemberExpression", - "start": 2164, - "end": 2173, + "start": 2176, + "end": 2185, "loc": { "start": { "line": 52, @@ -5119,8 +5168,8 @@ }, "object": { "type": "Identifier", - "start": 2164, - "end": 2170, + "start": 2176, + "end": 2182, "loc": { "start": { "line": 52, @@ -5136,8 +5185,8 @@ }, "property": { "type": "Identifier", - "start": 2171, - "end": 2173, + "start": 2183, + "end": 2185, "loc": { "start": { "line": 52, @@ -5156,8 +5205,8 @@ }, { "type": "ObjectProperty", - "start": 2180, - "end": 2198, + "start": 2192, + "end": 2210, "loc": { "start": { "line": 53, @@ -5173,8 +5222,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2180, - "end": 2186, + "start": 2192, + "end": 2198, "loc": { "start": { "line": 53, @@ -5190,8 +5239,8 @@ }, "value": { "type": "MemberExpression", - "start": 2188, - "end": 2198, + "start": 2200, + "end": 2210, "loc": { "start": { "line": 53, @@ -5204,8 +5253,8 @@ }, "object": { "type": "Identifier", - "start": 2188, - "end": 2191, + "start": 2200, + "end": 2203, "loc": { "start": { "line": 53, @@ -5221,8 +5270,8 @@ }, "property": { "type": "Identifier", - "start": 2192, - "end": 2198, + "start": 2204, + "end": 2210, "loc": { "start": { "line": 53, @@ -5241,8 +5290,8 @@ }, { "type": "ObjectProperty", - "start": 2205, - "end": 2217, + "start": 2217, + "end": 2229, "loc": { "start": { "line": 54, @@ -5258,8 +5307,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2205, - "end": 2207, + "start": 2217, + "end": 2219, "loc": { "start": { "line": 54, @@ -5275,8 +5324,8 @@ }, "value": { "type": "Identifier", - "start": 2209, - "end": 2217, + "start": 2221, + "end": 2229, "loc": { "start": { "line": 54, @@ -5295,8 +5344,8 @@ }, { "type": "Identifier", - "start": 2225, - "end": 2229, + "start": 2237, + "end": 2241, "loc": { "start": { "line": 55, @@ -5312,8 +5361,8 @@ }, { "type": "Identifier", - "start": 2231, - "end": 2237, + "start": 2243, + "end": 2249, "loc": { "start": { "line": 55, @@ -5332,8 +5381,8 @@ }, { "type": "IfStatement", - "start": 2244, - "end": 2358, + "start": 2256, + "end": 2370, "loc": { "start": { "line": 57, @@ -5346,8 +5395,8 @@ }, "test": { "type": "LogicalExpression", - "start": 2248, - "end": 2294, + "start": 2260, + "end": 2306, "loc": { "start": { "line": 57, @@ -5360,8 +5409,8 @@ }, "left": { "type": "BinaryExpression", - "start": 2248, - "end": 2278, + "start": 2260, + "end": 2290, "loc": { "start": { "line": 57, @@ -5374,8 +5423,8 @@ }, "left": { "type": "MemberExpression", - "start": 2248, - "end": 2266, + "start": 2260, + "end": 2278, "loc": { "start": { "line": 57, @@ -5388,8 +5437,8 @@ }, "object": { "type": "MemberExpression", - "start": 2248, - "end": 2261, + "start": 2260, + "end": 2273, "loc": { "start": { "line": 57, @@ -5402,8 +5451,8 @@ }, "object": { "type": "Identifier", - "start": 2248, - "end": 2251, + "start": 2260, + "end": 2263, "loc": { "start": { "line": 57, @@ -5419,8 +5468,8 @@ }, "property": { "type": "Identifier", - "start": 2252, - "end": 2261, + "start": 2264, + "end": 2273, "loc": { "start": { "line": 57, @@ -5438,8 +5487,8 @@ }, "property": { "type": "Identifier", - "start": 2262, - "end": 2266, + "start": 2274, + "end": 2278, "loc": { "start": { "line": 57, @@ -5458,8 +5507,8 @@ "operator": "!==", "right": { "type": "StringLiteral", - "start": 2271, - "end": 2278, + "start": 2283, + "end": 2290, "loc": { "start": { "line": 57, @@ -5480,8 +5529,8 @@ "operator": "&&", "right": { "type": "UnaryExpression", - "start": 2282, - "end": 2294, + "start": 2294, + "end": 2306, "loc": { "start": { "line": 57, @@ -5496,8 +5545,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 2283, - "end": 2294, + "start": 2295, + "end": 2306, "loc": { "start": { "line": 57, @@ -5510,8 +5559,8 @@ }, "object": { "type": "Identifier", - "start": 2283, - "end": 2286, + "start": 2295, + "end": 2298, "loc": { "start": { "line": 57, @@ -5527,8 +5576,8 @@ }, "property": { "type": "Identifier", - "start": 2287, - "end": 2294, + "start": 2299, + "end": 2306, "loc": { "start": { "line": 57, @@ -5551,8 +5600,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2296, - "end": 2358, + "start": 2308, + "end": 2370, "loc": { "start": { "line": 57, @@ -5566,8 +5615,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2303, - "end": 2352, + "start": 2315, + "end": 2364, "loc": { "start": { "line": 58, @@ -5580,8 +5629,8 @@ }, "expression": { "type": "CallExpression", - "start": 2303, - "end": 2352, + "start": 2315, + "end": 2364, "loc": { "start": { "line": 58, @@ -5594,8 +5643,8 @@ }, "callee": { "type": "Identifier", - "start": 2303, - "end": 2315, + "start": 2315, + "end": 2327, "loc": { "start": { "line": 58, @@ -5612,8 +5661,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2316, - "end": 2327, + "start": 2328, + "end": 2339, "loc": { "start": { "line": 58, @@ -5632,8 +5681,8 @@ }, { "type": "Identifier", - "start": 2329, - "end": 2337, + "start": 2341, + "end": 2349, "loc": { "start": { "line": 58, @@ -5649,8 +5698,8 @@ }, { "type": "Identifier", - "start": 2339, - "end": 2343, + "start": 2351, + "end": 2355, "loc": { "start": { "line": 58, @@ -5666,8 +5715,8 @@ }, { "type": "Identifier", - "start": 2345, - "end": 2351, + "start": 2357, + "end": 2363, "loc": { "start": { "line": 58, @@ -5697,8 +5746,8 @@ { "type": "CommentLine", "value": " Hit player", - "start": 1821, - "end": 1834, + "start": 1833, + "end": 1846, "loc": { "start": { "line": 41, @@ -5717,23 +5766,23 @@ }, "alternate": { "type": "BlockStatement", - "start": 2375, - "end": 2570, + "start": 2387, + "end": 2887, "loc": { "start": { "line": 62, "column": 7 }, "end": { - "line": 67, + "line": 73, "column": 3 } }, "body": [ { "type": "VariableDeclaration", - "start": 2409, - "end": 2461, + "start": 2421, + "end": 2473, "loc": { "start": { "line": 63, @@ -5747,8 +5796,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2413, - "end": 2461, + "start": 2425, + "end": 2473, "loc": { "start": { "line": 63, @@ -5761,8 +5810,8 @@ }, "id": { "type": "Identifier", - "start": 2413, - "end": 2419, + "start": 2425, + "end": 2431, "loc": { "start": { "line": 63, @@ -5779,8 +5828,8 @@ }, "init": { "type": "CallExpression", - "start": 2422, - "end": 2461, + "start": 2434, + "end": 2473, "loc": { "start": { "line": 63, @@ -5793,8 +5842,8 @@ }, "callee": { "type": "Identifier", - "start": 2422, - "end": 2431, + "start": 2434, + "end": 2443, "loc": { "start": { "line": 63, @@ -5811,8 +5860,8 @@ "arguments": [ { "type": "CallExpression", - "start": 2432, - "end": 2454, + "start": 2444, + "end": 2466, "loc": { "start": { "line": 63, @@ -5825,8 +5874,8 @@ }, "callee": { "type": "Identifier", - "start": 2432, - "end": 2449, + "start": 2444, + "end": 2461, "loc": { "start": { "line": 63, @@ -5843,8 +5892,8 @@ "arguments": [ { "type": "Identifier", - "start": 2450, - "end": 2453, + "start": 2462, + "end": 2465, "loc": { "start": { "line": 63, @@ -5862,8 +5911,8 @@ }, { "type": "Identifier", - "start": 2456, - "end": 2460, + "start": 2468, + "end": 2472, "loc": { "start": { "line": 63, @@ -5887,8 +5936,8 @@ { "type": "CommentLine", "value": " check for tile collisions", - "start": 2377, - "end": 2405, + "start": 2389, + "end": 2417, "loc": { "start": { "line": 62, @@ -5904,22 +5953,22 @@ }, { "type": "IfStatement", - "start": 2465, - "end": 2566, + "start": 2477, + "end": 2883, "loc": { "start": { "line": 64, "column": 3 }, "end": { - "line": 66, + "line": 72, "column": 4 } }, "test": { "type": "Identifier", - "start": 2469, - "end": 2475, + "start": 2481, + "end": 2487, "loc": { "start": { "line": 64, @@ -5935,342 +5984,1165 @@ }, "consequent": { "type": "BlockStatement", - "start": 2477, - "end": 2566, + "start": 2489, + "end": 2883, "loc": { "start": { "line": 64, "column": 15 }, "end": { - "line": 66, + "line": 72, "column": 4 } }, "body": [ { - "type": "ExpressionStatement", - "start": 2483, - "end": 2561, + "type": "IfStatement", + "start": 2495, + "end": 2878, "loc": { "start": { "line": 65, "column": 4 }, "end": { - "line": 65, - "column": 82 + "line": 71, + "column": 5 } }, - "expression": { - "type": "CallExpression", - "start": 2483, - "end": 2561, + "test": { + "type": "BinaryExpression", + "start": 2499, + "end": 2736, "loc": { "start": { "line": 65, - "column": 4 + "column": 8 }, "end": { - "line": 65, - "column": 82 + "line": 68, + "column": 33 } }, - "callee": { - "type": "MemberExpression", - "start": 2483, - "end": 2494, + "left": { + "type": "CallExpression", + "start": 2499, + "end": 2709, "loc": { "start": { "line": 65, - "column": 4 + "column": 8 }, "end": { - "line": 65, - "column": 15 + "line": 68, + "column": 6 } }, - "object": { - "type": "Identifier", - "start": 2483, - "end": 2490, - "loc": { - "start": { - "line": 65, - "column": 4 - }, - "end": { - "line": 65, - "column": 11 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { + "callee": { "type": "Identifier", - "start": 2491, - "end": 2494, + "start": 2499, + "end": 2514, "loc": { "start": { "line": 65, - "column": 12 + "column": 8 }, "end": { "line": 65, - "column": 15 + "column": 23 }, - "identifierName": "log" + "identifierName": "distanceBetween" }, - "name": "log" + "name": "distanceBetween" }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 2495, - "end": 2560, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 81 - } - }, - "left": { - "type": "BinaryExpression", - "start": 2495, - "end": 2519, + "arguments": [ + { + "type": "Identifier", + "start": 2515, + "end": 2518, "loc": { "start": { "line": 65, - "column": 16 + "column": 24 }, "end": { "line": 65, - "column": 40 - } - }, - "left": { - "type": "BinaryExpression", - "start": 2495, - "end": 2510, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 31 - } - }, - "left": { - "type": "StringLiteral", - "start": 2495, - "end": 2501, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 22 - } - }, - "extra": { - "rawValue": "hit ", - "raw": "'hit '" - }, - "value": "hit " + "column": 27 }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 2504, - "end": 2510, - "loc": { - "start": { - "line": 65, - "column": 25 - }, - "end": { - "line": 65, - "column": 31 - }, - "identifierName": "tileID" - }, - "name": "tileID" - } + "identifierName": "cmp" }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 2513, - "end": 2519, - "loc": { - "start": { - "line": 65, - "column": 34 - }, - "end": { - "line": 65, - "column": 40 - } - }, - "extra": { - "rawValue": " at ", - "raw": "' at '" - }, - "value": " at " - } + "name": "cmp" }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 2522, - "end": 2560, + { + "type": "ObjectExpression", + "start": 2520, + "end": 2708, "loc": { "start": { "line": 65, - "column": 43 + "column": 29 }, "end": { - "line": 65, - "column": 81 + "line": 68, + "column": 5 } }, - "callee": { - "type": "MemberExpression", - "start": 2522, - "end": 2536, - "loc": { - "start": { - "line": 65, - "column": 43 - }, - "end": { - "line": 65, - "column": 57 - } - }, - "object": { - "type": "Identifier", - "start": 2522, - "end": 2526, - "loc": { - "start": { - "line": 65, - "column": 43 - }, - "end": { - "line": 65, - "column": 47 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 2527, - "end": 2536, - "loc": { - "start": { - "line": 65, - "column": 48 - }, - "end": { - "line": 65, - "column": 57 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ + "properties": [ { - "type": "CallExpression", - "start": 2537, - "end": 2559, + "type": "ObjectProperty", + "start": 2527, + "end": 2611, "loc": { "start": { - "line": 65, - "column": 58 + "line": 66, + "column": 5 }, "end": { - "line": 65, - "column": 80 + "line": 66, + "column": 89 } }, - "callee": { + "method": false, + "shorthand": false, + "computed": false, + "key": { "type": "Identifier", - "start": 2537, - "end": 2554, + "start": 2527, + "end": 2531, "loc": { "start": { - "line": 65, - "column": 58 + "line": 66, + "column": 5 }, "end": { - "line": 65, - "column": 75 + "line": 66, + "column": 9 }, - "identifierName": "getGlobalLocation" + "identifierName": "posX" }, - "name": "getGlobalLocation" + "name": "posX" }, - "arguments": [ - { - "type": "Identifier", - "start": 2555, - "end": 2558, + "value": { + "type": "BinaryExpression", + "start": 2533, + "end": 2611, + "loc": { + "start": { + "line": 66, + "column": 11 + }, + "end": { + "line": 66, + "column": 89 + } + }, + "left": { + "type": "BinaryExpression", + "start": 2533, + "end": 2589, "loc": { "start": { - "line": 65, - "column": 76 + "line": 66, + "column": 11 }, "end": { - "line": 65, - "column": 79 - }, - "identifierName": "cmp" + "line": 66, + "column": 67 + } }, - "name": "cmp" - } - ] - } - ] - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - ], + "left": { + "type": "BinaryExpression", + "start": 2533, + "end": 2585, + "loc": { + "start": { + "line": 66, + "column": 11 + }, + "end": { + "line": 66, + "column": 63 + } + }, + "left": { + "type": "MemberExpression", + "start": 2533, + "end": 2563, + "loc": { + "start": { + "line": 66, + "column": 11 + }, + "end": { + "line": 66, + "column": 41 + } + }, + "object": { + "type": "CallExpression", + "start": 2533, + "end": 2555, + "loc": { + "start": { + "line": 66, + "column": 11 + }, + "end": { + "line": 66, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 2533, + "end": 2550, + "loc": { + "start": { + "line": 66, + "column": 11 + }, + "end": { + "line": 66, + "column": 28 + }, + "identifierName": "getGlobalLocation" + }, + "name": "getGlobalLocation" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2551, + "end": 2554, + "loc": { + "start": { + "line": 66, + "column": 29 + }, + "end": { + "line": 66, + "column": 32 + }, + "identifierName": "cmp" + }, + "name": "cmp" + } + ] + }, + "property": { + "type": "Identifier", + "start": 2556, + "end": 2563, + "loc": { + "start": { + "line": 66, + "column": 34 + }, + "end": { + "line": 66, + "column": 41 + }, + "identifierName": "globalX" + }, + "name": "globalX" + }, + "computed": false + }, + "operator": "*", + "right": { + "type": "MemberExpression", + "start": 2566, + "end": 2585, + "loc": { + "start": { + "line": 66, + "column": 44 + }, + "end": { + "line": 66, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 2566, + "end": 2572, + "loc": { + "start": { + "line": 66, + "column": 44 + }, + "end": { + "line": 66, + "column": 50 + }, + "identifierName": "GLOBAL" + }, + "name": "GLOBAL" + }, + "property": { + "type": "Identifier", + "start": 2573, + "end": 2585, + "loc": { + "start": { + "line": 66, + "column": 51 + }, + "end": { + "line": 66, + "column": 63 + }, + "identifierName": "GRID_SPACING" + }, + "name": "GRID_SPACING" + }, + "computed": false + } + }, + "operator": "*", + "right": { + "type": "NumericLiteral", + "start": 2588, + "end": 2589, + "loc": { + "start": { + "line": 66, + "column": 66 + }, + "end": { + "line": 66, + "column": 67 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 2592, + "end": 2611, + "loc": { + "start": { + "line": 66, + "column": 70 + }, + "end": { + "line": 66, + "column": 89 + } + }, + "object": { + "type": "Identifier", + "start": 2592, + "end": 2598, + "loc": { + "start": { + "line": 66, + "column": 70 + }, + "end": { + "line": 66, + "column": 76 + }, + "identifierName": "GLOBAL" + }, + "name": "GLOBAL" + }, + "property": { + "type": "Identifier", + "start": 2599, + "end": 2611, + "loc": { + "start": { + "line": 66, + "column": 77 + }, + "end": { + "line": 66, + "column": 89 + }, + "identifierName": "GRID_SPACING" + }, + "name": "GRID_SPACING" + }, + "computed": false + } + } + }, + { + "type": "ObjectProperty", + "start": 2618, + "end": 2702, + "loc": { + "start": { + "line": 67, + "column": 5 + }, + "end": { + "line": 67, + "column": 89 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2618, + "end": 2622, + "loc": { + "start": { + "line": 67, + "column": 5 + }, + "end": { + "line": 67, + "column": 9 + }, + "identifierName": "posY" + }, + "name": "posY" + }, + "value": { + "type": "BinaryExpression", + "start": 2624, + "end": 2702, + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 89 + } + }, + "left": { + "type": "BinaryExpression", + "start": 2624, + "end": 2680, + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 67 + } + }, + "left": { + "type": "BinaryExpression", + "start": 2624, + "end": 2676, + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 63 + } + }, + "left": { + "type": "MemberExpression", + "start": 2624, + "end": 2654, + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 41 + } + }, + "object": { + "type": "CallExpression", + "start": 2624, + "end": 2646, + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 2624, + "end": 2641, + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 28 + }, + "identifierName": "getGlobalLocation" + }, + "name": "getGlobalLocation" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2642, + "end": 2645, + "loc": { + "start": { + "line": 67, + "column": 29 + }, + "end": { + "line": 67, + "column": 32 + }, + "identifierName": "cmp" + }, + "name": "cmp" + } + ] + }, + "property": { + "type": "Identifier", + "start": 2647, + "end": 2654, + "loc": { + "start": { + "line": 67, + "column": 34 + }, + "end": { + "line": 67, + "column": 41 + }, + "identifierName": "globalY" + }, + "name": "globalY" + }, + "computed": false + }, + "operator": "*", + "right": { + "type": "MemberExpression", + "start": 2657, + "end": 2676, + "loc": { + "start": { + "line": 67, + "column": 44 + }, + "end": { + "line": 67, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 2657, + "end": 2663, + "loc": { + "start": { + "line": 67, + "column": 44 + }, + "end": { + "line": 67, + "column": 50 + }, + "identifierName": "GLOBAL" + }, + "name": "GLOBAL" + }, + "property": { + "type": "Identifier", + "start": 2664, + "end": 2676, + "loc": { + "start": { + "line": 67, + "column": 51 + }, + "end": { + "line": 67, + "column": 63 + }, + "identifierName": "GRID_SPACING" + }, + "name": "GRID_SPACING" + }, + "computed": false + } + }, + "operator": "*", + "right": { + "type": "NumericLiteral", + "start": 2679, + "end": 2680, + "loc": { + "start": { + "line": 67, + "column": 66 + }, + "end": { + "line": 67, + "column": 67 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + }, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 2683, + "end": 2702, + "loc": { + "start": { + "line": 67, + "column": 70 + }, + "end": { + "line": 67, + "column": 89 + } + }, + "object": { + "type": "Identifier", + "start": 2683, + "end": 2689, + "loc": { + "start": { + "line": 67, + "column": 70 + }, + "end": { + "line": 67, + "column": 76 + }, + "identifierName": "GLOBAL" + }, + "name": "GLOBAL" + }, + "property": { + "type": "Identifier", + "start": 2690, + "end": 2702, + "loc": { + "start": { + "line": 67, + "column": 77 + }, + "end": { + "line": 67, + "column": 89 + }, + "identifierName": "GRID_SPACING" + }, + "name": "GRID_SPACING" + }, + "computed": false + } + } + } + ] + } + ] + }, + "operator": "<", + "right": { + "type": "MemberExpression", + "start": 2712, + "end": 2736, + "loc": { + "start": { + "line": 68, + "column": 9 + }, + "end": { + "line": 68, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 2712, + "end": 2718, + "loc": { + "start": { + "line": 68, + "column": 9 + }, + "end": { + "line": 68, + "column": 15 + }, + "identifierName": "GLOBAL" + }, + "name": "GLOBAL" + }, + "property": { + "type": "Identifier", + "start": 2719, + "end": 2736, + "loc": { + "start": { + "line": 68, + "column": 16 + }, + "end": { + "line": 68, + "column": 33 + }, + "identifierName": "STRONGHOLD_RADIUS" + }, + "name": "STRONGHOLD_RADIUS" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2738, + "end": 2878, + "loc": { + "start": { + "line": 68, + "column": 35 + }, + "end": { + "line": 71, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2745, + "end": 2794, + "loc": { + "start": { + "line": 69, + "column": 5 + }, + "end": { + "line": 69, + "column": 54 + } + }, + "expression": { + "type": "CallExpression", + "start": 2745, + "end": 2794, + "loc": { + "start": { + "line": 69, + "column": 5 + }, + "end": { + "line": 69, + "column": 54 + } + }, + "callee": { + "type": "Identifier", + "start": 2745, + "end": 2757, + "loc": { + "start": { + "line": 69, + "column": 5 + }, + "end": { + "line": 69, + "column": 17 + }, + "identifierName": "deleteObject" + }, + "name": "deleteObject" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2758, + "end": 2769, + "loc": { + "start": { + "line": 69, + "column": 18 + }, + "end": { + "line": 69, + "column": 29 + } + }, + "extra": { + "rawValue": "compounds", + "raw": "'compounds'" + }, + "value": "compounds" + }, + { + "type": "Identifier", + "start": 2771, + "end": 2779, + "loc": { + "start": { + "line": 69, + "column": 31 + }, + "end": { + "line": 69, + "column": 39 + }, + "identifierName": "compound" + }, + "name": "compound" + }, + { + "type": "Identifier", + "start": 2781, + "end": 2785, + "loc": { + "start": { + "line": 69, + "column": 41 + }, + "end": { + "line": 69, + "column": 45 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "Identifier", + "start": 2787, + "end": 2793, + "loc": { + "start": { + "line": 69, + "column": 47 + }, + "end": { + "line": 69, + "column": 53 + }, + "identifierName": "socket" + }, + "name": "socket" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 2800, + "end": 2872, + "loc": { + "start": { + "line": 70, + "column": 5 + }, + "end": { + "line": 70, + "column": 77 + } + }, + "expression": { + "type": "CallExpression", + "start": 2800, + "end": 2872, + "loc": { + "start": { + "line": 70, + "column": 5 + }, + "end": { + "line": 70, + "column": 77 + } + }, + "callee": { + "type": "Identifier", + "start": 2800, + "end": 2810, + "loc": { + "start": { + "line": 70, + "column": 5 + }, + "end": { + "line": 70, + "column": 15 + }, + "identifierName": "damageTile" + }, + "name": "damageTile" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2811, + "end": 2817, + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 70, + "column": 22 + }, + "identifierName": "tileID" + }, + "name": "tileID" + }, + { + "type": "MemberExpression", + "start": 2819, + "end": 2846, + "loc": { + "start": { + "line": 70, + "column": 24 + }, + "end": { + "line": 70, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 2819, + "end": 2839, + "loc": { + "start": { + "line": 70, + "column": 24 + }, + "end": { + "line": 70, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 2819, + "end": 2832, + "loc": { + "start": { + "line": 70, + "column": 24 + }, + "end": { + "line": 70, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 2819, + "end": 2822, + "loc": { + "start": { + "line": 70, + "column": 24 + }, + "end": { + "line": 70, + "column": 27 + }, + "identifierName": "cmp" + }, + "name": "cmp" + }, + "property": { + "type": "Identifier", + "start": 2823, + "end": 2832, + "loc": { + "start": { + "line": 70, + "column": 28 + }, + "end": { + "line": 70, + "column": 37 + }, + "identifierName": "blueprint" + }, + "name": "blueprint" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2833, + "end": 2839, + "loc": { + "start": { + "line": 70, + "column": 38 + }, + "end": { + "line": 70, + "column": 44 + }, + "identifierName": "params" + }, + "name": "params" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2840, + "end": 2846, + "loc": { + "start": { + "line": 70, + "column": 45 + }, + "end": { + "line": 70, + "column": 51 + }, + "identifierName": "damage" + }, + "name": "damage" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 2848, + "end": 2857, + "loc": { + "start": { + "line": 70, + "column": 53 + }, + "end": { + "line": 70, + "column": 62 + } + }, + "object": { + "type": "Identifier", + "start": 2848, + "end": 2854, + "loc": { + "start": { + "line": 70, + "column": 53 + }, + "end": { + "line": 70, + "column": 59 + }, + "identifierName": "socket" + }, + "name": "socket" + }, + "property": { + "type": "Identifier", + "start": 2855, + "end": 2857, + "loc": { + "start": { + "line": 70, + "column": 60 + }, + "end": { + "line": 70, + "column": 62 + }, + "identifierName": "id" + }, + "name": "id" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 2859, + "end": 2863, + "loc": { + "start": { + "line": 70, + "column": 64 + }, + "end": { + "line": 70, + "column": 68 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "Identifier", + "start": 2865, + "end": 2871, + "loc": { + "start": { + "line": 70, + "column": 70 + }, + "end": { + "line": 70, + "column": 76 + }, + "identifierName": "socket" + }, + "name": "socket" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + } + ], "directives": [] }, "leadingComments": [ { "type": "CommentLine", "value": " Check for compound collisions", - "start": 1408, - "end": 1440, + "start": 1420, + "end": 1452, "loc": { "start": { "line": 32, @@ -6291,8 +7163,8 @@ { "type": "CommentBlock", "value": "*\n * Runs once a frame, checks for collisions between objects and handles them accordingly.\n * Run using\n * @param {*} socket The socket.io instance\n * @param {string} room The name of the room\n * @param {*} thisPlayer The player object\n * @param {*} tempObjects The list of objects to tick. Should only be the objects rendered on the screen of thisPlayer. Contains compounds, atoms, players\n ", - "start": 319, - "end": 716, + "start": 331, + "end": 728, "loc": { "start": { "line": 8, @@ -6307,147 +7179,1799 @@ ], "trailingComments": [] }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Runs once a frame, checks for collisions between objects and handles them accordingly.\n * Run using\n * @param {*} socket The socket.io instance\n * @param {string} room The name of the room\n * @param {*} thisPlayer The player object\n * @param {*} tempObjects The list of objects to tick. Should only be the objects rendered on the screen of thisPlayer. Contains compounds, atoms, players\n ", - "start": 319, - "end": 716, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - } - } - ] + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Runs once a frame, checks for collisions between objects and handles them accordingly.\n * Run using\n * @param {*} socket The socket.io instance\n * @param {string} room The name of the room\n * @param {*} thisPlayer The player object\n * @param {*} tempObjects The list of objects to tick. Should only be the objects rendered on the screen of thisPlayer. Contains compounds, atoms, players\n ", + "start": 331, + "end": 728, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Runs once a frame, checks for collisions between objects and handles them accordingly.\n * Run using\n * @param {*} socket The socket.io instance\n * @param {string} room The name of the room\n * @param {*} thisPlayer The player object\n * @param {*} tempObjects The list of objects to tick. Should only be the objects rendered on the screen of thisPlayer. Contains compounds, atoms, players\n ", + "start": 331, + "end": 728, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Check for collected atoms", + "start": 804, + "end": 832, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 17, + "column": 29 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(atom);", + "start": 1180, + "end": 1201, + "loc": { + "start": { + "line": 24, + "column": 3 + }, + "end": { + "line": 24, + "column": 24 + } + } + }, + { + "type": "CommentLine", + "value": " Check for compound collisions", + "start": 1420, + "end": 1452, + "loc": { + "start": { + "line": 32, + "column": 1 + }, + "end": { + "line": 32, + "column": 33 + } + } + }, + { + "type": "CommentLine", + "value": " Hit player", + "start": 1833, + "end": 1846, + "loc": { + "start": { + "line": 41, + "column": 3 + }, + "end": { + "line": 41, + "column": 16 + } + } + }, + { + "type": "CommentLine", + "value": " Deal splash damage if it is a toxic compound or on fire", + "start": 1964, + "end": 2022, + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 62 + } + } + }, + { + "type": "CommentLine", + "value": " check for tile collisions", + "start": 2389, + "end": 2417, + "loc": { + "start": { + "line": 62, + "column": 9 + }, + "end": { + "line": 62, + "column": 37 + } + } + } + ], + "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": "distanceBetween", + "start": 9, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 24 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 24, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 24 + }, + "end": { + "line": 1, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "GLOBAL", + "start": 26, + "end": 32, + "loc": { + "start": { + "line": 1, + "column": 26 + }, + "end": { + "line": 1, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 32, + "end": 33, + "loc": { + "start": { + "line": 1, + "column": 32 + }, + "end": { + "line": 1, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getCurrTile", + "start": 34, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 34 + }, + "end": { + "line": 1, + "column": 45 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 45, + "end": 46, + "loc": { + "start": { + "line": 1, + "column": 45 + }, + "end": { + "line": 1, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getGlobalLocation", + "start": 47, + "end": 64, + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 64 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 65, + "end": 66, + "loc": { + "start": { + "line": 1, + "column": 65 + }, + "end": { + "line": 1, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 67, + "end": 71, + "loc": { + "start": { + "line": 1, + "column": 67 + }, + "end": { + "line": 1, + "column": 71 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../client/js/global", + "start": 72, + "end": 96, + "loc": { + "start": { + "line": 1, + "column": 72 + }, + "end": { + "line": 1, + "column": 96 + } + } + }, + { + "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": 97, + "end": 103, + "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": 104, + "end": 105, + "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": "deleteObject", + "start": 106, + "end": 118, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 119, + "end": 120, + "loc": { + "start": { + "line": 2, + "column": 22 + }, + "end": { + "line": 2, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 121, + "end": 125, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../server", + "start": 126, + "end": 137, + "loc": { + "start": { + "line": 2, + "column": 29 + }, + "end": { + "line": 2, + "column": 40 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 138, + "end": 144, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 145, + "end": 146, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "damage", + "start": 147, + "end": 153, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 15 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 153, + "end": 154, + "loc": { + "start": { + "line": 3, + "column": 15 + }, + "end": { + "line": 3, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "damageTile", + "start": 155, + "end": 165, + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 27 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 166, + "end": 167, + "loc": { + "start": { + "line": 3, + "column": 28 + }, + "end": { + "line": 3, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 168, + "end": 172, + "loc": { + "start": { + "line": 3, + "column": 30 + }, + "end": { + "line": 3, + "column": 34 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./ondamage", + "start": 173, + "end": 185, + "loc": { + "start": { + "line": 3, + "column": 35 + }, + "end": { + "line": 3, + "column": 47 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 186, + "end": 192, + "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": 193, + "end": 194, + "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": "incrementAtom", + "start": 195, + "end": 208, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 209, + "end": 210, + "loc": { + "start": { + "line": 4, + "column": 23 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 211, + "end": 215, + "loc": { + "start": { + "line": 4, + "column": 25 + }, + "end": { + "line": 4, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./atoms", + "start": 216, + "end": 225, + "loc": { + "start": { + "line": 4, + "column": 30 + }, + "end": { + "line": 4, + "column": 39 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 226, + "end": 232, + "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": 233, + "end": 234, + "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": "TILE_NAMES", + "start": 235, + "end": 245, + "loc": { + "start": { + "line": 5, + "column": 9 + }, + "end": { + "line": 5, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 245, + "end": 246, + "loc": { + "start": { + "line": 5, + "column": 19 + }, + "end": { + "line": 5, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "TILES", + "start": 247, + "end": 252, + "loc": { + "start": { + "line": 5, + "column": 21 + }, + "end": { + "line": 5, + "column": 26 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 253, + "end": 254, + "loc": { + "start": { + "line": 5, + "column": 27 + }, + "end": { + "line": 5, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 255, + "end": 259, + "loc": { + "start": { + "line": 5, + "column": 29 + }, + "end": { + "line": 5, + "column": 33 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../client/js/obj/tiles", + "start": 260, + "end": 287, + "loc": { + "start": { + "line": 5, + "column": 34 + }, + "end": { + "line": 5, + "column": 61 + } + } + }, + { + "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": 288, + "end": 294, + "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": 295, + "end": 296, + "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": "getTileID", + "start": 297, + "end": 306, + "loc": { + "start": { + "line": 6, + "column": 9 + }, + "end": { + "line": 6, + "column": 18 + } + } + }, + { + "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": 6, + "column": 19 + }, + "end": { + "line": 6, + "column": 20 + } + } + }, + { + "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": 6, + "column": 21 + }, + "end": { + "line": 6, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./serverutils", + "start": 314, + "end": 329, + "loc": { + "start": { + "line": 6, + "column": 26 + }, + "end": { + "line": 6, + "column": 41 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Runs once a frame, checks for collisions between objects and handles them accordingly.\n * Run using\n * @param {*} socket The socket.io instance\n * @param {string} room The name of the room\n * @param {*} thisPlayer The player object\n * @param {*} tempObjects The list of objects to tick. Should only be the objects rendered on the screen of thisPlayer. Contains compounds, atoms, players\n ", + "start": 331, + "end": 728, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 729, + "end": 735, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 16, + "column": 6 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 736, + "end": 744, + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 16, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "collisionDetect", + "start": 745, + "end": 760, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 761, + "end": 762, + "loc": { + "start": { + "line": 16, + "column": 32 + }, + "end": { + "line": 16, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "socket", + "start": 762, + "end": 768, + "loc": { + "start": { + "line": 16, + "column": 33 + }, + "end": { + "line": 16, + "column": 39 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 768, + "end": 769, + "loc": { + "start": { + "line": 16, + "column": 39 + }, + "end": { + "line": 16, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "room", + "start": 770, + "end": 774, + "loc": { + "start": { + "line": 16, + "column": 41 + }, + "end": { + "line": 16, + "column": 45 + } } - ], - "directives": [] - }, - "comments": [ + }, { - "type": "CommentBlock", - "value": "*\n * Runs once a frame, checks for collisions between objects and handles them accordingly.\n * Run using\n * @param {*} socket The socket.io instance\n * @param {string} room The name of the room\n * @param {*} thisPlayer The player object\n * @param {*} tempObjects The list of objects to tick. Should only be the objects rendered on the screen of thisPlayer. Contains compounds, atoms, players\n ", - "start": 319, - "end": 716, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 774, + "end": 775, "loc": { "start": { - "line": 8, - "column": 0 + "line": 16, + "column": 45 }, "end": { - "line": 15, - "column": 3 + "line": 16, + "column": 46 } } }, { - "type": "CommentLine", - "value": " Check for collected atoms", - "start": 792, - "end": 820, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisPlayer", + "start": 776, + "end": 786, "loc": { "start": { - "line": 17, - "column": 1 + "line": 16, + "column": 47 }, "end": { - "line": 17, - "column": 29 + "line": 16, + "column": 57 } } }, { - "type": "CommentLine", - "value": " console.log(atom);", - "start": 1168, - "end": 1189, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 786, + "end": 787, "loc": { "start": { - "line": 24, - "column": 3 + "line": 16, + "column": 57 }, "end": { - "line": 24, - "column": 24 + "line": 16, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tempObjects", + "start": 788, + "end": 799, + "loc": { + "start": { + "line": 16, + "column": 59 + }, + "end": { + "line": 16, + "column": 70 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 799, + "end": 800, + "loc": { + "start": { + "line": 16, + "column": 70 + }, + "end": { + "line": 16, + "column": 71 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 801, + "end": 802, + "loc": { + "start": { + "line": 16, + "column": 72 + }, + "end": { + "line": 16, + "column": 73 } } }, { "type": "CommentLine", - "value": " Check for compound collisions", - "start": 1408, - "end": 1440, + "value": " Check for collected atoms", + "start": 804, + "end": 832, "loc": { "start": { - "line": 32, + "line": 17, "column": 1 }, "end": { - "line": 32, - "column": 33 + "line": 17, + "column": 29 } } }, { - "type": "CommentLine", - "value": " Hit player", - "start": 1821, - "end": 1834, + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 834, + "end": 837, "loc": { "start": { - "line": 41, - "column": 3 + "line": 18, + "column": 1 }, "end": { - "line": 41, - "column": 16 + "line": 18, + "column": 4 } } }, { - "type": "CommentLine", - "value": " Deal splash damage if it is a toxic compound or on fire", - "start": 1952, - "end": 2010, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 838, + "end": 839, + "loc": { + "start": { + "line": 18, + "column": 5 + }, + "end": { + "line": 18, + "column": 6 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 839, + "end": 842, "loc": { "start": { - "line": 45, - "column": 4 + "line": 18, + "column": 6 }, "end": { - "line": 45, - "column": 62 - } - } - }, - { - "type": "CommentLine", - "value": " check for tile collisions", - "start": 2377, - "end": 2405, - "loc": { - "start": { - "line": 62, + "line": 18, "column": 9 - }, - "end": { - "line": 62, - "column": 37 } } - } - ], - "tokens": [ + }, { "type": { - "label": "import", - "keyword": "import", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -6455,45 +8979,47 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 0, - "end": 6, + "value": "atom", + "start": 843, + "end": 847, "loc": { "start": { - "line": 1, - "column": 0 + "line": 18, + "column": 10 }, "end": { - "line": 1, - "column": 6 + "line": 18, + "column": 14 } } }, { "type": { - "label": "{", + "label": "in", + "keyword": "in", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 7, + "updateContext": null }, - "start": 7, - "end": 8, + "value": "in", + "start": 848, + "end": 850, "loc": { "start": { - "line": 1, - "column": 7 + "line": 18, + "column": 15 }, "end": { - "line": 1, - "column": 8 + "line": 18, + "column": 17 } } }, @@ -6509,24 +9035,24 @@ "postfix": false, "binop": null }, - "value": "distanceBetween", - "start": 9, - "end": 24, + "value": "tempObjects", + "start": 851, + "end": 862, "loc": { "start": { - "line": 1, - "column": 9 + "line": 18, + "column": 18 }, "end": { - "line": 1, - "column": 24 + "line": 18, + "column": 29 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -6536,16 +9062,16 @@ "binop": null, "updateContext": null }, - "start": 24, - "end": 25, + "start": 862, + "end": 863, "loc": { "start": { - "line": 1, - "column": 24 + "line": 18, + "column": 29 }, "end": { - "line": 1, - "column": 25 + "line": 18, + "column": 30 } } }, @@ -6561,50 +9087,49 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 26, - "end": 32, + "value": "atoms", + "start": 863, + "end": 868, "loc": { "start": { - "line": 1, - "column": 26 + "line": 18, + "column": 30 }, "end": { - "line": 1, - "column": 32 + "line": 18, + "column": 35 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 32, - "end": 33, + "start": 868, + "end": 869, "loc": { "start": { - "line": 1, - "column": 32 + "line": 18, + "column": 35 }, "end": { - "line": 1, - "column": 33 + "line": 18, + "column": 36 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -6613,24 +9138,24 @@ "postfix": false, "binop": null }, - "value": "getCurrTile", - "start": 34, - "end": 45, + "start": 870, + "end": 871, "loc": { "start": { - "line": 1, - "column": 34 + "line": 18, + "column": 37 }, "end": { - "line": 1, - "column": 45 + "line": 18, + "column": 38 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -6640,16 +9165,17 @@ "binop": null, "updateContext": null }, - "start": 45, - "end": 46, + "value": "let", + "start": 874, + "end": 877, "loc": { "start": { - "line": 1, - "column": 45 + "line": 19, + "column": 2 }, "end": { - "line": 1, - "column": 46 + "line": 19, + "column": 5 } } }, @@ -6665,42 +9191,44 @@ "postfix": false, "binop": null }, - "value": "getGlobalLocation", - "start": 47, - "end": 64, + "value": "distance", + "start": 878, + "end": 886, "loc": { "start": { - "line": 1, - "column": 47 + "line": 19, + "column": 6 }, "end": { - "line": 1, - "column": 64 + "line": 19, + "column": 14 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 65, - "end": 66, + "value": "=", + "start": 887, + "end": 888, "loc": { "start": { - "line": 1, - "column": 65 + "line": 19, + "column": 15 }, "end": { - "line": 1, - "column": 66 + "line": 19, + "column": 16 } } }, @@ -6716,51 +9244,73 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 67, - "end": 71, + "value": "distanceBetween", + "start": 889, + "end": 904, "loc": { "start": { - "line": 1, - "column": 67 + "line": 19, + "column": 17 }, "end": { - "line": 1, - "column": 71 + "line": 19, + "column": 32 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "../../client/js/global", - "start": 72, - "end": 96, + "start": 904, + "end": 905, "loc": { "start": { - "line": 1, - "column": 72 + "line": 19, + "column": 32 }, "end": { - "line": 1, - "column": 96 + "line": 19, + "column": 33 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 909, + "end": 910, + "loc": { + "start": { + "line": 20, + "column": 3 + }, + "end": { + "line": 20, + "column": 4 + } + } + }, + { + "type": { + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -6768,45 +9318,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 97, - "end": 103, + "value": "posX", + "start": 911, + "end": 915, "loc": { "start": { - "line": 2, - "column": 0 + "line": 20, + "column": 5 }, "end": { - "line": 2, - "column": 6 + "line": 20, + "column": 9 } } }, { "type": { - "label": "{", + "label": ":", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 104, - "end": 105, + "start": 915, + "end": 916, "loc": { "start": { - "line": 2, - "column": 7 + "line": 20, + "column": 9 }, "end": { - "line": 2, - "column": 8 + "line": 20, + "column": 10 } } }, @@ -6822,23 +9372,23 @@ "postfix": false, "binop": null }, - "value": "deleteObject", - "start": 106, - "end": 118, + "value": "tempObjects", + "start": 917, + "end": 928, "loc": { "start": { - "line": 2, - "column": 9 + "line": 20, + "column": 11 }, "end": { - "line": 2, - "column": 21 + "line": 20, + "column": 22 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -6846,17 +9396,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 119, - "end": 120, + "start": 928, + "end": 929, "loc": { "start": { - "line": 2, + "line": 20, "column": 22 }, "end": { - "line": 2, + "line": 20, "column": 23 } } @@ -6873,24 +9424,24 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 121, - "end": 125, + "value": "atoms", + "start": 929, + "end": 934, "loc": { "start": { - "line": 2, - "column": 24 + "line": 20, + "column": 23 }, "end": { - "line": 2, + "line": 20, "column": 28 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -6900,24 +9451,22 @@ "binop": null, "updateContext": null }, - "value": "../server", - "start": 126, - "end": 137, + "start": 934, + "end": 935, "loc": { "start": { - "line": 2, - "column": 29 + "line": 20, + "column": 28 }, "end": { - "line": 2, - "column": 40 + "line": 20, + "column": 29 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -6925,45 +9474,71 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "value": "atom", + "start": 935, + "end": 939, + "loc": { + "start": { + "line": 20, + "column": 29 + }, + "end": { + "line": 20, + "column": 33 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "value": "import", - "start": 138, - "end": 144, + "start": 939, + "end": 940, "loc": { "start": { - "line": 3, - "column": 0 + "line": 20, + "column": 33 }, "end": { - "line": 3, - "column": 6 + "line": 20, + "column": 34 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 145, - "end": 146, + "start": 940, + "end": 941, "loc": { "start": { - "line": 3, - "column": 7 + "line": 20, + "column": 34 }, "end": { - "line": 3, - "column": 8 + "line": 20, + "column": 35 } } }, @@ -6979,42 +9554,44 @@ "postfix": false, "binop": null }, - "value": "damage", - "start": 147, - "end": 153, + "value": "posX", + "start": 941, + "end": 945, "loc": { "start": { - "line": 3, - "column": 9 + "line": 20, + "column": 35 }, "end": { - "line": 3, - "column": 15 + "line": 20, + "column": 39 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 154, - "end": 155, + "value": "+", + "start": 946, + "end": 947, "loc": { "start": { - "line": 3, - "column": 16 + "line": 20, + "column": 40 }, "end": { - "line": 3, - "column": 17 + "line": 20, + "column": 41 } } }, @@ -7030,25 +9607,25 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 156, - "end": 160, + "value": "GLOBAL", + "start": 948, + "end": 954, "loc": { "start": { - "line": 3, - "column": 18 + "line": 20, + "column": 42 }, "end": { - "line": 3, - "column": 22 + "line": 20, + "column": 48 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7057,24 +9634,22 @@ "binop": null, "updateContext": null }, - "value": "./ondamage", - "start": 161, - "end": 173, + "start": 954, + "end": 955, "loc": { "start": { - "line": 3, - "column": 23 + "line": 20, + "column": 48 }, "end": { - "line": 3, - "column": 35 + "line": 20, + "column": 49 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -7082,45 +9657,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 174, - "end": 180, + "value": "ATOM_RADIUS", + "start": 955, + "end": 966, "loc": { "start": { - "line": 4, - "column": 0 + "line": 20, + "column": 49 }, "end": { - "line": 4, - "column": 6 + "line": 20, + "column": 60 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 181, - "end": 182, + "start": 966, + "end": 967, "loc": { "start": { - "line": 4, - "column": 7 + "line": 20, + "column": 60 }, "end": { - "line": 4, - "column": 8 + "line": 20, + "column": 61 } } }, @@ -7136,42 +9711,43 @@ "postfix": false, "binop": null }, - "value": "incrementAtom", - "start": 183, - "end": 196, + "value": "posY", + "start": 968, + "end": 972, "loc": { "start": { - "line": 4, - "column": 9 + "line": 20, + "column": 62 }, "end": { - "line": 4, - "column": 22 + "line": 20, + "column": 66 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 197, - "end": 198, + "start": 972, + "end": 973, "loc": { "start": { - "line": 4, - "column": 23 + "line": 20, + "column": 66 }, "end": { - "line": 4, - "column": 24 + "line": 20, + "column": 67 } } }, @@ -7187,25 +9763,25 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 199, - "end": 203, + "value": "tempObjects", + "start": 974, + "end": 985, "loc": { "start": { - "line": 4, - "column": 25 + "line": 20, + "column": 68 }, "end": { - "line": 4, - "column": 29 + "line": 20, + "column": 79 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7214,24 +9790,22 @@ "binop": null, "updateContext": null }, - "value": "./atoms", - "start": 204, - "end": 213, + "start": 985, + "end": 986, "loc": { "start": { - "line": 4, - "column": 30 + "line": 20, + "column": 79 }, "end": { - "line": 4, - "column": 39 + "line": 20, + "column": 80 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -7239,26 +9813,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 214, - "end": 220, + "value": "atoms", + "start": 986, + "end": 991, "loc": { "start": { - "line": 5, - "column": 0 + "line": 20, + "column": 80 }, "end": { - "line": 5, - "column": 6 + "line": 20, + "column": 85 } } }, { "type": { - "label": "{", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -7266,18 +9839,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 221, - "end": 222, + "start": 991, + "end": 992, "loc": { "start": { - "line": 5, - "column": 7 + "line": 20, + "column": 85 }, "end": { - "line": 5, - "column": 8 + "line": 20, + "column": 86 } } }, @@ -7293,24 +9867,24 @@ "postfix": false, "binop": null }, - "value": "TILE_NAMES", - "start": 223, - "end": 233, + "value": "atom", + "start": 992, + "end": 996, "loc": { "start": { - "line": 5, - "column": 9 + "line": 20, + "column": 86 }, "end": { - "line": 5, - "column": 19 + "line": 20, + "column": 90 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -7320,50 +9894,50 @@ "binop": null, "updateContext": null }, - "start": 233, - "end": 234, + "start": 996, + "end": 997, "loc": { "start": { - "line": 5, - "column": 19 + "line": 20, + "column": 90 }, "end": { - "line": 5, - "column": 20 + "line": 20, + "column": 91 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "TILES", - "start": 235, - "end": 240, + "start": 997, + "end": 998, "loc": { "start": { - "line": 5, - "column": 21 + "line": 20, + "column": 91 }, "end": { - "line": 5, - "column": 26 + "line": 20, + "column": 92 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7371,48 +9945,50 @@ "postfix": false, "binop": null }, - "start": 241, - "end": 242, + "value": "posY", + "start": 998, + "end": 1002, "loc": { "start": { - "line": 5, - "column": 27 + "line": 20, + "column": 92 }, "end": { - "line": 5, - "column": 28 + "line": 20, + "column": 96 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "+/-", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "value": "from", - "start": 243, - "end": 247, + "value": "-", + "start": 1003, + "end": 1004, "loc": { "start": { - "line": 5, - "column": 29 + "line": 20, + "column": 97 }, "end": { - "line": 5, - "column": 33 + "line": 20, + "column": 98 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -7420,29 +9996,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "../../client/js/obj/tiles", - "start": 248, - "end": 275, + "value": "GLOBAL", + "start": 1005, + "end": 1011, "loc": { "start": { - "line": 5, - "column": 34 + "line": 20, + "column": 99 }, "end": { - "line": 5, - "column": 61 + "line": 20, + "column": 105 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7451,24 +10025,23 @@ "binop": null, "updateContext": null }, - "value": "import", - "start": 276, - "end": 282, + "start": 1011, + "end": 1012, "loc": { "start": { - "line": 6, - "column": 0 + "line": 20, + "column": 105 }, "end": { - "line": 6, - "column": 6 + "line": 20, + "column": 106 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -7477,24 +10050,25 @@ "postfix": false, "binop": null }, - "start": 283, - "end": 284, + "value": "ATOM_RADIUS", + "start": 1012, + "end": 1023, "loc": { "start": { - "line": 6, - "column": 7 + "line": 20, + "column": 106 }, "end": { - "line": 6, - "column": 8 + "line": 20, + "column": 117 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7502,49 +10076,49 @@ "postfix": false, "binop": null }, - "value": "getTileID", - "start": 285, - "end": 294, + "start": 1024, + "end": 1025, "loc": { "start": { - "line": 6, - "column": 9 + "line": 20, + "column": 118 }, "end": { - "line": 6, - "column": 18 + "line": 20, + "column": 119 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 295, - "end": 296, + "start": 1025, + "end": 1026, "loc": { "start": { - "line": 6, - "column": 19 + "line": 20, + "column": 119 }, "end": { - "line": 6, - "column": 20 + "line": 20, + "column": 120 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -7553,23 +10127,22 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 297, - "end": 301, + "start": 1030, + "end": 1031, "loc": { "start": { - "line": 6, - "column": 21 + "line": 21, + "column": 3 }, "end": { - "line": 6, - "column": 25 + "line": 21, + "column": 4 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -7577,91 +10150,97 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "./serverutils", - "start": 302, - "end": 317, + "value": "posX", + "start": 1032, + "end": 1036, "loc": { "start": { - "line": 6, - "column": 26 + "line": 21, + "column": 5 }, "end": { - "line": 6, - "column": 41 + "line": 21, + "column": 9 } } }, { - "type": "CommentBlock", - "value": "*\n * Runs once a frame, checks for collisions between objects and handles them accordingly.\n * Run using\n * @param {*} socket The socket.io instance\n * @param {string} room The name of the room\n * @param {*} thisPlayer The player object\n * @param {*} tempObjects The list of objects to tick. Should only be the objects rendered on the screen of thisPlayer. Contains compounds, atoms, players\n ", - "start": 319, - "end": 716, + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1036, + "end": 1037, "loc": { "start": { - "line": 8, - "column": 0 + "line": 21, + "column": 9 }, "end": { - "line": 15, - "column": 3 + "line": 21, + "column": 10 } } }, { "type": { - "label": "export", - "keyword": "export", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "export", - "start": 717, - "end": 723, + "value": "thisPlayer", + "start": 1038, + "end": 1048, "loc": { "start": { - "line": 16, - "column": 0 + "line": 21, + "column": 11 }, "end": { - "line": 16, - "column": 6 + "line": 21, + "column": 21 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "function", - "start": 724, - "end": 732, + "start": 1048, + "end": 1049, "loc": { "start": { - "line": 16, - "column": 7 + "line": 21, + "column": 21 }, "end": { - "line": 16, - "column": 15 + "line": 21, + "column": 22 } } }, @@ -7677,42 +10256,44 @@ "postfix": false, "binop": null }, - "value": "collisionDetect", - "start": 733, - "end": 748, + "value": "posX", + "start": 1049, + "end": 1053, "loc": { "start": { - "line": 16, - "column": 16 + "line": 21, + "column": 22 }, "end": { - "line": 16, - "column": 31 + "line": 21, + "column": 26 } } }, { "type": { - "label": "(", + "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 749, - "end": 750, + "value": "+", + "start": 1054, + "end": 1055, "loc": { "start": { - "line": 16, - "column": 32 + "line": 21, + "column": 27 }, "end": { - "line": 16, - "column": 33 + "line": 21, + "column": 28 } } }, @@ -7728,24 +10309,24 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 750, - "end": 756, + "value": "GLOBAL", + "start": 1056, + "end": 1062, "loc": { "start": { - "line": 16, - "column": 33 + "line": 21, + "column": 29 }, "end": { - "line": 16, - "column": 39 + "line": 21, + "column": 35 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -7755,16 +10336,16 @@ "binop": null, "updateContext": null }, - "start": 756, - "end": 757, + "start": 1062, + "end": 1063, "loc": { "start": { - "line": 16, - "column": 39 + "line": 21, + "column": 35 }, "end": { - "line": 16, - "column": 40 + "line": 21, + "column": 36 } } }, @@ -7780,17 +10361,17 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 758, - "end": 762, + "value": "PLAYER_RADIUS", + "start": 1063, + "end": 1076, "loc": { "start": { - "line": 16, - "column": 41 + "line": 21, + "column": 36 }, "end": { - "line": 16, - "column": 45 + "line": 21, + "column": 49 } } }, @@ -7807,16 +10388,16 @@ "binop": null, "updateContext": null }, - "start": 762, - "end": 763, + "start": 1076, + "end": 1077, "loc": { "start": { - "line": 16, - "column": 45 + "line": 21, + "column": 49 }, "end": { - "line": 16, - "column": 46 + "line": 21, + "column": 50 } } }, @@ -7832,23 +10413,23 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 764, - "end": 774, + "value": "posY", + "start": 1078, + "end": 1082, "loc": { "start": { - "line": 16, - "column": 47 + "line": 21, + "column": 51 }, "end": { - "line": 16, - "column": 57 + "line": 21, + "column": 55 } } }, { "type": { - "label": ",", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -7859,16 +10440,16 @@ "binop": null, "updateContext": null }, - "start": 774, - "end": 775, + "start": 1082, + "end": 1083, "loc": { "start": { - "line": 16, - "column": 57 + "line": 21, + "column": 55 }, "end": { - "line": 16, - "column": 58 + "line": 21, + "column": 56 } } }, @@ -7884,23 +10465,23 @@ "postfix": false, "binop": null }, - "value": "tempObjects", - "start": 776, - "end": 787, + "value": "thisPlayer", + "start": 1084, + "end": 1094, "loc": { "start": { - "line": 16, - "column": 59 + "line": 21, + "column": 57 }, "end": { - "line": 16, - "column": 70 + "line": 21, + "column": 67 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -7908,25 +10489,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 787, - "end": 788, + "start": 1094, + "end": 1095, "loc": { "start": { - "line": 16, - "column": 70 + "line": 21, + "column": 67 }, "end": { - "line": 16, - "column": 71 + "line": 21, + "column": 68 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -7935,67 +10517,51 @@ "postfix": false, "binop": null }, - "start": 789, - "end": 790, - "loc": { - "start": { - "line": 16, - "column": 72 - }, - "end": { - "line": 16, - "column": 73 - } - } - }, - { - "type": "CommentLine", - "value": " Check for collected atoms", - "start": 792, - "end": 820, + "value": "posY", + "start": 1095, + "end": 1099, "loc": { "start": { - "line": 17, - "column": 1 + "line": 21, + "column": 68 }, "end": { - "line": 17, - "column": 29 + "line": 21, + "column": 72 } } }, { "type": { - "label": "for", - "keyword": "for", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "value": "for", - "start": 822, - "end": 825, + "value": "-", + "start": 1100, + "end": 1101, "loc": { "start": { - "line": 18, - "column": 1 + "line": 21, + "column": 73 }, "end": { - "line": 18, - "column": 4 + "line": 21, + "column": 74 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -8004,23 +10570,23 @@ "postfix": false, "binop": null }, - "start": 826, - "end": 827, + "value": "GLOBAL", + "start": 1102, + "end": 1108, "loc": { "start": { - "line": 18, - "column": 5 + "line": 21, + "column": 75 }, "end": { - "line": 18, - "column": 6 + "line": 21, + "column": 81 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -8031,17 +10597,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 827, - "end": 830, + "start": 1108, + "end": 1109, "loc": { "start": { - "line": 18, - "column": 6 + "line": 21, + "column": 81 }, "end": { - "line": 18, - "column": 9 + "line": 21, + "column": 82 } } }, @@ -8057,53 +10622,25 @@ "postfix": false, "binop": null }, - "value": "atom", - "start": 831, - "end": 835, - "loc": { - "start": { - "line": 18, - "column": 10 - }, - "end": { - "line": 18, - "column": 14 - } - } - }, - { - "type": { - "label": "in", - "keyword": "in", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "in", - "start": 836, - "end": 838, + "value": "PLAYER_RADIUS", + "start": 1109, + "end": 1122, "loc": { "start": { - "line": 18, - "column": 15 + "line": 21, + "column": 82 }, "end": { - "line": 18, - "column": 17 + "line": 21, + "column": 95 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -8111,23 +10648,22 @@ "postfix": false, "binop": null }, - "value": "tempObjects", - "start": 839, - "end": 850, + "start": 1123, + "end": 1124, "loc": { "start": { - "line": 18, - "column": 18 + "line": 21, + "column": 96 }, "end": { - "line": 18, - "column": 29 + "line": 21, + "column": 97 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -8135,53 +10671,54 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 850, - "end": 851, + "start": 1124, + "end": 1125, "loc": { "start": { - "line": 18, - "column": 29 + "line": 21, + "column": 97 }, "end": { - "line": 18, - "column": 30 + "line": 21, + "column": 98 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "atoms", - "start": 851, - "end": 856, + "value": "if", + "start": 1129, + "end": 1131, "loc": { "start": { - "line": 18, - "column": 30 + "line": 23, + "column": 2 }, "end": { - "line": 18, - "column": 35 + "line": 23, + "column": 4 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -8189,23 +10726,23 @@ "postfix": false, "binop": null }, - "start": 856, - "end": 857, + "start": 1132, + "end": 1133, "loc": { "start": { - "line": 18, - "column": 35 + "line": 23, + "column": 5 }, "end": { - "line": 18, - "column": 36 + "line": 23, + "column": 6 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -8214,44 +10751,44 @@ "postfix": false, "binop": null }, - "start": 858, - "end": 859, + "value": "distance", + "start": 1133, + "end": 1141, "loc": { "start": { - "line": 18, - "column": 37 + "line": 23, + "column": 6 }, "end": { - "line": 18, - "column": 38 + "line": 23, + "column": 14 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": "", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "value": "let", - "start": 862, - "end": 865, + "value": "<", + "start": 1142, + "end": 1143, "loc": { "start": { - "line": 19, - "column": 2 + "line": 23, + "column": 15 }, "end": { - "line": 19, - "column": 5 + "line": 23, + "column": 16 } } }, @@ -8267,44 +10804,43 @@ "postfix": false, "binop": null }, - "value": "distance", - "start": 866, - "end": 874, + "value": "GLOBAL", + "start": 1144, + "end": 1150, "loc": { "start": { - "line": 19, - "column": 6 + "line": 23, + "column": 17 }, "end": { - "line": 19, - "column": 14 + "line": 23, + "column": 23 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 875, - "end": 876, + "start": 1150, + "end": 1151, "loc": { "start": { - "line": 19, - "column": 15 + "line": 23, + "column": 23 }, "end": { - "line": 19, - "column": 16 + "line": 23, + "column": 24 } } }, @@ -8320,25 +10856,25 @@ "postfix": false, "binop": null }, - "value": "distanceBetween", - "start": 877, - "end": 892, + "value": "ATOM_COLLECT_THRESHOLD", + "start": 1151, + "end": 1173, "loc": { "start": { - "line": 19, - "column": 17 + "line": 23, + "column": 24 }, "end": { - "line": 19, - "column": 32 + "line": 23, + "column": 46 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -8346,16 +10882,16 @@ "postfix": false, "binop": null }, - "start": 892, - "end": 893, + "start": 1173, + "end": 1174, "loc": { "start": { - "line": 19, - "column": 32 + "line": 23, + "column": 46 }, "end": { - "line": 19, - "column": 33 + "line": 23, + "column": 47 } } }, @@ -8371,16 +10907,32 @@ "postfix": false, "binop": null }, - "start": 897, - "end": 898, + "start": 1175, + "end": 1176, "loc": { "start": { - "line": 20, + "line": 23, + "column": 48 + }, + "end": { + "line": 23, + "column": 49 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(atom);", + "start": 1180, + "end": 1201, + "loc": { + "start": { + "line": 24, "column": 3 }, "end": { - "line": 20, - "column": 4 + "line": 24, + "column": 24 } } }, @@ -8396,43 +10948,42 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 899, - "end": 903, + "value": "incrementAtom", + "start": 1205, + "end": 1218, "loc": { "start": { - "line": 20, - "column": 5 + "line": 25, + "column": 3 }, "end": { - "line": 20, - "column": 9 + "line": 25, + "column": 16 } } }, { "type": { - "label": ":", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 903, - "end": 904, + "start": 1218, + "end": 1219, "loc": { "start": { - "line": 20, - "column": 9 + "line": 25, + "column": 16 }, "end": { - "line": 20, - "column": 10 + "line": 25, + "column": 17 } } }, @@ -8448,17 +10999,17 @@ "postfix": false, "binop": null }, - "value": "tempObjects", - "start": 905, - "end": 916, + "value": "thisPlayer", + "start": 1219, + "end": 1229, "loc": { "start": { - "line": 20, - "column": 11 + "line": 25, + "column": 17 }, "end": { - "line": 20, - "column": 22 + "line": 25, + "column": 27 } } }, @@ -8475,16 +11026,16 @@ "binop": null, "updateContext": null }, - "start": 916, - "end": 917, + "start": 1229, + "end": 1230, "loc": { "start": { - "line": 20, - "column": 22 + "line": 25, + "column": 27 }, "end": { - "line": 20, - "column": 23 + "line": 25, + "column": 28 } } }, @@ -8500,25 +11051,25 @@ "postfix": false, "binop": null }, - "value": "atoms", - "start": 917, - "end": 922, + "value": "id", + "start": 1230, + "end": 1232, "loc": { "start": { - "line": 20, - "column": 23 + "line": 25, + "column": 28 }, "end": { - "line": 20, - "column": 28 + "line": 25, + "column": 30 } } }, { "type": { - "label": "[", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -8527,75 +11078,49 @@ "binop": null, "updateContext": null }, - "start": 922, - "end": 923, - "loc": { - "start": { - "line": 20, - "column": 28 - }, - "end": { - "line": 20, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "atom", - "start": 923, - "end": 927, + "start": 1232, + "end": 1233, "loc": { "start": { - "line": 20, - "column": 29 + "line": 25, + "column": 30 }, "end": { - "line": 20, - "column": 33 + "line": 25, + "column": 31 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 927, - "end": 928, + "value": "room", + "start": 1234, + "end": 1238, "loc": { "start": { - "line": 20, - "column": 33 + "line": 25, + "column": 32 }, "end": { - "line": 20, - "column": 34 + "line": 25, + "column": 36 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -8605,16 +11130,16 @@ "binop": null, "updateContext": null }, - "start": 928, - "end": 929, + "start": 1238, + "end": 1239, "loc": { "start": { - "line": 20, - "column": 34 + "line": 25, + "column": 36 }, "end": { - "line": 20, - "column": 35 + "line": 25, + "column": 37 } } }, @@ -8630,44 +11155,43 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 929, - "end": 933, + "value": "tempObjects", + "start": 1240, + "end": 1251, "loc": { "start": { - "line": 20, - "column": 35 + "line": 25, + "column": 38 }, "end": { - "line": 20, - "column": 39 + "line": 25, + "column": 49 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 934, - "end": 935, + "start": 1251, + "end": 1252, "loc": { "start": { - "line": 20, - "column": 40 + "line": 25, + "column": 49 }, "end": { - "line": 20, - "column": 41 + "line": 25, + "column": 50 } } }, @@ -8683,25 +11207,25 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 936, - "end": 942, + "value": "atoms", + "start": 1252, + "end": 1257, "loc": { "start": { - "line": 20, - "column": 42 + "line": 25, + "column": 50 }, "end": { - "line": 20, - "column": 48 + "line": 25, + "column": 55 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -8710,16 +11234,16 @@ "binop": null, "updateContext": null }, - "start": 942, - "end": 943, + "start": 1257, + "end": 1258, "loc": { "start": { - "line": 20, - "column": 48 + "line": 25, + "column": 55 }, "end": { - "line": 20, - "column": 49 + "line": 25, + "column": 56 } } }, @@ -8735,24 +11259,24 @@ "postfix": false, "binop": null }, - "value": "ATOM_RADIUS", - "start": 943, - "end": 954, + "value": "atom", + "start": 1258, + "end": 1262, "loc": { "start": { - "line": 20, - "column": 49 + "line": 25, + "column": 56 }, "end": { - "line": 20, + "line": 25, "column": 60 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -8762,16 +11286,42 @@ "binop": null, "updateContext": null }, - "start": 954, - "end": 955, + "start": 1262, + "end": 1263, "loc": { "start": { - "line": 20, + "line": 25, "column": 60 }, "end": { - "line": 20, + "line": 25, + "column": 61 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1263, + "end": 1264, + "loc": { + "start": { + "line": 25, "column": 61 + }, + "end": { + "line": 25, + "column": 62 } } }, @@ -8787,23 +11337,23 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 956, - "end": 960, + "value": "typeID", + "start": 1264, + "end": 1270, "loc": { "start": { - "line": 20, + "line": 25, "column": 62 }, "end": { - "line": 20, - "column": 66 + "line": 25, + "column": 68 } } }, { "type": { - "label": ":", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -8814,22 +11364,22 @@ "binop": null, "updateContext": null }, - "start": 960, - "end": 961, + "start": 1270, + "end": 1271, "loc": { "start": { - "line": 20, - "column": 66 + "line": 25, + "column": 68 }, "end": { - "line": 20, - "column": 67 + "line": 25, + "column": 69 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -8837,25 +11387,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "tempObjects", - "start": 962, - "end": 973, + "value": 1, + "start": 1272, + "end": 1273, "loc": { "start": { - "line": 20, - "column": 68 + "line": 25, + "column": 70 }, "end": { - "line": 20, - "column": 79 + "line": 25, + "column": 71 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -8863,19 +11414,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 973, - "end": 974, + "start": 1273, + "end": 1274, "loc": { "start": { - "line": 20, - "column": 79 + "line": 25, + "column": 71 }, "end": { - "line": 20, - "column": 80 + "line": 25, + "column": 72 } } }, @@ -8891,25 +11441,25 @@ "postfix": false, "binop": null }, - "value": "atoms", - "start": 974, - "end": 979, + "value": "socket", + "start": 1278, + "end": 1284, "loc": { "start": { - "line": 20, - "column": 80 + "line": 26, + "column": 3 }, "end": { - "line": 20, - "column": 85 + "line": 26, + "column": 9 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -8918,16 +11468,16 @@ "binop": null, "updateContext": null }, - "start": 979, - "end": 980, + "start": 1284, + "end": 1285, "loc": { "start": { - "line": 20, - "column": 85 + "line": 26, + "column": 9 }, "end": { - "line": 20, - "column": 86 + "line": 26, + "column": 10 } } }, @@ -8943,77 +11493,76 @@ "postfix": false, "binop": null }, - "value": "atom", - "start": 980, - "end": 984, + "value": "to", + "start": 1285, + "end": 1287, "loc": { "start": { - "line": 20, - "column": 86 + "line": 26, + "column": 10 }, "end": { - "line": 20, - "column": 90 + "line": 26, + "column": 12 } } }, { "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 984, - "end": 985, + "start": 1287, + "end": 1288, "loc": { "start": { - "line": 20, - "column": 90 + "line": 26, + "column": 12 }, "end": { - "line": 20, - "column": 91 + "line": 26, + "column": 13 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 985, - "end": 986, + "value": "room", + "start": 1288, + "end": 1292, "loc": { "start": { - "line": 20, - "column": 91 + "line": 26, + "column": 13 }, "end": { - "line": 20, - "column": 92 + "line": 26, + "column": 17 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9021,44 +11570,42 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 986, - "end": 990, + "start": 1292, + "end": 1293, "loc": { "start": { - "line": 20, - "column": 92 + "line": 26, + "column": 17 }, "end": { - "line": 20, - "column": 96 + "line": 26, + "column": 18 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "-", - "start": 991, - "end": 992, + "start": 1293, + "end": 1294, "loc": { "start": { - "line": 20, - "column": 97 + "line": 26, + "column": 18 }, "end": { - "line": 20, - "column": 98 + "line": 26, + "column": 19 } } }, @@ -9074,17 +11621,17 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 993, - "end": 999, + "value": "broadcast", + "start": 1294, + "end": 1303, "loc": { "start": { - "line": 20, - "column": 99 + "line": 26, + "column": 19 }, "end": { - "line": 20, - "column": 105 + "line": 26, + "column": 28 } } }, @@ -9101,16 +11648,16 @@ "binop": null, "updateContext": null }, - "start": 999, - "end": 1000, + "start": 1303, + "end": 1304, "loc": { "start": { - "line": 20, - "column": 105 + "line": 26, + "column": 28 }, "end": { - "line": 20, - "column": 106 + "line": 26, + "column": 29 } } }, @@ -9126,25 +11673,25 @@ "postfix": false, "binop": null }, - "value": "ATOM_RADIUS", - "start": 1000, - "end": 1011, + "value": "emit", + "start": 1304, + "end": 1308, "loc": { "start": { - "line": 20, - "column": 106 + "line": 26, + "column": 29 }, "end": { - "line": 20, - "column": 117 + "line": 26, + "column": 33 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9152,16 +11699,43 @@ "postfix": false, "binop": null }, - "start": 1012, - "end": 1013, + "start": 1308, + "end": 1309, "loc": { "start": { - "line": 20, - "column": 118 + "line": 26, + "column": 33 }, "end": { - "line": 20, - "column": 119 + "line": 26, + "column": 34 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "serverSendObjectRemoval", + "start": 1309, + "end": 1334, + "loc": { + "start": { + "line": 26, + "column": 34 + }, + "end": { + "line": 26, + "column": 59 } } }, @@ -9178,16 +11752,16 @@ "binop": null, "updateContext": null }, - "start": 1013, - "end": 1014, + "start": 1334, + "end": 1335, "loc": { "start": { - "line": 20, - "column": 119 + "line": 26, + "column": 59 }, "end": { - "line": 20, - "column": 120 + "line": 26, + "column": 60 } } }, @@ -9203,16 +11777,16 @@ "postfix": false, "binop": null }, - "start": 1018, - "end": 1019, + "start": 1336, + "end": 1337, "loc": { "start": { - "line": 21, - "column": 3 + "line": 26, + "column": 61 }, "end": { - "line": 21, - "column": 4 + "line": 26, + "column": 62 } } }, @@ -9228,17 +11802,17 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 1020, - "end": 1024, + "value": "id", + "start": 1338, + "end": 1340, "loc": { "start": { - "line": 21, - "column": 5 + "line": 26, + "column": 63 }, "end": { - "line": 21, - "column": 9 + "line": 26, + "column": 65 } } }, @@ -9255,16 +11829,16 @@ "binop": null, "updateContext": null }, - "start": 1024, - "end": 1025, + "start": 1340, + "end": 1341, "loc": { "start": { - "line": 21, - "column": 9 + "line": 26, + "column": 65 }, "end": { - "line": 21, - "column": 10 + "line": 26, + "column": 66 } } }, @@ -9280,24 +11854,24 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1026, - "end": 1036, + "value": "atom", + "start": 1342, + "end": 1346, "loc": { "start": { - "line": 21, - "column": 11 + "line": 26, + "column": 67 }, "end": { - "line": 21, - "column": 21 + "line": 26, + "column": 71 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -9307,16 +11881,16 @@ "binop": null, "updateContext": null }, - "start": 1036, - "end": 1037, + "start": 1346, + "end": 1347, "loc": { "start": { - "line": 21, - "column": 21 + "line": 26, + "column": 71 }, "end": { - "line": 21, - "column": 22 + "line": 26, + "column": 72 } } }, @@ -9332,50 +11906,49 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 1037, - "end": 1041, + "value": "type", + "start": 1348, + "end": 1352, "loc": { "start": { - "line": 21, - "column": 22 + "line": 26, + "column": 73 }, "end": { - "line": 21, - "column": 26 + "line": 26, + "column": 77 } } }, { "type": { - "label": "+/-", + "label": ":", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 1042, - "end": 1043, + "start": 1352, + "end": 1353, "loc": { "start": { - "line": 21, - "column": 27 + "line": 26, + "column": 77 }, "end": { - "line": 21, - "column": 28 + "line": 26, + "column": 78 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -9383,25 +11956,51 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "atoms", + "start": 1354, + "end": 1361, + "loc": { + "start": { + "line": 26, + "column": 79 + }, + "end": { + "line": 26, + "column": 86 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 1044, - "end": 1050, + "start": 1362, + "end": 1363, "loc": { "start": { - "line": 21, - "column": 29 + "line": 26, + "column": 87 }, "end": { - "line": 21, - "column": 35 + "line": 26, + "column": 88 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -9409,19 +12008,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1050, - "end": 1051, + "start": 1363, + "end": 1364, "loc": { "start": { - "line": 21, - "column": 35 + "line": 26, + "column": 88 }, "end": { - "line": 21, - "column": 36 + "line": 26, + "column": 89 } } }, @@ -9437,49 +12035,48 @@ "postfix": false, "binop": null }, - "value": "PLAYER_RADIUS", - "start": 1051, - "end": 1064, + "value": "deleteObject", + "start": 1369, + "end": 1381, "loc": { "start": { - "line": 21, - "column": 36 + "line": 28, + "column": 3 }, "end": { - "line": 21, - "column": 49 + "line": 28, + "column": 15 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1064, - "end": 1065, + "start": 1381, + "end": 1382, "loc": { "start": { - "line": 21, - "column": 49 + "line": 28, + "column": 15 }, "end": { - "line": 21, - "column": 50 + "line": 28, + "column": 16 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -9487,25 +12084,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "posY", - "start": 1066, - "end": 1070, + "value": "atoms", + "start": 1382, + "end": 1389, "loc": { "start": { - "line": 21, - "column": 51 + "line": 28, + "column": 16 }, "end": { - "line": 21, - "column": 55 + "line": 28, + "column": 23 } } }, { "type": { - "label": ":", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -9516,16 +12114,16 @@ "binop": null, "updateContext": null }, - "start": 1070, - "end": 1071, + "start": 1389, + "end": 1390, "loc": { "start": { - "line": 21, - "column": 55 + "line": 28, + "column": 23 }, "end": { - "line": 21, - "column": 56 + "line": 28, + "column": 24 } } }, @@ -9541,24 +12139,24 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1072, - "end": 1082, + "value": "atom", + "start": 1391, + "end": 1395, "loc": { "start": { - "line": 21, - "column": 57 + "line": 28, + "column": 25 }, "end": { - "line": 21, - "column": 67 + "line": 28, + "column": 29 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -9568,16 +12166,16 @@ "binop": null, "updateContext": null }, - "start": 1082, - "end": 1083, + "start": 1395, + "end": 1396, "loc": { "start": { - "line": 21, - "column": 67 + "line": 28, + "column": 29 }, "end": { - "line": 21, - "column": 68 + "line": 28, + "column": 30 } } }, @@ -9593,44 +12191,43 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 1083, - "end": 1087, + "value": "room", + "start": 1397, + "end": 1401, "loc": { "start": { - "line": 21, - "column": 68 + "line": 28, + "column": 31 }, "end": { - "line": 21, - "column": 72 + "line": 28, + "column": 35 } } }, { "type": { - "label": "+/-", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "-", - "start": 1088, - "end": 1089, + "start": 1401, + "end": 1402, "loc": { "start": { - "line": 21, - "column": 73 + "line": 28, + "column": 35 }, "end": { - "line": 21, - "column": 74 + "line": 28, + "column": 36 } } }, @@ -9646,23 +12243,23 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 1090, - "end": 1096, + "value": "socket", + "start": 1403, + "end": 1409, "loc": { "start": { - "line": 21, - "column": 75 + "line": 28, + "column": 37 }, "end": { - "line": 21, - "column": 81 + "line": 28, + "column": 43 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -9670,27 +12267,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1096, - "end": 1097, + "start": 1409, + "end": 1410, "loc": { "start": { - "line": 21, - "column": 81 + "line": 28, + "column": 43 }, "end": { - "line": 21, - "column": 82 + "line": 28, + "column": 44 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9698,17 +12294,16 @@ "postfix": false, "binop": null }, - "value": "PLAYER_RADIUS", - "start": 1097, - "end": 1110, + "start": 1413, + "end": 1414, "loc": { "start": { - "line": 21, - "column": 82 + "line": 29, + "column": 2 }, "end": { - "line": 21, - "column": 95 + "line": 29, + "column": 3 } } }, @@ -9724,68 +12319,59 @@ "postfix": false, "binop": null }, - "start": 1111, - "end": 1112, + "start": 1416, + "end": 1417, "loc": { "start": { - "line": 21, - "column": 96 + "line": 30, + "column": 1 }, "end": { - "line": 21, - "column": 97 + "line": 30, + "column": 2 } } }, { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1112, - "end": 1113, + "type": "CommentLine", + "value": " Check for compound collisions", + "start": 1420, + "end": 1452, "loc": { "start": { - "line": 21, - "column": 97 + "line": 32, + "column": 1 }, "end": { - "line": 21, - "column": 98 + "line": 32, + "column": 33 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "for", + "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, - "isLoop": false, + "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "if", - "start": 1117, - "end": 1119, + "value": "for", + "start": 1454, + "end": 1457, "loc": { "start": { - "line": 23, - "column": 2 + "line": 33, + "column": 1 }, "end": { - "line": 23, + "line": 33, "column": 4 } } @@ -9802,16 +12388,44 @@ "postfix": false, "binop": null }, - "start": 1120, - "end": 1121, + "start": 1458, + "end": 1459, "loc": { "start": { - "line": 23, + "line": 33, "column": 5 }, "end": { - "line": 23, + "line": 33, + "column": 6 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1459, + "end": 1462, + "loc": { + "start": { + "line": 33, "column": 6 + }, + "end": { + "line": 33, + "column": 9 } } }, @@ -9827,23 +12441,24 @@ "postfix": false, "binop": null }, - "value": "distance", - "start": 1121, - "end": 1129, + "value": "compound", + "start": 1463, + "end": 1471, "loc": { "start": { - "line": 23, - "column": 6 + "line": 33, + "column": 10 }, "end": { - "line": 23, - "column": 14 + "line": 33, + "column": 18 } } }, { "type": { - "label": "", + "label": "in", + "keyword": "in", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -9854,17 +12469,17 @@ "binop": 7, "updateContext": null }, - "value": "<", - "start": 1130, - "end": 1131, + "value": "in", + "start": 1472, + "end": 1474, "loc": { "start": { - "line": 23, - "column": 15 + "line": 33, + "column": 19 }, "end": { - "line": 23, - "column": 16 + "line": 33, + "column": 21 } } }, @@ -9880,17 +12495,17 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 1132, - "end": 1138, + "value": "tempObjects", + "start": 1475, + "end": 1486, "loc": { "start": { - "line": 23, - "column": 17 + "line": 33, + "column": 22 }, "end": { - "line": 23, - "column": 23 + "line": 33, + "column": 33 } } }, @@ -9907,16 +12522,16 @@ "binop": null, "updateContext": null }, - "start": 1138, - "end": 1139, + "start": 1486, + "end": 1487, "loc": { "start": { - "line": 23, - "column": 23 + "line": 33, + "column": 33 }, "end": { - "line": 23, - "column": 24 + "line": 33, + "column": 34 } } }, @@ -9932,17 +12547,17 @@ "postfix": false, "binop": null }, - "value": "ATOM_COLLECT_THRESHOLD", - "start": 1139, - "end": 1161, + "value": "compounds", + "start": 1487, + "end": 1496, "loc": { "start": { - "line": 23, - "column": 24 + "line": 33, + "column": 34 }, "end": { - "line": 23, - "column": 46 + "line": 33, + "column": 43 } } }, @@ -9958,16 +12573,16 @@ "postfix": false, "binop": null }, - "start": 1161, - "end": 1162, + "start": 1496, + "end": 1497, "loc": { "start": { - "line": 23, - "column": 46 + "line": 33, + "column": 43 }, "end": { - "line": 23, - "column": 47 + "line": 33, + "column": 44 } } }, @@ -9983,32 +12598,44 @@ "postfix": false, "binop": null }, - "start": 1163, - "end": 1164, + "start": 1498, + "end": 1499, "loc": { "start": { - "line": 23, - "column": 48 + "line": 33, + "column": 45 }, "end": { - "line": 23, - "column": 49 + "line": 33, + "column": 46 } } }, { - "type": "CommentLine", - "value": " console.log(atom);", - "start": 1168, - "end": 1189, + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1502, + "end": 1505, "loc": { "start": { - "line": 24, - "column": 3 + "line": 34, + "column": 2 }, "end": { - "line": 24, - "column": 24 + "line": 34, + "column": 5 } } }, @@ -10024,42 +12651,44 @@ "postfix": false, "binop": null }, - "value": "incrementAtom", - "start": 1193, - "end": 1206, + "value": "cmp", + "start": 1506, + "end": 1509, "loc": { "start": { - "line": 25, - "column": 3 + "line": 34, + "column": 6 }, "end": { - "line": 25, - "column": 16 + "line": 34, + "column": 9 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1206, - "end": 1207, + "value": "=", + "start": 1510, + "end": 1511, "loc": { "start": { - "line": 25, - "column": 16 + "line": 34, + "column": 10 }, "end": { - "line": 25, - "column": 17 + "line": 34, + "column": 11 } } }, @@ -10075,17 +12704,17 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1207, - "end": 1217, + "value": "tempObjects", + "start": 1512, + "end": 1523, "loc": { "start": { - "line": 25, - "column": 17 + "line": 34, + "column": 12 }, "end": { - "line": 25, - "column": 27 + "line": 34, + "column": 23 } } }, @@ -10102,16 +12731,16 @@ "binop": null, "updateContext": null }, - "start": 1217, - "end": 1218, + "start": 1523, + "end": 1524, "loc": { "start": { - "line": 25, - "column": 27 + "line": 34, + "column": 23 }, "end": { - "line": 25, - "column": 28 + "line": 34, + "column": 24 } } }, @@ -10127,25 +12756,25 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 1218, - "end": 1220, + "value": "compounds", + "start": 1524, + "end": 1533, "loc": { "start": { - "line": 25, - "column": 28 + "line": 34, + "column": 24 }, "end": { - "line": 25, - "column": 30 + "line": 34, + "column": 33 } } }, { "type": { - "label": ",", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10154,16 +12783,16 @@ "binop": null, "updateContext": null }, - "start": 1220, - "end": 1221, + "start": 1533, + "end": 1534, "loc": { "start": { - "line": 25, - "column": 30 + "line": 34, + "column": 33 }, "end": { - "line": 25, - "column": 31 + "line": 34, + "column": 34 } } }, @@ -10179,24 +12808,24 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 1222, - "end": 1226, + "value": "compound", + "start": 1534, + "end": 1542, "loc": { "start": { - "line": 25, - "column": 32 + "line": 34, + "column": 34 }, "end": { - "line": 25, - "column": 36 + "line": 34, + "column": 42 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -10206,68 +12835,69 @@ "binop": null, "updateContext": null }, - "start": 1226, - "end": 1227, + "start": 1542, + "end": 1543, "loc": { "start": { - "line": 25, - "column": 36 + "line": 34, + "column": 42 }, "end": { - "line": 25, - "column": 37 + "line": 34, + "column": 43 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "tempObjects", - "start": 1228, - "end": 1239, + "value": "if", + "start": 1547, + "end": 1549, "loc": { "start": { - "line": 25, - "column": 38 + "line": 36, + "column": 2 }, "end": { - "line": 25, - "column": 49 + "line": 36, + "column": 4 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1239, - "end": 1240, + "start": 1550, + "end": 1551, "loc": { "start": { - "line": 25, - "column": 49 + "line": 36, + "column": 5 }, "end": { - "line": 25, - "column": 50 + "line": 36, + "column": 6 } } }, @@ -10283,25 +12913,25 @@ "postfix": false, "binop": null }, - "value": "atoms", - "start": 1240, - "end": 1245, + "value": "cmp", + "start": 1551, + "end": 1554, "loc": { "start": { - "line": 25, - "column": 50 + "line": 36, + "column": 6 }, "end": { - "line": 25, - "column": 55 + "line": 36, + "column": 9 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10310,16 +12940,16 @@ "binop": null, "updateContext": null }, - "start": 1245, - "end": 1246, + "start": 1554, + "end": 1555, "loc": { "start": { - "line": 25, - "column": 55 + "line": 36, + "column": 9 }, "end": { - "line": 25, - "column": 56 + "line": 36, + "column": 10 } } }, @@ -10335,69 +12965,44 @@ "postfix": false, "binop": null }, - "value": "atom", - "start": 1246, - "end": 1250, - "loc": { - "start": { - "line": 25, - "column": 56 - }, - "end": { - "line": 25, - "column": 60 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1250, - "end": 1251, + "value": "sendingTeam", + "start": 1555, + "end": 1566, "loc": { "start": { - "line": 25, - "column": 60 + "line": 36, + "column": 10 }, "end": { - "line": 25, - "column": 61 + "line": 36, + "column": 21 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 1251, - "end": 1252, + "value": "!==", + "start": 1567, + "end": 1570, "loc": { "start": { - "line": 25, - "column": 61 + "line": 36, + "column": 22 }, "end": { - "line": 25, - "column": 62 + "line": 36, + "column": 25 } } }, @@ -10413,24 +13018,24 @@ "postfix": false, "binop": null }, - "value": "typeID", - "start": 1252, - "end": 1258, + "value": "thisPlayer", + "start": 1571, + "end": 1581, "loc": { "start": { - "line": 25, - "column": 62 + "line": 36, + "column": 26 }, "end": { - "line": 25, - "column": 68 + "line": 36, + "column": 36 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -10440,22 +13045,22 @@ "binop": null, "updateContext": null }, - "start": 1258, - "end": 1259, + "start": 1581, + "end": 1582, "loc": { "start": { - "line": 25, - "column": 68 + "line": 36, + "column": 36 }, "end": { - "line": 25, - "column": 69 + "line": 36, + "column": 37 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -10463,20 +13068,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 1, - "start": 1260, - "end": 1261, + "value": "team", + "start": 1582, + "end": 1586, "loc": { "start": { - "line": 25, - "column": 70 + "line": 36, + "column": 37 }, "end": { - "line": 25, - "column": 71 + "line": 36, + "column": 41 } } }, @@ -10492,23 +13096,23 @@ "postfix": false, "binop": null }, - "start": 1261, - "end": 1262, + "start": 1586, + "end": 1587, "loc": { "start": { - "line": 25, - "column": 71 + "line": 36, + "column": 41 }, "end": { - "line": 25, - "column": 72 + "line": 36, + "column": 42 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -10517,23 +13121,23 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 1266, - "end": 1272, + "start": 1588, + "end": 1589, "loc": { "start": { - "line": 26, - "column": 3 + "line": 36, + "column": 43 }, "end": { - "line": 26, - "column": 9 + "line": 36, + "column": 44 } } }, { "type": { - "label": ".", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -10544,16 +13148,17 @@ "binop": null, "updateContext": null }, - "start": 1272, - "end": 1273, + "value": "let", + "start": 1593, + "end": 1596, "loc": { "start": { - "line": 26, - "column": 9 + "line": 37, + "column": 3 }, "end": { - "line": 26, - "column": 10 + "line": 37, + "column": 6 } } }, @@ -10569,42 +13174,44 @@ "postfix": false, "binop": null }, - "value": "to", - "start": 1273, - "end": 1275, + "value": "distance", + "start": 1597, + "end": 1605, "loc": { "start": { - "line": 26, - "column": 10 + "line": 37, + "column": 7 }, "end": { - "line": 26, - "column": 12 + "line": 37, + "column": 15 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1275, - "end": 1276, + "value": "=", + "start": 1606, + "end": 1607, "loc": { "start": { - "line": 26, - "column": 12 + "line": 37, + "column": 16 }, "end": { - "line": 26, - "column": 13 + "line": 37, + "column": 17 } } }, @@ -10620,25 +13227,25 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 1276, - "end": 1280, + "value": "distanceBetween", + "start": 1608, + "end": 1623, "loc": { "start": { - "line": 26, - "column": 13 + "line": 37, + "column": 18 }, "end": { - "line": 26, - "column": 17 + "line": 37, + "column": 33 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10646,42 +13253,41 @@ "postfix": false, "binop": null }, - "start": 1280, - "end": 1281, + "start": 1623, + "end": 1624, "loc": { "start": { - "line": 26, - "column": 17 + "line": 37, + "column": 33 }, "end": { - "line": 26, - "column": 18 + "line": 37, + "column": 34 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1281, - "end": 1282, + "start": 1629, + "end": 1630, "loc": { "start": { - "line": 26, - "column": 18 + "line": 38, + "column": 4 }, "end": { - "line": 26, - "column": 19 + "line": 38, + "column": 5 } } }, @@ -10697,24 +13303,24 @@ "postfix": false, "binop": null }, - "value": "broadcast", - "start": 1282, - "end": 1291, + "value": "posX", + "start": 1631, + "end": 1635, "loc": { "start": { - "line": 26, - "column": 19 + "line": 38, + "column": 6 }, "end": { - "line": 26, - "column": 28 + "line": 38, + "column": 10 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -10724,16 +13330,16 @@ "binop": null, "updateContext": null }, - "start": 1291, - "end": 1292, + "start": 1635, + "end": 1636, "loc": { "start": { - "line": 26, - "column": 28 + "line": 38, + "column": 10 }, "end": { - "line": 26, - "column": 29 + "line": 38, + "column": 11 } } }, @@ -10749,50 +13355,25 @@ "postfix": false, "binop": null }, - "value": "emit", - "start": 1292, - "end": 1296, - "loc": { - "start": { - "line": 26, - "column": 29 - }, - "end": { - "line": 26, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1296, - "end": 1297, + "value": "cmp", + "start": 1637, + "end": 1640, "loc": { "start": { - "line": 26, - "column": 33 + "line": 38, + "column": 12 }, "end": { - "line": 26, - "column": 34 + "line": 38, + "column": 15 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10801,68 +13382,69 @@ "binop": null, "updateContext": null }, - "value": "serverSendObjectRemoval", - "start": 1297, - "end": 1322, + "start": 1640, + "end": 1641, "loc": { "start": { - "line": 26, - "column": 34 + "line": 38, + "column": 15 }, "end": { - "line": 26, - "column": 59 + "line": 38, + "column": 16 } } }, { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1322, - "end": 1323, + "value": "posX", + "start": 1641, + "end": 1645, "loc": { "start": { - "line": 26, - "column": 59 + "line": 38, + "column": 16 }, "end": { - "line": 26, - "column": 60 + "line": 38, + "column": 20 } } }, { "type": { - "label": "{", + "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 1324, - "end": 1325, + "value": "+", + "start": 1646, + "end": 1647, "loc": { "start": { - "line": 26, - "column": 61 + "line": 38, + "column": 21 }, "end": { - "line": 26, - "column": 62 + "line": 38, + "column": 22 } } }, @@ -10878,24 +13460,24 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 1326, - "end": 1328, + "value": "cmp", + "start": 1648, + "end": 1651, "loc": { "start": { - "line": 26, - "column": 63 + "line": 38, + "column": 23 }, "end": { - "line": 26, - "column": 65 + "line": 38, + "column": 26 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -10905,16 +13487,16 @@ "binop": null, "updateContext": null }, - "start": 1328, - "end": 1329, + "start": 1651, + "end": 1652, "loc": { "start": { - "line": 26, - "column": 65 + "line": 38, + "column": 26 }, "end": { - "line": 26, - "column": 66 + "line": 38, + "column": 27 } } }, @@ -10930,24 +13512,24 @@ "postfix": false, "binop": null }, - "value": "atom", - "start": 1330, - "end": 1334, + "value": "blueprint", + "start": 1652, + "end": 1661, "loc": { "start": { - "line": 26, - "column": 67 + "line": 38, + "column": 27 }, "end": { - "line": 26, - "column": 71 + "line": 38, + "column": 36 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -10957,16 +13539,16 @@ "binop": null, "updateContext": null }, - "start": 1334, - "end": 1335, + "start": 1661, + "end": 1662, "loc": { "start": { - "line": 26, - "column": 71 + "line": 38, + "column": 36 }, "end": { - "line": 26, - "column": 72 + "line": 38, + "column": 37 } } }, @@ -10982,24 +13564,24 @@ "postfix": false, "binop": null }, - "value": "type", - "start": 1336, - "end": 1340, + "value": "params", + "start": 1662, + "end": 1668, "loc": { "start": { - "line": 26, - "column": 73 + "line": 38, + "column": 37 }, "end": { - "line": 26, - "column": 77 + "line": 38, + "column": 43 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -11009,22 +13591,22 @@ "binop": null, "updateContext": null }, - "start": 1340, - "end": 1341, + "start": 1668, + "end": 1669, "loc": { "start": { - "line": 26, - "column": 77 + "line": 38, + "column": 43 }, "end": { - "line": 26, - "column": 78 + "line": 38, + "column": 44 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -11032,70 +13614,99 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "atoms", - "start": 1342, - "end": 1349, + "value": "size", + "start": 1669, + "end": 1673, "loc": { "start": { - "line": 26, - "column": 79 + "line": 38, + "column": 44 }, "end": { - "line": 26, - "column": 86 + "line": 38, + "column": 48 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "/", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 10, + "updateContext": null }, - "start": 1350, - "end": 1351, + "value": "/", + "start": 1674, + "end": 1675, "loc": { "start": { - "line": 26, - "column": 87 + "line": 38, + "column": 49 }, "end": { - "line": 26, - "column": 88 + "line": 38, + "column": 50 } } }, { "type": { - "label": ")", + "label": "num", "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 2, + "start": 1676, + "end": 1677, + "loc": { + "start": { + "line": 38, + "column": 51 + }, + "end": { + "line": 38, + "column": 52 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1351, - "end": 1352, + "start": 1677, + "end": 1678, "loc": { "start": { - "line": 26, - "column": 88 + "line": 38, + "column": 52 }, "end": { - "line": 26, - "column": 89 + "line": 38, + "column": 53 } } }, @@ -11111,48 +13722,49 @@ "postfix": false, "binop": null }, - "value": "deleteObject", - "start": 1357, - "end": 1369, + "value": "posY", + "start": 1679, + "end": 1683, "loc": { "start": { - "line": 28, - "column": 3 + "line": 38, + "column": 54 }, "end": { - "line": 28, - "column": 15 + "line": 38, + "column": 58 } } }, { "type": { - "label": "(", + "label": ":", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1369, - "end": 1370, + "start": 1683, + "end": 1684, "loc": { "start": { - "line": 28, - "column": 15 + "line": 38, + "column": 58 }, "end": { - "line": 28, - "column": 16 + "line": 38, + "column": 59 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -11160,27 +13772,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "atoms", - "start": 1370, - "end": 1377, + "value": "cmp", + "start": 1685, + "end": 1688, "loc": { "start": { - "line": 28, - "column": 16 + "line": 38, + "column": 60 }, "end": { - "line": 28, - "column": 23 + "line": 38, + "column": 63 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -11190,16 +13801,16 @@ "binop": null, "updateContext": null }, - "start": 1377, - "end": 1378, + "start": 1688, + "end": 1689, "loc": { "start": { - "line": 28, - "column": 23 + "line": 38, + "column": 63 }, "end": { - "line": 28, - "column": 24 + "line": 38, + "column": 64 } } }, @@ -11215,43 +13826,44 @@ "postfix": false, "binop": null }, - "value": "atom", - "start": 1379, - "end": 1383, + "value": "posY", + "start": 1689, + "end": 1693, "loc": { "start": { - "line": 28, - "column": 25 + "line": 38, + "column": 64 }, "end": { - "line": 28, - "column": 29 + "line": 38, + "column": 68 } } }, { "type": { - "label": ",", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 1383, - "end": 1384, + "value": "-", + "start": 1694, + "end": 1695, "loc": { "start": { - "line": 28, - "column": 29 + "line": 38, + "column": 69 }, "end": { - "line": 28, - "column": 30 + "line": 38, + "column": 70 } } }, @@ -11267,24 +13879,24 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 1385, - "end": 1389, + "value": "cmp", + "start": 1696, + "end": 1699, "loc": { "start": { - "line": 28, - "column": 31 + "line": 38, + "column": 71 }, "end": { - "line": 28, - "column": 35 + "line": 38, + "column": 74 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -11294,16 +13906,16 @@ "binop": null, "updateContext": null }, - "start": 1389, - "end": 1390, + "start": 1699, + "end": 1700, "loc": { "start": { - "line": 28, - "column": 35 + "line": 38, + "column": 74 }, "end": { - "line": 28, - "column": 36 + "line": 38, + "column": 75 } } }, @@ -11319,23 +13931,23 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 1391, - "end": 1397, + "value": "blueprint", + "start": 1700, + "end": 1709, "loc": { "start": { - "line": 28, - "column": 37 + "line": 38, + "column": 75 }, "end": { - "line": 28, - "column": 43 + "line": 38, + "column": 84 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -11343,26 +13955,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1397, - "end": 1398, + "start": 1709, + "end": 1710, "loc": { "start": { - "line": 28, - "column": 43 + "line": 38, + "column": 84 }, "end": { - "line": 28, - "column": 44 + "line": 38, + "column": 85 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -11370,22 +13983,23 @@ "postfix": false, "binop": null }, - "start": 1401, - "end": 1402, + "value": "params", + "start": 1710, + "end": 1716, "loc": { "start": { - "line": 29, - "column": 2 + "line": 38, + "column": 85 }, "end": { - "line": 29, - "column": 3 + "line": 38, + "column": 91 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -11393,94 +14007,105 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1404, - "end": 1405, + "start": 1716, + "end": 1717, "loc": { "start": { - "line": 30, - "column": 1 + "line": 38, + "column": 91 }, "end": { - "line": 30, - "column": 2 + "line": 38, + "column": 92 } } }, { - "type": "CommentLine", - "value": " Check for compound collisions", - "start": 1408, - "end": 1440, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "size", + "start": 1717, + "end": 1721, "loc": { "start": { - "line": 32, - "column": 1 + "line": 38, + "column": 92 }, "end": { - "line": 32, - "column": 33 + "line": 38, + "column": 96 } } }, { "type": { - "label": "for", - "keyword": "for", - "beforeExpr": false, + "label": "/", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "value": "for", - "start": 1442, - "end": 1445, + "value": "/", + "start": 1722, + "end": 1723, "loc": { "start": { - "line": 33, - "column": 1 + "line": 38, + "column": 97 }, "end": { - "line": 33, - "column": 4 + "line": 38, + "column": 98 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "num", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1446, - "end": 1447, + "value": 2, + "start": 1724, + "end": 1725, "loc": { "start": { - "line": 33, - "column": 5 + "line": 38, + "column": 99 }, "end": { - "line": 33, - "column": 6 + "line": 38, + "column": 100 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -11488,74 +14113,69 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 1447, - "end": 1450, + "start": 1726, + "end": 1727, "loc": { "start": { - "line": 33, - "column": 6 + "line": 38, + "column": 101 }, "end": { - "line": 33, - "column": 9 + "line": 38, + "column": 102 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "compound", - "start": 1451, - "end": 1459, + "start": 1727, + "end": 1728, "loc": { "start": { - "line": 33, - "column": 10 + "line": 38, + "column": 102 }, "end": { - "line": 33, - "column": 18 + "line": 38, + "column": 103 } } }, { "type": { - "label": "in", - "keyword": "in", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, - "updateContext": null + "binop": null }, - "value": "in", - "start": 1460, - "end": 1462, + "start": 1733, + "end": 1734, "loc": { "start": { - "line": 33, - "column": 19 + "line": 39, + "column": 4 }, "end": { - "line": 33, - "column": 21 + "line": 39, + "column": 5 } } }, @@ -11571,24 +14191,24 @@ "postfix": false, "binop": null }, - "value": "tempObjects", - "start": 1463, - "end": 1474, + "value": "posX", + "start": 1735, + "end": 1739, "loc": { "start": { - "line": 33, - "column": 22 + "line": 39, + "column": 6 }, "end": { - "line": 33, - "column": 33 + "line": 39, + "column": 10 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -11598,16 +14218,16 @@ "binop": null, "updateContext": null }, - "start": 1474, - "end": 1475, + "start": 1739, + "end": 1740, "loc": { "start": { - "line": 33, - "column": 33 + "line": 39, + "column": 10 }, "end": { - "line": 33, - "column": 34 + "line": 39, + "column": 11 } } }, @@ -11623,23 +14243,23 @@ "postfix": false, "binop": null }, - "value": "compounds", - "start": 1475, - "end": 1484, + "value": "thisPlayer", + "start": 1741, + "end": 1751, "loc": { "start": { - "line": 33, - "column": 34 + "line": 39, + "column": 12 }, "end": { - "line": 33, - "column": 43 + "line": 39, + "column": 22 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -11647,25 +14267,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1484, - "end": 1485, + "start": 1751, + "end": 1752, "loc": { "start": { - "line": 33, - "column": 43 + "line": 39, + "column": 22 }, "end": { - "line": 33, - "column": 44 + "line": 39, + "column": 23 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -11674,44 +14295,44 @@ "postfix": false, "binop": null }, - "start": 1486, - "end": 1487, + "value": "posX", + "start": 1752, + "end": 1756, "loc": { "start": { - "line": 33, - "column": 45 + "line": 39, + "column": 23 }, "end": { - "line": 33, - "column": 46 + "line": 39, + "column": 27 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "value": "let", - "start": 1490, - "end": 1493, + "value": "+", + "start": 1757, + "end": 1758, "loc": { "start": { - "line": 34, - "column": 2 + "line": 39, + "column": 28 }, "end": { - "line": 34, - "column": 5 + "line": 39, + "column": 29 } } }, @@ -11727,44 +14348,43 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 1494, - "end": 1497, + "value": "GLOBAL", + "start": 1759, + "end": 1765, "loc": { "start": { - "line": 34, - "column": 6 + "line": 39, + "column": 30 }, "end": { - "line": 34, - "column": 9 + "line": 39, + "column": 36 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1498, - "end": 1499, + "start": 1765, + "end": 1766, "loc": { "start": { - "line": 34, - "column": 10 + "line": 39, + "column": 36 }, "end": { - "line": 34, - "column": 11 + "line": 39, + "column": 37 } } }, @@ -11780,24 +14400,24 @@ "postfix": false, "binop": null }, - "value": "tempObjects", - "start": 1500, - "end": 1511, + "value": "PLAYER_RADIUS", + "start": 1766, + "end": 1779, "loc": { "start": { - "line": 34, - "column": 12 + "line": 39, + "column": 37 }, "end": { - "line": 34, - "column": 23 + "line": 39, + "column": 50 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -11807,16 +14427,16 @@ "binop": null, "updateContext": null }, - "start": 1511, - "end": 1512, + "start": 1779, + "end": 1780, "loc": { "start": { - "line": 34, - "column": 23 + "line": 39, + "column": 50 }, "end": { - "line": 34, - "column": 24 + "line": 39, + "column": 51 } } }, @@ -11832,25 +14452,25 @@ "postfix": false, "binop": null }, - "value": "compounds", - "start": 1512, - "end": 1521, + "value": "posY", + "start": 1781, + "end": 1785, "loc": { "start": { - "line": 34, - "column": 24 + "line": 39, + "column": 52 }, "end": { - "line": 34, - "column": 33 + "line": 39, + "column": 56 } } }, { "type": { - "label": "[", + "label": ":", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -11859,16 +14479,16 @@ "binop": null, "updateContext": null }, - "start": 1521, - "end": 1522, + "start": 1785, + "end": 1786, "loc": { "start": { - "line": 34, - "column": 33 + "line": 39, + "column": 56 }, "end": { - "line": 34, - "column": 34 + "line": 39, + "column": 57 } } }, @@ -11884,23 +14504,23 @@ "postfix": false, "binop": null }, - "value": "compound", - "start": 1522, - "end": 1530, + "value": "thisPlayer", + "start": 1787, + "end": 1797, "loc": { "start": { - "line": 34, - "column": 34 + "line": 39, + "column": 58 }, "end": { - "line": 34, - "column": 42 + "line": 39, + "column": 68 } } }, { "type": { - "label": "]", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -11911,69 +14531,69 @@ "binop": null, "updateContext": null }, - "start": 1530, - "end": 1531, + "start": 1797, + "end": 1798, "loc": { "start": { - "line": 34, - "column": 42 + "line": 39, + "column": 68 }, "end": { - "line": 34, - "column": 43 + "line": 39, + "column": 69 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 1535, - "end": 1537, + "value": "posY", + "start": 1798, + "end": 1802, "loc": { "start": { - "line": 36, - "column": 2 + "line": 39, + "column": 69 }, "end": { - "line": 36, - "column": 4 + "line": 39, + "column": 73 } } }, { "type": { - "label": "(", + "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 1538, - "end": 1539, + "value": "-", + "start": 1803, + "end": 1804, "loc": { "start": { - "line": 36, - "column": 5 + "line": 39, + "column": 74 }, "end": { - "line": 36, - "column": 6 + "line": 39, + "column": 75 } } }, @@ -11989,17 +14609,17 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 1539, - "end": 1542, + "value": "GLOBAL", + "start": 1805, + "end": 1811, "loc": { "start": { - "line": 36, - "column": 6 + "line": 39, + "column": 76 }, "end": { - "line": 36, - "column": 9 + "line": 39, + "column": 82 } } }, @@ -12016,16 +14636,16 @@ "binop": null, "updateContext": null }, - "start": 1542, - "end": 1543, + "start": 1811, + "end": 1812, "loc": { "start": { - "line": 36, - "column": 9 + "line": 39, + "column": 82 }, "end": { - "line": 36, - "column": 10 + "line": 39, + "column": 83 } } }, @@ -12041,52 +14661,50 @@ "postfix": false, "binop": null }, - "value": "sendingTeam", - "start": 1543, - "end": 1554, + "value": "PLAYER_RADIUS", + "start": 1812, + "end": 1825, "loc": { "start": { - "line": 36, - "column": 10 + "line": 39, + "column": 83 }, "end": { - "line": 36, - "column": 21 + "line": 39, + "column": 96 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "!==", - "start": 1555, - "end": 1558, + "start": 1826, + "end": 1827, "loc": { "start": { - "line": 36, - "column": 22 + "line": 39, + "column": 97 }, "end": { - "line": 36, - "column": 25 + "line": 39, + "column": 98 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -12094,43 +14712,85 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1559, - "end": 1569, + "start": 1827, + "end": 1828, + "loc": { + "start": { + "line": 39, + "column": 98 + }, + "end": { + "line": 39, + "column": 99 + } + } + }, + { + "type": "CommentLine", + "value": " Hit player", + "start": 1833, + "end": 1846, + "loc": { + "start": { + "line": 41, + "column": 3 + }, + "end": { + "line": 41, + "column": 16 + } + } + }, + { + "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": 1850, + "end": 1852, "loc": { "start": { - "line": 36, - "column": 26 + "line": 42, + "column": 3 }, "end": { - "line": 36, - "column": 36 + "line": 42, + "column": 5 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1569, - "end": 1570, + "start": 1853, + "end": 1854, "loc": { "start": { - "line": 36, - "column": 36 + "line": 42, + "column": 6 }, "end": { - "line": 36, - "column": 37 + "line": 42, + "column": 7 } } }, @@ -12146,49 +14806,51 @@ "postfix": false, "binop": null }, - "value": "team", - "start": 1570, - "end": 1574, + "value": "distance", + "start": 1854, + "end": 1862, "loc": { "start": { - "line": 36, - "column": 37 + "line": 42, + "column": 7 }, "end": { - "line": 36, - "column": 41 + "line": 42, + "column": 15 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 7, + "updateContext": null }, - "start": 1574, - "end": 1575, + "value": "<", + "start": 1863, + "end": 1864, "loc": { "start": { - "line": 36, - "column": 41 + "line": 42, + "column": 16 }, "end": { - "line": 36, - "column": 42 + "line": 42, + "column": 17 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -12197,23 +14859,23 @@ "postfix": false, "binop": null }, - "start": 1576, - "end": 1577, + "value": "cmp", + "start": 1865, + "end": 1868, "loc": { "start": { - "line": 36, - "column": 43 + "line": 42, + "column": 18 }, "end": { - "line": 36, - "column": 44 + "line": 42, + "column": 21 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -12224,17 +14886,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 1581, - "end": 1584, + "start": 1868, + "end": 1869, "loc": { "start": { - "line": 37, - "column": 3 + "line": 42, + "column": 21 }, "end": { - "line": 37, - "column": 6 + "line": 42, + "column": 22 } } }, @@ -12250,44 +14911,43 @@ "postfix": false, "binop": null }, - "value": "distance", - "start": 1585, - "end": 1593, + "value": "blueprint", + "start": 1869, + "end": 1878, "loc": { "start": { - "line": 37, - "column": 7 + "line": 42, + "column": 22 }, "end": { - "line": 37, - "column": 15 + "line": 42, + "column": 31 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1594, - "end": 1595, + "start": 1878, + "end": 1879, "loc": { "start": { - "line": 37, - "column": 16 + "line": 42, + "column": 31 }, "end": { - "line": 37, - "column": 17 + "line": 42, + "column": 32 } } }, @@ -12303,67 +14963,43 @@ "postfix": false, "binop": null }, - "value": "distanceBetween", - "start": 1596, - "end": 1611, - "loc": { - "start": { - "line": 37, - "column": 18 - }, - "end": { - "line": 37, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1611, - "end": 1612, + "value": "params", + "start": 1879, + "end": 1885, "loc": { "start": { - "line": 37, - "column": 33 + "line": 42, + "column": 32 }, "end": { - "line": 37, - "column": 34 + "line": 42, + "column": 38 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1617, - "end": 1618, + "start": 1885, + "end": 1886, "loc": { "start": { - "line": 38, - "column": 4 + "line": 42, + "column": 38 }, "end": { - "line": 38, - "column": 5 + "line": 42, + "column": 39 } } }, @@ -12379,43 +15015,44 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 1619, - "end": 1623, + "value": "size", + "start": 1886, + "end": 1890, "loc": { "start": { - "line": 38, - "column": 6 + "line": 42, + "column": 39 }, "end": { - "line": 38, - "column": 10 + "line": 42, + "column": 43 } } }, { "type": { - "label": ":", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 1623, - "end": 1624, + "value": "+", + "start": 1891, + "end": 1892, "loc": { "start": { - "line": 38, - "column": 10 + "line": 42, + "column": 44 }, "end": { - "line": 38, - "column": 11 + "line": 42, + "column": 45 } } }, @@ -12431,17 +15068,17 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 1625, - "end": 1628, + "value": "GLOBAL", + "start": 1893, + "end": 1899, "loc": { "start": { - "line": 38, - "column": 12 + "line": 42, + "column": 46 }, "end": { - "line": 38, - "column": 15 + "line": 42, + "column": 52 } } }, @@ -12458,16 +15095,16 @@ "binop": null, "updateContext": null }, - "start": 1628, - "end": 1629, + "start": 1899, + "end": 1900, "loc": { "start": { - "line": 38, - "column": 15 + "line": 42, + "column": 52 }, "end": { - "line": 38, - "column": 16 + "line": 42, + "column": 53 } } }, @@ -12483,51 +15120,49 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 1629, - "end": 1633, + "value": "PLAYER_RADIUS", + "start": 1900, + "end": 1913, "loc": { "start": { - "line": 38, - "column": 16 + "line": 42, + "column": 53 }, "end": { - "line": 38, - "column": 20 + "line": 42, + "column": 66 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "+", - "start": 1634, - "end": 1635, + "start": 1913, + "end": 1914, "loc": { "start": { - "line": 38, - "column": 21 + "line": 42, + "column": 66 }, "end": { - "line": 38, - "column": 22 + "line": 42, + "column": 67 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -12536,23 +15171,23 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 1636, - "end": 1639, + "start": 1915, + "end": 1916, "loc": { "start": { - "line": 38, - "column": 23 + "line": 42, + "column": 68 }, "end": { - "line": 38, - "column": 26 + "line": 42, + "column": 69 } } }, { "type": { - "label": ".", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -12563,16 +15198,17 @@ "binop": null, "updateContext": null }, - "start": 1639, - "end": 1640, + "value": "let", + "start": 1921, + "end": 1924, "loc": { "start": { - "line": 38, - "column": 26 + "line": 43, + "column": 4 }, "end": { - "line": 38, - "column": 27 + "line": 43, + "column": 7 } } }, @@ -12588,43 +15224,44 @@ "postfix": false, "binop": null }, - "value": "blueprint", - "start": 1640, - "end": 1649, + "value": "dmg", + "start": 1925, + "end": 1928, "loc": { "start": { - "line": 38, - "column": 27 + "line": 43, + "column": 8 }, "end": { - "line": 38, - "column": 36 + "line": 43, + "column": 11 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 1649, - "end": 1650, + "value": "=", + "start": 1929, + "end": 1930, "loc": { "start": { - "line": 38, - "column": 36 + "line": 43, + "column": 12 }, "end": { - "line": 38, - "column": 37 + "line": 43, + "column": 13 } } }, @@ -12640,17 +15277,17 @@ "postfix": false, "binop": null }, - "value": "params", - "start": 1650, - "end": 1656, + "value": "cmp", + "start": 1931, + "end": 1934, "loc": { "start": { - "line": 38, - "column": 37 + "line": 43, + "column": 14 }, "end": { - "line": 38, - "column": 43 + "line": 43, + "column": 17 } } }, @@ -12667,16 +15304,16 @@ "binop": null, "updateContext": null }, - "start": 1656, - "end": 1657, + "start": 1934, + "end": 1935, "loc": { "start": { - "line": 38, - "column": 43 + "line": 43, + "column": 17 }, "end": { - "line": 38, - "column": 44 + "line": 43, + "column": 18 } } }, @@ -12692,50 +15329,49 @@ "postfix": false, "binop": null }, - "value": "size", - "start": 1657, - "end": 1661, + "value": "blueprint", + "start": 1935, + "end": 1944, "loc": { "start": { - "line": 38, - "column": 44 + "line": 43, + "column": 18 }, "end": { - "line": 38, - "column": 48 + "line": 43, + "column": 27 } } }, { "type": { - "label": "/", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "/", - "start": 1662, - "end": 1663, + "start": 1944, + "end": 1945, "loc": { "start": { - "line": 38, - "column": 49 + "line": 43, + "column": 27 }, "end": { - "line": 38, - "column": 50 + "line": 43, + "column": 28 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -12743,27 +15379,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 2, - "start": 1664, - "end": 1665, + "value": "params", + "start": 1945, + "end": 1951, "loc": { "start": { - "line": 38, - "column": 51 + "line": 43, + "column": 28 }, "end": { - "line": 38, - "column": 52 + "line": 43, + "column": 34 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -12773,16 +15408,16 @@ "binop": null, "updateContext": null }, - "start": 1665, - "end": 1666, + "start": 1951, + "end": 1952, "loc": { "start": { - "line": 38, - "column": 52 + "line": 43, + "column": 34 }, "end": { - "line": 38, - "column": 53 + "line": 43, + "column": 35 } } }, @@ -12798,95 +15433,86 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 1667, - "end": 1671, + "value": "damage", + "start": 1952, + "end": 1958, "loc": { "start": { - "line": 38, - "column": 54 + "line": 43, + "column": 35 }, "end": { - "line": 38, - "column": 58 + "line": 43, + "column": 41 } } }, { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1671, - "end": 1672, + "type": "CommentLine", + "value": " Deal splash damage if it is a toxic compound or on fire", + "start": 1964, + "end": 2022, "loc": { "start": { - "line": 38, - "column": 58 + "line": 45, + "column": 4 }, "end": { - "line": 38, - "column": 59 + "line": 45, + "column": 62 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "cmp", - "start": 1673, - "end": 1676, + "value": "if", + "start": 2027, + "end": 2029, "loc": { "start": { - "line": 38, - "column": 60 + "line": 46, + "column": 4 }, "end": { - "line": 38, - "column": 63 + "line": 46, + "column": 6 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1676, - "end": 1677, + "start": 2030, + "end": 2031, "loc": { "start": { - "line": 38, - "column": 63 + "line": 46, + "column": 7 }, "end": { - "line": 38, - "column": 64 + "line": 46, + "column": 8 } } }, @@ -12902,44 +15528,43 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 1677, - "end": 1681, + "value": "cmp", + "start": 2031, + "end": 2034, "loc": { "start": { - "line": 38, - "column": 64 + "line": 46, + "column": 8 }, "end": { - "line": 38, - "column": 68 + "line": 46, + "column": 11 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "-", - "start": 1682, - "end": 1683, + "start": 2034, + "end": 2035, "loc": { "start": { - "line": 38, - "column": 69 + "line": 46, + "column": 11 }, "end": { - "line": 38, - "column": 70 + "line": 46, + "column": 12 } } }, @@ -12955,17 +15580,17 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 1684, - "end": 1687, + "value": "blueprint", + "start": 2035, + "end": 2044, "loc": { "start": { - "line": 38, - "column": 71 + "line": 46, + "column": 12 }, "end": { - "line": 38, - "column": 74 + "line": 46, + "column": 21 } } }, @@ -12982,16 +15607,16 @@ "binop": null, "updateContext": null }, - "start": 1687, - "end": 1688, + "start": 2044, + "end": 2045, "loc": { "start": { - "line": 38, - "column": 74 + "line": 46, + "column": 21 }, "end": { - "line": 38, - "column": 75 + "line": 46, + "column": 22 } } }, @@ -13007,49 +15632,50 @@ "postfix": false, "binop": null }, - "value": "blueprint", - "start": 1688, - "end": 1697, + "value": "type", + "start": 2045, + "end": 2049, "loc": { "start": { - "line": 38, - "column": 75 + "line": 46, + "column": 22 }, "end": { - "line": 38, - "column": 84 + "line": 46, + "column": 26 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 1697, - "end": 1698, + "value": "===", + "start": 2050, + "end": 2053, "loc": { "start": { - "line": 38, - "column": 84 + "line": 46, + "column": 27 }, "end": { - "line": 38, - "column": 85 + "line": 46, + "column": 30 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -13057,45 +15683,47 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "params", - "start": 1698, - "end": 1704, + "value": "toxic", + "start": 2054, + "end": 2061, "loc": { "start": { - "line": 38, - "column": 85 + "line": 46, + "column": 31 }, "end": { - "line": 38, - "column": 91 + "line": 46, + "column": 38 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "||", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 1, "updateContext": null }, - "start": 1704, - "end": 1705, + "value": "||", + "start": 2062, + "end": 2064, "loc": { "start": { - "line": 38, - "column": 91 + "line": 46, + "column": 39 }, "end": { - "line": 38, - "column": 92 + "line": 46, + "column": 41 } } }, @@ -13111,50 +15739,49 @@ "postfix": false, "binop": null }, - "value": "size", - "start": 1705, - "end": 1709, + "value": "cmp", + "start": 2065, + "end": 2068, "loc": { "start": { - "line": 38, - "column": 92 + "line": 46, + "column": 42 }, "end": { - "line": 38, - "column": 96 + "line": 46, + "column": 45 } } }, { "type": { - "label": "/", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "/", - "start": 1710, - "end": 1711, + "start": 2068, + "end": 2069, "loc": { "start": { - "line": 38, - "column": 97 + "line": 46, + "column": 45 }, "end": { - "line": 38, - "column": 98 + "line": 46, + "column": 46 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -13162,26 +15789,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 2, - "start": 1712, - "end": 1713, + "value": "ignited", + "start": 2069, + "end": 2076, "loc": { "start": { - "line": 38, - "column": 99 + "line": 46, + "column": 46 }, "end": { - "line": 38, - "column": 100 + "line": 46, + "column": 53 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -13191,42 +15817,16 @@ "postfix": false, "binop": null }, - "start": 1714, - "end": 1715, - "loc": { - "start": { - "line": 38, - "column": 101 - }, - "end": { - "line": 38, - "column": 102 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1715, - "end": 1716, + "start": 2076, + "end": 2077, "loc": { "start": { - "line": 38, - "column": 102 + "line": 46, + "column": 53 }, "end": { - "line": 38, - "column": 103 + "line": 46, + "column": 54 } } }, @@ -13242,16 +15842,16 @@ "postfix": false, "binop": null }, - "start": 1721, - "end": 1722, + "start": 2078, + "end": 2079, "loc": { "start": { - "line": 39, - "column": 4 + "line": 46, + "column": 55 }, "end": { - "line": 39, - "column": 5 + "line": 46, + "column": 56 } } }, @@ -13267,43 +15867,44 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 1723, - "end": 1727, + "value": "dmg", + "start": 2085, + "end": 2088, "loc": { "start": { - "line": 39, - "column": 6 + "line": 47, + "column": 5 }, "end": { - "line": 39, - "column": 10 + "line": 47, + "column": 8 } } }, { "type": { - "label": ":", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 1727, - "end": 1728, + "value": "=", + "start": 2089, + "end": 2090, "loc": { "start": { - "line": 39, - "column": 10 + "line": 47, + "column": 9 }, "end": { - "line": 39, - "column": 11 + "line": 47, + "column": 10 } } }, @@ -13319,17 +15920,17 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1729, - "end": 1739, + "value": "cmp", + "start": 2091, + "end": 2094, "loc": { "start": { - "line": 39, - "column": 12 + "line": 47, + "column": 11 }, "end": { - "line": 39, - "column": 22 + "line": 47, + "column": 14 } } }, @@ -13346,16 +15947,16 @@ "binop": null, "updateContext": null }, - "start": 1739, - "end": 1740, + "start": 2094, + "end": 2095, "loc": { "start": { - "line": 39, - "column": 22 + "line": 47, + "column": 14 }, "end": { - "line": 39, - "column": 23 + "line": 47, + "column": 15 } } }, @@ -13371,44 +15972,43 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 1740, - "end": 1744, + "value": "blueprint", + "start": 2095, + "end": 2104, "loc": { "start": { - "line": 39, - "column": 23 + "line": 47, + "column": 15 }, "end": { - "line": 39, - "column": 27 + "line": 47, + "column": 24 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 1745, - "end": 1746, + "start": 2104, + "end": 2105, "loc": { "start": { - "line": 39, - "column": 28 + "line": 47, + "column": 24 }, "end": { - "line": 39, - "column": 29 + "line": 47, + "column": 25 } } }, @@ -13424,17 +16024,17 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 1747, - "end": 1753, + "value": "params", + "start": 2105, + "end": 2111, "loc": { "start": { - "line": 39, - "column": 30 + "line": 47, + "column": 25 }, "end": { - "line": 39, - "column": 36 + "line": 47, + "column": 31 } } }, @@ -13451,16 +16051,16 @@ "binop": null, "updateContext": null }, - "start": 1753, - "end": 1754, + "start": 2111, + "end": 2112, "loc": { "start": { - "line": 39, - "column": 36 + "line": 47, + "column": 31 }, "end": { - "line": 39, - "column": 37 + "line": 47, + "column": 32 } } }, @@ -13476,50 +16076,75 @@ "postfix": false, "binop": null }, - "value": "PLAYER_RADIUS", - "start": 1754, - "end": 1767, + "value": "splashDamage", + "start": 2112, + "end": 2124, "loc": { "start": { - "line": 39, - "column": 37 + "line": 47, + "column": 32 }, "end": { - "line": 39, - "column": 50 + "line": 47, + "column": 44 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1767, - "end": 1768, + "start": 2129, + "end": 2130, "loc": { "start": { - "line": 39, - "column": 50 + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "damage", + "start": 2136, + "end": 2142, + "loc": { + "start": { + "line": 50, + "column": 4 }, "end": { - "line": 39, - "column": 51 + "line": 50, + "column": 10 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -13528,43 +16153,41 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 1769, - "end": 1773, + "start": 2142, + "end": 2143, "loc": { "start": { - "line": 39, - "column": 52 + "line": 50, + "column": 10 }, "end": { - "line": 39, - "column": 56 + "line": 50, + "column": 11 } } }, { "type": { - "label": ":", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1773, - "end": 1774, + "start": 2143, + "end": 2144, "loc": { "start": { - "line": 39, - "column": 56 + "line": 50, + "column": 11 }, "end": { - "line": 39, - "column": 57 + "line": 50, + "column": 12 } } }, @@ -13580,24 +16203,24 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1775, - "end": 1785, + "value": "damage", + "start": 2150, + "end": 2156, "loc": { "start": { - "line": 39, - "column": 58 + "line": 51, + "column": 5 }, "end": { - "line": 39, - "column": 68 + "line": 51, + "column": 11 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -13607,16 +16230,16 @@ "binop": null, "updateContext": null }, - "start": 1785, - "end": 1786, + "start": 2156, + "end": 2157, "loc": { "start": { - "line": 39, - "column": 68 + "line": 51, + "column": 11 }, "end": { - "line": 39, - "column": 69 + "line": 51, + "column": 12 } } }, @@ -13632,44 +16255,43 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 1786, - "end": 1790, + "value": "dmg", + "start": 2158, + "end": 2161, "loc": { "start": { - "line": 39, - "column": 69 + "line": 51, + "column": 13 }, "end": { - "line": 39, - "column": 73 + "line": 51, + "column": 16 } } }, { "type": { - "label": "+/-", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "-", - "start": 1791, - "end": 1792, + "start": 2161, + "end": 2162, "loc": { "start": { - "line": 39, - "column": 74 + "line": 51, + "column": 16 }, "end": { - "line": 39, - "column": 75 + "line": 51, + "column": 17 } } }, @@ -13685,24 +16307,24 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 1793, - "end": 1799, + "value": "player", + "start": 2168, + "end": 2174, "loc": { "start": { - "line": 39, - "column": 76 + "line": 52, + "column": 5 }, "end": { - "line": 39, - "column": 82 + "line": 52, + "column": 11 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -13712,16 +16334,16 @@ "binop": null, "updateContext": null }, - "start": 1799, - "end": 1800, + "start": 2174, + "end": 2175, "loc": { "start": { - "line": 39, - "column": 82 + "line": 52, + "column": 11 }, "end": { - "line": 39, - "column": 83 + "line": 52, + "column": 12 } } }, @@ -13737,23 +16359,23 @@ "postfix": false, "binop": null }, - "value": "PLAYER_RADIUS", - "start": 1800, - "end": 1813, + "value": "socket", + "start": 2176, + "end": 2182, "loc": { "start": { - "line": 39, - "column": 83 + "line": 52, + "column": 13 }, "end": { - "line": 39, - "column": 96 + "line": 52, + "column": 19 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -13761,26 +16383,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1814, - "end": 1815, + "start": 2182, + "end": 2183, "loc": { "start": { - "line": 39, - "column": 97 + "line": 52, + "column": 19 }, "end": { - "line": 39, - "column": 98 + "line": 52, + "column": 20 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -13788,40 +16411,24 @@ "postfix": false, "binop": null }, - "start": 1815, - "end": 1816, - "loc": { - "start": { - "line": 39, - "column": 98 - }, - "end": { - "line": 39, - "column": 99 - } - } - }, - { - "type": "CommentLine", - "value": " Hit player", - "start": 1821, - "end": 1834, + "value": "id", + "start": 2183, + "end": 2185, "loc": { "start": { - "line": 41, - "column": 3 + "line": 52, + "column": 20 }, "end": { - "line": 41, - "column": 16 + "line": 52, + "column": 22 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -13831,42 +16438,16 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 1838, - "end": 1840, - "loc": { - "start": { - "line": 42, - "column": 3 - }, - "end": { - "line": 42, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1841, - "end": 1842, + "start": 2185, + "end": 2186, "loc": { "start": { - "line": 42, - "column": 6 + "line": 52, + "column": 22 }, "end": { - "line": 42, - "column": 7 + "line": 52, + "column": 23 } } }, @@ -13882,23 +16463,23 @@ "postfix": false, "binop": null }, - "value": "distance", - "start": 1842, - "end": 1850, + "value": "sentBy", + "start": 2192, + "end": 2198, "loc": { "start": { - "line": 42, - "column": 7 + "line": 53, + "column": 5 }, "end": { - "line": 42, - "column": 15 + "line": 53, + "column": 11 } } }, { "type": { - "label": "", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -13906,20 +16487,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": "<", - "start": 1851, - "end": 1852, + "start": 2198, + "end": 2199, "loc": { "start": { - "line": 42, - "column": 16 + "line": 53, + "column": 11 }, "end": { - "line": 42, - "column": 17 + "line": 53, + "column": 12 } } }, @@ -13936,16 +16516,16 @@ "binop": null }, "value": "cmp", - "start": 1853, - "end": 1856, + "start": 2200, + "end": 2203, "loc": { "start": { - "line": 42, - "column": 18 + "line": 53, + "column": 13 }, "end": { - "line": 42, - "column": 21 + "line": 53, + "column": 16 } } }, @@ -13962,16 +16542,16 @@ "binop": null, "updateContext": null }, - "start": 1856, - "end": 1857, + "start": 2203, + "end": 2204, "loc": { "start": { - "line": 42, - "column": 21 + "line": 53, + "column": 16 }, "end": { - "line": 42, - "column": 22 + "line": 53, + "column": 17 } } }, @@ -13987,24 +16567,24 @@ "postfix": false, "binop": null }, - "value": "blueprint", - "start": 1857, - "end": 1866, + "value": "sender", + "start": 2204, + "end": 2210, "loc": { "start": { - "line": 42, - "column": 22 + "line": 53, + "column": 17 }, "end": { - "line": 42, - "column": 31 + "line": 53, + "column": 23 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -14014,16 +16594,16 @@ "binop": null, "updateContext": null }, - "start": 1866, - "end": 1867, + "start": 2210, + "end": 2211, "loc": { "start": { - "line": 42, - "column": 31 + "line": 53, + "column": 23 }, "end": { - "line": 42, - "column": 32 + "line": 53, + "column": 24 } } }, @@ -14039,24 +16619,24 @@ "postfix": false, "binop": null }, - "value": "params", - "start": 1867, - "end": 1873, + "value": "id", + "start": 2217, + "end": 2219, "loc": { "start": { - "line": 42, - "column": 32 + "line": 54, + "column": 5 }, "end": { - "line": 42, - "column": 38 + "line": 54, + "column": 7 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -14066,16 +16646,16 @@ "binop": null, "updateContext": null }, - "start": 1873, - "end": 1874, + "start": 2219, + "end": 2220, "loc": { "start": { - "line": 42, - "column": 38 + "line": 54, + "column": 7 }, "end": { - "line": 42, - "column": 39 + "line": 54, + "column": 8 } } }, @@ -14091,44 +16671,68 @@ "postfix": false, "binop": null }, - "value": "size", - "start": 1874, - "end": 1878, + "value": "compound", + "start": 2221, + "end": 2229, "loc": { "start": { - "line": 42, - "column": 39 + "line": 54, + "column": 9 }, "end": { - "line": 42, - "column": 43 + "line": 54, + "column": 17 } } }, { "type": { - "label": "+/-", + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2234, + "end": 2235, + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + { + "type": { + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 1879, - "end": 1880, + "start": 2235, + "end": 2236, "loc": { "start": { - "line": 42, - "column": 44 + "line": 55, + "column": 5 }, "end": { - "line": 42, - "column": 45 + "line": 55, + "column": 6 } } }, @@ -14144,24 +16748,24 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 1881, - "end": 1887, + "value": "room", + "start": 2237, + "end": 2241, "loc": { "start": { - "line": 42, - "column": 46 + "line": 55, + "column": 7 }, "end": { - "line": 42, - "column": 52 + "line": 55, + "column": 11 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -14171,16 +16775,16 @@ "binop": null, "updateContext": null }, - "start": 1887, - "end": 1888, + "start": 2241, + "end": 2242, "loc": { "start": { - "line": 42, - "column": 52 + "line": 55, + "column": 11 }, "end": { - "line": 42, - "column": 53 + "line": 55, + "column": 12 } } }, @@ -14196,17 +16800,17 @@ "postfix": false, "binop": null }, - "value": "PLAYER_RADIUS", - "start": 1888, - "end": 1901, + "value": "socket", + "start": 2243, + "end": 2249, "loc": { "start": { - "line": 42, - "column": 53 + "line": 55, + "column": 13 }, "end": { - "line": 42, - "column": 66 + "line": 55, + "column": 19 } } }, @@ -14222,69 +16826,69 @@ "postfix": false, "binop": null }, - "start": 1901, - "end": 1902, + "start": 2249, + "end": 2250, "loc": { "start": { - "line": 42, - "column": 66 + "line": 55, + "column": 19 }, "end": { - "line": 42, - "column": 67 + "line": 55, + "column": 20 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1903, - "end": 1904, + "value": "if", + "start": 2256, + "end": 2258, "loc": { "start": { - "line": 42, - "column": 68 + "line": 57, + "column": 4 }, "end": { - "line": 42, - "column": 69 + "line": 57, + "column": 6 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 1909, - "end": 1912, + "start": 2259, + "end": 2260, "loc": { "start": { - "line": 43, - "column": 4 + "line": 57, + "column": 7 }, "end": { - "line": 43, - "column": 7 + "line": 57, + "column": 8 } } }, @@ -14300,44 +16904,43 @@ "postfix": false, "binop": null }, - "value": "dmg", - "start": 1913, - "end": 1916, + "value": "cmp", + "start": 2260, + "end": 2263, "loc": { "start": { - "line": 43, + "line": 57, "column": 8 }, "end": { - "line": 43, + "line": 57, "column": 11 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1917, - "end": 1918, + "start": 2263, + "end": 2264, "loc": { "start": { - "line": 43, - "column": 12 + "line": 57, + "column": 11 }, "end": { - "line": 43, - "column": 13 + "line": 57, + "column": 12 } } }, @@ -14353,17 +16956,17 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 1919, - "end": 1922, + "value": "blueprint", + "start": 2264, + "end": 2273, "loc": { "start": { - "line": 43, - "column": 14 + "line": 57, + "column": 12 }, "end": { - "line": 43, - "column": 17 + "line": 57, + "column": 21 } } }, @@ -14380,16 +16983,16 @@ "binop": null, "updateContext": null }, - "start": 1922, - "end": 1923, + "start": 2273, + "end": 2274, "loc": { "start": { - "line": 43, - "column": 17 + "line": 57, + "column": 21 }, "end": { - "line": 43, - "column": 18 + "line": 57, + "column": 22 } } }, @@ -14405,25 +17008,52 @@ "postfix": false, "binop": null }, - "value": "blueprint", - "start": 1923, - "end": 1932, + "value": "type", + "start": 2274, + "end": 2278, "loc": { "start": { - "line": 43, - "column": 18 + "line": 57, + "column": 22 }, "end": { - "line": 43, + "line": 57, + "column": 26 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 2279, + "end": 2282, + "loc": { + "start": { + "line": 57, "column": 27 + }, + "end": { + "line": 57, + "column": 30 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -14432,68 +17062,71 @@ "binop": null, "updateContext": null }, - "start": 1932, - "end": 1933, + "value": "toxic", + "start": 2283, + "end": 2290, "loc": { "start": { - "line": 43, - "column": 27 + "line": 57, + "column": 31 }, "end": { - "line": 43, - "column": 28 + "line": 57, + "column": 38 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "&&", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 2, + "updateContext": null }, - "value": "params", - "start": 1933, - "end": 1939, + "value": "&&", + "start": 2291, + "end": 2293, "loc": { "start": { - "line": 43, - "column": 28 + "line": 57, + "column": 39 }, "end": { - "line": 43, - "column": 34 + "line": 57, + "column": 41 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "start": 1939, - "end": 1940, + "value": "!", + "start": 2294, + "end": 2295, "loc": { "start": { - "line": 43, - "column": 34 + "line": 57, + "column": 42 }, "end": { - "line": 43, - "column": 35 + "line": 57, + "column": 43 } } }, @@ -14509,40 +17142,23 @@ "postfix": false, "binop": null }, - "value": "damage", - "start": 1940, - "end": 1946, - "loc": { - "start": { - "line": 43, - "column": 35 - }, - "end": { - "line": 43, - "column": 41 - } - } - }, - { - "type": "CommentLine", - "value": " Deal splash damage if it is a toxic compound or on fire", - "start": 1952, - "end": 2010, + "value": "cmp", + "start": 2295, + "end": 2298, "loc": { "start": { - "line": 45, - "column": 4 + "line": 57, + "column": 43 }, "end": { - "line": 45, - "column": 62 + "line": 57, + "column": 46 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -14553,24 +17169,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 2015, - "end": 2017, + "start": 2298, + "end": 2299, "loc": { "start": { - "line": 46, - "column": 4 + "line": 57, + "column": 46 }, "end": { - "line": 46, - "column": 6 + "line": 57, + "column": 47 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -14579,24 +17194,25 @@ "postfix": false, "binop": null }, - "start": 2018, - "end": 2019, + "value": "ignited", + "start": 2299, + "end": 2306, "loc": { "start": { - "line": 46, - "column": 7 + "line": 57, + "column": 47 }, "end": { - "line": 46, - "column": 8 + "line": 57, + "column": 54 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -14604,43 +17220,41 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 2019, - "end": 2022, + "start": 2306, + "end": 2307, "loc": { "start": { - "line": 46, - "column": 8 + "line": 57, + "column": 54 }, "end": { - "line": 46, - "column": 11 + "line": 57, + "column": 55 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2022, - "end": 2023, + "start": 2308, + "end": 2309, "loc": { "start": { - "line": 46, - "column": 11 + "line": 57, + "column": 56 }, "end": { - "line": 46, - "column": 12 + "line": 57, + "column": 57 } } }, @@ -14656,49 +17270,48 @@ "postfix": false, "binop": null }, - "value": "blueprint", - "start": 2023, - "end": 2032, + "value": "deleteObject", + "start": 2315, + "end": 2327, "loc": { "start": { - "line": 46, - "column": 12 + "line": 58, + "column": 5 }, "end": { - "line": 46, - "column": 21 + "line": 58, + "column": 17 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2032, - "end": 2033, + "start": 2327, + "end": 2328, "loc": { "start": { - "line": 46, - "column": 21 + "line": 58, + "column": 17 }, "end": { - "line": 46, - "column": 22 + "line": 58, + "column": 18 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -14706,25 +17319,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "type", - "start": 2033, - "end": 2037, + "value": "compounds", + "start": 2328, + "end": 2339, "loc": { "start": { - "line": 46, - "column": 22 + "line": 58, + "column": 18 }, "end": { - "line": 46, - "column": 26 + "line": 58, + "column": 29 } } }, { "type": { - "label": "==/!=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -14732,26 +17346,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 2038, - "end": 2041, + "start": 2339, + "end": 2340, "loc": { "start": { - "line": 46, - "column": 27 + "line": 58, + "column": 29 }, "end": { - "line": 46, + "line": 58, "column": 30 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -14759,26 +17372,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "toxic", - "start": 2042, - "end": 2049, + "value": "compound", + "start": 2341, + "end": 2349, "loc": { "start": { - "line": 46, + "line": 58, "column": 31 }, "end": { - "line": 46, - "column": 38 + "line": 58, + "column": 39 } } }, { "type": { - "label": "||", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -14786,20 +17398,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, + "binop": null, "updateContext": null }, - "value": "||", - "start": 2050, - "end": 2052, + "start": 2349, + "end": 2350, "loc": { "start": { - "line": 46, + "line": 58, "column": 39 }, "end": { - "line": 46, - "column": 41 + "line": 58, + "column": 40 } } }, @@ -14815,24 +17426,24 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 2053, - "end": 2056, + "value": "room", + "start": 2351, + "end": 2355, "loc": { "start": { - "line": 46, - "column": 42 + "line": 58, + "column": 41 }, "end": { - "line": 46, + "line": 58, "column": 45 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -14842,15 +17453,15 @@ "binop": null, "updateContext": null }, - "start": 2056, - "end": 2057, + "start": 2355, + "end": 2356, "loc": { "start": { - "line": 46, + "line": 58, "column": 45 }, "end": { - "line": 46, + "line": 58, "column": 46 } } @@ -14867,16 +17478,16 @@ "postfix": false, "binop": null }, - "value": "ignited", - "start": 2057, - "end": 2064, + "value": "socket", + "start": 2357, + "end": 2363, "loc": { "start": { - "line": 46, - "column": 46 + "line": 58, + "column": 47 }, "end": { - "line": 46, + "line": 58, "column": 53 } } @@ -14884,33 +17495,8 @@ { "type": { "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2064, - "end": 2065, - "loc": { - "start": { - "line": 46, - "column": 53 - }, - "end": { - "line": 46, - "column": 54 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -14918,24 +17504,24 @@ "postfix": false, "binop": null }, - "start": 2066, - "end": 2067, + "start": 2363, + "end": 2364, "loc": { "start": { - "line": 46, - "column": 55 + "line": 58, + "column": 53 }, "end": { - "line": 46, - "column": 56 + "line": 58, + "column": 54 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -14943,52 +17529,49 @@ "postfix": false, "binop": null }, - "value": "dmg", - "start": 2073, - "end": 2076, + "start": 2369, + "end": 2370, "loc": { "start": { - "line": 47, - "column": 5 + "line": 59, + "column": 4 }, "end": { - "line": 47, - "column": 8 + "line": 59, + "column": 5 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 2077, - "end": 2078, + "start": 2374, + "end": 2375, "loc": { "start": { - "line": 47, - "column": 9 + "line": 60, + "column": 3 }, "end": { - "line": 47, - "column": 10 + "line": 60, + "column": 4 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -14996,24 +17579,24 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 2079, - "end": 2082, + "start": 2378, + "end": 2379, "loc": { "start": { - "line": 47, - "column": 11 + "line": 61, + "column": 2 }, "end": { - "line": 47, - "column": 14 + "line": 61, + "column": 3 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "else", + "keyword": "else", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -15023,23 +17606,24 @@ "binop": null, "updateContext": null }, - "start": 2082, - "end": 2083, + "value": "else", + "start": 2382, + "end": 2386, "loc": { "start": { - "line": 47, - "column": 14 + "line": 62, + "column": 2 }, "end": { - "line": 47, - "column": 15 + "line": 62, + "column": 6 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -15048,23 +17632,39 @@ "postfix": false, "binop": null }, - "value": "blueprint", - "start": 2083, - "end": 2092, + "start": 2387, + "end": 2388, "loc": { "start": { - "line": 47, - "column": 15 + "line": 62, + "column": 7 }, "end": { - "line": 47, - "column": 24 + "line": 62, + "column": 8 + } + } + }, + { + "type": "CommentLine", + "value": " check for tile collisions", + "start": 2389, + "end": 2417, + "loc": { + "start": { + "line": 62, + "column": 9 + }, + "end": { + "line": 62, + "column": 37 } } }, { "type": { - "label": ".", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -15075,16 +17675,17 @@ "binop": null, "updateContext": null }, - "start": 2092, - "end": 2093, + "value": "let", + "start": 2421, + "end": 2424, "loc": { "start": { - "line": 47, - "column": 24 + "line": 63, + "column": 3 }, "end": { - "line": 47, - "column": 25 + "line": 63, + "column": 6 } } }, @@ -15100,43 +17701,44 @@ "postfix": false, "binop": null }, - "value": "params", - "start": 2093, - "end": 2099, + "value": "tileID", + "start": 2425, + "end": 2431, "loc": { "start": { - "line": 47, - "column": 25 + "line": 63, + "column": 7 }, "end": { - "line": 47, - "column": 31 + "line": 63, + "column": 13 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 2099, - "end": 2100, + "value": "=", + "start": 2432, + "end": 2433, "loc": { "start": { - "line": 47, - "column": 31 + "line": 63, + "column": 14 }, "end": { - "line": 47, - "column": 32 + "line": 63, + "column": 15 } } }, @@ -15152,25 +17754,25 @@ "postfix": false, "binop": null }, - "value": "splashDamage", - "start": 2100, - "end": 2112, + "value": "getTileID", + "start": 2434, + "end": 2443, "loc": { "start": { - "line": 47, - "column": 32 + "line": 63, + "column": 16 }, "end": { - "line": 47, - "column": 44 + "line": 63, + "column": 25 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15178,16 +17780,16 @@ "postfix": false, "binop": null }, - "start": 2117, - "end": 2118, + "start": 2443, + "end": 2444, "loc": { "start": { - "line": 48, - "column": 4 + "line": 63, + "column": 25 }, "end": { - "line": 48, - "column": 5 + "line": 63, + "column": 26 } } }, @@ -15203,17 +17805,17 @@ "postfix": false, "binop": null }, - "value": "damage", - "start": 2124, - "end": 2130, + "value": "getGlobalLocation", + "start": 2444, + "end": 2461, "loc": { "start": { - "line": 50, - "column": 4 + "line": 63, + "column": 26 }, "end": { - "line": 50, - "column": 10 + "line": 63, + "column": 43 } } }, @@ -15229,23 +17831,23 @@ "postfix": false, "binop": null }, - "start": 2130, - "end": 2131, + "start": 2461, + "end": 2462, "loc": { "start": { - "line": 50, - "column": 10 + "line": 63, + "column": 43 }, "end": { - "line": 50, - "column": 11 + "line": 63, + "column": 44 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -15254,24 +17856,25 @@ "postfix": false, "binop": null }, - "start": 2131, - "end": 2132, + "value": "cmp", + "start": 2462, + "end": 2465, "loc": { "start": { - "line": 50, - "column": 11 + "line": 63, + "column": 44 }, "end": { - "line": 50, - "column": 12 + "line": 63, + "column": 47 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15279,23 +17882,22 @@ "postfix": false, "binop": null }, - "value": "damage", - "start": 2138, - "end": 2144, + "start": 2465, + "end": 2466, "loc": { "start": { - "line": 51, - "column": 5 + "line": 63, + "column": 47 }, "end": { - "line": 51, - "column": 11 + "line": 63, + "column": 48 } } }, { "type": { - "label": ":", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -15306,16 +17908,16 @@ "binop": null, "updateContext": null }, - "start": 2144, - "end": 2145, + "start": 2466, + "end": 2467, "loc": { "start": { - "line": 51, - "column": 11 + "line": 63, + "column": 48 }, "end": { - "line": 51, - "column": 12 + "line": 63, + "column": 49 } } }, @@ -15331,51 +17933,25 @@ "postfix": false, "binop": null }, - "value": "dmg", - "start": 2146, - "end": 2149, - "loc": { - "start": { - "line": 51, - "column": 13 - }, - "end": { - "line": 51, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2149, - "end": 2150, + "value": "room", + "start": 2468, + "end": 2472, "loc": { "start": { - "line": 51, - "column": 16 + "line": 63, + "column": 50 }, "end": { - "line": 51, - "column": 17 + "line": 63, + "column": 54 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15383,24 +17959,24 @@ "postfix": false, "binop": null }, - "value": "player", - "start": 2156, - "end": 2162, + "start": 2472, + "end": 2473, "loc": { "start": { - "line": 52, - "column": 5 + "line": 63, + "column": 54 }, "end": { - "line": 52, - "column": 11 + "line": 63, + "column": 55 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -15410,23 +17986,24 @@ "binop": null, "updateContext": null }, - "start": 2162, - "end": 2163, + "value": "if", + "start": 2477, + "end": 2479, "loc": { "start": { - "line": 52, - "column": 11 + "line": 64, + "column": 3 }, "end": { - "line": 52, - "column": 12 + "line": 64, + "column": 5 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -15435,51 +18012,50 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 2164, - "end": 2170, + "start": 2480, + "end": 2481, "loc": { "start": { - "line": 52, - "column": 13 + "line": 64, + "column": 6 }, "end": { - "line": 52, - "column": 19 + "line": 64, + "column": 7 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2170, - "end": 2171, + "value": "tileID", + "start": 2481, + "end": 2487, "loc": { "start": { - "line": 52, - "column": 19 + "line": 64, + "column": 7 }, "end": { - "line": 52, - "column": 20 + "line": 64, + "column": 13 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15487,95 +18063,94 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 2171, - "end": 2173, + "start": 2487, + "end": 2488, "loc": { "start": { - "line": 52, - "column": 20 + "line": 64, + "column": 13 }, "end": { - "line": 52, - "column": 22 + "line": 64, + "column": 14 } } }, { "type": { - "label": ",", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2173, - "end": 2174, + "start": 2489, + "end": 2490, "loc": { "start": { - "line": 52, - "column": 22 + "line": 64, + "column": 15 }, "end": { - "line": 52, - "column": 23 + "line": 64, + "column": 16 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "sentBy", - "start": 2180, - "end": 2186, + "value": "if", + "start": 2495, + "end": 2497, "loc": { "start": { - "line": 53, - "column": 5 + "line": 65, + "column": 4 }, "end": { - "line": 53, - "column": 11 + "line": 65, + "column": 6 } } }, { "type": { - "label": ":", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2186, - "end": 2187, + "start": 2498, + "end": 2499, "loc": { "start": { - "line": 53, - "column": 11 + "line": 65, + "column": 7 }, "end": { - "line": 53, - "column": 12 + "line": 65, + "column": 8 } } }, @@ -15591,43 +18166,42 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 2188, - "end": 2191, + "value": "distanceBetween", + "start": 2499, + "end": 2514, "loc": { "start": { - "line": 53, - "column": 13 + "line": 65, + "column": 8 }, "end": { - "line": 53, - "column": 16 + "line": 65, + "column": 23 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2191, - "end": 2192, + "start": 2514, + "end": 2515, "loc": { "start": { - "line": 53, - "column": 16 + "line": 65, + "column": 23 }, "end": { - "line": 53, - "column": 17 + "line": 65, + "column": 24 } } }, @@ -15643,17 +18217,17 @@ "postfix": false, "binop": null }, - "value": "sender", - "start": 2192, - "end": 2198, + "value": "cmp", + "start": 2515, + "end": 2518, "loc": { "start": { - "line": 53, - "column": 17 + "line": 65, + "column": 24 }, "end": { - "line": 53, - "column": 23 + "line": 65, + "column": 27 } } }, @@ -15670,16 +18244,41 @@ "binop": null, "updateContext": null }, - "start": 2198, - "end": 2199, + "start": 2518, + "end": 2519, "loc": { "start": { - "line": 53, - "column": 23 + "line": 65, + "column": 27 }, "end": { - "line": 53, - "column": 24 + "line": 65, + "column": 28 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2520, + "end": 2521, + "loc": { + "start": { + "line": 65, + "column": 29 + }, + "end": { + "line": 65, + "column": 30 } } }, @@ -15695,17 +18294,17 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 2205, - "end": 2207, + "value": "posX", + "start": 2527, + "end": 2531, "loc": { "start": { - "line": 54, + "line": 66, "column": 5 }, "end": { - "line": 54, - "column": 7 + "line": 66, + "column": 9 } } }, @@ -15722,16 +18321,16 @@ "binop": null, "updateContext": null }, - "start": 2207, - "end": 2208, + "start": 2531, + "end": 2532, "loc": { "start": { - "line": 54, - "column": 7 + "line": 66, + "column": 9 }, "end": { - "line": 54, - "column": 8 + "line": 66, + "column": 10 } } }, @@ -15747,25 +18346,25 @@ "postfix": false, "binop": null }, - "value": "compound", - "start": 2209, - "end": 2217, + "value": "getGlobalLocation", + "start": 2533, + "end": 2550, "loc": { "start": { - "line": 54, - "column": 9 + "line": 66, + "column": 11 }, "end": { - "line": 54, - "column": 17 + "line": 66, + "column": 28 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15773,50 +18372,50 @@ "postfix": false, "binop": null }, - "start": 2222, - "end": 2223, + "start": 2550, + "end": 2551, "loc": { "start": { - "line": 55, - "column": 4 + "line": 66, + "column": 28 }, "end": { - "line": 55, - "column": 5 + "line": 66, + "column": 29 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2223, - "end": 2224, + "value": "cmp", + "start": 2551, + "end": 2554, "loc": { "start": { - "line": 55, - "column": 5 + "line": 66, + "column": 29 }, "end": { - "line": 55, - "column": 6 + "line": 66, + "column": 32 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15824,24 +18423,23 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 2225, - "end": 2229, + "start": 2554, + "end": 2555, "loc": { "start": { - "line": 55, - "column": 7 + "line": 66, + "column": 32 }, "end": { - "line": 55, - "column": 11 + "line": 66, + "column": 33 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -15851,16 +18449,16 @@ "binop": null, "updateContext": null }, - "start": 2229, - "end": 2230, + "start": 2555, + "end": 2556, "loc": { "start": { - "line": 55, - "column": 11 + "line": 66, + "column": 33 }, "end": { - "line": 55, - "column": 12 + "line": 66, + "column": 34 } } }, @@ -15876,95 +18474,96 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 2231, - "end": 2237, + "value": "globalX", + "start": 2556, + "end": 2563, "loc": { "start": { - "line": 55, - "column": 13 + "line": 66, + "column": 34 }, "end": { - "line": 55, - "column": 19 + "line": 66, + "column": 41 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "*", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 10, + "updateContext": null }, - "start": 2237, - "end": 2238, + "value": "*", + "start": 2564, + "end": 2565, "loc": { "start": { - "line": 55, - "column": 19 + "line": 66, + "column": 42 }, "end": { - "line": 55, - "column": 20 + "line": 66, + "column": 43 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 2244, - "end": 2246, + "value": "GLOBAL", + "start": 2566, + "end": 2572, "loc": { "start": { - "line": 57, - "column": 4 + "line": 66, + "column": 44 }, "end": { - "line": 57, - "column": 6 + "line": 66, + "column": 50 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2247, - "end": 2248, + "start": 2572, + "end": 2573, "loc": { "start": { - "line": 57, - "column": 7 + "line": 66, + "column": 50 }, "end": { - "line": 57, - "column": 8 + "line": 66, + "column": 51 } } }, @@ -15980,49 +18579,50 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 2248, - "end": 2251, + "value": "GRID_SPACING", + "start": 2573, + "end": 2585, "loc": { "start": { - "line": 57, - "column": 8 + "line": 66, + "column": 51 }, "end": { - "line": 57, - "column": 11 + "line": 66, + "column": 63 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "*", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 2251, - "end": 2252, + "value": "*", + "start": 2586, + "end": 2587, "loc": { "start": { - "line": 57, - "column": 11 + "line": 66, + "column": 64 }, "end": { - "line": 57, - "column": 12 + "line": 66, + "column": 65 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -16030,45 +18630,47 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "blueprint", - "start": 2252, - "end": 2261, + "value": 2, + "start": 2588, + "end": 2589, "loc": { "start": { - "line": 57, - "column": 12 + "line": 66, + "column": 66 }, "end": { - "line": 57, - "column": 21 + "line": 66, + "column": 67 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 2261, - "end": 2262, + "value": "+", + "start": 2590, + "end": 2591, "loc": { "start": { - "line": 57, - "column": 21 + "line": 66, + "column": 68 }, "end": { - "line": 57, - "column": 22 + "line": 66, + "column": 69 } } }, @@ -16084,50 +18686,49 @@ "postfix": false, "binop": null }, - "value": "type", - "start": 2262, - "end": 2266, + "value": "GLOBAL", + "start": 2592, + "end": 2598, "loc": { "start": { - "line": 57, - "column": 22 + "line": 66, + "column": 70 }, "end": { - "line": 57, - "column": 26 + "line": 66, + "column": 76 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "!==", - "start": 2267, - "end": 2270, + "start": 2598, + "end": 2599, "loc": { "start": { - "line": 57, - "column": 27 + "line": 66, + "column": 76 }, "end": { - "line": 57, - "column": 30 + "line": 66, + "column": 77 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -16135,26 +18736,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "toxic", - "start": 2271, - "end": 2278, + "value": "GRID_SPACING", + "start": 2599, + "end": 2611, "loc": { "start": { - "line": 57, - "column": 31 + "line": 66, + "column": 77 }, "end": { - "line": 57, - "column": 38 + "line": 66, + "column": 89 } } }, { "type": { - "label": "&&", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -16162,47 +18762,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 2279, - "end": 2281, - "loc": { - "start": { - "line": 57, - "column": 39 - }, - "end": { - "line": 57, - "column": 41 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, "binop": null, "updateContext": null }, - "value": "!", - "start": 2282, - "end": 2283, + "start": 2611, + "end": 2612, "loc": { "start": { - "line": 57, - "column": 42 + "line": 66, + "column": 89 }, "end": { - "line": 57, - "column": 43 + "line": 66, + "column": 90 } } }, @@ -16218,24 +18790,24 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 2283, - "end": 2286, + "value": "posY", + "start": 2618, + "end": 2622, "loc": { "start": { - "line": 57, - "column": 43 + "line": 67, + "column": 5 }, "end": { - "line": 57, - "column": 46 + "line": 67, + "column": 9 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -16245,16 +18817,16 @@ "binop": null, "updateContext": null }, - "start": 2286, - "end": 2287, + "start": 2622, + "end": 2623, "loc": { "start": { - "line": 57, - "column": 46 + "line": 67, + "column": 9 }, "end": { - "line": 57, - "column": 47 + "line": 67, + "column": 10 } } }, @@ -16270,25 +18842,25 @@ "postfix": false, "binop": null }, - "value": "ignited", - "start": 2287, - "end": 2294, + "value": "getGlobalLocation", + "start": 2624, + "end": 2641, "loc": { "start": { - "line": 57, - "column": 47 + "line": 67, + "column": 11 }, "end": { - "line": 57, - "column": 54 + "line": 67, + "column": 28 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -16296,23 +18868,23 @@ "postfix": false, "binop": null }, - "start": 2294, - "end": 2295, + "start": 2641, + "end": 2642, "loc": { "start": { - "line": 57, - "column": 54 + "line": 67, + "column": 28 }, "end": { - "line": 57, - "column": 55 + "line": 67, + "column": 29 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -16321,24 +18893,25 @@ "postfix": false, "binop": null }, - "start": 2296, - "end": 2297, + "value": "cmp", + "start": 2642, + "end": 2645, "loc": { "start": { - "line": 57, - "column": 56 + "line": 67, + "column": 29 }, "end": { - "line": 57, - "column": 57 + "line": 67, + "column": 32 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -16346,48 +18919,48 @@ "postfix": false, "binop": null }, - "value": "deleteObject", - "start": 2303, - "end": 2315, + "start": 2645, + "end": 2646, "loc": { "start": { - "line": 58, - "column": 5 + "line": 67, + "column": 32 }, "end": { - "line": 58, - "column": 17 + "line": 67, + "column": 33 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2315, - "end": 2316, + "start": 2646, + "end": 2647, "loc": { "start": { - "line": 58, - "column": 17 + "line": 67, + "column": 33 }, "end": { - "line": 58, - "column": 18 + "line": 67, + "column": 34 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -16395,26 +18968,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "compounds", - "start": 2316, - "end": 2327, + "value": "globalY", + "start": 2647, + "end": 2654, "loc": { "start": { - "line": 58, - "column": 18 + "line": 67, + "column": 34 }, "end": { - "line": 58, - "column": 29 + "line": 67, + "column": 41 } } }, { "type": { - "label": ",", + "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -16422,19 +18994,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 2327, - "end": 2328, + "value": "*", + "start": 2655, + "end": 2656, "loc": { "start": { - "line": 58, - "column": 29 + "line": 67, + "column": 42 }, "end": { - "line": 58, - "column": 30 + "line": 67, + "column": 43 } } }, @@ -16450,24 +19023,24 @@ "postfix": false, "binop": null }, - "value": "compound", - "start": 2329, - "end": 2337, + "value": "GLOBAL", + "start": 2657, + "end": 2663, "loc": { "start": { - "line": 58, - "column": 31 + "line": 67, + "column": 44 }, "end": { - "line": 58, - "column": 39 + "line": 67, + "column": 50 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -16477,16 +19050,16 @@ "binop": null, "updateContext": null }, - "start": 2337, - "end": 2338, + "start": 2663, + "end": 2664, "loc": { "start": { - "line": 58, - "column": 39 + "line": 67, + "column": 50 }, "end": { - "line": 58, - "column": 40 + "line": 67, + "column": 51 } } }, @@ -16502,23 +19075,23 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 2339, - "end": 2343, + "value": "GRID_SPACING", + "start": 2664, + "end": 2676, "loc": { "start": { - "line": 58, - "column": 41 + "line": 67, + "column": 51 }, "end": { - "line": 58, - "column": 45 + "line": 67, + "column": 63 } } }, { "type": { - "label": ",", + "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -16526,25 +19099,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 2343, - "end": 2344, + "value": "*", + "start": 2677, + "end": 2678, "loc": { "start": { - "line": 58, - "column": 45 + "line": 67, + "column": 64 }, "end": { - "line": 58, - "column": 46 + "line": 67, + "column": 65 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -16552,52 +19126,55 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "socket", - "start": 2345, - "end": 2351, + "value": 2, + "start": 2679, + "end": 2680, "loc": { "start": { - "line": 58, - "column": 47 + "line": 67, + "column": 66 }, "end": { - "line": 58, - "column": 53 + "line": 67, + "column": 67 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 2351, - "end": 2352, + "value": "-", + "start": 2681, + "end": 2682, "loc": { "start": { - "line": 58, - "column": 53 + "line": 67, + "column": 68 }, "end": { - "line": 58, - "column": 54 + "line": 67, + "column": 69 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -16605,22 +19182,23 @@ "postfix": false, "binop": null }, - "start": 2357, - "end": 2358, + "value": "GLOBAL", + "start": 2683, + "end": 2689, "loc": { "start": { - "line": 59, - "column": 4 + "line": 67, + "column": 70 }, "end": { - "line": 59, - "column": 5 + "line": 67, + "column": 76 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -16628,26 +19206,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2362, - "end": 2363, + "start": 2689, + "end": 2690, "loc": { "start": { - "line": 60, - "column": 3 + "line": 67, + "column": 76 }, "end": { - "line": 60, - "column": 4 + "line": 67, + "column": 77 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -16655,52 +19234,50 @@ "postfix": false, "binop": null }, - "start": 2366, - "end": 2367, + "value": "GRID_SPACING", + "start": 2690, + "end": 2702, "loc": { "start": { - "line": 61, - "column": 2 + "line": 67, + "column": 77 }, "end": { - "line": 61, - "column": 3 + "line": 67, + "column": 89 } } }, { "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "else", - "start": 2370, - "end": 2374, + "start": 2707, + "end": 2708, "loc": { "start": { - "line": 62, - "column": 2 + "line": 68, + "column": 4 }, "end": { - "line": 62, - "column": 6 + "line": 68, + "column": 5 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -16708,60 +19285,43 @@ "postfix": false, "binop": null }, - "start": 2375, - "end": 2376, - "loc": { - "start": { - "line": 62, - "column": 7 - }, - "end": { - "line": 62, - "column": 8 - } - } - }, - { - "type": "CommentLine", - "value": " check for tile collisions", - "start": 2377, - "end": 2405, + "start": 2708, + "end": 2709, "loc": { "start": { - "line": 62, - "column": 9 + "line": 68, + "column": 5 }, "end": { - "line": 62, - "column": 37 + "line": 68, + "column": 6 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": "", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "value": "let", - "start": 2409, - "end": 2412, + "value": "<", + "start": 2710, + "end": 2711, "loc": { "start": { - "line": 63, - "column": 3 + "line": 68, + "column": 7 }, "end": { - "line": 63, - "column": 6 + "line": 68, + "column": 8 } } }, @@ -16777,44 +19337,43 @@ "postfix": false, "binop": null }, - "value": "tileID", - "start": 2413, - "end": 2419, + "value": "GLOBAL", + "start": 2712, + "end": 2718, "loc": { "start": { - "line": 63, - "column": 7 + "line": 68, + "column": 9 }, "end": { - "line": 63, - "column": 13 + "line": 68, + "column": 15 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 2420, - "end": 2421, + "start": 2718, + "end": 2719, "loc": { "start": { - "line": 63, - "column": 14 + "line": 68, + "column": 15 }, "end": { - "line": 63, - "column": 15 + "line": 68, + "column": 16 } } }, @@ -16830,25 +19389,25 @@ "postfix": false, "binop": null }, - "value": "getTileID", - "start": 2422, - "end": 2431, + "value": "STRONGHOLD_RADIUS", + "start": 2719, + "end": 2736, "loc": { "start": { - "line": 63, + "line": 68, "column": 16 }, "end": { - "line": 63, - "column": 25 + "line": 68, + "column": 33 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -16856,23 +19415,23 @@ "postfix": false, "binop": null }, - "start": 2431, - "end": 2432, + "start": 2736, + "end": 2737, "loc": { "start": { - "line": 63, - "column": 25 + "line": 68, + "column": 33 }, "end": { - "line": 63, - "column": 26 + "line": 68, + "column": 34 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -16881,24 +19440,23 @@ "postfix": false, "binop": null }, - "value": "getGlobalLocation", - "start": 2432, - "end": 2449, + "start": 2738, + "end": 2739, "loc": { "start": { - "line": 63, - "column": 26 + "line": 68, + "column": 35 }, "end": { - "line": 63, - "column": 43 + "line": 68, + "column": 36 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -16907,23 +19465,24 @@ "postfix": false, "binop": null }, - "start": 2449, - "end": 2450, + "value": "deleteObject", + "start": 2745, + "end": 2757, "loc": { "start": { - "line": 63, - "column": 43 + "line": 69, + "column": 5 }, "end": { - "line": 63, - "column": 44 + "line": 69, + "column": 17 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -16932,42 +19491,43 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 2450, - "end": 2453, + "start": 2757, + "end": 2758, "loc": { "start": { - "line": 63, - "column": 44 + "line": 69, + "column": 17 }, "end": { - "line": 63, - "column": 47 + "line": 69, + "column": 18 } } }, { "type": { - "label": ")", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2453, - "end": 2454, + "value": "compounds", + "start": 2758, + "end": 2769, "loc": { "start": { - "line": 63, - "column": 47 + "line": 69, + "column": 18 }, "end": { - "line": 63, - "column": 48 + "line": 69, + "column": 29 } } }, @@ -16984,16 +19544,16 @@ "binop": null, "updateContext": null }, - "start": 2454, - "end": 2455, + "start": 2769, + "end": 2770, "loc": { "start": { - "line": 63, - "column": 48 + "line": 69, + "column": 29 }, "end": { - "line": 63, - "column": 49 + "line": 69, + "column": 30 } } }, @@ -17009,95 +19569,95 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 2456, - "end": 2460, + "value": "compound", + "start": 2771, + "end": 2779, "loc": { "start": { - "line": 63, - "column": 50 + "line": 69, + "column": 31 }, "end": { - "line": 63, - "column": 54 + "line": 69, + "column": 39 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2460, - "end": 2461, + "start": 2779, + "end": 2780, "loc": { "start": { - "line": 63, - "column": 54 + "line": 69, + "column": 39 }, "end": { - "line": 63, - "column": 55 + "line": 69, + "column": 40 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 2465, - "end": 2467, + "value": "room", + "start": 2781, + "end": 2785, "loc": { "start": { - "line": 64, - "column": 3 + "line": 69, + "column": 41 }, "end": { - "line": 64, - "column": 5 + "line": 69, + "column": 45 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2468, - "end": 2469, + "start": 2785, + "end": 2786, "loc": { "start": { - "line": 64, - "column": 6 + "line": 69, + "column": 45 }, "end": { - "line": 64, - "column": 7 + "line": 69, + "column": 46 } } }, @@ -17113,17 +19673,17 @@ "postfix": false, "binop": null }, - "value": "tileID", - "start": 2469, - "end": 2475, + "value": "socket", + "start": 2787, + "end": 2793, "loc": { "start": { - "line": 64, - "column": 7 + "line": 69, + "column": 47 }, "end": { - "line": 64, - "column": 13 + "line": 69, + "column": 53 } } }, @@ -17139,22 +19699,48 @@ "postfix": false, "binop": null }, - "start": 2475, - "end": 2476, + "start": 2793, + "end": 2794, "loc": { "start": { - "line": 64, - "column": 13 + "line": 69, + "column": 53 }, "end": { - "line": 64, - "column": 14 + "line": 69, + "column": 54 } } }, { "type": { - "label": "{", + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "damageTile", + "start": 2800, + "end": 2810, + "loc": { + "start": { + "line": 70, + "column": 5 + }, + "end": { + "line": 70, + "column": 15 + } + } + }, + { + "type": { + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -17164,15 +19750,15 @@ "postfix": false, "binop": null }, - "start": 2477, - "end": 2478, + "start": 2810, + "end": 2811, "loc": { "start": { - "line": 64, + "line": 70, "column": 15 }, "end": { - "line": 64, + "line": 70, "column": 16 } } @@ -17189,24 +19775,24 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 2483, - "end": 2490, + "value": "tileID", + "start": 2811, + "end": 2817, "loc": { "start": { - "line": 65, - "column": 4 + "line": 70, + "column": 16 }, "end": { - "line": 65, - "column": 11 + "line": 70, + "column": 22 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -17216,16 +19802,16 @@ "binop": null, "updateContext": null }, - "start": 2490, - "end": 2491, + "start": 2817, + "end": 2818, "loc": { "start": { - "line": 65, - "column": 11 + "line": 70, + "column": 22 }, "end": { - "line": 65, - "column": 12 + "line": 70, + "column": 23 } } }, @@ -17241,48 +19827,49 @@ "postfix": false, "binop": null }, - "value": "log", - "start": 2491, - "end": 2494, + "value": "cmp", + "start": 2819, + "end": 2822, "loc": { "start": { - "line": 65, - "column": 12 + "line": 70, + "column": 24 }, "end": { - "line": 65, - "column": 15 + "line": 70, + "column": 27 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2494, - "end": 2495, + "start": 2822, + "end": 2823, "loc": { "start": { - "line": 65, - "column": 15 + "line": 70, + "column": 27 }, "end": { - "line": 65, - "column": 16 + "line": 70, + "column": 28 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -17290,47 +19877,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "hit ", - "start": 2495, - "end": 2501, + "value": "blueprint", + "start": 2823, + "end": 2832, "loc": { "start": { - "line": 65, - "column": 16 + "line": 70, + "column": 28 }, "end": { - "line": 65, - "column": 22 + "line": 70, + "column": 37 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 2502, - "end": 2503, + "start": 2832, + "end": 2833, "loc": { "start": { - "line": 65, - "column": 23 + "line": 70, + "column": 37 }, "end": { - "line": 65, - "column": 24 + "line": 70, + "column": 38 } } }, @@ -17346,50 +19931,49 @@ "postfix": false, "binop": null }, - "value": "tileID", - "start": 2504, - "end": 2510, + "value": "params", + "start": 2833, + "end": 2839, "loc": { "start": { - "line": 65, - "column": 25 + "line": 70, + "column": 38 }, "end": { - "line": 65, - "column": 31 + "line": 70, + "column": 44 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 2511, - "end": 2512, + "start": 2839, + "end": 2840, "loc": { "start": { - "line": 65, - "column": 32 + "line": 70, + "column": 44 }, "end": { - "line": 65, - "column": 33 + "line": 70, + "column": 45 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -17397,47 +19981,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": " at ", - "start": 2513, - "end": 2519, + "value": "damage", + "start": 2840, + "end": 2846, "loc": { "start": { - "line": 65, - "column": 34 + "line": 70, + "column": 45 }, "end": { - "line": 65, - "column": 40 + "line": 70, + "column": 51 } } }, { "type": { - "label": "+/-", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 2520, - "end": 2521, + "start": 2846, + "end": 2847, "loc": { "start": { - "line": 65, - "column": 41 + "line": 70, + "column": 51 }, "end": { - "line": 65, - "column": 42 + "line": 70, + "column": 52 } } }, @@ -17453,17 +20035,17 @@ "postfix": false, "binop": null }, - "value": "JSON", - "start": 2522, - "end": 2526, + "value": "socket", + "start": 2848, + "end": 2854, "loc": { "start": { - "line": 65, - "column": 43 + "line": 70, + "column": 53 }, "end": { - "line": 65, - "column": 47 + "line": 70, + "column": 59 } } }, @@ -17480,16 +20062,16 @@ "binop": null, "updateContext": null }, - "start": 2526, - "end": 2527, + "start": 2854, + "end": 2855, "loc": { "start": { - "line": 65, - "column": 47 + "line": 70, + "column": 59 }, "end": { - "line": 65, - "column": 48 + "line": 70, + "column": 60 } } }, @@ -17505,42 +20087,43 @@ "postfix": false, "binop": null }, - "value": "stringify", - "start": 2527, - "end": 2536, + "value": "id", + "start": 2855, + "end": 2857, "loc": { "start": { - "line": 65, - "column": 48 + "line": 70, + "column": 60 }, "end": { - "line": 65, - "column": 57 + "line": 70, + "column": 62 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2536, - "end": 2537, + "start": 2857, + "end": 2858, "loc": { "start": { - "line": 65, - "column": 57 + "line": 70, + "column": 62 }, "end": { - "line": 65, - "column": 58 + "line": 70, + "column": 63 } } }, @@ -17556,42 +20139,43 @@ "postfix": false, "binop": null }, - "value": "getGlobalLocation", - "start": 2537, - "end": 2554, + "value": "room", + "start": 2859, + "end": 2863, "loc": { "start": { - "line": 65, - "column": 58 + "line": 70, + "column": 64 }, "end": { - "line": 65, - "column": 75 + "line": 70, + "column": 68 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2554, - "end": 2555, + "start": 2863, + "end": 2864, "loc": { "start": { - "line": 65, - "column": 75 + "line": 70, + "column": 68 }, "end": { - "line": 65, - "column": 76 + "line": 70, + "column": 69 } } }, @@ -17607,42 +20191,17 @@ "postfix": false, "binop": null }, - "value": "cmp", - "start": 2555, - "end": 2558, - "loc": { - "start": { - "line": 65, - "column": 76 - }, - "end": { - "line": 65, - "column": 79 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2558, - "end": 2559, + "value": "socket", + "start": 2865, + "end": 2871, "loc": { "start": { - "line": 65, - "column": 79 + "line": 70, + "column": 70 }, "end": { - "line": 65, - "column": 80 + "line": 70, + "column": 76 } } }, @@ -17658,22 +20217,22 @@ "postfix": false, "binop": null }, - "start": 2559, - "end": 2560, + "start": 2871, + "end": 2872, "loc": { "start": { - "line": 65, - "column": 80 + "line": 70, + "column": 76 }, "end": { - "line": 65, - "column": 81 + "line": 70, + "column": 77 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -17683,16 +20242,16 @@ "postfix": false, "binop": null }, - "start": 2560, - "end": 2561, + "start": 2877, + "end": 2878, "loc": { "start": { - "line": 65, - "column": 81 + "line": 71, + "column": 4 }, "end": { - "line": 65, - "column": 82 + "line": 71, + "column": 5 } } }, @@ -17708,15 +20267,15 @@ "postfix": false, "binop": null }, - "start": 2565, - "end": 2566, + "start": 2882, + "end": 2883, "loc": { "start": { - "line": 66, + "line": 72, "column": 3 }, "end": { - "line": 66, + "line": 72, "column": 4 } } @@ -17733,15 +20292,15 @@ "postfix": false, "binop": null }, - "start": 2569, - "end": 2570, + "start": 2886, + "end": 2887, "loc": { "start": { - "line": 67, + "line": 73, "column": 2 }, "end": { - "line": 67, + "line": 73, "column": 3 } } @@ -17758,15 +20317,15 @@ "postfix": false, "binop": null }, - "start": 2572, - "end": 2573, + "start": 2889, + "end": 2890, "loc": { "start": { - "line": 68, + "line": 74, "column": 1 }, "end": { - "line": 68, + "line": 74, "column": 2 } } @@ -17783,15 +20342,15 @@ "postfix": false, "binop": null }, - "start": 2574, - "end": 2575, + "start": 2891, + "end": 2892, "loc": { "start": { - "line": 69, + "line": 75, "column": 0 }, "end": { - "line": 69, + "line": 75, "column": 1 } } @@ -17809,15 +20368,15 @@ "binop": null, "updateContext": null }, - "start": 2576, - "end": 2576, + "start": 2893, + "end": 2893, "loc": { "start": { - "line": 70, + "line": 76, "column": 0 }, "end": { - "line": 70, + "line": 76, "column": 0 } } diff --git a/docs/ast/source/server/utils/ondamage.js.json b/docs/ast/source/server/utils/ondamage.js.json index 40bcac4..719ae3e 100644 --- a/docs/ast/source/server/utils/ondamage.js.json +++ b/docs/ast/source/server/utils/ondamage.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 5452, + "end": 6558, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 145, + "line": 175, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 5452, + "end": 6558, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 145, + "line": 175, "column": 0 } }, @@ -117,7 +117,7 @@ { "type": "ImportDeclaration", "start": 48, - "end": 94, + "end": 110, "loc": { "start": { "line": 2, @@ -125,7 +125,7 @@ }, "end": { "line": 2, - "column": 46 + "column": 62 } }, "specifiers": [ @@ -226,20 +226,69 @@ }, "name": "setField" } + }, + { + "type": "ImportSpecifier", + "start": 77, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 29 + }, + "end": { + "line": 2, + "column": 43 + } + }, + "imported": { + "type": "Identifier", + "start": 77, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 29 + }, + "end": { + "line": 2, + "column": 43 + }, + "identifierName": "incrementField" + }, + "name": "incrementField" + }, + "local": { + "type": "Identifier", + "start": 77, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 29 + }, + "end": { + "line": 2, + "column": 43 + }, + "identifierName": "incrementField" + }, + "name": "incrementField" + } } ], "source": { "type": "StringLiteral", - "start": 83, - "end": 94, + "start": 99, + "end": 110, "loc": { "start": { "line": 2, - "column": 35 + "column": 51 }, "end": { "line": 2, - "column": 46 + "column": 62 } }, "extra": { @@ -251,8 +300,8 @@ }, { "type": "ImportDeclaration", - "start": 95, - "end": 140, + "start": 111, + "end": 156, "loc": { "start": { "line": 3, @@ -266,8 +315,8 @@ "specifiers": [ { "type": "ImportSpecifier", - "start": 104, - "end": 117, + "start": 120, + "end": 133, "loc": { "start": { "line": 3, @@ -280,8 +329,8 @@ }, "imported": { "type": "Identifier", - "start": 104, - "end": 117, + "start": 120, + "end": 133, "loc": { "start": { "line": 3, @@ -297,8 +346,8 @@ }, "local": { "type": "Identifier", - "start": 104, - "end": 117, + "start": 120, + "end": 133, "loc": { "start": { "line": 3, @@ -316,8 +365,8 @@ ], "source": { "type": "StringLiteral", - "start": 125, - "end": 140, + "start": 141, + "end": 156, "loc": { "start": { "line": 3, @@ -337,8 +386,8 @@ }, { "type": "ImportDeclaration", - "start": 141, - "end": 168, + "start": 157, + "end": 184, "loc": { "start": { "line": 4, @@ -352,8 +401,8 @@ "specifiers": [ { "type": "ImportSpecifier", - "start": 150, - "end": 156, + "start": 166, + "end": 172, "loc": { "start": { "line": 4, @@ -366,8 +415,8 @@ }, "imported": { "type": "Identifier", - "start": 150, - "end": 156, + "start": 166, + "end": 172, "loc": { "start": { "line": 4, @@ -383,8 +432,8 @@ }, "local": { "type": "Identifier", - "start": 150, - "end": 156, + "start": 166, + "end": 172, "loc": { "start": { "line": 4, @@ -402,8 +451,8 @@ ], "source": { "type": "StringLiteral", - "start": 164, - "end": 168, + "start": 180, + "end": 184, "loc": { "start": { "line": 4, @@ -423,8 +472,8 @@ }, { "type": "ImportDeclaration", - "start": 169, - "end": 204, + "start": 185, + "end": 220, "loc": { "start": { "line": 5, @@ -438,8 +487,8 @@ "specifiers": [ { "type": "ImportSpecifier", - "start": 178, - "end": 187, + "start": 194, + "end": 203, "loc": { "start": { "line": 5, @@ -452,8 +501,8 @@ }, "imported": { "type": "Identifier", - "start": 178, - "end": 187, + "start": 194, + "end": 203, "loc": { "start": { "line": 5, @@ -469,8 +518,8 @@ }, "local": { "type": "Identifier", - "start": 178, - "end": 187, + "start": 194, + "end": 203, "loc": { "start": { "line": 5, @@ -488,8 +537,8 @@ ], "source": { "type": "StringLiteral", - "start": 195, - "end": 204, + "start": 211, + "end": 220, "loc": { "start": { "line": 5, @@ -512,8 +561,8 @@ { "type": "CommentBlock", "value": "*\n * ondamage.js\n * Contains functions:\n * - damage() Runs when a player gets damaged. Updates scores and checks if a player has been killed.\n * - splash() Runs when a collision needs to cause splash damage. Creates explosion effect and deals extra damage.\n ", - "start": 206, - "end": 470, + "start": 222, + "end": 486, "loc": { "start": { "line": 7, @@ -528,8 +577,8 @@ { "type": "CommentBlock", "value": "*\n * Changes the health of the player by the amount given.\n * @param {*} data The data sent by the client. Contains:\n * - damage (number)\n * - player (id string of player that was hit)\n * - id (id string of compound)\n * - sentBy (id string of player that sent compound)\n * @param {string} room This room.\n * @param {*} socket This socket.\n * Must include the player id and amount to damage.\n * Amount may be negative (for health boost).\n ", - "start": 472, - "end": 918, + "start": 488, + "end": 934, "loc": { "start": { "line": 14, @@ -545,8 +594,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 919, - "end": 5403, + "start": 935, + "end": 5381, "loc": { "start": { "line": 26, @@ -561,8 +610,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 926, - "end": 5403, + "start": 942, + "end": 5381, "loc": { "start": { "line": 26, @@ -575,8 +624,8 @@ }, "id": { "type": "Identifier", - "start": 935, - "end": 941, + "start": 951, + "end": 957, "loc": { "start": { "line": 26, @@ -597,8 +646,8 @@ "params": [ { "type": "Identifier", - "start": 943, - "end": 947, + "start": 959, + "end": 963, "loc": { "start": { "line": 26, @@ -614,8 +663,8 @@ }, { "type": "Identifier", - "start": 949, - "end": 953, + "start": 965, + "end": 969, "loc": { "start": { "line": 26, @@ -631,8 +680,8 @@ }, { "type": "Identifier", - "start": 955, - "end": 961, + "start": 971, + "end": 977, "loc": { "start": { "line": 26, @@ -649,8 +698,8 @@ ], "body": { "type": "BlockStatement", - "start": 963, - "end": 5403, + "start": 979, + "end": 5381, "loc": { "start": { "line": 26, @@ -664,8 +713,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 966, - "end": 1006, + "start": 982, + "end": 1022, "loc": { "start": { "line": 27, @@ -679,8 +728,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 970, - "end": 1006, + "start": 986, + "end": 1022, "loc": { "start": { "line": 27, @@ -693,8 +742,8 @@ }, "id": { "type": "Identifier", - "start": 970, - "end": 978, + "start": 986, + "end": 994, "loc": { "start": { "line": 27, @@ -710,8 +759,8 @@ }, "init": { "type": "CallExpression", - "start": 981, - "end": 1006, + "start": 997, + "end": 1022, "loc": { "start": { "line": 27, @@ -724,8 +773,8 @@ }, "callee": { "type": "Identifier", - "start": 981, - "end": 989, + "start": 997, + "end": 1005, "loc": { "start": { "line": 27, @@ -742,8 +791,8 @@ "arguments": [ { "type": "ArrayExpression", - "start": 990, - "end": 1005, + "start": 1006, + "end": 1021, "loc": { "start": { "line": 27, @@ -757,8 +806,8 @@ "elements": [ { "type": "StringLiteral", - "start": 991, - "end": 998, + "start": 1007, + "end": 1014, "loc": { "start": { "line": 27, @@ -777,8 +826,8 @@ }, { "type": "Identifier", - "start": 1000, - "end": 1004, + "start": 1016, + "end": 1020, "loc": { "start": { "line": 27, @@ -802,8 +851,8 @@ }, { "type": "VariableDeclaration", - "start": 1008, - "end": 1054, + "start": 1024, + "end": 1070, "loc": { "start": { "line": 28, @@ -817,8 +866,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 1012, - "end": 1054, + "start": 1028, + "end": 1070, "loc": { "start": { "line": 28, @@ -831,8 +880,8 @@ }, "id": { "type": "Identifier", - "start": 1012, - "end": 1022, + "start": 1028, + "end": 1038, "loc": { "start": { "line": 28, @@ -848,8 +897,8 @@ }, "init": { "type": "MemberExpression", - "start": 1025, - "end": 1054, + "start": 1041, + "end": 1070, "loc": { "start": { "line": 28, @@ -862,8 +911,8 @@ }, "object": { "type": "MemberExpression", - "start": 1025, - "end": 1041, + "start": 1041, + "end": 1057, "loc": { "start": { "line": 28, @@ -876,8 +925,8 @@ }, "object": { "type": "Identifier", - "start": 1025, - "end": 1033, + "start": 1041, + "end": 1049, "loc": { "start": { "line": 28, @@ -893,8 +942,8 @@ }, "property": { "type": "Identifier", - "start": 1034, - "end": 1041, + "start": 1050, + "end": 1057, "loc": { "start": { "line": 28, @@ -912,8 +961,8 @@ }, "property": { "type": "MemberExpression", - "start": 1042, - "end": 1053, + "start": 1058, + "end": 1069, "loc": { "start": { "line": 28, @@ -926,8 +975,8 @@ }, "object": { "type": "Identifier", - "start": 1042, - "end": 1046, + "start": 1058, + "end": 1062, "loc": { "start": { "line": 28, @@ -943,8 +992,8 @@ }, "property": { "type": "Identifier", - "start": 1047, - "end": 1053, + "start": 1063, + "end": 1069, "loc": { "start": { "line": 28, @@ -968,8 +1017,8 @@ }, { "type": "IfStatement", - "start": 1057, - "end": 5401, + "start": 1073, + "end": 5379, "loc": { "start": { "line": 30, @@ -982,8 +1031,8 @@ }, "test": { "type": "BinaryExpression", - "start": 1061, - "end": 1085, + "start": 1077, + "end": 1101, "loc": { "start": { "line": 30, @@ -996,8 +1045,8 @@ }, "left": { "type": "Identifier", - "start": 1061, - "end": 1071, + "start": 1077, + "end": 1087, "loc": { "start": { "line": 30, @@ -1014,8 +1063,8 @@ "operator": "!==", "right": { "type": "Identifier", - "start": 1076, - "end": 1085, + "start": 1092, + "end": 1101, "loc": { "start": { "line": 30, @@ -1032,8 +1081,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 1087, - "end": 5291, + "start": 1103, + "end": 5269, "loc": { "start": { "line": 30, @@ -1047,8 +1096,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1130, - "end": 1222, + "start": 1146, + "end": 1238, "loc": { "start": { "line": 32, @@ -1061,8 +1110,8 @@ }, "expression": { "type": "CallExpression", - "start": 1130, - "end": 1222, + "start": 1146, + "end": 1238, "loc": { "start": { "line": 32, @@ -1075,8 +1124,8 @@ }, "callee": { "type": "Identifier", - "start": 1130, - "end": 1138, + "start": 1146, + "end": 1154, "loc": { "start": { "line": 32, @@ -1094,8 +1143,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 1139, - "end": 1170, + "start": 1155, + "end": 1186, "loc": { "start": { "line": 32, @@ -1108,8 +1157,8 @@ }, "left": { "type": "MemberExpression", - "start": 1139, - "end": 1156, + "start": 1155, + "end": 1172, "loc": { "start": { "line": 32, @@ -1122,8 +1171,8 @@ }, "object": { "type": "Identifier", - "start": 1139, - "end": 1149, + "start": 1155, + "end": 1165, "loc": { "start": { "line": 32, @@ -1139,8 +1188,8 @@ }, "property": { "type": "Identifier", - "start": 1150, - "end": 1156, + "start": 1166, + "end": 1172, "loc": { "start": { "line": 32, @@ -1159,8 +1208,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 1159, - "end": 1170, + "start": 1175, + "end": 1186, "loc": { "start": { "line": 32, @@ -1173,8 +1222,8 @@ }, "object": { "type": "Identifier", - "start": 1159, - "end": 1163, + "start": 1175, + "end": 1179, "loc": { "start": { "line": 32, @@ -1190,8 +1239,8 @@ }, "property": { "type": "Identifier", - "start": 1164, - "end": 1170, + "start": 1180, + "end": 1186, "loc": { "start": { "line": 32, @@ -1210,8 +1259,8 @@ }, { "type": "ArrayExpression", - "start": 1172, - "end": 1221, + "start": 1188, + "end": 1237, "loc": { "start": { "line": 32, @@ -1225,8 +1274,8 @@ "elements": [ { "type": "StringLiteral", - "start": 1173, - "end": 1180, + "start": 1189, + "end": 1196, "loc": { "start": { "line": 32, @@ -1245,8 +1294,8 @@ }, { "type": "Identifier", - "start": 1182, - "end": 1186, + "start": 1198, + "end": 1202, "loc": { "start": { "line": 32, @@ -1262,8 +1311,8 @@ }, { "type": "StringLiteral", - "start": 1188, - "end": 1197, + "start": 1204, + "end": 1213, "loc": { "start": { "line": 32, @@ -1282,8 +1331,8 @@ }, { "type": "MemberExpression", - "start": 1199, - "end": 1210, + "start": 1215, + "end": 1226, "loc": { "start": { "line": 32, @@ -1296,8 +1345,8 @@ }, "object": { "type": "Identifier", - "start": 1199, - "end": 1203, + "start": 1215, + "end": 1219, "loc": { "start": { "line": 32, @@ -1313,8 +1362,8 @@ }, "property": { "type": "Identifier", - "start": 1204, - "end": 1210, + "start": 1220, + "end": 1226, "loc": { "start": { "line": 32, @@ -1332,8 +1381,8 @@ }, { "type": "StringLiteral", - "start": 1212, - "end": 1220, + "start": 1228, + "end": 1236, "loc": { "start": { "line": 32, @@ -1360,8 +1409,8 @@ { "type": "CommentLine", "value": " thisPlayer.health -= data.damage;", - "start": 1091, - "end": 1127, + "start": 1107, + "end": 1143, "loc": { "start": { "line": 31, @@ -1378,8 +1427,8 @@ { "type": "CommentLine", "value": " Add damage to database", - "start": 1226, - "end": 1251, + "start": 1242, + "end": 1267, "loc": { "start": { "line": 34, @@ -1395,8 +1444,8 @@ }, { "type": "IfStatement", - "start": 1254, - "end": 1394, + "start": 1270, + "end": 1410, "loc": { "start": { "line": 35, @@ -1409,8 +1458,8 @@ }, "test": { "type": "BinaryExpression", - "start": 1258, - "end": 1305, + "start": 1274, + "end": 1321, "loc": { "start": { "line": 35, @@ -1423,8 +1472,8 @@ }, "left": { "type": "MemberExpression", - "start": 1258, - "end": 1291, + "start": 1274, + "end": 1307, "loc": { "start": { "line": 35, @@ -1437,8 +1486,8 @@ }, "object": { "type": "MemberExpression", - "start": 1258, - "end": 1278, + "start": 1274, + "end": 1294, "loc": { "start": { "line": 35, @@ -1451,8 +1500,8 @@ }, "object": { "type": "Identifier", - "start": 1258, - "end": 1268, + "start": 1274, + "end": 1284, "loc": { "start": { "line": 35, @@ -1469,8 +1518,8 @@ }, "property": { "type": "Identifier", - "start": 1269, - "end": 1278, + "start": 1285, + "end": 1294, "loc": { "start": { "line": 35, @@ -1489,8 +1538,8 @@ }, "property": { "type": "MemberExpression", - "start": 1279, - "end": 1290, + "start": 1295, + "end": 1306, "loc": { "start": { "line": 35, @@ -1503,8 +1552,8 @@ }, "object": { "type": "Identifier", - "start": 1279, - "end": 1283, + "start": 1295, + "end": 1299, "loc": { "start": { "line": 35, @@ -1520,8 +1569,8 @@ }, "property": { "type": "Identifier", - "start": 1284, - "end": 1290, + "start": 1300, + "end": 1306, "loc": { "start": { "line": 35, @@ -1543,8 +1592,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 1296, - "end": 1305, + "start": 1312, + "end": 1321, "loc": { "start": { "line": 35, @@ -1562,8 +1611,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 1307, - "end": 1394, + "start": 1323, + "end": 1410, "loc": { "start": { "line": 35, @@ -1577,8 +1626,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1312, - "end": 1390, + "start": 1328, + "end": 1406, "loc": { "start": { "line": 36, @@ -1591,8 +1640,8 @@ }, "expression": { "type": "CallExpression", - "start": 1312, - "end": 1390, + "start": 1328, + "end": 1406, "loc": { "start": { "line": 36, @@ -1605,8 +1654,8 @@ }, "callee": { "type": "Identifier", - "start": 1312, - "end": 1320, + "start": 1328, + "end": 1336, "loc": { "start": { "line": 36, @@ -1623,8 +1672,8 @@ "arguments": [ { "type": "NumericLiteral", - "start": 1321, - "end": 1322, + "start": 1337, + "end": 1338, "loc": { "start": { "line": 36, @@ -1643,8 +1692,8 @@ }, { "type": "ArrayExpression", - "start": 1324, - "end": 1389, + "start": 1340, + "end": 1405, "loc": { "start": { "line": 36, @@ -1658,8 +1707,8 @@ "elements": [ { "type": "StringLiteral", - "start": 1325, - "end": 1332, + "start": 1341, + "end": 1348, "loc": { "start": { "line": 36, @@ -1678,8 +1727,8 @@ }, { "type": "Identifier", - "start": 1334, - "end": 1338, + "start": 1350, + "end": 1354, "loc": { "start": { "line": 36, @@ -1695,8 +1744,8 @@ }, { "type": "StringLiteral", - "start": 1340, - "end": 1349, + "start": 1356, + "end": 1365, "loc": { "start": { "line": 36, @@ -1715,8 +1764,8 @@ }, { "type": "MemberExpression", - "start": 1351, - "end": 1362, + "start": 1367, + "end": 1378, "loc": { "start": { "line": 36, @@ -1729,8 +1778,8 @@ }, "object": { "type": "Identifier", - "start": 1351, - "end": 1355, + "start": 1367, + "end": 1371, "loc": { "start": { "line": 36, @@ -1746,8 +1795,8 @@ }, "property": { "type": "Identifier", - "start": 1356, - "end": 1362, + "start": 1372, + "end": 1378, "loc": { "start": { "line": 36, @@ -1765,8 +1814,8 @@ }, { "type": "StringLiteral", - "start": 1364, - "end": 1375, + "start": 1380, + "end": 1391, "loc": { "start": { "line": 36, @@ -1785,8 +1834,8 @@ }, { "type": "MemberExpression", - "start": 1377, - "end": 1388, + "start": 1393, + "end": 1404, "loc": { "start": { "line": 36, @@ -1799,8 +1848,8 @@ }, "object": { "type": "Identifier", - "start": 1377, - "end": 1381, + "start": 1393, + "end": 1397, "loc": { "start": { "line": 36, @@ -1816,8 +1865,8 @@ }, "property": { "type": "Identifier", - "start": 1382, - "end": 1388, + "start": 1398, + "end": 1404, "loc": { "start": { "line": 36, @@ -1847,8 +1896,8 @@ { "type": "CommentLine", "value": " Add damage to database", - "start": 1226, - "end": 1251, + "start": 1242, + "end": 1267, "loc": { "start": { "line": 34, @@ -1865,8 +1914,8 @@ { "type": "CommentLine", "value": " thisPlayer.damagedBy[data.sentBy] += data.damage;", - "start": 1397, - "end": 1449, + "start": 1413, + "end": 1465, "loc": { "start": { "line": 38, @@ -1882,8 +1931,8 @@ }, { "type": "ExpressionStatement", - "start": 1452, - "end": 1576, + "start": 1468, + "end": 1592, "loc": { "start": { "line": 39, @@ -1896,8 +1945,8 @@ }, "expression": { "type": "CallExpression", - "start": 1452, - "end": 1576, + "start": 1468, + "end": 1592, "loc": { "start": { "line": 39, @@ -1910,8 +1959,8 @@ }, "callee": { "type": "Identifier", - "start": 1452, - "end": 1460, + "start": 1468, + "end": 1476, "loc": { "start": { "line": 39, @@ -1929,8 +1978,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 1461, - "end": 1508, + "start": 1477, + "end": 1524, "loc": { "start": { "line": 39, @@ -1943,8 +1992,8 @@ }, "left": { "type": "MemberExpression", - "start": 1461, - "end": 1494, + "start": 1477, + "end": 1510, "loc": { "start": { "line": 39, @@ -1957,8 +2006,8 @@ }, "object": { "type": "MemberExpression", - "start": 1461, - "end": 1481, + "start": 1477, + "end": 1497, "loc": { "start": { "line": 39, @@ -1971,8 +2020,8 @@ }, "object": { "type": "Identifier", - "start": 1461, - "end": 1471, + "start": 1477, + "end": 1487, "loc": { "start": { "line": 39, @@ -1988,8 +2037,8 @@ }, "property": { "type": "Identifier", - "start": 1472, - "end": 1481, + "start": 1488, + "end": 1497, "loc": { "start": { "line": 39, @@ -2007,8 +2056,8 @@ }, "property": { "type": "MemberExpression", - "start": 1482, - "end": 1493, + "start": 1498, + "end": 1509, "loc": { "start": { "line": 39, @@ -2021,8 +2070,8 @@ }, "object": { "type": "Identifier", - "start": 1482, - "end": 1486, + "start": 1498, + "end": 1502, "loc": { "start": { "line": 39, @@ -2038,8 +2087,8 @@ }, "property": { "type": "Identifier", - "start": 1487, - "end": 1493, + "start": 1503, + "end": 1509, "loc": { "start": { "line": 39, @@ -2060,8 +2109,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 1497, - "end": 1508, + "start": 1513, + "end": 1524, "loc": { "start": { "line": 39, @@ -2074,8 +2123,8 @@ }, "object": { "type": "Identifier", - "start": 1497, - "end": 1501, + "start": 1513, + "end": 1517, "loc": { "start": { "line": 39, @@ -2091,8 +2140,8 @@ }, "property": { "type": "Identifier", - "start": 1502, - "end": 1508, + "start": 1518, + "end": 1524, "loc": { "start": { "line": 39, @@ -2111,8 +2160,8 @@ }, { "type": "ArrayExpression", - "start": 1510, - "end": 1575, + "start": 1526, + "end": 1591, "loc": { "start": { "line": 39, @@ -2126,8 +2175,8 @@ "elements": [ { "type": "StringLiteral", - "start": 1511, - "end": 1518, + "start": 1527, + "end": 1534, "loc": { "start": { "line": 39, @@ -2146,8 +2195,8 @@ }, { "type": "Identifier", - "start": 1520, - "end": 1524, + "start": 1536, + "end": 1540, "loc": { "start": { "line": 39, @@ -2163,8 +2212,8 @@ }, { "type": "StringLiteral", - "start": 1526, - "end": 1535, + "start": 1542, + "end": 1551, "loc": { "start": { "line": 39, @@ -2183,8 +2232,8 @@ }, { "type": "MemberExpression", - "start": 1537, - "end": 1548, + "start": 1553, + "end": 1564, "loc": { "start": { "line": 39, @@ -2197,8 +2246,8 @@ }, "object": { "type": "Identifier", - "start": 1537, - "end": 1541, + "start": 1553, + "end": 1557, "loc": { "start": { "line": 39, @@ -2214,8 +2263,8 @@ }, "property": { "type": "Identifier", - "start": 1542, - "end": 1548, + "start": 1558, + "end": 1564, "loc": { "start": { "line": 39, @@ -2233,8 +2282,8 @@ }, { "type": "StringLiteral", - "start": 1550, - "end": 1561, + "start": 1566, + "end": 1577, "loc": { "start": { "line": 39, @@ -2253,8 +2302,8 @@ }, { "type": "MemberExpression", - "start": 1563, - "end": 1574, + "start": 1579, + "end": 1590, "loc": { "start": { "line": 39, @@ -2267,8 +2316,8 @@ }, "object": { "type": "Identifier", - "start": 1563, - "end": 1567, + "start": 1579, + "end": 1583, "loc": { "start": { "line": 39, @@ -2284,8 +2333,8 @@ }, "property": { "type": "Identifier", - "start": 1568, - "end": 1574, + "start": 1584, + "end": 1590, "loc": { "start": { "line": 39, @@ -2311,8 +2360,8 @@ { "type": "CommentLine", "value": " thisPlayer.damagedBy[data.sentBy] += data.damage;", - "start": 1397, - "end": 1449, + "start": 1413, + "end": 1465, "loc": { "start": { "line": 38, @@ -2329,8 +2378,8 @@ { "type": "CommentLine", "value": " Check if the player has died.", - "start": 1580, - "end": 1612, + "start": 1596, + "end": 1628, "loc": { "start": { "line": 41, @@ -2346,8 +2395,8 @@ }, { "type": "IfStatement", - "start": 1615, - "end": 5288, + "start": 1631, + "end": 5266, "loc": { "start": { "line": 42, @@ -2360,8 +2409,8 @@ }, "test": { "type": "BinaryExpression", - "start": 1619, - "end": 1641, + "start": 1635, + "end": 1657, "loc": { "start": { "line": 42, @@ -2374,8 +2423,8 @@ }, "left": { "type": "MemberExpression", - "start": 1619, - "end": 1636, + "start": 1635, + "end": 1652, "loc": { "start": { "line": 42, @@ -2388,8 +2437,8 @@ }, "object": { "type": "Identifier", - "start": 1619, - "end": 1629, + "start": 1635, + "end": 1645, "loc": { "start": { "line": 42, @@ -2406,8 +2455,8 @@ }, "property": { "type": "Identifier", - "start": 1630, - "end": 1636, + "start": 1646, + "end": 1652, "loc": { "start": { "line": 42, @@ -2427,8 +2476,8 @@ "operator": "<=", "right": { "type": "NumericLiteral", - "start": 1640, - "end": 1641, + "start": 1656, + "end": 1657, "loc": { "start": { "line": 42, @@ -2449,8 +2498,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 1643, - "end": 5288, + "start": 1659, + "end": 5266, "loc": { "start": { "line": 42, @@ -2464,8 +2513,8 @@ "body": [ { "type": "ForInStatement", - "start": 1787, - "end": 1987, + "start": 1803, + "end": 2003, "loc": { "start": { "line": 46, @@ -2478,8 +2527,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 1792, - "end": 1798, + "start": 1808, + "end": 1814, "loc": { "start": { "line": 46, @@ -2493,8 +2542,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 1796, - "end": 1798, + "start": 1812, + "end": 1814, "loc": { "start": { "line": 46, @@ -2507,8 +2556,8 @@ }, "id": { "type": "Identifier", - "start": 1796, - "end": 1798, + "start": 1812, + "end": 1814, "loc": { "start": { "line": 46, @@ -2532,8 +2581,8 @@ }, "right": { "type": "MemberExpression", - "start": 1802, - "end": 1821, + "start": 1818, + "end": 1837, "loc": { "start": { "line": 46, @@ -2546,8 +2595,8 @@ }, "object": { "type": "Identifier", - "start": 1802, - "end": 1812, + "start": 1818, + "end": 1828, "loc": { "start": { "line": 46, @@ -2563,8 +2612,8 @@ }, "property": { "type": "Identifier", - "start": 1813, - "end": 1821, + "start": 1829, + "end": 1837, "loc": { "start": { "line": 46, @@ -2582,8 +2631,8 @@ }, "body": { "type": "BlockStatement", - "start": 1823, - "end": 1987, + "start": 1839, + "end": 2003, "loc": { "start": { "line": 46, @@ -2597,8 +2646,8 @@ "body": [ { "type": "ForStatement", - "start": 1829, - "end": 1982, + "start": 1845, + "end": 1998, "loc": { "start": { "line": 47, @@ -2611,8 +2660,8 @@ }, "init": { "type": "VariableDeclaration", - "start": 1834, - "end": 1843, + "start": 1850, + "end": 1859, "loc": { "start": { "line": 47, @@ -2626,8 +2675,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 1838, - "end": 1843, + "start": 1854, + "end": 1859, "loc": { "start": { "line": 47, @@ -2640,8 +2689,8 @@ }, "id": { "type": "Identifier", - "start": 1838, - "end": 1839, + "start": 1854, + "end": 1855, "loc": { "start": { "line": 47, @@ -2657,8 +2706,8 @@ }, "init": { "type": "NumericLiteral", - "start": 1842, - "end": 1843, + "start": 1858, + "end": 1859, "loc": { "start": { "line": 47, @@ -2681,8 +2730,8 @@ }, "test": { "type": "LogicalExpression", - "start": 1845, - "end": 1902, + "start": 1861, + "end": 1918, "loc": { "start": { "line": 47, @@ -2695,8 +2744,8 @@ }, "left": { "type": "BinaryExpression", - "start": 1845, - "end": 1871, + "start": 1861, + "end": 1887, "loc": { "start": { "line": 47, @@ -2709,8 +2758,8 @@ }, "left": { "type": "Identifier", - "start": 1845, - "end": 1846, + "start": 1861, + "end": 1862, "loc": { "start": { "line": 47, @@ -2727,8 +2776,8 @@ "operator": "<", "right": { "type": "MemberExpression", - "start": 1849, - "end": 1871, + "start": 1865, + "end": 1887, "loc": { "start": { "line": 47, @@ -2741,8 +2790,8 @@ }, "object": { "type": "Identifier", - "start": 1849, - "end": 1855, + "start": 1865, + "end": 1871, "loc": { "start": { "line": 47, @@ -2758,8 +2807,8 @@ }, "property": { "type": "Identifier", - "start": 1856, - "end": 1871, + "start": 1872, + "end": 1887, "loc": { "start": { "line": 47, @@ -2779,8 +2828,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 1875, - "end": 1902, + "start": 1891, + "end": 1918, "loc": { "start": { "line": 47, @@ -2793,8 +2842,8 @@ }, "left": { "type": "Identifier", - "start": 1875, - "end": 1876, + "start": 1891, + "end": 1892, "loc": { "start": { "line": 47, @@ -2811,8 +2860,8 @@ "operator": "<", "right": { "type": "MemberExpression", - "start": 1879, - "end": 1902, + "start": 1895, + "end": 1918, "loc": { "start": { "line": 47, @@ -2825,8 +2874,8 @@ }, "object": { "type": "MemberExpression", - "start": 1879, - "end": 1898, + "start": 1895, + "end": 1914, "loc": { "start": { "line": 47, @@ -2839,8 +2888,8 @@ }, "object": { "type": "Identifier", - "start": 1879, - "end": 1889, + "start": 1895, + "end": 1905, "loc": { "start": { "line": 47, @@ -2856,8 +2905,8 @@ }, "property": { "type": "Identifier", - "start": 1890, - "end": 1898, + "start": 1906, + "end": 1914, "loc": { "start": { "line": 47, @@ -2875,8 +2924,8 @@ }, "property": { "type": "Identifier", - "start": 1899, - "end": 1901, + "start": 1915, + "end": 1917, "loc": { "start": { "line": 47, @@ -2896,8 +2945,8 @@ }, "update": { "type": "UpdateExpression", - "start": 1904, - "end": 1907, + "start": 1920, + "end": 1923, "loc": { "start": { "line": 47, @@ -2912,8 +2961,8 @@ "prefix": false, "argument": { "type": "Identifier", - "start": 1904, - "end": 1905, + "start": 1920, + "end": 1921, "loc": { "start": { "line": 47, @@ -2930,8 +2979,8 @@ }, "body": { "type": "BlockStatement", - "start": 1909, - "end": 1982, + "start": 1925, + "end": 1998, "loc": { "start": { "line": 47, @@ -2945,8 +2994,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1916, - "end": 1976, + "start": 1932, + "end": 1992, "loc": { "start": { "line": 48, @@ -2959,8 +3008,8 @@ }, "expression": { "type": "CallExpression", - "start": 1916, - "end": 1976, + "start": 1932, + "end": 1992, "loc": { "start": { "line": 48, @@ -2973,8 +3022,8 @@ }, "callee": { "type": "Identifier", - "start": 1916, - "end": 1925, + "start": 1932, + "end": 1941, "loc": { "start": { "line": 48, @@ -2991,8 +3040,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 1926, - "end": 1941, + "start": 1942, + "end": 1957, "loc": { "start": { "line": 48, @@ -3005,8 +3054,8 @@ }, "object": { "type": "Identifier", - "start": 1926, - "end": 1936, + "start": 1942, + "end": 1952, "loc": { "start": { "line": 48, @@ -3022,8 +3071,8 @@ }, "property": { "type": "Identifier", - "start": 1937, - "end": 1941, + "start": 1953, + "end": 1957, "loc": { "start": { "line": 48, @@ -3041,8 +3090,8 @@ }, { "type": "MemberExpression", - "start": 1943, - "end": 1958, + "start": 1959, + "end": 1974, "loc": { "start": { "line": 48, @@ -3055,8 +3104,8 @@ }, "object": { "type": "Identifier", - "start": 1943, - "end": 1953, + "start": 1959, + "end": 1969, "loc": { "start": { "line": 48, @@ -3072,8 +3121,8 @@ }, "property": { "type": "Identifier", - "start": 1954, - "end": 1958, + "start": 1970, + "end": 1974, "loc": { "start": { "line": 48, @@ -3091,8 +3140,8 @@ }, { "type": "Identifier", - "start": 1960, - "end": 1962, + "start": 1976, + "end": 1978, "loc": { "start": { "line": 48, @@ -3108,8 +3157,8 @@ }, { "type": "Identifier", - "start": 1964, - "end": 1968, + "start": 1980, + "end": 1984, "loc": { "start": { "line": 48, @@ -3125,8 +3174,8 @@ }, { "type": "BooleanLiteral", - "start": 1970, - "end": 1975, + "start": 1986, + "end": 1991, "loc": { "start": { "line": 48, @@ -3153,8 +3202,8 @@ { "type": "CommentLine", "value": " console.log(thisRoom.teams.indexOf(socket.handshake.query.team));", - "start": 1648, - "end": 1716, + "start": 1664, + "end": 1732, "loc": { "start": { "line": 43, @@ -3169,8 +3218,8 @@ { "type": "CommentLine", "value": " Releases atoms and deletes the entire atoms array in player", - "start": 1721, - "end": 1783, + "start": 1737, + "end": 1799, "loc": { "start": { "line": 45, @@ -3186,8 +3235,8 @@ }, { "type": "ForInStatement", - "start": 1991, - "end": 2105, + "start": 2007, + "end": 2121, "loc": { "start": { "line": 51, @@ -3200,8 +3249,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 1996, - "end": 2002, + "start": 2012, + "end": 2018, "loc": { "start": { "line": 51, @@ -3215,8 +3264,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2000, - "end": 2002, + "start": 2016, + "end": 2018, "loc": { "start": { "line": 51, @@ -3229,8 +3278,8 @@ }, "id": { "type": "Identifier", - "start": 2000, - "end": 2002, + "start": 2016, + "end": 2018, "loc": { "start": { "line": 51, @@ -3251,8 +3300,8 @@ }, "right": { "type": "MemberExpression", - "start": 2006, - "end": 2025, + "start": 2022, + "end": 2041, "loc": { "start": { "line": 51, @@ -3265,8 +3314,8 @@ }, "object": { "type": "Identifier", - "start": 2006, - "end": 2016, + "start": 2022, + "end": 2032, "loc": { "start": { "line": 51, @@ -3282,8 +3331,8 @@ }, "property": { "type": "Identifier", - "start": 2017, - "end": 2025, + "start": 2033, + "end": 2041, "loc": { "start": { "line": 51, @@ -3301,8 +3350,8 @@ }, "body": { "type": "BlockStatement", - "start": 2027, - "end": 2105, + "start": 2043, + "end": 2121, "loc": { "start": { "line": 51, @@ -3316,8 +3365,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2033, - "end": 2100, + "start": 2049, + "end": 2116, "loc": { "start": { "line": 52, @@ -3330,8 +3379,8 @@ }, "expression": { "type": "CallExpression", - "start": 2033, - "end": 2100, + "start": 2049, + "end": 2116, "loc": { "start": { "line": 52, @@ -3344,8 +3393,8 @@ }, "callee": { "type": "Identifier", - "start": 2033, - "end": 2041, + "start": 2049, + "end": 2057, "loc": { "start": { "line": 52, @@ -3362,8 +3411,8 @@ "arguments": [ { "type": "NumericLiteral", - "start": 2042, - "end": 2043, + "start": 2058, + "end": 2059, "loc": { "start": { "line": 52, @@ -3382,8 +3431,8 @@ }, { "type": "ArrayExpression", - "start": 2045, - "end": 2099, + "start": 2061, + "end": 2115, "loc": { "start": { "line": 52, @@ -3397,8 +3446,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2046, - "end": 2053, + "start": 2062, + "end": 2069, "loc": { "start": { "line": 52, @@ -3417,8 +3466,8 @@ }, { "type": "Identifier", - "start": 2055, - "end": 2059, + "start": 2071, + "end": 2075, "loc": { "start": { "line": 52, @@ -3434,8 +3483,8 @@ }, { "type": "StringLiteral", - "start": 2061, - "end": 2070, + "start": 2077, + "end": 2086, "loc": { "start": { "line": 52, @@ -3454,8 +3503,8 @@ }, { "type": "Identifier", - "start": 2072, - "end": 2082, + "start": 2088, + "end": 2098, "loc": { "start": { "line": 52, @@ -3471,8 +3520,8 @@ }, { "type": "StringLiteral", - "start": 2084, - "end": 2094, + "start": 2100, + "end": 2110, "loc": { "start": { "line": 52, @@ -3491,8 +3540,8 @@ }, { "type": "Identifier", - "start": 2096, - "end": 2098, + "start": 2112, + "end": 2114, "loc": { "start": { "line": 52, @@ -3519,8 +3568,8 @@ { "type": "CommentLine", "value": " Reset position to spawnpoint", - "start": 2110, - "end": 2141, + "start": 2126, + "end": 2157, "loc": { "start": { "line": 55, @@ -3536,8 +3585,8 @@ }, { "type": "ExpressionStatement", - "start": 2145, - "end": 2289, + "start": 2161, + "end": 2305, "loc": { "start": { "line": 56, @@ -3550,8 +3599,8 @@ }, "expression": { "type": "CallExpression", - "start": 2145, - "end": 2289, + "start": 2161, + "end": 2305, "loc": { "start": { "line": 56, @@ -3564,8 +3613,8 @@ }, "callee": { "type": "Identifier", - "start": 2145, - "end": 2153, + "start": 2161, + "end": 2169, "loc": { "start": { "line": 56, @@ -3583,8 +3632,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 2154, - "end": 2239, + "start": 2170, + "end": 2255, "loc": { "start": { "line": 56, @@ -3597,8 +3646,8 @@ }, "left": { "type": "BinaryExpression", - "start": 2154, - "end": 2235, + "start": 2170, + "end": 2251, "loc": { "start": { "line": 56, @@ -3611,8 +3660,8 @@ }, "left": { "type": "MemberExpression", - "start": 2154, - "end": 2213, + "start": 2170, + "end": 2229, "loc": { "start": { "line": 56, @@ -3625,8 +3674,8 @@ }, "object": { "type": "MemberExpression", - "start": 2154, - "end": 2211, + "start": 2170, + "end": 2227, "loc": { "start": { "line": 56, @@ -3639,8 +3688,8 @@ }, "object": { "type": "MemberExpression", - "start": 2154, - "end": 2173, + "start": 2170, + "end": 2189, "loc": { "start": { "line": 56, @@ -3653,8 +3702,8 @@ }, "object": { "type": "Identifier", - "start": 2154, - "end": 2160, + "start": 2170, + "end": 2176, "loc": { "start": { "line": 56, @@ -3670,8 +3719,8 @@ }, "property": { "type": "Identifier", - "start": 2161, - "end": 2173, + "start": 2177, + "end": 2189, "loc": { "start": { "line": 56, @@ -3689,8 +3738,8 @@ }, "property": { "type": "CallExpression", - "start": 2174, - "end": 2210, + "start": 2190, + "end": 2226, "loc": { "start": { "line": 56, @@ -3703,8 +3752,8 @@ }, "callee": { "type": "Identifier", - "start": 2174, - "end": 2187, + "start": 2190, + "end": 2203, "loc": { "start": { "line": 56, @@ -3721,8 +3770,8 @@ "arguments": [ { "type": "Identifier", - "start": 2188, - "end": 2192, + "start": 2204, + "end": 2208, "loc": { "start": { "line": 56, @@ -3738,8 +3787,8 @@ }, { "type": "MemberExpression", - "start": 2194, - "end": 2209, + "start": 2210, + "end": 2225, "loc": { "start": { "line": 56, @@ -3752,8 +3801,8 @@ }, "object": { "type": "Identifier", - "start": 2194, - "end": 2204, + "start": 2210, + "end": 2220, "loc": { "start": { "line": 56, @@ -3769,8 +3818,8 @@ }, "property": { "type": "Identifier", - "start": 2205, - "end": 2209, + "start": 2221, + "end": 2225, "loc": { "start": { "line": 56, @@ -3792,8 +3841,8 @@ }, "property": { "type": "Identifier", - "start": 2212, - "end": 2213, + "start": 2228, + "end": 2229, "loc": { "start": { "line": 56, @@ -3812,8 +3861,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 2216, - "end": 2235, + "start": 2232, + "end": 2251, "loc": { "start": { "line": 56, @@ -3826,8 +3875,8 @@ }, "object": { "type": "Identifier", - "start": 2216, - "end": 2222, + "start": 2232, + "end": 2238, "loc": { "start": { "line": 56, @@ -3843,8 +3892,8 @@ }, "property": { "type": "Identifier", - "start": 2223, - "end": 2235, + "start": 2239, + "end": 2251, "loc": { "start": { "line": 56, @@ -3864,8 +3913,8 @@ "operator": "*", "right": { "type": "NumericLiteral", - "start": 2238, - "end": 2239, + "start": 2254, + "end": 2255, "loc": { "start": { "line": 56, @@ -3885,8 +3934,8 @@ }, { "type": "ArrayExpression", - "start": 2241, - "end": 2288, + "start": 2257, + "end": 2304, "loc": { "start": { "line": 56, @@ -3900,8 +3949,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2242, - "end": 2249, + "start": 2258, + "end": 2265, "loc": { "start": { "line": 56, @@ -3920,8 +3969,8 @@ }, { "type": "Identifier", - "start": 2251, - "end": 2255, + "start": 2267, + "end": 2271, "loc": { "start": { "line": 56, @@ -3937,8 +3986,8 @@ }, { "type": "StringLiteral", - "start": 2257, - "end": 2266, + "start": 2273, + "end": 2282, "loc": { "start": { "line": 56, @@ -3957,8 +4006,8 @@ }, { "type": "MemberExpression", - "start": 2268, - "end": 2279, + "start": 2284, + "end": 2295, "loc": { "start": { "line": 56, @@ -3971,8 +4020,8 @@ }, "object": { "type": "Identifier", - "start": 2268, - "end": 2272, + "start": 2284, + "end": 2288, "loc": { "start": { "line": 56, @@ -3988,8 +4037,8 @@ }, "property": { "type": "Identifier", - "start": 2273, - "end": 2279, + "start": 2289, + "end": 2295, "loc": { "start": { "line": 56, @@ -4007,8 +4056,8 @@ }, { "type": "StringLiteral", - "start": 2281, - "end": 2287, + "start": 2297, + "end": 2303, "loc": { "start": { "line": 56, @@ -4034,8 +4083,8 @@ { "type": "CommentLine", "value": " Reset position to spawnpoint", - "start": 2110, - "end": 2141, + "start": 2126, + "end": 2157, "loc": { "start": { "line": 55, @@ -4051,8 +4100,8 @@ }, { "type": "ExpressionStatement", - "start": 2293, - "end": 2437, + "start": 2309, + "end": 2453, "loc": { "start": { "line": 57, @@ -4065,8 +4114,8 @@ }, "expression": { "type": "CallExpression", - "start": 2293, - "end": 2437, + "start": 2309, + "end": 2453, "loc": { "start": { "line": 57, @@ -4079,8 +4128,8 @@ }, "callee": { "type": "Identifier", - "start": 2293, - "end": 2301, + "start": 2309, + "end": 2317, "loc": { "start": { "line": 57, @@ -4097,8 +4146,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 2302, - "end": 2387, + "start": 2318, + "end": 2403, "loc": { "start": { "line": 57, @@ -4111,8 +4160,8 @@ }, "left": { "type": "BinaryExpression", - "start": 2302, - "end": 2383, + "start": 2318, + "end": 2399, "loc": { "start": { "line": 57, @@ -4125,8 +4174,8 @@ }, "left": { "type": "MemberExpression", - "start": 2302, - "end": 2361, + "start": 2318, + "end": 2377, "loc": { "start": { "line": 57, @@ -4139,8 +4188,8 @@ }, "object": { "type": "MemberExpression", - "start": 2302, - "end": 2359, + "start": 2318, + "end": 2375, "loc": { "start": { "line": 57, @@ -4153,8 +4202,8 @@ }, "object": { "type": "MemberExpression", - "start": 2302, - "end": 2321, + "start": 2318, + "end": 2337, "loc": { "start": { "line": 57, @@ -4167,8 +4216,8 @@ }, "object": { "type": "Identifier", - "start": 2302, - "end": 2308, + "start": 2318, + "end": 2324, "loc": { "start": { "line": 57, @@ -4184,8 +4233,8 @@ }, "property": { "type": "Identifier", - "start": 2309, - "end": 2321, + "start": 2325, + "end": 2337, "loc": { "start": { "line": 57, @@ -4203,8 +4252,8 @@ }, "property": { "type": "CallExpression", - "start": 2322, - "end": 2358, + "start": 2338, + "end": 2374, "loc": { "start": { "line": 57, @@ -4217,8 +4266,8 @@ }, "callee": { "type": "Identifier", - "start": 2322, - "end": 2335, + "start": 2338, + "end": 2351, "loc": { "start": { "line": 57, @@ -4235,8 +4284,8 @@ "arguments": [ { "type": "Identifier", - "start": 2336, - "end": 2340, + "start": 2352, + "end": 2356, "loc": { "start": { "line": 57, @@ -4252,8 +4301,8 @@ }, { "type": "MemberExpression", - "start": 2342, - "end": 2357, + "start": 2358, + "end": 2373, "loc": { "start": { "line": 57, @@ -4266,8 +4315,8 @@ }, "object": { "type": "Identifier", - "start": 2342, - "end": 2352, + "start": 2358, + "end": 2368, "loc": { "start": { "line": 57, @@ -4283,8 +4332,8 @@ }, "property": { "type": "Identifier", - "start": 2353, - "end": 2357, + "start": 2369, + "end": 2373, "loc": { "start": { "line": 57, @@ -4306,8 +4355,8 @@ }, "property": { "type": "Identifier", - "start": 2360, - "end": 2361, + "start": 2376, + "end": 2377, "loc": { "start": { "line": 57, @@ -4326,8 +4375,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 2364, - "end": 2383, + "start": 2380, + "end": 2399, "loc": { "start": { "line": 57, @@ -4340,8 +4389,8 @@ }, "object": { "type": "Identifier", - "start": 2364, - "end": 2370, + "start": 2380, + "end": 2386, "loc": { "start": { "line": 57, @@ -4357,8 +4406,8 @@ }, "property": { "type": "Identifier", - "start": 2371, - "end": 2383, + "start": 2387, + "end": 2399, "loc": { "start": { "line": 57, @@ -4378,8 +4427,8 @@ "operator": "*", "right": { "type": "NumericLiteral", - "start": 2386, - "end": 2387, + "start": 2402, + "end": 2403, "loc": { "start": { "line": 57, @@ -4399,8 +4448,8 @@ }, { "type": "ArrayExpression", - "start": 2389, - "end": 2436, + "start": 2405, + "end": 2452, "loc": { "start": { "line": 57, @@ -4414,8 +4463,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2390, - "end": 2397, + "start": 2406, + "end": 2413, "loc": { "start": { "line": 57, @@ -4434,8 +4483,8 @@ }, { "type": "Identifier", - "start": 2399, - "end": 2403, + "start": 2415, + "end": 2419, "loc": { "start": { "line": 57, @@ -4451,8 +4500,8 @@ }, { "type": "StringLiteral", - "start": 2405, - "end": 2414, + "start": 2421, + "end": 2430, "loc": { "start": { "line": 57, @@ -4471,8 +4520,8 @@ }, { "type": "MemberExpression", - "start": 2416, - "end": 2427, + "start": 2432, + "end": 2443, "loc": { "start": { "line": 57, @@ -4485,8 +4534,8 @@ }, "object": { "type": "Identifier", - "start": 2416, - "end": 2420, + "start": 2432, + "end": 2436, "loc": { "start": { "line": 57, @@ -4502,8 +4551,8 @@ }, "property": { "type": "Identifier", - "start": 2421, - "end": 2427, + "start": 2437, + "end": 2443, "loc": { "start": { "line": 57, @@ -4521,8 +4570,8 @@ }, { "type": "StringLiteral", - "start": 2429, - "end": 2435, + "start": 2445, + "end": 2451, "loc": { "start": { "line": 57, @@ -4546,8 +4595,8 @@ }, { "type": "ExpressionStatement", - "start": 2441, - "end": 2519, + "start": 2457, + "end": 2535, "loc": { "start": { "line": 58, @@ -4560,8 +4609,8 @@ }, "expression": { "type": "CallExpression", - "start": 2441, - "end": 2519, + "start": 2457, + "end": 2535, "loc": { "start": { "line": 58, @@ -4574,8 +4623,8 @@ }, "callee": { "type": "Identifier", - "start": 2441, - "end": 2449, + "start": 2457, + "end": 2465, "loc": { "start": { "line": 58, @@ -4592,8 +4641,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 2450, - "end": 2467, + "start": 2466, + "end": 2483, "loc": { "start": { "line": 58, @@ -4606,8 +4655,8 @@ }, "object": { "type": "Identifier", - "start": 2450, - "end": 2456, + "start": 2466, + "end": 2472, "loc": { "start": { "line": 58, @@ -4623,8 +4672,8 @@ }, "property": { "type": "Identifier", - "start": 2457, - "end": 2467, + "start": 2473, + "end": 2483, "loc": { "start": { "line": 58, @@ -4642,8 +4691,8 @@ }, { "type": "ArrayExpression", - "start": 2469, - "end": 2518, + "start": 2485, + "end": 2534, "loc": { "start": { "line": 58, @@ -4657,8 +4706,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2470, - "end": 2477, + "start": 2486, + "end": 2493, "loc": { "start": { "line": 58, @@ -4677,8 +4726,8 @@ }, { "type": "Identifier", - "start": 2479, - "end": 2483, + "start": 2495, + "end": 2499, "loc": { "start": { "line": 58, @@ -4694,8 +4743,8 @@ }, { "type": "StringLiteral", - "start": 2485, - "end": 2494, + "start": 2501, + "end": 2510, "loc": { "start": { "line": 58, @@ -4714,8 +4763,8 @@ }, { "type": "MemberExpression", - "start": 2496, - "end": 2507, + "start": 2512, + "end": 2523, "loc": { "start": { "line": 58, @@ -4728,8 +4777,8 @@ }, "object": { "type": "Identifier", - "start": 2496, - "end": 2500, + "start": 2512, + "end": 2516, "loc": { "start": { "line": 58, @@ -4745,8 +4794,8 @@ }, "property": { "type": "Identifier", - "start": 2501, - "end": 2507, + "start": 2517, + "end": 2523, "loc": { "start": { "line": 58, @@ -4764,8 +4813,8 @@ }, { "type": "StringLiteral", - "start": 2509, - "end": 2517, + "start": 2525, + "end": 2533, "loc": { "start": { "line": 58, @@ -4789,8 +4838,8 @@ }, { "type": "ExpressionStatement", - "start": 2523, - "end": 2586, + "start": 2539, + "end": 2602, "loc": { "start": { "line": 59, @@ -4803,8 +4852,8 @@ }, "expression": { "type": "CallExpression", - "start": 2523, - "end": 2586, + "start": 2539, + "end": 2602, "loc": { "start": { "line": 59, @@ -4817,8 +4866,8 @@ }, "callee": { "type": "Identifier", - "start": 2523, - "end": 2531, + "start": 2539, + "end": 2547, "loc": { "start": { "line": 59, @@ -4835,8 +4884,8 @@ "arguments": [ { "type": "BooleanLiteral", - "start": 2532, - "end": 2536, + "start": 2548, + "end": 2552, "loc": { "start": { "line": 59, @@ -4851,8 +4900,8 @@ }, { "type": "ArrayExpression", - "start": 2538, - "end": 2585, + "start": 2554, + "end": 2601, "loc": { "start": { "line": 59, @@ -4866,8 +4915,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2539, - "end": 2546, + "start": 2555, + "end": 2562, "loc": { "start": { "line": 59, @@ -4886,8 +4935,8 @@ }, { "type": "Identifier", - "start": 2548, - "end": 2552, + "start": 2564, + "end": 2568, "loc": { "start": { "line": 59, @@ -4903,8 +4952,8 @@ }, { "type": "StringLiteral", - "start": 2554, - "end": 2563, + "start": 2570, + "end": 2579, "loc": { "start": { "line": 59, @@ -4923,8 +4972,8 @@ }, { "type": "MemberExpression", - "start": 2565, - "end": 2576, + "start": 2581, + "end": 2592, "loc": { "start": { "line": 59, @@ -4937,8 +4986,8 @@ }, "object": { "type": "Identifier", - "start": 2565, - "end": 2569, + "start": 2581, + "end": 2585, "loc": { "start": { "line": 59, @@ -4954,8 +5003,8 @@ }, "property": { "type": "Identifier", - "start": 2570, - "end": 2576, + "start": 2586, + "end": 2592, "loc": { "start": { "line": 59, @@ -4973,8 +5022,8 @@ }, { "type": "StringLiteral", - "start": 2578, - "end": 2584, + "start": 2594, + "end": 2600, "loc": { "start": { "line": 59, @@ -5000,8 +5049,8 @@ { "type": "CommentLine", "value": " This will be reset when it has been verified that the player has been placed at the proper spawnpoint", - "start": 2587, - "end": 2691, + "start": 2603, + "end": 2707, "loc": { "start": { "line": 59, @@ -5017,8 +5066,8 @@ }, { "type": "IfStatement", - "start": 2696, - "end": 2893, + "start": 2712, + "end": 2909, "loc": { "start": { "line": 61, @@ -5031,8 +5080,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2700, - "end": 2725, + "start": 2716, + "end": 2741, "loc": { "start": { "line": 61, @@ -5045,8 +5094,8 @@ }, "left": { "type": "MemberExpression", - "start": 2700, - "end": 2709, + "start": 2716, + "end": 2725, "loc": { "start": { "line": 61, @@ -5059,8 +5108,8 @@ }, "object": { "type": "Identifier", - "start": 2700, - "end": 2706, + "start": 2716, + "end": 2722, "loc": { "start": { "line": 61, @@ -5077,8 +5126,8 @@ }, "property": { "type": "Identifier", - "start": 2707, - "end": 2709, + "start": 2723, + "end": 2725, "loc": { "start": { "line": 61, @@ -5098,8 +5147,8 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 2714, - "end": 2725, + "start": 2730, + "end": 2741, "loc": { "start": { "line": 61, @@ -5112,8 +5161,8 @@ }, "object": { "type": "Identifier", - "start": 2714, - "end": 2718, + "start": 2730, + "end": 2734, "loc": { "start": { "line": 61, @@ -5129,8 +5178,8 @@ }, "property": { "type": "Identifier", - "start": 2719, - "end": 2725, + "start": 2735, + "end": 2741, "loc": { "start": { "line": 61, @@ -5150,8 +5199,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2727, - "end": 2893, + "start": 2743, + "end": 2909, "loc": { "start": { "line": 61, @@ -5165,8 +5214,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 2733, - "end": 2791, + "start": 2749, + "end": 2807, "loc": { "start": { "line": 62, @@ -5180,8 +5229,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2737, - "end": 2791, + "start": 2753, + "end": 2807, "loc": { "start": { "line": 62, @@ -5194,8 +5243,8 @@ }, "id": { "type": "Identifier", - "start": 2737, - "end": 2739, + "start": 2753, + "end": 2755, "loc": { "start": { "line": 62, @@ -5211,8 +5260,8 @@ }, "init": { "type": "CallExpression", - "start": 2742, - "end": 2791, + "start": 2758, + "end": 2807, "loc": { "start": { "line": 62, @@ -5225,8 +5274,8 @@ }, "callee": { "type": "Identifier", - "start": 2742, - "end": 2750, + "start": 2758, + "end": 2766, "loc": { "start": { "line": 62, @@ -5243,8 +5292,8 @@ "arguments": [ { "type": "ArrayExpression", - "start": 2751, - "end": 2790, + "start": 2767, + "end": 2806, "loc": { "start": { "line": 62, @@ -5258,8 +5307,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2752, - "end": 2759, + "start": 2768, + "end": 2775, "loc": { "start": { "line": 62, @@ -5278,8 +5327,8 @@ }, { "type": "Identifier", - "start": 2761, - "end": 2765, + "start": 2777, + "end": 2781, "loc": { "start": { "line": 62, @@ -5295,8 +5344,8 @@ }, { "type": "StringLiteral", - "start": 2767, - "end": 2776, + "start": 2783, + "end": 2792, "loc": { "start": { "line": 62, @@ -5315,8 +5364,8 @@ }, { "type": "MemberExpression", - "start": 2778, - "end": 2789, + "start": 2794, + "end": 2805, "loc": { "start": { "line": 62, @@ -5329,8 +5378,8 @@ }, "object": { "type": "Identifier", - "start": 2778, - "end": 2782, + "start": 2794, + "end": 2798, "loc": { "start": { "line": 62, @@ -5346,8 +5395,8 @@ }, "property": { "type": "Identifier", - "start": 2783, - "end": 2789, + "start": 2799, + "end": 2805, "loc": { "start": { "line": 62, @@ -5373,8 +5422,8 @@ }, { "type": "ExpressionStatement", - "start": 2796, - "end": 2888, + "start": 2812, + "end": 2904, "loc": { "start": { "line": 63, @@ -5387,8 +5436,8 @@ }, "expression": { "type": "CallExpression", - "start": 2796, - "end": 2888, + "start": 2812, + "end": 2904, "loc": { "start": { "line": 63, @@ -5401,8 +5450,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2796, - "end": 2807, + "start": 2812, + "end": 2823, "loc": { "start": { "line": 63, @@ -5415,8 +5464,8 @@ }, "object": { "type": "Identifier", - "start": 2796, - "end": 2802, + "start": 2812, + "end": 2818, "loc": { "start": { "line": 63, @@ -5432,8 +5481,8 @@ }, "property": { "type": "Identifier", - "start": 2803, - "end": 2807, + "start": 2819, + "end": 2823, "loc": { "start": { "line": 63, @@ -5452,8 +5501,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2808, - "end": 2831, + "start": 2824, + "end": 2847, "loc": { "start": { "line": 63, @@ -5472,8 +5521,8 @@ }, { "type": "ObjectExpression", - "start": 2833, - "end": 2887, + "start": 2849, + "end": 2903, "loc": { "start": { "line": 63, @@ -5487,8 +5536,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2835, - "end": 2848, + "start": 2851, + "end": 2864, "loc": { "start": { "line": 63, @@ -5504,8 +5553,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2835, - "end": 2839, + "start": 2851, + "end": 2855, "loc": { "start": { "line": 63, @@ -5521,8 +5570,8 @@ }, "value": { "type": "MemberExpression", - "start": 2841, - "end": 2848, + "start": 2857, + "end": 2864, "loc": { "start": { "line": 63, @@ -5535,8 +5584,8 @@ }, "object": { "type": "Identifier", - "start": 2841, - "end": 2843, + "start": 2857, + "end": 2859, "loc": { "start": { "line": 63, @@ -5552,8 +5601,8 @@ }, "property": { "type": "Identifier", - "start": 2844, - "end": 2848, + "start": 2860, + "end": 2864, "loc": { "start": { "line": 63, @@ -5572,8 +5621,8 @@ }, { "type": "ObjectProperty", - "start": 2850, - "end": 2863, + "start": 2866, + "end": 2879, "loc": { "start": { "line": 63, @@ -5589,8 +5638,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2850, - "end": 2854, + "start": 2866, + "end": 2870, "loc": { "start": { "line": 63, @@ -5606,8 +5655,8 @@ }, "value": { "type": "MemberExpression", - "start": 2856, - "end": 2863, + "start": 2872, + "end": 2879, "loc": { "start": { "line": 63, @@ -5620,8 +5669,8 @@ }, "object": { "type": "Identifier", - "start": 2856, - "end": 2858, + "start": 2872, + "end": 2874, "loc": { "start": { "line": 63, @@ -5637,8 +5686,8 @@ }, "property": { "type": "Identifier", - "start": 2859, - "end": 2863, + "start": 2875, + "end": 2879, "loc": { "start": { "line": 63, @@ -5657,8 +5706,8 @@ }, { "type": "ObjectProperty", - "start": 2865, - "end": 2874, + "start": 2881, + "end": 2890, "loc": { "start": { "line": 63, @@ -5674,8 +5723,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2865, - "end": 2867, + "start": 2881, + "end": 2883, "loc": { "start": { "line": 63, @@ -5691,8 +5740,8 @@ }, "value": { "type": "MemberExpression", - "start": 2869, - "end": 2874, + "start": 2885, + "end": 2890, "loc": { "start": { "line": 63, @@ -5705,8 +5754,8 @@ }, "object": { "type": "Identifier", - "start": 2869, - "end": 2871, + "start": 2885, + "end": 2887, "loc": { "start": { "line": 63, @@ -5722,8 +5771,8 @@ }, "property": { "type": "Identifier", - "start": 2872, - "end": 2874, + "start": 2888, + "end": 2890, "loc": { "start": { "line": 63, @@ -5742,8 +5791,8 @@ }, { "type": "ObjectProperty", - "start": 2876, - "end": 2885, + "start": 2892, + "end": 2901, "loc": { "start": { "line": 63, @@ -5759,8 +5808,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2876, - "end": 2878, + "start": 2892, + "end": 2894, "loc": { "start": { "line": 63, @@ -5776,8 +5825,8 @@ }, "value": { "type": "MemberExpression", - "start": 2880, - "end": 2885, + "start": 2896, + "end": 2901, "loc": { "start": { "line": 63, @@ -5790,8 +5839,8 @@ }, "object": { "type": "Identifier", - "start": 2880, - "end": 2882, + "start": 2896, + "end": 2898, "loc": { "start": { "line": 63, @@ -5807,8 +5856,8 @@ }, "property": { "type": "Identifier", - "start": 2883, - "end": 2885, + "start": 2899, + "end": 2901, "loc": { "start": { "line": 63, @@ -5838,8 +5887,8 @@ { "type": "CommentLine", "value": " This will be reset when it has been verified that the player has been placed at the proper spawnpoint", - "start": 2587, - "end": 2691, + "start": 2603, + "end": 2707, "loc": { "start": { "line": 59, @@ -5855,8 +5904,8 @@ }, { "type": "IfStatement", - "start": 2898, - "end": 5284, + "start": 2914, + "end": 5262, "loc": { "start": { "line": 66, @@ -5869,8 +5918,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2902, - "end": 2923, + "start": 2918, + "end": 2939, "loc": { "start": { "line": 66, @@ -5883,8 +5932,8 @@ }, "left": { "type": "MemberExpression", - "start": 2902, - "end": 2909, + "start": 2918, + "end": 2925, "loc": { "start": { "line": 66, @@ -5897,8 +5946,8 @@ }, "object": { "type": "Identifier", - "start": 2902, - "end": 2906, + "start": 2918, + "end": 2922, "loc": { "start": { "line": 66, @@ -5914,8 +5963,8 @@ }, "property": { "type": "Identifier", - "start": 2907, - "end": 2909, + "start": 2923, + "end": 2925, "loc": { "start": { "line": 66, @@ -5934,8 +5983,8 @@ "operator": "!==", "right": { "type": "Identifier", - "start": 2914, - "end": 2923, + "start": 2930, + "end": 2939, "loc": { "start": { "line": 66, @@ -5952,8 +6001,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2925, - "end": 5284, + "start": 2941, + "end": 5262, "loc": { "start": { "line": 66, @@ -5967,8 +6016,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 2991, - "end": 3005, + "start": 3007, + "end": 3021, "loc": { "start": { "line": 68, @@ -5982,8 +6031,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2995, - "end": 3005, + "start": 3011, + "end": 3021, "loc": { "start": { "line": 68, @@ -5996,8 +6045,8 @@ }, "id": { "type": "Identifier", - "start": 2995, - "end": 2998, + "start": 3011, + "end": 3014, "loc": { "start": { "line": 68, @@ -6014,8 +6063,8 @@ }, "init": { "type": "NullLiteral", - "start": 3001, - "end": 3005, + "start": 3017, + "end": 3021, "loc": { "start": { "line": 68, @@ -6035,8 +6084,8 @@ { "type": "CommentLine", "value": " Read damagedBy to award points, clear in the process", - "start": 2931, - "end": 2986, + "start": 2947, + "end": 3002, "loc": { "start": { "line": 67, @@ -6052,8 +6101,8 @@ }, { "type": "VariableDeclaration", - "start": 3010, - "end": 3024, + "start": 3026, + "end": 3040, "loc": { "start": { "line": 69, @@ -6067,8 +6116,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 3014, - "end": 3024, + "start": 3030, + "end": 3040, "loc": { "start": { "line": 69, @@ -6081,8 +6130,8 @@ }, "id": { "type": "Identifier", - "start": 3014, - "end": 3024, + "start": 3030, + "end": 3040, "loc": { "start": { "line": 69, @@ -6103,8 +6152,8 @@ }, { "type": "ForInStatement", - "start": 3029, - "end": 3768, + "start": 3045, + "end": 3784, "loc": { "start": { "line": 70, @@ -6117,8 +6166,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 3034, - "end": 3040, + "start": 3050, + "end": 3056, "loc": { "start": { "line": 70, @@ -6132,8 +6181,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 3038, - "end": 3040, + "start": 3054, + "end": 3056, "loc": { "start": { "line": 70, @@ -6146,8 +6195,8 @@ }, "id": { "type": "Identifier", - "start": 3038, - "end": 3040, + "start": 3054, + "end": 3056, "loc": { "start": { "line": 70, @@ -6168,8 +6217,8 @@ }, "right": { "type": "MemberExpression", - "start": 3044, - "end": 3064, + "start": 3060, + "end": 3080, "loc": { "start": { "line": 70, @@ -6182,8 +6231,8 @@ }, "object": { "type": "Identifier", - "start": 3044, - "end": 3054, + "start": 3060, + "end": 3070, "loc": { "start": { "line": 70, @@ -6199,8 +6248,8 @@ }, "property": { "type": "Identifier", - "start": 3055, - "end": 3064, + "start": 3071, + "end": 3080, "loc": { "start": { "line": 70, @@ -6218,8 +6267,8 @@ }, "body": { "type": "BlockStatement", - "start": 3066, - "end": 3768, + "start": 3082, + "end": 3784, "loc": { "start": { "line": 70, @@ -6233,8 +6282,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 3073, - "end": 3246, + "start": 3089, + "end": 3262, "loc": { "start": { "line": 71, @@ -6247,8 +6296,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 3073, - "end": 3246, + "start": 3089, + "end": 3262, "loc": { "start": { "line": 71, @@ -6262,8 +6311,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 3073, - "end": 3083, + "start": 3089, + "end": 3099, "loc": { "start": { "line": 71, @@ -6279,8 +6328,8 @@ }, "right": { "type": "ObjectExpression", - "start": 3086, - "end": 3246, + "start": 3102, + "end": 3262, "loc": { "start": { "line": 71, @@ -6294,8 +6343,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3094, - "end": 3104, + "start": 3110, + "end": 3120, "loc": { "start": { "line": 72, @@ -6311,8 +6360,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3094, - "end": 3100, + "start": 3110, + "end": 3116, "loc": { "start": { "line": 72, @@ -6328,8 +6377,8 @@ }, "value": { "type": "Identifier", - "start": 3102, - "end": 3104, + "start": 3118, + "end": 3120, "loc": { "start": { "line": 72, @@ -6346,8 +6395,8 @@ }, { "type": "ObjectProperty", - "start": 3112, - "end": 3182, + "start": 3128, + "end": 3198, "loc": { "start": { "line": 73, @@ -6363,8 +6412,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3112, - "end": 3120, + "start": 3128, + "end": 3136, "loc": { "start": { "line": 73, @@ -6380,8 +6429,8 @@ }, "value": { "type": "CallExpression", - "start": 3122, - "end": 3182, + "start": 3138, + "end": 3198, "loc": { "start": { "line": 73, @@ -6394,8 +6443,8 @@ }, "callee": { "type": "Identifier", - "start": 3122, - "end": 3135, + "start": 3138, + "end": 3151, "loc": { "start": { "line": 73, @@ -6412,8 +6461,8 @@ "arguments": [ { "type": "Identifier", - "start": 3136, - "end": 3140, + "start": 3152, + "end": 3156, "loc": { "start": { "line": 73, @@ -6429,8 +6478,8 @@ }, { "type": "MemberExpression", - "start": 3142, - "end": 3181, + "start": 3158, + "end": 3197, "loc": { "start": { "line": 73, @@ -6443,8 +6492,8 @@ }, "object": { "type": "MemberExpression", - "start": 3142, - "end": 3169, + "start": 3158, + "end": 3185, "loc": { "start": { "line": 73, @@ -6457,8 +6506,8 @@ }, "object": { "type": "MemberExpression", - "start": 3142, - "end": 3160, + "start": 3158, + "end": 3176, "loc": { "start": { "line": 73, @@ -6471,8 +6520,8 @@ }, "object": { "type": "Identifier", - "start": 3142, - "end": 3150, + "start": 3158, + "end": 3166, "loc": { "start": { "line": 73, @@ -6488,8 +6537,8 @@ }, "property": { "type": "Identifier", - "start": 3151, - "end": 3160, + "start": 3167, + "end": 3176, "loc": { "start": { "line": 73, @@ -6507,8 +6556,8 @@ }, "property": { "type": "MemberExpression", - "start": 3161, - "end": 3168, + "start": 3177, + "end": 3184, "loc": { "start": { "line": 73, @@ -6521,8 +6570,8 @@ }, "object": { "type": "Identifier", - "start": 3161, - "end": 3165, + "start": 3177, + "end": 3181, "loc": { "start": { "line": 73, @@ -6538,8 +6587,8 @@ }, "property": { "type": "Identifier", - "start": 3166, - "end": 3168, + "start": 3182, + "end": 3184, "loc": { "start": { "line": 73, @@ -6559,8 +6608,8 @@ }, "property": { "type": "Identifier", - "start": 3170, - "end": 3181, + "start": 3186, + "end": 3197, "loc": { "start": { "line": 73, @@ -6581,8 +6630,8 @@ }, { "type": "ObjectProperty", - "start": 3190, - "end": 3220, + "start": 3206, + "end": 3236, "loc": { "start": { "line": 74, @@ -6598,8 +6647,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3190, - "end": 3199, + "start": 3206, + "end": 3215, "loc": { "start": { "line": 74, @@ -6615,8 +6664,8 @@ }, "value": { "type": "MemberExpression", - "start": 3201, - "end": 3220, + "start": 3217, + "end": 3236, "loc": { "start": { "line": 74, @@ -6629,8 +6678,8 @@ }, "object": { "type": "Identifier", - "start": 3201, - "end": 3207, + "start": 3217, + "end": 3223, "loc": { "start": { "line": 74, @@ -6646,8 +6695,8 @@ }, "property": { "type": "Identifier", - "start": 3208, - "end": 3220, + "start": 3224, + "end": 3236, "loc": { "start": { "line": 74, @@ -6666,8 +6715,8 @@ }, { "type": "ObjectProperty", - "start": 3228, - "end": 3239, + "start": 3244, + "end": 3255, "loc": { "start": { "line": 75, @@ -6683,8 +6732,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3228, - "end": 3232, + "start": 3244, + "end": 3248, "loc": { "start": { "line": 75, @@ -6700,8 +6749,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 3234, - "end": 3239, + "start": 3250, + "end": 3255, "loc": { "start": { "line": 75, @@ -6718,8 +6767,8 @@ { "type": "CommentLine", "value": " Add to team score, checking if team score is initialized", - "start": 3253, - "end": 3312, + "start": 3269, + "end": 3328, "loc": { "start": { "line": 78, @@ -6742,8 +6791,8 @@ { "type": "CommentLine", "value": " Add to team score, checking if team score is initialized", - "start": 3253, - "end": 3312, + "start": 3269, + "end": 3328, "loc": { "start": { "line": 78, @@ -6759,8 +6808,8 @@ }, { "type": "ExpressionStatement", - "start": 3318, - "end": 3531, + "start": 3334, + "end": 3547, "loc": { "start": { "line": 79, @@ -6773,8 +6822,8 @@ }, "expression": { "type": "CallExpression", - "start": 3318, - "end": 3531, + "start": 3334, + "end": 3547, "loc": { "start": { "line": 79, @@ -6787,8 +6836,8 @@ }, "callee": { "type": "Identifier", - "start": 3318, - "end": 3326, + "start": 3334, + "end": 3342, "loc": { "start": { "line": 79, @@ -6805,8 +6854,8 @@ "arguments": [ { "type": "ConditionalExpression", - "start": 3327, - "end": 3474, + "start": 3343, + "end": 3490, "loc": { "start": { "line": 79, @@ -6819,8 +6868,8 @@ }, "test": { "type": "BinaryExpression", - "start": 3328, - "end": 3383, + "start": 3344, + "end": 3399, "loc": { "start": { "line": 79, @@ -6833,8 +6882,8 @@ }, "left": { "type": "MemberExpression", - "start": 3328, - "end": 3369, + "start": 3344, + "end": 3385, "loc": { "start": { "line": 79, @@ -6847,8 +6896,8 @@ }, "object": { "type": "MemberExpression", - "start": 3328, - "end": 3363, + "start": 3344, + "end": 3379, "loc": { "start": { "line": 79, @@ -6861,8 +6910,8 @@ }, "object": { "type": "MemberExpression", - "start": 3328, - "end": 3342, + "start": 3344, + "end": 3358, "loc": { "start": { "line": 79, @@ -6875,8 +6924,8 @@ }, "object": { "type": "Identifier", - "start": 3328, - "end": 3336, + "start": 3344, + "end": 3352, "loc": { "start": { "line": 79, @@ -6892,8 +6941,8 @@ }, "property": { "type": "Identifier", - "start": 3337, - "end": 3342, + "start": 3353, + "end": 3358, "loc": { "start": { "line": 79, @@ -6911,8 +6960,8 @@ }, "property": { "type": "MemberExpression", - "start": 3343, - "end": 3362, + "start": 3359, + "end": 3378, "loc": { "start": { "line": 79, @@ -6925,8 +6974,8 @@ }, "object": { "type": "Identifier", - "start": 3343, - "end": 3353, + "start": 3359, + "end": 3369, "loc": { "start": { "line": 79, @@ -6942,8 +6991,8 @@ }, "property": { "type": "Identifier", - "start": 3354, - "end": 3362, + "start": 3370, + "end": 3378, "loc": { "start": { "line": 79, @@ -6963,8 +7012,8 @@ }, "property": { "type": "Identifier", - "start": 3364, - "end": 3369, + "start": 3380, + "end": 3385, "loc": { "start": { "line": 79, @@ -6983,8 +7032,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 3374, - "end": 3383, + "start": 3390, + "end": 3399, "loc": { "start": { "line": 79, @@ -7000,13 +7049,13 @@ }, "extra": { "parenthesized": true, - "parenStart": 3327 + "parenStart": 3343 } }, "consequent": { "type": "MemberExpression", - "start": 3387, - "end": 3407, + "start": 3403, + "end": 3423, "loc": { "start": { "line": 79, @@ -7019,8 +7068,8 @@ }, "object": { "type": "Identifier", - "start": 3387, - "end": 3397, + "start": 3403, + "end": 3413, "loc": { "start": { "line": 79, @@ -7036,8 +7085,8 @@ }, "property": { "type": "Identifier", - "start": 3398, - "end": 3407, + "start": 3414, + "end": 3423, "loc": { "start": { "line": 79, @@ -7055,8 +7104,8 @@ }, "alternate": { "type": "BinaryExpression", - "start": 3410, - "end": 3474, + "start": 3426, + "end": 3490, "loc": { "start": { "line": 79, @@ -7069,8 +7118,8 @@ }, "left": { "type": "MemberExpression", - "start": 3410, - "end": 3451, + "start": 3426, + "end": 3467, "loc": { "start": { "line": 79, @@ -7083,8 +7132,8 @@ }, "object": { "type": "MemberExpression", - "start": 3410, - "end": 3445, + "start": 3426, + "end": 3461, "loc": { "start": { "line": 79, @@ -7097,8 +7146,8 @@ }, "object": { "type": "MemberExpression", - "start": 3410, - "end": 3424, + "start": 3426, + "end": 3440, "loc": { "start": { "line": 79, @@ -7111,8 +7160,8 @@ }, "object": { "type": "Identifier", - "start": 3410, - "end": 3418, + "start": 3426, + "end": 3434, "loc": { "start": { "line": 79, @@ -7128,8 +7177,8 @@ }, "property": { "type": "Identifier", - "start": 3419, - "end": 3424, + "start": 3435, + "end": 3440, "loc": { "start": { "line": 79, @@ -7147,8 +7196,8 @@ }, "property": { "type": "MemberExpression", - "start": 3425, - "end": 3444, + "start": 3441, + "end": 3460, "loc": { "start": { "line": 79, @@ -7161,8 +7210,8 @@ }, "object": { "type": "Identifier", - "start": 3425, - "end": 3435, + "start": 3441, + "end": 3451, "loc": { "start": { "line": 79, @@ -7178,8 +7227,8 @@ }, "property": { "type": "Identifier", - "start": 3436, - "end": 3444, + "start": 3452, + "end": 3460, "loc": { "start": { "line": 79, @@ -7199,8 +7248,8 @@ }, "property": { "type": "Identifier", - "start": 3446, - "end": 3451, + "start": 3462, + "end": 3467, "loc": { "start": { "line": 79, @@ -7219,8 +7268,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 3454, - "end": 3474, + "start": 3470, + "end": 3490, "loc": { "start": { "line": 79, @@ -7233,8 +7282,8 @@ }, "object": { "type": "Identifier", - "start": 3454, - "end": 3464, + "start": 3470, + "end": 3480, "loc": { "start": { "line": 79, @@ -7250,8 +7299,8 @@ }, "property": { "type": "Identifier", - "start": 3465, - "end": 3474, + "start": 3481, + "end": 3490, "loc": { "start": { "line": 79, @@ -7271,8 +7320,8 @@ }, { "type": "ArrayExpression", - "start": 3476, - "end": 3530, + "start": 3492, + "end": 3546, "loc": { "start": { "line": 79, @@ -7286,8 +7335,8 @@ "elements": [ { "type": "StringLiteral", - "start": 3477, - "end": 3484, + "start": 3493, + "end": 3500, "loc": { "start": { "line": 79, @@ -7306,8 +7355,8 @@ }, { "type": "Identifier", - "start": 3486, - "end": 3490, + "start": 3502, + "end": 3506, "loc": { "start": { "line": 79, @@ -7323,8 +7372,8 @@ }, { "type": "StringLiteral", - "start": 3492, - "end": 3499, + "start": 3508, + "end": 3515, "loc": { "start": { "line": 79, @@ -7343,8 +7392,8 @@ }, { "type": "MemberExpression", - "start": 3501, - "end": 3520, + "start": 3517, + "end": 3536, "loc": { "start": { "line": 79, @@ -7357,8 +7406,8 @@ }, "object": { "type": "Identifier", - "start": 3501, - "end": 3511, + "start": 3517, + "end": 3527, "loc": { "start": { "line": 79, @@ -7374,8 +7423,8 @@ }, "property": { "type": "Identifier", - "start": 3512, - "end": 3520, + "start": 3528, + "end": 3536, "loc": { "start": { "line": 79, @@ -7393,8 +7442,8 @@ }, { "type": "StringLiteral", - "start": 3522, - "end": 3529, + "start": 3538, + "end": 3545, "loc": { "start": { "line": 79, @@ -7418,8 +7467,8 @@ }, { "type": "ExpressionStatement", - "start": 3538, - "end": 3605, + "start": 3554, + "end": 3621, "loc": { "start": { "line": 81, @@ -7432,8 +7481,8 @@ }, "expression": { "type": "CallExpression", - "start": 3538, - "end": 3605, + "start": 3554, + "end": 3621, "loc": { "start": { "line": 81, @@ -7446,8 +7495,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3538, - "end": 3568, + "start": 3554, + "end": 3584, "loc": { "start": { "line": 81, @@ -7460,8 +7509,8 @@ }, "object": { "type": "MemberExpression", - "start": 3538, - "end": 3563, + "start": 3554, + "end": 3579, "loc": { "start": { "line": 81, @@ -7474,8 +7523,8 @@ }, "object": { "type": "CallExpression", - "start": 3538, - "end": 3553, + "start": 3554, + "end": 3569, "loc": { "start": { "line": 81, @@ -7488,8 +7537,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3538, - "end": 3547, + "start": 3554, + "end": 3563, "loc": { "start": { "line": 81, @@ -7502,8 +7551,8 @@ }, "object": { "type": "Identifier", - "start": 3538, - "end": 3544, + "start": 3554, + "end": 3560, "loc": { "start": { "line": 81, @@ -7519,8 +7568,8 @@ }, "property": { "type": "Identifier", - "start": 3545, - "end": 3547, + "start": 3561, + "end": 3563, "loc": { "start": { "line": 81, @@ -7539,8 +7588,8 @@ "arguments": [ { "type": "Identifier", - "start": 3548, - "end": 3552, + "start": 3564, + "end": 3568, "loc": { "start": { "line": 81, @@ -7558,8 +7607,8 @@ }, "property": { "type": "Identifier", - "start": 3554, - "end": 3563, + "start": 3570, + "end": 3579, "loc": { "start": { "line": 81, @@ -7577,8 +7626,8 @@ }, "property": { "type": "Identifier", - "start": 3564, - "end": 3568, + "start": 3580, + "end": 3584, "loc": { "start": { "line": 81, @@ -7597,8 +7646,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 3569, - "end": 3592, + "start": 3585, + "end": 3608, "loc": { "start": { "line": 81, @@ -7617,8 +7666,8 @@ }, { "type": "Identifier", - "start": 3594, - "end": 3604, + "start": 3610, + "end": 3620, "loc": { "start": { "line": 81, @@ -7637,8 +7686,8 @@ }, { "type": "ExpressionStatement", - "start": 3611, - "end": 3659, + "start": 3627, + "end": 3675, "loc": { "start": { "line": 82, @@ -7651,8 +7700,8 @@ }, "expression": { "type": "CallExpression", - "start": 3611, - "end": 3659, + "start": 3627, + "end": 3675, "loc": { "start": { "line": 82, @@ -7665,8 +7714,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3611, - "end": 3622, + "start": 3627, + "end": 3638, "loc": { "start": { "line": 82, @@ -7679,8 +7728,8 @@ }, "object": { "type": "Identifier", - "start": 3611, - "end": 3617, + "start": 3627, + "end": 3633, "loc": { "start": { "line": 82, @@ -7696,8 +7745,8 @@ }, "property": { "type": "Identifier", - "start": 3618, - "end": 3622, + "start": 3634, + "end": 3638, "loc": { "start": { "line": 82, @@ -7716,8 +7765,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 3623, - "end": 3646, + "start": 3639, + "end": 3662, "loc": { "start": { "line": 82, @@ -7736,8 +7785,8 @@ }, { "type": "Identifier", - "start": 3648, - "end": 3658, + "start": 3664, + "end": 3674, "loc": { "start": { "line": 82, @@ -7756,8 +7805,8 @@ }, { "type": "IfStatement", - "start": 3665, - "end": 3762, + "start": 3681, + "end": 3778, "loc": { "start": { "line": 83, @@ -7770,8 +7819,8 @@ }, "test": { "type": "LogicalExpression", - "start": 3669, - "end": 3737, + "start": 3685, + "end": 3753, "loc": { "start": { "line": 83, @@ -7784,8 +7833,8 @@ }, "left": { "type": "BinaryExpression", - "start": 3669, - "end": 3681, + "start": 3685, + "end": 3697, "loc": { "start": { "line": 83, @@ -7798,8 +7847,8 @@ }, "left": { "type": "Identifier", - "start": 3669, - "end": 3672, + "start": 3685, + "end": 3688, "loc": { "start": { "line": 83, @@ -7816,8 +7865,8 @@ "operator": "===", "right": { "type": "NullLiteral", - "start": 3677, - "end": 3681, + "start": 3693, + "end": 3697, "loc": { "start": { "line": 83, @@ -7833,8 +7882,8 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 3685, - "end": 3737, + "start": 3701, + "end": 3753, "loc": { "start": { "line": 83, @@ -7847,8 +7896,8 @@ }, "left": { "type": "MemberExpression", - "start": 3685, - "end": 3709, + "start": 3701, + "end": 3725, "loc": { "start": { "line": 83, @@ -7861,8 +7910,8 @@ }, "object": { "type": "MemberExpression", - "start": 3685, - "end": 3705, + "start": 3701, + "end": 3721, "loc": { "start": { "line": 83, @@ -7875,8 +7924,8 @@ }, "object": { "type": "Identifier", - "start": 3685, - "end": 3695, + "start": 3701, + "end": 3711, "loc": { "start": { "line": 83, @@ -7892,8 +7941,8 @@ }, "property": { "type": "Identifier", - "start": 3696, - "end": 3705, + "start": 3712, + "end": 3721, "loc": { "start": { "line": 83, @@ -7911,8 +7960,8 @@ }, "property": { "type": "Identifier", - "start": 3706, - "end": 3708, + "start": 3722, + "end": 3724, "loc": { "start": { "line": 83, @@ -7931,8 +7980,8 @@ "operator": ">", "right": { "type": "MemberExpression", - "start": 3712, - "end": 3737, + "start": 3728, + "end": 3753, "loc": { "start": { "line": 83, @@ -7945,8 +7994,8 @@ }, "object": { "type": "MemberExpression", - "start": 3712, - "end": 3732, + "start": 3728, + "end": 3748, "loc": { "start": { "line": 83, @@ -7959,8 +8008,8 @@ }, "object": { "type": "Identifier", - "start": 3712, - "end": 3722, + "start": 3728, + "end": 3738, "loc": { "start": { "line": 83, @@ -7976,8 +8025,8 @@ }, "property": { "type": "Identifier", - "start": 3723, - "end": 3732, + "start": 3739, + "end": 3748, "loc": { "start": { "line": 83, @@ -7995,8 +8044,8 @@ }, "property": { "type": "Identifier", - "start": 3733, - "end": 3736, + "start": 3749, + "end": 3752, "loc": { "start": { "line": 83, @@ -8016,8 +8065,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 3739, - "end": 3762, + "start": 3755, + "end": 3778, "loc": { "start": { "line": 83, @@ -8031,8 +8080,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 3747, - "end": 3755, + "start": 3763, + "end": 3771, "loc": { "start": { "line": 84, @@ -8045,8 +8094,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 3747, - "end": 3755, + "start": 3763, + "end": 3771, "loc": { "start": { "line": 84, @@ -8060,8 +8109,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 3747, - "end": 3750, + "start": 3763, + "end": 3766, "loc": { "start": { "line": 84, @@ -8077,8 +8126,8 @@ }, "right": { "type": "Identifier", - "start": 3753, - "end": 3755, + "start": 3769, + "end": 3771, "loc": { "start": { "line": 84, @@ -8107,8 +8156,8 @@ { "type": "CommentLine", "value": " Add to score of person who dealt the most damage", - "start": 3774, - "end": 3825, + "start": 3790, + "end": 3841, "loc": { "start": { "line": 88, @@ -8124,8 +8173,8 @@ }, { "type": "ExpressionStatement", - "start": 3830, - "end": 3853, + "start": 3846, + "end": 3869, "loc": { "start": { "line": 89, @@ -8138,8 +8187,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 3830, - "end": 3853, + "start": 3846, + "end": 3869, "loc": { "start": { "line": 89, @@ -8153,8 +8202,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 3830, - "end": 3847, + "start": 3846, + "end": 3863, "loc": { "start": { "line": 89, @@ -8167,8 +8216,8 @@ }, "object": { "type": "Identifier", - "start": 3830, - "end": 3840, + "start": 3846, + "end": 3856, "loc": { "start": { "line": 89, @@ -8185,8 +8234,8 @@ }, "property": { "type": "Identifier", - "start": 3841, - "end": 3847, + "start": 3857, + "end": 3863, "loc": { "start": { "line": 89, @@ -8205,8 +8254,8 @@ }, "right": { "type": "Identifier", - "start": 3850, - "end": 3853, + "start": 3866, + "end": 3869, "loc": { "start": { "line": 89, @@ -8226,8 +8275,8 @@ { "type": "CommentLine", "value": " Add to score of person who dealt the most damage", - "start": 3774, - "end": 3825, + "start": 3790, + "end": 3841, "loc": { "start": { "line": 88, @@ -8243,8 +8292,8 @@ }, { "type": "ExpressionStatement", - "start": 3858, - "end": 3920, + "start": 3874, + "end": 3936, "loc": { "start": { "line": 90, @@ -8257,8 +8306,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 3858, - "end": 3920, + "start": 3874, + "end": 3936, "loc": { "start": { "line": 90, @@ -8272,8 +8321,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 3858, - "end": 3878, + "start": 3874, + "end": 3894, "loc": { "start": { "line": 90, @@ -8286,8 +8335,8 @@ }, "object": { "type": "Identifier", - "start": 3858, - "end": 3868, + "start": 3874, + "end": 3884, "loc": { "start": { "line": 90, @@ -8303,8 +8352,8 @@ }, "property": { "type": "Identifier", - "start": 3869, - "end": 3878, + "start": 3885, + "end": 3894, "loc": { "start": { "line": 90, @@ -8322,8 +8371,8 @@ }, "right": { "type": "BinaryExpression", - "start": 3881, - "end": 3920, + "start": 3897, + "end": 3936, "loc": { "start": { "line": 90, @@ -8336,8 +8385,8 @@ }, "left": { "type": "MemberExpression", - "start": 3881, - "end": 3898, + "start": 3897, + "end": 3914, "loc": { "start": { "line": 90, @@ -8350,8 +8399,8 @@ }, "object": { "type": "Identifier", - "start": 3881, - "end": 3887, + "start": 3897, + "end": 3903, "loc": { "start": { "line": 90, @@ -8367,8 +8416,8 @@ }, "property": { "type": "Identifier", - "start": 3888, - "end": 3898, + "start": 3904, + "end": 3914, "loc": { "start": { "line": 90, @@ -8387,8 +8436,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 3901, - "end": 3920, + "start": 3917, + "end": 3936, "loc": { "start": { "line": 90, @@ -8401,8 +8450,8 @@ }, "object": { "type": "Identifier", - "start": 3901, - "end": 3907, + "start": 3917, + "end": 3923, "loc": { "start": { "line": 90, @@ -8418,8 +8467,8 @@ }, "property": { "type": "Identifier", - "start": 3908, - "end": 3920, + "start": 3924, + "end": 3936, "loc": { "start": { "line": 90, @@ -8440,8 +8489,8 @@ }, { "type": "ExpressionStatement", - "start": 3925, - "end": 3947, + "start": 3941, + "end": 3963, "loc": { "start": { "line": 91, @@ -8454,8 +8503,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 3925, - "end": 3947, + "start": 3941, + "end": 3963, "loc": { "start": { "line": 91, @@ -8469,8 +8518,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 3925, - "end": 3940, + "start": 3941, + "end": 3956, "loc": { "start": { "line": 91, @@ -8483,8 +8532,8 @@ }, "object": { "type": "Identifier", - "start": 3925, - "end": 3935, + "start": 3941, + "end": 3951, "loc": { "start": { "line": 91, @@ -8500,8 +8549,8 @@ }, "property": { "type": "Identifier", - "start": 3936, - "end": 3940, + "start": 3952, + "end": 3956, "loc": { "start": { "line": 91, @@ -8519,8 +8568,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 3943, - "end": 3947, + "start": 3959, + "end": 3963, "loc": { "start": { "line": 91, @@ -8537,8 +8586,8 @@ }, { "type": "ExpressionStatement", - "start": 3952, - "end": 4019, + "start": 3968, + "end": 4035, "loc": { "start": { "line": 92, @@ -8551,8 +8600,8 @@ }, "expression": { "type": "CallExpression", - "start": 3952, - "end": 4019, + "start": 3968, + "end": 4035, "loc": { "start": { "line": 92, @@ -8565,8 +8614,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3952, - "end": 3982, + "start": 3968, + "end": 3998, "loc": { "start": { "line": 92, @@ -8579,8 +8628,8 @@ }, "object": { "type": "MemberExpression", - "start": 3952, - "end": 3977, + "start": 3968, + "end": 3993, "loc": { "start": { "line": 92, @@ -8593,8 +8642,8 @@ }, "object": { "type": "CallExpression", - "start": 3952, - "end": 3967, + "start": 3968, + "end": 3983, "loc": { "start": { "line": 92, @@ -8607,8 +8656,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3952, - "end": 3961, + "start": 3968, + "end": 3977, "loc": { "start": { "line": 92, @@ -8621,8 +8670,8 @@ }, "object": { "type": "Identifier", - "start": 3952, - "end": 3958, + "start": 3968, + "end": 3974, "loc": { "start": { "line": 92, @@ -8638,8 +8687,8 @@ }, "property": { "type": "Identifier", - "start": 3959, - "end": 3961, + "start": 3975, + "end": 3977, "loc": { "start": { "line": 92, @@ -8658,8 +8707,8 @@ "arguments": [ { "type": "Identifier", - "start": 3962, - "end": 3966, + "start": 3978, + "end": 3982, "loc": { "start": { "line": 92, @@ -8677,8 +8726,8 @@ }, "property": { "type": "Identifier", - "start": 3968, - "end": 3977, + "start": 3984, + "end": 3993, "loc": { "start": { "line": 92, @@ -8696,8 +8745,8 @@ }, "property": { "type": "Identifier", - "start": 3978, - "end": 3982, + "start": 3994, + "end": 3998, "loc": { "start": { "line": 92, @@ -8716,8 +8765,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 3983, - "end": 4006, + "start": 3999, + "end": 4022, "loc": { "start": { "line": 92, @@ -8736,8 +8785,8 @@ }, { "type": "Identifier", - "start": 4008, - "end": 4018, + "start": 4024, + "end": 4034, "loc": { "start": { "line": 92, @@ -8756,8 +8805,8 @@ }, { "type": "ExpressionStatement", - "start": 4024, - "end": 4072, + "start": 4040, + "end": 4088, "loc": { "start": { "line": 93, @@ -8770,8 +8819,8 @@ }, "expression": { "type": "CallExpression", - "start": 4024, - "end": 4072, + "start": 4040, + "end": 4088, "loc": { "start": { "line": 93, @@ -8784,8 +8833,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4024, - "end": 4035, + "start": 4040, + "end": 4051, "loc": { "start": { "line": 93, @@ -8798,8 +8847,8 @@ }, "object": { "type": "Identifier", - "start": 4024, - "end": 4030, + "start": 4040, + "end": 4046, "loc": { "start": { "line": 93, @@ -8815,8 +8864,8 @@ }, "property": { "type": "Identifier", - "start": 4031, - "end": 4035, + "start": 4047, + "end": 4051, "loc": { "start": { "line": 93, @@ -8835,8 +8884,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 4036, - "end": 4059, + "start": 4052, + "end": 4075, "loc": { "start": { "line": 93, @@ -8855,8 +8904,8 @@ }, { "type": "Identifier", - "start": 4061, - "end": 4071, + "start": 4077, + "end": 4087, "loc": { "start": { "line": 93, @@ -8877,8 +8926,8 @@ { "type": "CommentLine", "value": " Add to team score", - "start": 4078, - "end": 4098, + "start": 4094, + "end": 4114, "loc": { "start": { "line": 95, @@ -8894,8 +8943,8 @@ }, { "type": "ExpressionStatement", - "start": 4103, - "end": 4233, + "start": 4119, + "end": 4211, "loc": { "start": { "line": 96, @@ -8903,13 +8952,13 @@ }, "end": { "line": 96, - "column": 134 + "column": 96 } }, "expression": { "type": "CallExpression", - "start": 4103, - "end": 4233, + "start": 4119, + "end": 4211, "loc": { "start": { "line": 96, @@ -8917,13 +8966,13 @@ }, "end": { "line": 96, - "column": 134 + "column": 96 } }, "callee": { "type": "Identifier", - "start": 4103, - "end": 4111, + "start": 4119, + "end": 4133, "loc": { "start": { "line": 96, @@ -8931,256 +8980,91 @@ }, "end": { "line": 96, - "column": 12 + "column": 18 }, - "identifierName": "setField" + "identifierName": "incrementField" }, - "name": "setField", + "name": "incrementField", "leadingComments": null }, "arguments": [ { - "type": "BinaryExpression", - "start": 4112, - "end": 4176, + "type": "MemberExpression", + "start": 4134, + "end": 4154, "loc": { "start": { "line": 96, - "column": 13 + "column": 19 }, "end": { "line": 96, - "column": 77 + "column": 39 } }, - "left": { - "type": "MemberExpression", - "start": 4112, - "end": 4153, + "object": { + "type": "Identifier", + "start": 4134, + "end": 4144, "loc": { "start": { "line": 96, - "column": 13 + "column": 19 }, "end": { "line": 96, - "column": 54 - } - }, - "object": { - "type": "MemberExpression", - "start": 4112, - "end": 4147, - "loc": { - "start": { - "line": 96, - "column": 13 - }, - "end": { - "line": 96, - "column": 48 - } - }, - "object": { - "type": "MemberExpression", - "start": 4112, - "end": 4126, - "loc": { - "start": { - "line": 96, - "column": 13 - }, - "end": { - "line": 96, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 4112, - "end": 4120, - "loc": { - "start": { - "line": 96, - "column": 13 - }, - "end": { - "line": 96, - "column": 21 - }, - "identifierName": "thisRoom" - }, - "name": "thisRoom" - }, - "property": { - "type": "Identifier", - "start": 4121, - "end": 4126, - "loc": { - "start": { - "line": 96, - "column": 22 - }, - "end": { - "line": 96, - "column": 27 - }, - "identifierName": "teams" - }, - "name": "teams" - }, - "computed": false - }, - "property": { - "type": "MemberExpression", - "start": 4127, - "end": 4146, - "loc": { - "start": { - "line": 96, - "column": 28 - }, - "end": { - "line": 96, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 4127, - "end": 4137, - "loc": { - "start": { - "line": 96, - "column": 28 - }, - "end": { - "line": 96, - "column": 38 - }, - "identifierName": "dataToSend" - }, - "name": "dataToSend" - }, - "property": { - "type": "Identifier", - "start": 4138, - "end": 4146, - "loc": { - "start": { - "line": 96, - "column": 39 - }, - "end": { - "line": 96, - "column": 47 - }, - "identifierName": "teamSlot" - }, - "name": "teamSlot" - }, - "computed": false - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 4148, - "end": 4153, - "loc": { - "start": { - "line": 96, - "column": 49 - }, - "end": { - "line": 96, - "column": 54 - }, - "identifierName": "score" + "column": 29 }, - "name": "score" + "identifierName": "dataToSend" }, - "computed": false + "name": "dataToSend" }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 4156, - "end": 4176, + "property": { + "type": "Identifier", + "start": 4145, + "end": 4154, "loc": { "start": { "line": 96, - "column": 57 + "column": 30 }, "end": { "line": 96, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 4156, - "end": 4166, - "loc": { - "start": { - "line": 96, - "column": 57 - }, - "end": { - "line": 96, - "column": 67 - }, - "identifierName": "dataToSend" - }, - "name": "dataToSend" - }, - "property": { - "type": "Identifier", - "start": 4167, - "end": 4176, - "loc": { - "start": { - "line": 96, - "column": 68 - }, - "end": { - "line": 96, - "column": 77 - }, - "identifierName": "increment" + "column": 39 }, - "name": "increment" + "identifierName": "increment" }, - "computed": false - } + "name": "increment" + }, + "computed": false }, { "type": "ArrayExpression", - "start": 4178, - "end": 4232, + "start": 4156, + "end": 4210, "loc": { "start": { "line": 96, - "column": 79 + "column": 41 }, "end": { "line": 96, - "column": 133 + "column": 95 } }, "elements": [ { "type": "StringLiteral", - "start": 4179, - "end": 4186, + "start": 4157, + "end": 4164, "loc": { "start": { "line": 96, - "column": 80 + "column": 42 }, "end": { "line": 96, - "column": 87 + "column": 49 } }, "extra": { @@ -9191,16 +9075,16 @@ }, { "type": "Identifier", - "start": 4188, - "end": 4192, + "start": 4166, + "end": 4170, "loc": { "start": { "line": 96, - "column": 89 + "column": 51 }, "end": { "line": 96, - "column": 93 + "column": 55 }, "identifierName": "room" }, @@ -9208,16 +9092,16 @@ }, { "type": "StringLiteral", - "start": 4194, - "end": 4201, + "start": 4172, + "end": 4179, "loc": { "start": { "line": 96, - "column": 95 + "column": 57 }, "end": { "line": 96, - "column": 102 + "column": 64 } }, "extra": { @@ -9228,30 +9112,30 @@ }, { "type": "MemberExpression", - "start": 4203, - "end": 4222, + "start": 4181, + "end": 4200, "loc": { "start": { "line": 96, - "column": 104 + "column": 66 }, "end": { "line": 96, - "column": 123 + "column": 85 } }, "object": { "type": "Identifier", - "start": 4203, - "end": 4213, + "start": 4181, + "end": 4191, "loc": { "start": { "line": 96, - "column": 104 + "column": 66 }, "end": { "line": 96, - "column": 114 + "column": 76 }, "identifierName": "dataToSend" }, @@ -9259,16 +9143,16 @@ }, "property": { "type": "Identifier", - "start": 4214, - "end": 4222, + "start": 4192, + "end": 4200, "loc": { "start": { "line": 96, - "column": 115 + "column": 77 }, "end": { "line": 96, - "column": 123 + "column": 85 }, "identifierName": "teamSlot" }, @@ -9278,16 +9162,16 @@ }, { "type": "StringLiteral", - "start": 4224, - "end": 4231, + "start": 4202, + "end": 4209, "loc": { "start": { "line": 96, - "column": 125 + "column": 87 }, "end": { "line": 96, - "column": 132 + "column": 94 } }, "extra": { @@ -9306,8 +9190,8 @@ { "type": "CommentLine", "value": " Add to team score", - "start": 4078, - "end": 4098, + "start": 4094, + "end": 4114, "loc": { "start": { "line": 95, @@ -9324,8 +9208,8 @@ { "type": "CommentLine", "value": " Clear damagedBy values", - "start": 4239, - "end": 4264, + "start": 4217, + "end": 4242, "loc": { "start": { "line": 98, @@ -9341,8 +9225,8 @@ }, { "type": "ForInStatement", - "start": 4269, - "end": 4388, + "start": 4247, + "end": 4366, "loc": { "start": { "line": 99, @@ -9355,8 +9239,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 4274, - "end": 4280, + "start": 4252, + "end": 4258, "loc": { "start": { "line": 99, @@ -9370,8 +9254,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4278, - "end": 4280, + "start": 4256, + "end": 4258, "loc": { "start": { "line": 99, @@ -9384,8 +9268,8 @@ }, "id": { "type": "Identifier", - "start": 4278, - "end": 4280, + "start": 4256, + "end": 4258, "loc": { "start": { "line": 99, @@ -9409,8 +9293,8 @@ }, "right": { "type": "MemberExpression", - "start": 4284, - "end": 4304, + "start": 4262, + "end": 4282, "loc": { "start": { "line": 99, @@ -9423,8 +9307,8 @@ }, "object": { "type": "Identifier", - "start": 4284, - "end": 4294, + "start": 4262, + "end": 4272, "loc": { "start": { "line": 99, @@ -9440,8 +9324,8 @@ }, "property": { "type": "Identifier", - "start": 4295, - "end": 4304, + "start": 4273, + "end": 4282, "loc": { "start": { "line": 99, @@ -9459,8 +9343,8 @@ }, "body": { "type": "BlockStatement", - "start": 4306, - "end": 4388, + "start": 4284, + "end": 4366, "loc": { "start": { "line": 99, @@ -9474,8 +9358,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 4313, - "end": 4382, + "start": 4291, + "end": 4360, "loc": { "start": { "line": 100, @@ -9488,8 +9372,8 @@ }, "expression": { "type": "CallExpression", - "start": 4313, - "end": 4382, + "start": 4291, + "end": 4360, "loc": { "start": { "line": 100, @@ -9502,8 +9386,8 @@ }, "callee": { "type": "Identifier", - "start": 4313, - "end": 4321, + "start": 4291, + "end": 4299, "loc": { "start": { "line": 100, @@ -9520,8 +9404,8 @@ "arguments": [ { "type": "NumericLiteral", - "start": 4322, - "end": 4323, + "start": 4300, + "end": 4301, "loc": { "start": { "line": 100, @@ -9540,8 +9424,8 @@ }, { "type": "ArrayExpression", - "start": 4325, - "end": 4381, + "start": 4303, + "end": 4359, "loc": { "start": { "line": 100, @@ -9555,8 +9439,8 @@ "elements": [ { "type": "StringLiteral", - "start": 4326, - "end": 4333, + "start": 4304, + "end": 4311, "loc": { "start": { "line": 100, @@ -9575,8 +9459,8 @@ }, { "type": "Identifier", - "start": 4335, - "end": 4339, + "start": 4313, + "end": 4317, "loc": { "start": { "line": 100, @@ -9592,8 +9476,8 @@ }, { "type": "StringLiteral", - "start": 4341, - "end": 4350, + "start": 4319, + "end": 4328, "loc": { "start": { "line": 100, @@ -9612,8 +9496,8 @@ }, { "type": "MemberExpression", - "start": 4352, - "end": 4363, + "start": 4330, + "end": 4341, "loc": { "start": { "line": 100, @@ -9626,8 +9510,8 @@ }, "object": { "type": "Identifier", - "start": 4352, - "end": 4356, + "start": 4330, + "end": 4334, "loc": { "start": { "line": 100, @@ -9643,8 +9527,8 @@ }, "property": { "type": "Identifier", - "start": 4357, - "end": 4363, + "start": 4335, + "end": 4341, "loc": { "start": { "line": 100, @@ -9662,8 +9546,8 @@ }, { "type": "StringLiteral", - "start": 4365, - "end": 4376, + "start": 4343, + "end": 4354, "loc": { "start": { "line": 100, @@ -9682,8 +9566,8 @@ }, { "type": "Identifier", - "start": 4378, - "end": 4380, + "start": 4356, + "end": 4358, "loc": { "start": { "line": 100, @@ -9710,8 +9594,8 @@ { "type": "CommentLine", "value": " Clear damagedBy values", - "start": 4239, - "end": 4264, + "start": 4217, + "end": 4242, "loc": { "start": { "line": 98, @@ -9728,8 +9612,8 @@ { "type": "CommentLine", "value": " Check if a team won", - "start": 4394, - "end": 4416, + "start": 4372, + "end": 4394, "loc": { "start": { "line": 103, @@ -9745,8 +9629,8 @@ }, { "type": "VariableDeclaration", - "start": 4421, - "end": 4440, + "start": 4399, + "end": 4418, "loc": { "start": { "line": 104, @@ -9760,8 +9644,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4425, - "end": 4440, + "start": 4403, + "end": 4418, "loc": { "start": { "line": 104, @@ -9774,8 +9658,8 @@ }, "id": { "type": "Identifier", - "start": 4425, - "end": 4435, + "start": 4403, + "end": 4413, "loc": { "start": { "line": 104, @@ -9792,8 +9676,8 @@ }, "init": { "type": "ArrayExpression", - "start": 4438, - "end": 4440, + "start": 4416, + "end": 4418, "loc": { "start": { "line": 104, @@ -9817,8 +9701,8 @@ { "type": "CommentLine", "value": " Check if a team won", - "start": 4394, - "end": 4416, + "start": 4372, + "end": 4394, "loc": { "start": { "line": 103, @@ -9835,8 +9719,8 @@ { "type": "CommentLine", "value": " Possible winning teams", - "start": 4441, - "end": 4466, + "start": 4419, + "end": 4444, "loc": { "start": { "line": 104, @@ -9852,8 +9736,8 @@ }, { "type": "VariableDeclaration", - "start": 4471, - "end": 4487, + "start": 4449, + "end": 4465, "loc": { "start": { "line": 105, @@ -9867,8 +9751,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4475, - "end": 4487, + "start": 4453, + "end": 4465, "loc": { "start": { "line": 105, @@ -9881,8 +9765,8 @@ }, "id": { "type": "Identifier", - "start": 4475, - "end": 4483, + "start": 4453, + "end": 4461, "loc": { "start": { "line": 105, @@ -9899,8 +9783,8 @@ }, "init": { "type": "NumericLiteral", - "start": 4486, - "end": 4487, + "start": 4464, + "end": 4465, "loc": { "start": { "line": 105, @@ -9925,8 +9809,8 @@ { "type": "CommentLine", "value": " Possible winning teams", - "start": 4441, - "end": 4466, + "start": 4419, + "end": 4444, "loc": { "start": { "line": 104, @@ -9942,8 +9826,8 @@ }, { "type": "ForOfStatement", - "start": 4492, - "end": 4676, + "start": 4470, + "end": 4654, "loc": { "start": { "line": 106, @@ -9956,8 +9840,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 4497, - "end": 4503, + "start": 4475, + "end": 4481, "loc": { "start": { "line": 106, @@ -9971,8 +9855,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4501, - "end": 4503, + "start": 4479, + "end": 4481, "loc": { "start": { "line": 106, @@ -9985,8 +9869,8 @@ }, "id": { "type": "Identifier", - "start": 4501, - "end": 4503, + "start": 4479, + "end": 4481, "loc": { "start": { "line": 106, @@ -10007,8 +9891,8 @@ }, "right": { "type": "MemberExpression", - "start": 4507, - "end": 4521, + "start": 4485, + "end": 4499, "loc": { "start": { "line": 106, @@ -10021,8 +9905,8 @@ }, "object": { "type": "Identifier", - "start": 4507, - "end": 4515, + "start": 4485, + "end": 4493, "loc": { "start": { "line": 106, @@ -10038,8 +9922,8 @@ }, "property": { "type": "Identifier", - "start": 4516, - "end": 4521, + "start": 4494, + "end": 4499, "loc": { "start": { "line": 106, @@ -10057,8 +9941,8 @@ }, "body": { "type": "BlockStatement", - "start": 4523, - "end": 4676, + "start": 4501, + "end": 4654, "loc": { "start": { "line": 106, @@ -10072,8 +9956,8 @@ "body": [ { "type": "IfStatement", - "start": 4530, - "end": 4670, + "start": 4508, + "end": 4648, "loc": { "start": { "line": 107, @@ -10086,8 +9970,8 @@ }, "test": { "type": "BinaryExpression", - "start": 4534, - "end": 4566, + "start": 4512, + "end": 4544, "loc": { "start": { "line": 107, @@ -10100,8 +9984,8 @@ }, "left": { "type": "MemberExpression", - "start": 4534, - "end": 4542, + "start": 4512, + "end": 4520, "loc": { "start": { "line": 107, @@ -10114,8 +9998,8 @@ }, "object": { "type": "Identifier", - "start": 4534, - "end": 4536, + "start": 4512, + "end": 4514, "loc": { "start": { "line": 107, @@ -10131,8 +10015,8 @@ }, "property": { "type": "Identifier", - "start": 4537, - "end": 4542, + "start": 4515, + "end": 4520, "loc": { "start": { "line": 107, @@ -10151,8 +10035,8 @@ "operator": ">=", "right": { "type": "MemberExpression", - "start": 4546, - "end": 4566, + "start": 4524, + "end": 4544, "loc": { "start": { "line": 107, @@ -10165,8 +10049,8 @@ }, "object": { "type": "Identifier", - "start": 4546, - "end": 4552, + "start": 4524, + "end": 4530, "loc": { "start": { "line": 107, @@ -10182,8 +10066,8 @@ }, "property": { "type": "Identifier", - "start": 4553, - "end": 4566, + "start": 4531, + "end": 4544, "loc": { "start": { "line": 107, @@ -10202,8 +10086,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 4568, - "end": 4670, + "start": 4546, + "end": 4648, "loc": { "start": { "line": 107, @@ -10217,8 +10101,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 4576, - "end": 4595, + "start": 4554, + "end": 4573, "loc": { "start": { "line": 108, @@ -10231,8 +10115,8 @@ }, "expression": { "type": "CallExpression", - "start": 4576, - "end": 4595, + "start": 4554, + "end": 4573, "loc": { "start": { "line": 108, @@ -10245,8 +10129,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4576, - "end": 4591, + "start": 4554, + "end": 4569, "loc": { "start": { "line": 108, @@ -10259,8 +10143,8 @@ }, "object": { "type": "Identifier", - "start": 4576, - "end": 4586, + "start": 4554, + "end": 4564, "loc": { "start": { "line": 108, @@ -10276,8 +10160,8 @@ }, "property": { "type": "Identifier", - "start": 4587, - "end": 4591, + "start": 4565, + "end": 4569, "loc": { "start": { "line": 108, @@ -10296,8 +10180,8 @@ "arguments": [ { "type": "Identifier", - "start": 4592, - "end": 4594, + "start": 4570, + "end": 4572, "loc": { "start": { "line": 108, @@ -10316,8 +10200,8 @@ }, { "type": "IfStatement", - "start": 4602, - "end": 4663, + "start": 4580, + "end": 4641, "loc": { "start": { "line": 109, @@ -10330,8 +10214,8 @@ }, "test": { "type": "BinaryExpression", - "start": 4606, - "end": 4625, + "start": 4584, + "end": 4603, "loc": { "start": { "line": 109, @@ -10344,8 +10228,8 @@ }, "left": { "type": "Identifier", - "start": 4606, - "end": 4614, + "start": 4584, + "end": 4592, "loc": { "start": { "line": 109, @@ -10362,8 +10246,8 @@ "operator": "<", "right": { "type": "MemberExpression", - "start": 4617, - "end": 4625, + "start": 4595, + "end": 4603, "loc": { "start": { "line": 109, @@ -10376,8 +10260,8 @@ }, "object": { "type": "Identifier", - "start": 4617, - "end": 4619, + "start": 4595, + "end": 4597, "loc": { "start": { "line": 109, @@ -10393,8 +10277,8 @@ }, "property": { "type": "Identifier", - "start": 4620, - "end": 4625, + "start": 4598, + "end": 4603, "loc": { "start": { "line": 109, @@ -10413,8 +10297,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 4627, - "end": 4663, + "start": 4605, + "end": 4641, "loc": { "start": { "line": 109, @@ -10428,8 +10312,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 4636, - "end": 4655, + "start": 4614, + "end": 4633, "loc": { "start": { "line": 110, @@ -10442,8 +10326,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 4636, - "end": 4655, + "start": 4614, + "end": 4633, "loc": { "start": { "line": 110, @@ -10457,8 +10341,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 4636, - "end": 4644, + "start": 4614, + "end": 4622, "loc": { "start": { "line": 110, @@ -10474,8 +10358,8 @@ }, "right": { "type": "MemberExpression", - "start": 4647, - "end": 4655, + "start": 4625, + "end": 4633, "loc": { "start": { "line": 110, @@ -10488,8 +10372,8 @@ }, "object": { "type": "Identifier", - "start": 4647, - "end": 4649, + "start": 4625, + "end": 4627, "loc": { "start": { "line": 110, @@ -10505,8 +10389,8 @@ }, "property": { "type": "Identifier", - "start": 4650, - "end": 4655, + "start": 4628, + "end": 4633, "loc": { "start": { "line": 110, @@ -10540,8 +10424,8 @@ }, { "type": "ForOfStatement", - "start": 4681, - "end": 5279, + "start": 4659, + "end": 5257, "loc": { "start": { "line": 114, @@ -10554,8 +10438,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 4686, - "end": 4699, + "start": 4664, + "end": 4677, "loc": { "start": { "line": 114, @@ -10569,8 +10453,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4690, - "end": 4699, + "start": 4668, + "end": 4677, "loc": { "start": { "line": 114, @@ -10583,8 +10467,8 @@ }, "id": { "type": "Identifier", - "start": 4690, - "end": 4699, + "start": 4668, + "end": 4677, "loc": { "start": { "line": 114, @@ -10605,8 +10489,8 @@ }, "right": { "type": "Identifier", - "start": 4703, - "end": 4713, + "start": 4681, + "end": 4691, "loc": { "start": { "line": 114, @@ -10622,8 +10506,8 @@ }, "body": { "type": "BlockStatement", - "start": 4715, - "end": 5279, + "start": 4693, + "end": 5257, "loc": { "start": { "line": 114, @@ -10637,8 +10521,8 @@ "body": [ { "type": "IfStatement", - "start": 4722, - "end": 5273, + "start": 4700, + "end": 5251, "loc": { "start": { "line": 115, @@ -10651,8 +10535,8 @@ }, "test": { "type": "BinaryExpression", - "start": 4726, - "end": 4754, + "start": 4704, + "end": 4732, "loc": { "start": { "line": 115, @@ -10665,8 +10549,8 @@ }, "left": { "type": "MemberExpression", - "start": 4726, - "end": 4741, + "start": 4704, + "end": 4719, "loc": { "start": { "line": 115, @@ -10679,8 +10563,8 @@ }, "object": { "type": "Identifier", - "start": 4726, - "end": 4735, + "start": 4704, + "end": 4713, "loc": { "start": { "line": 115, @@ -10696,8 +10580,8 @@ }, "property": { "type": "Identifier", - "start": 4736, - "end": 4741, + "start": 4714, + "end": 4719, "loc": { "start": { "line": 115, @@ -10716,8 +10600,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 4746, - "end": 4754, + "start": 4724, + "end": 4732, "loc": { "start": { "line": 115, @@ -10734,8 +10618,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 4756, - "end": 5273, + "start": 4734, + "end": 5251, "loc": { "start": { "line": 115, @@ -10749,8 +10633,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 4764, - "end": 4922, + "start": 4742, + "end": 4900, "loc": { "start": { "line": 116, @@ -10764,8 +10648,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4768, - "end": 4922, + "start": 4746, + "end": 4900, "loc": { "start": { "line": 116, @@ -10778,8 +10662,8 @@ }, "id": { "type": "Identifier", - "start": 4768, - "end": 4778, + "start": 4746, + "end": 4756, "loc": { "start": { "line": 116, @@ -10795,8 +10679,8 @@ }, "init": { "type": "ObjectExpression", - "start": 4781, - "end": 4922, + "start": 4759, + "end": 4900, "loc": { "start": { "line": 116, @@ -10810,8 +10694,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 4790, - "end": 4807, + "start": 4768, + "end": 4785, "loc": { "start": { "line": 117, @@ -10827,8 +10711,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4790, - "end": 4796, + "start": 4768, + "end": 4774, "loc": { "start": { "line": 117, @@ -10844,8 +10728,8 @@ }, "value": { "type": "Identifier", - "start": 4798, - "end": 4807, + "start": 4776, + "end": 4785, "loc": { "start": { "line": 117, @@ -10865,8 +10749,8 @@ { "type": "CommentLine", "value": " teamScore: thisRoom.teams[dataToSend.teamSlot].score", - "start": 4815, - "end": 4870, + "start": 4793, + "end": 4848, "loc": { "start": { "line": 118, @@ -10881,8 +10765,8 @@ { "type": "CommentLine", "value": " other data here TODO post ranking", - "start": 4878, - "end": 4914, + "start": 4856, + "end": 4892, "loc": { "start": { "line": 119, @@ -10904,8 +10788,8 @@ }, { "type": "ExpressionStatement", - "start": 4929, - "end": 4991, + "start": 4907, + "end": 4969, "loc": { "start": { "line": 121, @@ -10918,8 +10802,8 @@ }, "expression": { "type": "CallExpression", - "start": 4929, - "end": 4991, + "start": 4907, + "end": 4969, "loc": { "start": { "line": 121, @@ -10932,8 +10816,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4929, - "end": 4959, + "start": 4907, + "end": 4937, "loc": { "start": { "line": 121, @@ -10946,8 +10830,8 @@ }, "object": { "type": "MemberExpression", - "start": 4929, - "end": 4954, + "start": 4907, + "end": 4932, "loc": { "start": { "line": 121, @@ -10960,8 +10844,8 @@ }, "object": { "type": "CallExpression", - "start": 4929, - "end": 4944, + "start": 4907, + "end": 4922, "loc": { "start": { "line": 121, @@ -10974,8 +10858,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4929, - "end": 4938, + "start": 4907, + "end": 4916, "loc": { "start": { "line": 121, @@ -10988,8 +10872,8 @@ }, "object": { "type": "Identifier", - "start": 4929, - "end": 4935, + "start": 4907, + "end": 4913, "loc": { "start": { "line": 121, @@ -11005,8 +10889,8 @@ }, "property": { "type": "Identifier", - "start": 4936, - "end": 4938, + "start": 4914, + "end": 4916, "loc": { "start": { "line": 121, @@ -11025,8 +10909,8 @@ "arguments": [ { "type": "Identifier", - "start": 4939, - "end": 4943, + "start": 4917, + "end": 4921, "loc": { "start": { "line": 121, @@ -11044,8 +10928,8 @@ }, "property": { "type": "Identifier", - "start": 4945, - "end": 4954, + "start": 4923, + "end": 4932, "loc": { "start": { "line": 121, @@ -11063,8 +10947,8 @@ }, "property": { "type": "Identifier", - "start": 4955, - "end": 4959, + "start": 4933, + "end": 4937, "loc": { "start": { "line": 121, @@ -11083,8 +10967,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 4960, - "end": 4978, + "start": 4938, + "end": 4956, "loc": { "start": { "line": 121, @@ -11103,8 +10987,8 @@ }, { "type": "Identifier", - "start": 4980, - "end": 4990, + "start": 4958, + "end": 4968, "loc": { "start": { "line": 121, @@ -11123,8 +11007,8 @@ }, { "type": "ExpressionStatement", - "start": 4998, - "end": 5041, + "start": 4976, + "end": 5019, "loc": { "start": { "line": 122, @@ -11137,8 +11021,8 @@ }, "expression": { "type": "CallExpression", - "start": 4998, - "end": 5041, + "start": 4976, + "end": 5019, "loc": { "start": { "line": 122, @@ -11151,8 +11035,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4998, - "end": 5009, + "start": 4976, + "end": 4987, "loc": { "start": { "line": 122, @@ -11165,8 +11049,8 @@ }, "object": { "type": "Identifier", - "start": 4998, - "end": 5004, + "start": 4976, + "end": 4982, "loc": { "start": { "line": 122, @@ -11182,8 +11066,8 @@ }, "property": { "type": "Identifier", - "start": 5005, - "end": 5009, + "start": 4983, + "end": 4987, "loc": { "start": { "line": 122, @@ -11202,8 +11086,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5010, - "end": 5028, + "start": 4988, + "end": 5006, "loc": { "start": { "line": 122, @@ -11222,8 +11106,8 @@ }, { "type": "Identifier", - "start": 5030, - "end": 5040, + "start": 5008, + "end": 5018, "loc": { "start": { "line": 122, @@ -11244,8 +11128,8 @@ { "type": "CommentLine", "value": " Close room after delay (kick all players)", - "start": 5049, - "end": 5093, + "start": 5027, + "end": 5071, "loc": { "start": { "line": 124, @@ -11261,8 +11145,8 @@ }, { "type": "ExpressionStatement", - "start": 5100, - "end": 5266, + "start": 5078, + "end": 5244, "loc": { "start": { "line": 125, @@ -11275,8 +11159,8 @@ }, "expression": { "type": "CallExpression", - "start": 5100, - "end": 5266, + "start": 5078, + "end": 5244, "loc": { "start": { "line": 125, @@ -11289,8 +11173,8 @@ }, "callee": { "type": "Identifier", - "start": 5100, - "end": 5110, + "start": 5078, + "end": 5088, "loc": { "start": { "line": 125, @@ -11308,8 +11192,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 5111, - "end": 5239, + "start": 5089, + "end": 5217, "loc": { "start": { "line": 125, @@ -11327,8 +11211,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 5117, - "end": 5239, + "start": 5095, + "end": 5217, "loc": { "start": { "line": 125, @@ -11342,8 +11226,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5126, - "end": 5165, + "start": 5104, + "end": 5143, "loc": { "start": { "line": 126, @@ -11356,8 +11240,8 @@ }, "expression": { "type": "CallExpression", - "start": 5126, - "end": 5165, + "start": 5104, + "end": 5143, "loc": { "start": { "line": 126, @@ -11370,8 +11254,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5126, - "end": 5137, + "start": 5104, + "end": 5115, "loc": { "start": { "line": 126, @@ -11384,8 +11268,8 @@ }, "object": { "type": "Identifier", - "start": 5126, - "end": 5132, + "start": 5104, + "end": 5110, "loc": { "start": { "line": 126, @@ -11401,8 +11285,8 @@ }, "property": { "type": "Identifier", - "start": 5133, - "end": 5137, + "start": 5111, + "end": 5115, "loc": { "start": { "line": 126, @@ -11421,8 +11305,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5138, - "end": 5160, + "start": 5116, + "end": 5138, "loc": { "start": { "line": 126, @@ -11441,8 +11325,8 @@ }, { "type": "ObjectExpression", - "start": 5162, - "end": 5164, + "start": 5140, + "end": 5142, "loc": { "start": { "line": 126, @@ -11460,8 +11344,8 @@ }, { "type": "ExpressionStatement", - "start": 5173, - "end": 5231, + "start": 5151, + "end": 5209, "loc": { "start": { "line": 127, @@ -11474,8 +11358,8 @@ }, "expression": { "type": "CallExpression", - "start": 5173, - "end": 5231, + "start": 5151, + "end": 5209, "loc": { "start": { "line": 127, @@ -11488,8 +11372,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5173, - "end": 5203, + "start": 5151, + "end": 5181, "loc": { "start": { "line": 127, @@ -11502,8 +11386,8 @@ }, "object": { "type": "MemberExpression", - "start": 5173, - "end": 5198, + "start": 5151, + "end": 5176, "loc": { "start": { "line": 127, @@ -11516,8 +11400,8 @@ }, "object": { "type": "CallExpression", - "start": 5173, - "end": 5188, + "start": 5151, + "end": 5166, "loc": { "start": { "line": 127, @@ -11530,8 +11414,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5173, - "end": 5182, + "start": 5151, + "end": 5160, "loc": { "start": { "line": 127, @@ -11544,8 +11428,8 @@ }, "object": { "type": "Identifier", - "start": 5173, - "end": 5179, + "start": 5151, + "end": 5157, "loc": { "start": { "line": 127, @@ -11561,8 +11445,8 @@ }, "property": { "type": "Identifier", - "start": 5180, - "end": 5182, + "start": 5158, + "end": 5160, "loc": { "start": { "line": 127, @@ -11581,8 +11465,8 @@ "arguments": [ { "type": "Identifier", - "start": 5183, - "end": 5187, + "start": 5161, + "end": 5165, "loc": { "start": { "line": 127, @@ -11600,8 +11484,8 @@ }, "property": { "type": "Identifier", - "start": 5189, - "end": 5198, + "start": 5167, + "end": 5176, "loc": { "start": { "line": 127, @@ -11619,8 +11503,8 @@ }, "property": { "type": "Identifier", - "start": 5199, - "end": 5203, + "start": 5177, + "end": 5181, "loc": { "start": { "line": 127, @@ -11639,8 +11523,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5204, - "end": 5226, + "start": 5182, + "end": 5204, "loc": { "start": { "line": 127, @@ -11659,8 +11543,8 @@ }, { "type": "ObjectExpression", - "start": 5228, - "end": 5230, + "start": 5206, + "end": 5208, "loc": { "start": { "line": 127, @@ -11682,8 +11566,8 @@ }, { "type": "MemberExpression", - "start": 5241, - "end": 5265, + "start": 5219, + "end": 5243, "loc": { "start": { "line": 128, @@ -11696,8 +11580,8 @@ }, "object": { "type": "Identifier", - "start": 5241, - "end": 5247, + "start": 5219, + "end": 5225, "loc": { "start": { "line": 128, @@ -11713,8 +11597,8 @@ }, "property": { "type": "Identifier", - "start": 5248, - "end": 5265, + "start": 5226, + "end": 5243, "loc": { "start": { "line": 128, @@ -11737,8 +11621,8 @@ { "type": "CommentLine", "value": " Close room after delay (kick all players)", - "start": 5049, - "end": 5093, + "start": 5027, + "end": 5071, "loc": { "start": { "line": 124, @@ -11774,8 +11658,8 @@ { "type": "CommentLine", "value": " Check if the player has died.", - "start": 1580, - "end": 1612, + "start": 1596, + "end": 1628, "loc": { "start": { "line": 41, @@ -11794,8 +11678,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 5298, - "end": 5401, + "start": 5276, + "end": 5379, "loc": { "start": { "line": 134, @@ -11809,8 +11693,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5302, - "end": 5398, + "start": 5280, + "end": 5376, "loc": { "start": { "line": 135, @@ -11823,8 +11707,8 @@ }, "expression": { "type": "CallExpression", - "start": 5302, - "end": 5398, + "start": 5280, + "end": 5376, "loc": { "start": { "line": 135, @@ -11837,8 +11721,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5302, - "end": 5314, + "start": 5280, + "end": 5292, "loc": { "start": { "line": 135, @@ -11851,8 +11735,8 @@ }, "object": { "type": "Identifier", - "start": 5302, - "end": 5309, + "start": 5280, + "end": 5287, "loc": { "start": { "line": 135, @@ -11868,8 +11752,8 @@ }, "property": { "type": "Identifier", - "start": 5310, - "end": 5314, + "start": 5288, + "end": 5292, "loc": { "start": { "line": 135, @@ -11888,8 +11772,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 5315, - "end": 5397, + "start": 5293, + "end": 5375, "loc": { "start": { "line": 135, @@ -11902,8 +11786,8 @@ }, "left": { "type": "BinaryExpression", - "start": 5315, - "end": 5344, + "start": 5293, + "end": 5322, "loc": { "start": { "line": 135, @@ -11916,8 +11800,8 @@ }, "left": { "type": "StringLiteral", - "start": 5315, - "end": 5330, + "start": 5293, + "end": 5308, "loc": { "start": { "line": 135, @@ -11937,8 +11821,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 5333, - "end": 5344, + "start": 5311, + "end": 5322, "loc": { "start": { "line": 135, @@ -11951,8 +11835,8 @@ }, "object": { "type": "Identifier", - "start": 5333, - "end": 5337, + "start": 5311, + "end": 5315, "loc": { "start": { "line": 135, @@ -11968,8 +11852,8 @@ }, "property": { "type": "Identifier", - "start": 5338, - "end": 5344, + "start": 5316, + "end": 5322, "loc": { "start": { "line": 135, @@ -11989,8 +11873,8 @@ "operator": "+", "right": { "type": "StringLiteral", - "start": 5347, - "end": 5397, + "start": 5325, + "end": 5375, "loc": { "start": { "line": 135, @@ -12016,15 +11900,14 @@ } } ], - "directives": [], - "trailingComments": null + "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * ondamage.js\n * Contains functions:\n * - damage() Runs when a player gets damaged. Updates scores and checks if a player has been killed.\n * - splash() Runs when a collision needs to cause splash damage. Creates explosion effect and deals extra damage.\n ", - "start": 206, - "end": 470, + "start": 222, + "end": 486, "loc": { "start": { "line": 7, @@ -12039,8 +11922,8 @@ { "type": "CommentBlock", "value": "*\n * Changes the health of the player by the amount given.\n * @param {*} data The data sent by the client. Contains:\n * - damage (number)\n * - player (id string of player that was hit)\n * - id (id string of compound)\n * - sentBy (id string of player that sent compound)\n * @param {string} room This room.\n * @param {*} socket This socket.\n * Must include the player id and amount to damage.\n * Amount may be negative (for health boost).\n ", - "start": 472, - "end": 918, + "start": 488, + "end": 934, "loc": { "start": { "line": 14, @@ -12053,31 +11936,14 @@ } } ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * TODO\n ", - "start": 5405, - "end": 5420, - "loc": { - "start": { - "line": 139, - "column": 0 - }, - "end": { - "line": 141, - "column": 3 - } - } - } - ] + "trailingComments": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * ondamage.js\n * Contains functions:\n * - damage() Runs when a player gets damaged. Updates scores and checks if a player has been killed.\n * - splash() Runs when a collision needs to cause splash damage. Creates explosion effect and deals extra damage.\n ", - "start": 206, - "end": 470, + "start": 222, + "end": 486, "loc": { "start": { "line": 7, @@ -12092,8 +11958,8 @@ { "type": "CommentBlock", "value": "*\n * Changes the health of the player by the amount given.\n * @param {*} data The data sent by the client. Contains:\n * - damage (number)\n * - player (id string of player that was hit)\n * - id (id string of compound)\n * - sentBy (id string of player that sent compound)\n * @param {string} room This room.\n * @param {*} socket This socket.\n * Must include the player id and amount to damage.\n * Amount may be negative (for health boost).\n ", - "start": 472, - "end": 918, + "start": 488, + "end": 934, "loc": { "start": { "line": 14, @@ -12105,37 +11971,19 @@ } } } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * TODO\n ", - "start": 5405, - "end": 5420, - "loc": { - "start": { - "line": 139, - "column": 0 - }, - "end": { - "line": 141, - "column": 3 - } - } - } ] }, { "type": "ExportNamedDeclaration", - "start": 5421, - "end": 5451, + "start": 5383, + "end": 6509, "loc": { "start": { - "line": 142, + "line": 139, "column": 0 }, "end": { - "line": 144, + "line": 167, "column": 1 } }, @@ -12143,470 +11991,10034 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 5428, - "end": 5451, + "start": 5390, + "end": 6509, "loc": { "start": { - "line": 142, + "line": 139, "column": 7 }, "end": { - "line": 144, + "line": 167, "column": 1 } }, "id": { "type": "Identifier", - "start": 5437, - "end": 5443, + "start": 5399, + "end": 5409, "loc": { "start": { - "line": 142, + "line": 139, "column": 16 }, "end": { - "line": 142, - "column": 22 + "line": 139, + "column": 26 }, - "identifierName": "splash" + "identifierName": "damageTile" }, - "name": "splash", - "leadingComments": null + "name": "damageTile" }, "generator": false, "expression": false, "async": false, - "params": [], + "params": [ + { + "type": "Identifier", + "start": 5411, + "end": 5417, + "loc": { + "start": { + "line": 139, + "column": 28 + }, + "end": { + "line": 139, + "column": 34 + }, + "identifierName": "tileID" + }, + "name": "tileID" + }, + { + "type": "Identifier", + "start": 5419, + "end": 5431, + "loc": { + "start": { + "line": 139, + "column": 36 + }, + "end": { + "line": 139, + "column": 48 + }, + "identifierName": "damageAmount" + }, + "name": "damageAmount" + }, + { + "type": "Identifier", + "start": 5433, + "end": 5439, + "loc": { + "start": { + "line": 139, + "column": 50 + }, + "end": { + "line": 139, + "column": 56 + }, + "identifierName": "player" + }, + "name": "player" + }, + { + "type": "Identifier", + "start": 5441, + "end": 5445, + "loc": { + "start": { + "line": 139, + "column": 58 + }, + "end": { + "line": 139, + "column": 62 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "Identifier", + "start": 5447, + "end": 5453, + "loc": { + "start": { + "line": 139, + "column": 64 + }, + "end": { + "line": 139, + "column": 70 + }, + "identifierName": "socket" + }, + "name": "socket" + } + ], "body": { "type": "BlockStatement", - "start": 5447, - "end": 5451, + "start": 5455, + "end": 6509, "loc": { "start": { - "line": 142, - "column": 26 + "line": 139, + "column": 72 }, "end": { - "line": 144, + "line": 167, "column": 1 } }, - "body": [], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * TODO\n ", - "start": 5405, - "end": 5420, - "loc": { - "start": { - "line": 139, - "column": 0 + "body": [ + { + "type": "ExpressionStatement", + "start": 5458, + "end": 5531, + "loc": { + "start": { + "line": 140, + "column": 1 + }, + "end": { + "line": 140, + "column": 74 + } }, - "end": { - "line": 141, - "column": 3 + "expression": { + "type": "CallExpression", + "start": 5458, + "end": 5531, + "loc": { + "start": { + "line": 140, + "column": 1 + }, + "end": { + "line": 140, + "column": 74 + } + }, + "callee": { + "type": "Identifier", + "start": 5458, + "end": 5472, + "loc": { + "start": { + "line": 140, + "column": 1 + }, + "end": { + "line": 140, + "column": 15 + }, + "identifierName": "incrementField" + }, + "name": "incrementField" + }, + "arguments": [ + { + "type": "UnaryExpression", + "start": 5473, + "end": 5486, + "loc": { + "start": { + "line": 140, + "column": 16 + }, + "end": { + "line": 140, + "column": 29 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 5474, + "end": 5486, + "loc": { + "start": { + "line": 140, + "column": 17 + }, + "end": { + "line": 140, + "column": 29 + }, + "identifierName": "damageAmount" + }, + "name": "damageAmount" + }, + "extra": { + "parenthesizedArgument": false + } + }, + { + "type": "ArrayExpression", + "start": 5488, + "end": 5530, + "loc": { + "start": { + "line": 140, + "column": 31 + }, + "end": { + "line": 140, + "column": 73 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 5489, + "end": 5496, + "loc": { + "start": { + "line": 140, + "column": 32 + }, + "end": { + "line": 140, + "column": 39 + } + }, + "extra": { + "rawValue": "rooms", + "raw": "'rooms'" + }, + "value": "rooms" + }, + { + "type": "Identifier", + "start": 5498, + "end": 5502, + "loc": { + "start": { + "line": 140, + "column": 41 + }, + "end": { + "line": 140, + "column": 45 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "StringLiteral", + "start": 5504, + "end": 5511, + "loc": { + "start": { + "line": 140, + "column": 47 + }, + "end": { + "line": 140, + "column": 54 + } + }, + "extra": { + "rawValue": "tiles", + "raw": "'tiles'" + }, + "value": "tiles" + }, + { + "type": "Identifier", + "start": 5513, + "end": 5519, + "loc": { + "start": { + "line": 140, + "column": 56 + }, + "end": { + "line": 140, + "column": 62 + }, + "identifierName": "tileID" + }, + "name": "tileID" + }, + { + "type": "StringLiteral", + "start": 5521, + "end": 5529, + "loc": { + "start": { + "line": 140, + "column": 64 + }, + "end": { + "line": 140, + "column": 72 + } + }, + "extra": { + "rawValue": "health", + "raw": "'health'" + }, + "value": "health" + } + ] + } + ] } - } - } - ], - "trailingComments": [] + }, + { + "type": "ExpressionStatement", + "start": 5534, + "end": 5634, + "loc": { + "start": { + "line": 142, + "column": 1 + }, + "end": { + "line": 142, + "column": 101 + } + }, + "expression": { + "type": "CallExpression", + "start": 5534, + "end": 5634, + "loc": { + "start": { + "line": 142, + "column": 1 + }, + "end": { + "line": 142, + "column": 101 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5534, + "end": 5545, + "loc": { + "start": { + "line": 142, + "column": 1 + }, + "end": { + "line": 142, + "column": 12 + } + }, + "object": { + "type": "Identifier", + "start": 5534, + "end": 5541, + "loc": { + "start": { + "line": 142, + "column": 1 + }, + "end": { + "line": 142, + "column": 8 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 5542, + "end": 5545, + "loc": { + "start": { + "line": 142, + "column": 9 + }, + "end": { + "line": 142, + "column": 12 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 5546, + "end": 5633, + "loc": { + "start": { + "line": 142, + "column": 13 + }, + "end": { + "line": 142, + "column": 100 + } + }, + "left": { + "type": "BinaryExpression", + "start": 5546, + "end": 5578, + "loc": { + "start": { + "line": 142, + "column": 13 + }, + "end": { + "line": 142, + "column": 45 + } + }, + "left": { + "type": "BinaryExpression", + "start": 5546, + "end": 5562, + "loc": { + "start": { + "line": 142, + "column": 13 + }, + "end": { + "line": 142, + "column": 29 + } + }, + "left": { + "type": "StringLiteral", + "start": 5546, + "end": 5553, + "loc": { + "start": { + "line": 142, + "column": 13 + }, + "end": { + "line": 142, + "column": 20 + } + }, + "extra": { + "rawValue": "tile ", + "raw": "'tile '" + }, + "value": "tile " + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 5556, + "end": 5562, + "loc": { + "start": { + "line": 142, + "column": 23 + }, + "end": { + "line": 142, + "column": 29 + }, + "identifierName": "tileID" + }, + "name": "tileID" + } + }, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 5565, + "end": 5578, + "loc": { + "start": { + "line": 142, + "column": 32 + }, + "end": { + "line": 142, + "column": 45 + } + }, + "extra": { + "rawValue": " is now at ", + "raw": "' is now at '" + }, + "value": " is now at " + } + }, + "operator": "+", + "right": { + "type": "CallExpression", + "start": 5581, + "end": 5633, + "loc": { + "start": { + "line": 142, + "column": 48 + }, + "end": { + "line": 142, + "column": 100 + } + }, + "callee": { + "type": "Identifier", + "start": 5581, + "end": 5589, + "loc": { + "start": { + "line": 142, + "column": 48 + }, + "end": { + "line": 142, + "column": 56 + }, + "identifierName": "getField" + }, + "name": "getField" + }, + "arguments": [ + { + "type": "ArrayExpression", + "start": 5590, + "end": 5632, + "loc": { + "start": { + "line": 142, + "column": 57 + }, + "end": { + "line": 142, + "column": 99 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 5591, + "end": 5598, + "loc": { + "start": { + "line": 142, + "column": 58 + }, + "end": { + "line": 142, + "column": 65 + } + }, + "extra": { + "rawValue": "rooms", + "raw": "'rooms'" + }, + "value": "rooms" + }, + { + "type": "Identifier", + "start": 5600, + "end": 5604, + "loc": { + "start": { + "line": 142, + "column": 67 + }, + "end": { + "line": 142, + "column": 71 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "StringLiteral", + "start": 5606, + "end": 5613, + "loc": { + "start": { + "line": 142, + "column": 73 + }, + "end": { + "line": 142, + "column": 80 + } + }, + "extra": { + "rawValue": "tiles", + "raw": "'tiles'" + }, + "value": "tiles" + }, + { + "type": "Identifier", + "start": 5615, + "end": 5621, + "loc": { + "start": { + "line": 142, + "column": 82 + }, + "end": { + "line": 142, + "column": 88 + }, + "identifierName": "tileID" + }, + "name": "tileID" + }, + { + "type": "StringLiteral", + "start": 5623, + "end": 5631, + "loc": { + "start": { + "line": 142, + "column": 90 + }, + "end": { + "line": 142, + "column": 98 + } + }, + "extra": { + "rawValue": "health", + "raw": "'health'" + }, + "value": "health" + } + ] + } + ] + } + } + ], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Check if tile is fully captured", + "start": 5637, + "end": 5671, + "loc": { + "start": { + "line": 144, + "column": 1 + }, + "end": { + "line": 144, + "column": 35 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 5673, + "end": 6507, + "loc": { + "start": { + "line": 145, + "column": 1 + }, + "end": { + "line": 166, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 5677, + "end": 5734, + "loc": { + "start": { + "line": 145, + "column": 5 + }, + "end": { + "line": 145, + "column": 62 + } + }, + "left": { + "type": "CallExpression", + "start": 5677, + "end": 5729, + "loc": { + "start": { + "line": 145, + "column": 5 + }, + "end": { + "line": 145, + "column": 57 + } + }, + "callee": { + "type": "Identifier", + "start": 5677, + "end": 5685, + "loc": { + "start": { + "line": 145, + "column": 5 + }, + "end": { + "line": 145, + "column": 13 + }, + "identifierName": "getField" + }, + "name": "getField", + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrayExpression", + "start": 5686, + "end": 5728, + "loc": { + "start": { + "line": 145, + "column": 14 + }, + "end": { + "line": 145, + "column": 56 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 5687, + "end": 5694, + "loc": { + "start": { + "line": 145, + "column": 15 + }, + "end": { + "line": 145, + "column": 22 + } + }, + "extra": { + "rawValue": "rooms", + "raw": "'rooms'" + }, + "value": "rooms" + }, + { + "type": "Identifier", + "start": 5696, + "end": 5700, + "loc": { + "start": { + "line": 145, + "column": 24 + }, + "end": { + "line": 145, + "column": 28 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "StringLiteral", + "start": 5702, + "end": 5709, + "loc": { + "start": { + "line": 145, + "column": 30 + }, + "end": { + "line": 145, + "column": 37 + } + }, + "extra": { + "rawValue": "tiles", + "raw": "'tiles'" + }, + "value": "tiles" + }, + { + "type": "Identifier", + "start": 5711, + "end": 5717, + "loc": { + "start": { + "line": 145, + "column": 39 + }, + "end": { + "line": 145, + "column": 45 + }, + "identifierName": "tileID" + }, + "name": "tileID" + }, + { + "type": "StringLiteral", + "start": 5719, + "end": 5727, + "loc": { + "start": { + "line": 145, + "column": 47 + }, + "end": { + "line": 145, + "column": 55 + } + }, + "extra": { + "rawValue": "health", + "raw": "'health'" + }, + "value": "health" + } + ] + } + ], + "leadingComments": null + }, + "operator": "<=", + "right": { + "type": "NumericLiteral", + "start": 5733, + "end": 5734, + "loc": { + "start": { + "line": 145, + "column": 61 + }, + "end": { + "line": 145, + "column": 62 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 5736, + "end": 6507, + "loc": { + "start": { + "line": 145, + "column": 64 + }, + "end": { + "line": 166, + "column": 2 + } + }, + "body": [ + { + "type": "ForStatement", + "start": 5740, + "end": 6504, + "loc": { + "start": { + "line": 146, + "column": 2 + }, + "end": { + "line": 165, + "column": 3 + } + }, + "init": { + "type": "VariableDeclaration", + "start": 5745, + "end": 5754, + "loc": { + "start": { + "line": 146, + "column": 7 + }, + "end": { + "line": 146, + "column": 16 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5749, + "end": 5754, + "loc": { + "start": { + "line": 146, + "column": 11 + }, + "end": { + "line": 146, + "column": 16 + } + }, + "id": { + "type": "Identifier", + "start": 5749, + "end": 5750, + "loc": { + "start": { + "line": 146, + "column": 11 + }, + "end": { + "line": 146, + "column": 12 + }, + "identifierName": "i" + }, + "name": "i" + }, + "init": { + "type": "NumericLiteral", + "start": 5753, + "end": 5754, + "loc": { + "start": { + "line": 146, + "column": 15 + }, + "end": { + "line": 146, + "column": 16 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + ], + "kind": "let" + }, + "test": { + "type": "BinaryExpression", + "start": 5756, + "end": 5761, + "loc": { + "start": { + "line": 146, + "column": 18 + }, + "end": { + "line": 146, + "column": 23 + } + }, + "left": { + "type": "Identifier", + "start": 5756, + "end": 5757, + "loc": { + "start": { + "line": 146, + "column": 18 + }, + "end": { + "line": 146, + "column": 19 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "NumericLiteral", + "start": 5760, + "end": 5761, + "loc": { + "start": { + "line": 146, + "column": 22 + }, + "end": { + "line": 146, + "column": 23 + } + }, + "extra": { + "rawValue": 3, + "raw": "3" + }, + "value": 3 + } + }, + "update": { + "type": "UpdateExpression", + "start": 5763, + "end": 5766, + "loc": { + "start": { + "line": 146, + "column": 25 + }, + "end": { + "line": 146, + "column": 28 + } + }, + "operator": "++", + "prefix": false, + "argument": { + "type": "Identifier", + "start": 5763, + "end": 5764, + "loc": { + "start": { + "line": 146, + "column": 25 + }, + "end": { + "line": 146, + "column": 26 + }, + "identifierName": "i" + }, + "name": "i" + } + }, + "body": { + "type": "BlockStatement", + "start": 5768, + "end": 6504, + "loc": { + "start": { + "line": 146, + "column": 30 + }, + "end": { + "line": 165, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 5773, + "end": 6500, + "loc": { + "start": { + "line": 147, + "column": 3 + }, + "end": { + "line": 164, + "column": 4 + } + }, + "test": { + "type": "BinaryExpression", + "start": 5777, + "end": 5876, + "loc": { + "start": { + "line": 147, + "column": 7 + }, + "end": { + "line": 147, + "column": 106 + } + }, + "left": { + "type": "MemberExpression", + "start": 5777, + "end": 5819, + "loc": { + "start": { + "line": 147, + "column": 7 + }, + "end": { + "line": 147, + "column": 49 + } + }, + "object": { + "type": "CallExpression", + "start": 5777, + "end": 5814, + "loc": { + "start": { + "line": 147, + "column": 7 + }, + "end": { + "line": 147, + "column": 44 + } + }, + "callee": { + "type": "Identifier", + "start": 5777, + "end": 5785, + "loc": { + "start": { + "line": 147, + "column": 7 + }, + "end": { + "line": 147, + "column": 15 + }, + "identifierName": "getField" + }, + "name": "getField" + }, + "arguments": [ + { + "type": "ArrayExpression", + "start": 5786, + "end": 5813, + "loc": { + "start": { + "line": 147, + "column": 16 + }, + "end": { + "line": 147, + "column": 43 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 5787, + "end": 5794, + "loc": { + "start": { + "line": 147, + "column": 17 + }, + "end": { + "line": 147, + "column": 24 + } + }, + "extra": { + "rawValue": "rooms", + "raw": "'rooms'" + }, + "value": "rooms" + }, + { + "type": "Identifier", + "start": 5796, + "end": 5800, + "loc": { + "start": { + "line": 147, + "column": 26 + }, + "end": { + "line": 147, + "column": 30 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "StringLiteral", + "start": 5802, + "end": 5809, + "loc": { + "start": { + "line": 147, + "column": 32 + }, + "end": { + "line": 147, + "column": 39 + } + }, + "extra": { + "rawValue": "teams", + "raw": "'teams'" + }, + "value": "teams" + }, + { + "type": "Identifier", + "start": 5811, + "end": 5812, + "loc": { + "start": { + "line": 147, + "column": 41 + }, + "end": { + "line": 147, + "column": 42 + }, + "identifierName": "i" + }, + "name": "i" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 5815, + "end": 5819, + "loc": { + "start": { + "line": 147, + "column": 45 + }, + "end": { + "line": 147, + "column": 49 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "CallExpression", + "start": 5824, + "end": 5876, + "loc": { + "start": { + "line": 147, + "column": 54 + }, + "end": { + "line": 147, + "column": 106 + } + }, + "callee": { + "type": "Identifier", + "start": 5824, + "end": 5832, + "loc": { + "start": { + "line": 147, + "column": 54 + }, + "end": { + "line": 147, + "column": 62 + }, + "identifierName": "getField" + }, + "name": "getField" + }, + "arguments": [ + { + "type": "ArrayExpression", + "start": 5833, + "end": 5875, + "loc": { + "start": { + "line": 147, + "column": 63 + }, + "end": { + "line": 147, + "column": 105 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 5834, + "end": 5841, + "loc": { + "start": { + "line": 147, + "column": 64 + }, + "end": { + "line": 147, + "column": 71 + } + }, + "extra": { + "rawValue": "rooms", + "raw": "'rooms'" + }, + "value": "rooms" + }, + { + "type": "Identifier", + "start": 5843, + "end": 5847, + "loc": { + "start": { + "line": 147, + "column": 73 + }, + "end": { + "line": 147, + "column": 77 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "StringLiteral", + "start": 5849, + "end": 5858, + "loc": { + "start": { + "line": 147, + "column": 79 + }, + "end": { + "line": 147, + "column": 88 + } + }, + "extra": { + "rawValue": "players", + "raw": "'players'" + }, + "value": "players" + }, + { + "type": "Identifier", + "start": 5860, + "end": 5866, + "loc": { + "start": { + "line": 147, + "column": 90 + }, + "end": { + "line": 147, + "column": 96 + }, + "identifierName": "player" + }, + "name": "player" + }, + { + "type": "StringLiteral", + "start": 5868, + "end": 5874, + "loc": { + "start": { + "line": 147, + "column": 98 + }, + "end": { + "line": 147, + "column": 104 + } + }, + "extra": { + "rawValue": "team", + "raw": "'team'" + }, + "value": "team" + } + ] + } + ] + } + }, + "consequent": { + "type": "BlockStatement", + "start": 5878, + "end": 6500, + "loc": { + "start": { + "line": 147, + "column": 108 + }, + "end": { + "line": 164, + "column": 4 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 5924, + "end": 6095, + "loc": { + "start": { + "line": 149, + "column": 4 + }, + "end": { + "line": 153, + "column": 5 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5928, + "end": 6095, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 153, + "column": 5 + } + }, + "id": { + "type": "Identifier", + "start": 5928, + "end": 5932, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 12 + }, + "identifierName": "data" + }, + "name": "data", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 5935, + "end": 6095, + "loc": { + "start": { + "line": 149, + "column": 15 + }, + "end": { + "line": 153, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 5942, + "end": 5955, + "loc": { + "start": { + "line": 150, + "column": 5 + }, + "end": { + "line": 150, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5942, + "end": 5952, + "loc": { + "start": { + "line": 150, + "column": 5 + }, + "end": { + "line": 150, + "column": 15 + }, + "identifierName": "teamNumber" + }, + "name": "teamNumber" + }, + "value": { + "type": "Identifier", + "start": 5954, + "end": 5955, + "loc": { + "start": { + "line": 150, + "column": 17 + }, + "end": { + "line": 150, + "column": 18 + }, + "identifierName": "i" + }, + "name": "i" + } + }, + { + "type": "ObjectProperty", + "start": 5962, + "end": 6022, + "loc": { + "start": { + "line": 151, + "column": 5 + }, + "end": { + "line": 151, + "column": 65 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5962, + "end": 5967, + "loc": { + "start": { + "line": 151, + "column": 5 + }, + "end": { + "line": 151, + "column": 10 + }, + "identifierName": "tileX" + }, + "name": "tileX" + }, + "value": { + "type": "CallExpression", + "start": 5969, + "end": 6022, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 65 + } + }, + "callee": { + "type": "Identifier", + "start": 5969, + "end": 5977, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 20 + }, + "identifierName": "getField" + }, + "name": "getField" + }, + "arguments": [ + { + "type": "ArrayExpression", + "start": 5978, + "end": 6021, + "loc": { + "start": { + "line": 151, + "column": 21 + }, + "end": { + "line": 151, + "column": 64 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 5979, + "end": 5986, + "loc": { + "start": { + "line": 151, + "column": 22 + }, + "end": { + "line": 151, + "column": 29 + } + }, + "extra": { + "rawValue": "rooms", + "raw": "'rooms'" + }, + "value": "rooms" + }, + { + "type": "Identifier", + "start": 5988, + "end": 5992, + "loc": { + "start": { + "line": 151, + "column": 31 + }, + "end": { + "line": 151, + "column": 35 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "StringLiteral", + "start": 5994, + "end": 6001, + "loc": { + "start": { + "line": 151, + "column": 37 + }, + "end": { + "line": 151, + "column": 44 + } + }, + "extra": { + "rawValue": "tiles", + "raw": "'tiles'" + }, + "value": "tiles" + }, + { + "type": "Identifier", + "start": 6003, + "end": 6009, + "loc": { + "start": { + "line": 151, + "column": 46 + }, + "end": { + "line": 151, + "column": 52 + }, + "identifierName": "tileID" + }, + "name": "tileID" + }, + { + "type": "StringLiteral", + "start": 6011, + "end": 6020, + "loc": { + "start": { + "line": 151, + "column": 54 + }, + "end": { + "line": 151, + "column": 63 + } + }, + "extra": { + "rawValue": "globalX", + "raw": "'globalX'" + }, + "value": "globalX" + } + ] + } + ] + } + }, + { + "type": "ObjectProperty", + "start": 6029, + "end": 6089, + "loc": { + "start": { + "line": 152, + "column": 5 + }, + "end": { + "line": 152, + "column": 65 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6029, + "end": 6034, + "loc": { + "start": { + "line": 152, + "column": 5 + }, + "end": { + "line": 152, + "column": 10 + }, + "identifierName": "tileY" + }, + "name": "tileY" + }, + "value": { + "type": "CallExpression", + "start": 6036, + "end": 6089, + "loc": { + "start": { + "line": 152, + "column": 12 + }, + "end": { + "line": 152, + "column": 65 + } + }, + "callee": { + "type": "Identifier", + "start": 6036, + "end": 6044, + "loc": { + "start": { + "line": 152, + "column": 12 + }, + "end": { + "line": 152, + "column": 20 + }, + "identifierName": "getField" + }, + "name": "getField" + }, + "arguments": [ + { + "type": "ArrayExpression", + "start": 6045, + "end": 6088, + "loc": { + "start": { + "line": 152, + "column": 21 + }, + "end": { + "line": 152, + "column": 64 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 6046, + "end": 6053, + "loc": { + "start": { + "line": 152, + "column": 22 + }, + "end": { + "line": 152, + "column": 29 + } + }, + "extra": { + "rawValue": "rooms", + "raw": "'rooms'" + }, + "value": "rooms" + }, + { + "type": "Identifier", + "start": 6055, + "end": 6059, + "loc": { + "start": { + "line": 152, + "column": 31 + }, + "end": { + "line": 152, + "column": 35 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "StringLiteral", + "start": 6061, + "end": 6068, + "loc": { + "start": { + "line": 152, + "column": 37 + }, + "end": { + "line": 152, + "column": 44 + } + }, + "extra": { + "rawValue": "tiles", + "raw": "'tiles'" + }, + "value": "tiles" + }, + { + "type": "Identifier", + "start": 6070, + "end": 6076, + "loc": { + "start": { + "line": 152, + "column": 46 + }, + "end": { + "line": 152, + "column": 52 + }, + "identifierName": "tileID" + }, + "name": "tileID" + }, + { + "type": "StringLiteral", + "start": 6078, + "end": 6087, + "loc": { + "start": { + "line": 152, + "column": 54 + }, + "end": { + "line": 152, + "column": 63 + } + }, + "extra": { + "rawValue": "globalY", + "raw": "'globalY'" + }, + "value": "globalY" + } + ] + } + ] + } + } + ] + }, + "leadingComments": null + } + ], + "kind": "let", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Notify clients of texture change", + "start": 5884, + "end": 5919, + "loc": { + "start": { + "line": 148, + "column": 4 + }, + "end": { + "line": 148, + "column": 39 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 6100, + "end": 6151, + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 55 + } + }, + "expression": { + "type": "CallExpression", + "start": 6100, + "end": 6151, + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6100, + "end": 6120, + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 24 + } + }, + "object": { + "type": "CallExpression", + "start": 6100, + "end": 6115, + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6100, + "end": 6109, + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 13 + } + }, + "object": { + "type": "Identifier", + "start": 6100, + "end": 6106, + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 10 + }, + "identifierName": "socket" + }, + "name": "socket" + }, + "property": { + "type": "Identifier", + "start": 6107, + "end": 6109, + "loc": { + "start": { + "line": 154, + "column": 11 + }, + "end": { + "line": 154, + "column": 13 + }, + "identifierName": "to" + }, + "name": "to" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6110, + "end": 6114, + "loc": { + "start": { + "line": 154, + "column": 14 + }, + "end": { + "line": 154, + "column": 18 + }, + "identifierName": "room" + }, + "name": "room" + } + ] + }, + "property": { + "type": "Identifier", + "start": 6116, + "end": 6120, + "loc": { + "start": { + "line": 154, + "column": 20 + }, + "end": { + "line": 154, + "column": 24 + }, + "identifierName": "emit" + }, + "name": "emit" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 6121, + "end": 6144, + "loc": { + "start": { + "line": 154, + "column": 25 + }, + "end": { + "line": 154, + "column": 48 + } + }, + "extra": { + "rawValue": "serverSendTileCapture", + "raw": "'serverSendTileCapture'" + }, + "value": "serverSendTileCapture" + }, + { + "type": "Identifier", + "start": 6146, + "end": 6150, + "loc": { + "start": { + "line": 154, + "column": 50 + }, + "end": { + "line": 154, + "column": 54 + }, + "identifierName": "data" + }, + "name": "data" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 6156, + "end": 6198, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 155, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 6156, + "end": 6198, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 155, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6156, + "end": 6167, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 155, + "column": 15 + } + }, + "object": { + "type": "Identifier", + "start": 6156, + "end": 6162, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 155, + "column": 10 + }, + "identifierName": "socket" + }, + "name": "socket" + }, + "property": { + "type": "Identifier", + "start": 6163, + "end": 6167, + "loc": { + "start": { + "line": 155, + "column": 11 + }, + "end": { + "line": 155, + "column": 15 + }, + "identifierName": "emit" + }, + "name": "emit" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 6168, + "end": 6191, + "loc": { + "start": { + "line": 155, + "column": 16 + }, + "end": { + "line": 155, + "column": 39 + } + }, + "extra": { + "rawValue": "serverSendTileCapture", + "raw": "'serverSendTileCapture'" + }, + "value": "serverSendTileCapture" + }, + { + "type": "Identifier", + "start": 6193, + "end": 6197, + "loc": { + "start": { + "line": 155, + "column": 41 + }, + "end": { + "line": 155, + "column": 45 + }, + "identifierName": "data" + }, + "name": "data" + } + ], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Distribute points", + "start": 6204, + "end": 6224, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 157, + "column": 24 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 6229, + "end": 6303, + "loc": { + "start": { + "line": 158, + "column": 4 + }, + "end": { + "line": 158, + "column": 78 + } + }, + "expression": { + "type": "CallExpression", + "start": 6229, + "end": 6303, + "loc": { + "start": { + "line": 158, + "column": 4 + }, + "end": { + "line": 158, + "column": 78 + } + }, + "callee": { + "type": "Identifier", + "start": 6229, + "end": 6243, + "loc": { + "start": { + "line": 158, + "column": 4 + }, + "end": { + "line": 158, + "column": 18 + }, + "identifierName": "incrementField" + }, + "name": "incrementField", + "leadingComments": null + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 6244, + "end": 6264, + "loc": { + "start": { + "line": 158, + "column": 19 + }, + "end": { + "line": 158, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 6244, + "end": 6250, + "loc": { + "start": { + "line": 158, + "column": 19 + }, + "end": { + "line": 158, + "column": 25 + }, + "identifierName": "GLOBAL" + }, + "name": "GLOBAL" + }, + "property": { + "type": "Identifier", + "start": 6251, + "end": 6264, + "loc": { + "start": { + "line": 158, + "column": 26 + }, + "end": { + "line": 158, + "column": 39 + }, + "identifierName": "CAPTURE_SCORE" + }, + "name": "CAPTURE_SCORE" + }, + "computed": false + }, + { + "type": "ArrayExpression", + "start": 6266, + "end": 6302, + "loc": { + "start": { + "line": 158, + "column": 41 + }, + "end": { + "line": 158, + "column": 77 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 6267, + "end": 6274, + "loc": { + "start": { + "line": 158, + "column": 42 + }, + "end": { + "line": 158, + "column": 49 + } + }, + "extra": { + "rawValue": "rooms", + "raw": "'rooms'" + }, + "value": "rooms" + }, + { + "type": "Identifier", + "start": 6276, + "end": 6280, + "loc": { + "start": { + "line": 158, + "column": 51 + }, + "end": { + "line": 158, + "column": 55 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "StringLiteral", + "start": 6282, + "end": 6289, + "loc": { + "start": { + "line": 158, + "column": 57 + }, + "end": { + "line": 158, + "column": 64 + } + }, + "extra": { + "rawValue": "teams", + "raw": "'teams'" + }, + "value": "teams" + }, + { + "type": "Identifier", + "start": 6291, + "end": 6292, + "loc": { + "start": { + "line": 158, + "column": 66 + }, + "end": { + "line": 158, + "column": 67 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "StringLiteral", + "start": 6294, + "end": 6301, + "loc": { + "start": { + "line": 158, + "column": 69 + }, + "end": { + "line": 158, + "column": 76 + } + }, + "extra": { + "rawValue": "score", + "raw": "'score'" + }, + "value": "score" + } + ] + } + ], + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Distribute points", + "start": 6204, + "end": 6224, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 157, + "column": 24 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " Reset health", + "start": 6309, + "end": 6324, + "loc": { + "start": { + "line": 160, + "column": 4 + }, + "end": { + "line": 160, + "column": 19 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 6329, + "end": 6478, + "loc": { + "start": { + "line": 161, + "column": 4 + }, + "end": { + "line": 161, + "column": 153 + } + }, + "expression": { + "type": "CallExpression", + "start": 6329, + "end": 6478, + "loc": { + "start": { + "line": 161, + "column": 4 + }, + "end": { + "line": 161, + "column": 153 + } + }, + "callee": { + "type": "Identifier", + "start": 6329, + "end": 6337, + "loc": { + "start": { + "line": 161, + "column": 4 + }, + "end": { + "line": 161, + "column": 12 + }, + "identifierName": "setField" + }, + "name": "setField", + "leadingComments": null + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 6338, + "end": 6433, + "loc": { + "start": { + "line": 161, + "column": 13 + }, + "end": { + "line": 161, + "column": 108 + } + }, + "object": { + "type": "Identifier", + "start": 6338, + "end": 6344, + "loc": { + "start": { + "line": 161, + "column": 13 + }, + "end": { + "line": 161, + "column": 19 + }, + "identifierName": "GLOBAL" + }, + "name": "GLOBAL" + }, + "property": { + "type": "CallExpression", + "start": 6345, + "end": 6432, + "loc": { + "start": { + "line": 161, + "column": 20 + }, + "end": { + "line": 161, + "column": 107 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6345, + "end": 6430, + "loc": { + "start": { + "line": 161, + "column": 20 + }, + "end": { + "line": 161, + "column": 105 + } + }, + "object": { + "type": "BinaryExpression", + "start": 6346, + "end": 6417, + "loc": { + "start": { + "line": 161, + "column": 21 + }, + "end": { + "line": 161, + "column": 92 + } + }, + "left": { + "type": "BinaryExpression", + "start": 6346, + "end": 6405, + "loc": { + "start": { + "line": 161, + "column": 21 + }, + "end": { + "line": 161, + "column": 80 + } + }, + "left": { + "type": "StringLiteral", + "start": 6346, + "end": 6352, + "loc": { + "start": { + "line": 161, + "column": 21 + }, + "end": { + "line": 161, + "column": 27 + } + }, + "extra": { + "rawValue": "MAX_", + "raw": "'MAX_'" + }, + "value": "MAX_" + }, + "operator": "+", + "right": { + "type": "CallExpression", + "start": 6355, + "end": 6405, + "loc": { + "start": { + "line": 161, + "column": 30 + }, + "end": { + "line": 161, + "column": 80 + } + }, + "callee": { + "type": "Identifier", + "start": 6355, + "end": 6363, + "loc": { + "start": { + "line": 161, + "column": 30 + }, + "end": { + "line": 161, + "column": 38 + }, + "identifierName": "getField" + }, + "name": "getField" + }, + "arguments": [ + { + "type": "ArrayExpression", + "start": 6364, + "end": 6404, + "loc": { + "start": { + "line": 161, + "column": 39 + }, + "end": { + "line": 161, + "column": 79 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 6365, + "end": 6372, + "loc": { + "start": { + "line": 161, + "column": 40 + }, + "end": { + "line": 161, + "column": 47 + } + }, + "extra": { + "rawValue": "rooms", + "raw": "'rooms'" + }, + "value": "rooms" + }, + { + "type": "Identifier", + "start": 6374, + "end": 6378, + "loc": { + "start": { + "line": 161, + "column": 49 + }, + "end": { + "line": 161, + "column": 53 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "StringLiteral", + "start": 6380, + "end": 6387, + "loc": { + "start": { + "line": 161, + "column": 55 + }, + "end": { + "line": 161, + "column": 62 + } + }, + "extra": { + "rawValue": "tiles", + "raw": "'tiles'" + }, + "value": "tiles" + }, + { + "type": "Identifier", + "start": 6389, + "end": 6395, + "loc": { + "start": { + "line": 161, + "column": 64 + }, + "end": { + "line": 161, + "column": 70 + }, + "identifierName": "tileID" + }, + "name": "tileID" + }, + { + "type": "StringLiteral", + "start": 6397, + "end": 6403, + "loc": { + "start": { + "line": 161, + "column": 72 + }, + "end": { + "line": 161, + "column": 78 + } + }, + "extra": { + "rawValue": "type", + "raw": "'type'" + }, + "value": "type" + } + ] + } + ] + } + }, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 6408, + "end": 6417, + "loc": { + "start": { + "line": 161, + "column": 83 + }, + "end": { + "line": 161, + "column": 92 + } + }, + "extra": { + "rawValue": "_HEALTH", + "raw": "'_HEALTH'" + }, + "value": "_HEALTH" + }, + "extra": { + "parenthesized": true, + "parenStart": 6345 + } + }, + "property": { + "type": "Identifier", + "start": 6419, + "end": 6430, + "loc": { + "start": { + "line": 161, + "column": 94 + }, + "end": { + "line": 161, + "column": 105 + }, + "identifierName": "toUpperCase" + }, + "name": "toUpperCase" + }, + "computed": false + }, + "arguments": [] + }, + "computed": true + }, + { + "type": "ArrayExpression", + "start": 6435, + "end": 6477, + "loc": { + "start": { + "line": 161, + "column": 110 + }, + "end": { + "line": 161, + "column": 152 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 6436, + "end": 6443, + "loc": { + "start": { + "line": 161, + "column": 111 + }, + "end": { + "line": 161, + "column": 118 + } + }, + "extra": { + "rawValue": "rooms", + "raw": "'rooms'" + }, + "value": "rooms" + }, + { + "type": "Identifier", + "start": 6445, + "end": 6449, + "loc": { + "start": { + "line": 161, + "column": 120 + }, + "end": { + "line": 161, + "column": 124 + }, + "identifierName": "room" + }, + "name": "room" + }, + { + "type": "StringLiteral", + "start": 6451, + "end": 6458, + "loc": { + "start": { + "line": 161, + "column": 126 + }, + "end": { + "line": 161, + "column": 133 + } + }, + "extra": { + "rawValue": "tiles", + "raw": "'tiles'" + }, + "value": "tiles" + }, + { + "type": "Identifier", + "start": 6460, + "end": 6466, + "loc": { + "start": { + "line": 161, + "column": 135 + }, + "end": { + "line": 161, + "column": 141 + }, + "identifierName": "tileID" + }, + "name": "tileID" + }, + { + "type": "StringLiteral", + "start": 6468, + "end": 6476, + "loc": { + "start": { + "line": 161, + "column": 143 + }, + "end": { + "line": 161, + "column": 151 + } + }, + "extra": { + "rawValue": "health", + "raw": "'health'" + }, + "value": "health" + } + ] + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Reset health", + "start": 6309, + "end": 6324, + "loc": { + "start": { + "line": 160, + "column": 4 + }, + "end": { + "line": 160, + "column": 19 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 6484, + "end": 6495, + "loc": { + "start": { + "line": 163, + "column": 4 + }, + "end": { + "line": 163, + "column": 15 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 6491, + "end": 6495, + "loc": { + "start": { + "line": 163, + "column": 11 + }, + "end": { + "line": 163, + "column": 15 + } + }, + "value": true + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Check if tile is fully captured", + "start": 5637, + "end": 5671, + "loc": { + "start": { + "line": 144, + "column": 1 + }, + "end": { + "line": 144, + "column": 35 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * TODO\n ", + "start": 6511, + "end": 6526, + "loc": { + "start": { + "line": 169, + "column": 0 + }, + "end": { + "line": 171, + "column": 3 + } + } + } + ], + "leadingComments": [] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * TODO\n ", + "start": 6511, + "end": 6526, + "loc": { + "start": { + "line": 169, + "column": 0 + }, + "end": { + "line": 171, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 6527, + "end": 6557, + "loc": { + "start": { + "line": 172, + "column": 0 + }, + "end": { + "line": 174, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "FunctionDeclaration", + "start": 6534, + "end": 6557, + "loc": { + "start": { + "line": 172, + "column": 7 + }, + "end": { + "line": 174, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 6543, + "end": 6549, + "loc": { + "start": { + "line": 172, + "column": 16 + }, + "end": { + "line": 172, + "column": 22 + }, + "identifierName": "splash" + }, + "name": "splash", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 6553, + "end": 6557, + "loc": { + "start": { + "line": 172, + "column": 26 + }, + "end": { + "line": 174, + "column": 1 + } + }, + "body": [], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * TODO\n ", + "start": 6511, + "end": 6526, + "loc": { + "start": { + "line": 169, + "column": 0 + }, + "end": { + "line": 171, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * TODO\n ", + "start": 6511, + "end": 6526, + "loc": { + "start": { + "line": 169, + "column": 0 + }, + "end": { + "line": 171, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * ondamage.js\n * Contains functions:\n * - damage() Runs when a player gets damaged. Updates scores and checks if a player has been killed.\n * - splash() Runs when a collision needs to cause splash damage. Creates explosion effect and deals extra damage.\n ", + "start": 222, + "end": 486, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Changes the health of the player by the amount given.\n * @param {*} data The data sent by the client. Contains:\n * - damage (number)\n * - player (id string of player that was hit)\n * - id (id string of compound)\n * - sentBy (id string of player that sent compound)\n * @param {string} room This room.\n * @param {*} socket This socket.\n * Must include the player id and amount to damage.\n * Amount may be negative (for health boost).\n ", + "start": 488, + "end": 934, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " thisPlayer.health -= data.damage;", + "start": 1107, + "end": 1143, + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 31, + "column": 38 + } + } + }, + { + "type": "CommentLine", + "value": " Add damage to database", + "start": 1242, + "end": 1267, + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 34, + "column": 27 + } + } + }, + { + "type": "CommentLine", + "value": " thisPlayer.damagedBy[data.sentBy] += data.damage;", + "start": 1413, + "end": 1465, + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 38, + "column": 54 + } + } + }, + { + "type": "CommentLine", + "value": " Check if the player has died.", + "start": 1596, + "end": 1628, + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 41, + "column": 34 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(thisRoom.teams.indexOf(socket.handshake.query.team));", + "start": 1664, + "end": 1732, + "loc": { + "start": { + "line": 43, + "column": 3 + }, + "end": { + "line": 43, + "column": 71 + } + } + }, + { + "type": "CommentLine", + "value": " Releases atoms and deletes the entire atoms array in player", + "start": 1737, + "end": 1799, + "loc": { + "start": { + "line": 45, + "column": 3 + }, + "end": { + "line": 45, + "column": 65 + } + } + }, + { + "type": "CommentLine", + "value": " Reset position to spawnpoint", + "start": 2126, + "end": 2157, + "loc": { + "start": { + "line": 55, + "column": 3 + }, + "end": { + "line": 55, + "column": 34 + } + } + }, + { + "type": "CommentLine", + "value": " This will be reset when it has been verified that the player has been placed at the proper spawnpoint", + "start": 2603, + "end": 2707, + "loc": { + "start": { + "line": 59, + "column": 67 + }, + "end": { + "line": 59, + "column": 171 + } + } + }, + { + "type": "CommentLine", + "value": " Read damagedBy to award points, clear in the process", + "start": 2947, + "end": 3002, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 59 + } + } + }, + { + "type": "CommentLine", + "value": " Add to team score, checking if team score is initialized", + "start": 3269, + "end": 3328, + "loc": { + "start": { + "line": 78, + "column": 5 + }, + "end": { + "line": 78, + "column": 64 + } + } + }, + { + "type": "CommentLine", + "value": " Add to score of person who dealt the most damage", + "start": 3790, + "end": 3841, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 55 + } + } + }, + { + "type": "CommentLine", + "value": " Add to team score", + "start": 4094, + "end": 4114, + "loc": { + "start": { + "line": 95, + "column": 4 + }, + "end": { + "line": 95, + "column": 24 + } + } + }, + { + "type": "CommentLine", + "value": " Clear damagedBy values", + "start": 4217, + "end": 4242, + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 98, + "column": 29 + } + } + }, + { + "type": "CommentLine", + "value": " Check if a team won", + "start": 4372, + "end": 4394, + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 103, + "column": 26 + } + } + }, + { + "type": "CommentLine", + "value": " Possible winning teams", + "start": 4419, + "end": 4444, + "loc": { + "start": { + "line": 104, + "column": 24 + }, + "end": { + "line": 104, + "column": 49 + } + } + }, + { + "type": "CommentLine", + "value": " teamScore: thisRoom.teams[dataToSend.teamSlot].score", + "start": 4793, + "end": 4848, + "loc": { + "start": { + "line": 118, + "column": 7 + }, + "end": { + "line": 118, + "column": 62 + } + } + }, + { + "type": "CommentLine", + "value": " other data here TODO post ranking", + "start": 4856, + "end": 4892, + "loc": { + "start": { + "line": 119, + "column": 7 + }, + "end": { + "line": 119, + "column": 43 + } + } + }, + { + "type": "CommentLine", + "value": " Close room after delay (kick all players)", + "start": 5027, + "end": 5071, + "loc": { + "start": { + "line": 124, + "column": 6 + }, + "end": { + "line": 124, + "column": 50 + } + } + }, + { + "type": "CommentLine", + "value": " Check if tile is fully captured", + "start": 5637, + "end": 5671, + "loc": { + "start": { + "line": 144, + "column": 1 + }, + "end": { + "line": 144, + "column": 35 + } + } + }, + { + "type": "CommentLine", + "value": " Notify clients of texture change", + "start": 5884, + "end": 5919, + "loc": { + "start": { + "line": 148, + "column": 4 + }, + "end": { + "line": 148, + "column": 39 + } + } + }, + { + "type": "CommentLine", + "value": " Distribute points", + "start": 6204, + "end": 6224, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 157, + "column": 24 + } + } + }, + { + "type": "CommentLine", + "value": " Reset health", + "start": 6309, + "end": 6324, + "loc": { + "start": { + "line": 160, + "column": 4 + }, + "end": { + "line": 160, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * TODO\n ", + "start": 6511, + "end": 6526, + "loc": { + "start": { + "line": 169, + "column": 0 + }, + "end": { + "line": 171, + "column": 3 + } + } + } + ], + "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": "GLOBAL", + "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": "../../client/js/global", + "start": 23, + "end": 47, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 47 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 48, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 55, + "end": 56, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getField", + "start": 57, + "end": 65, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 65, + "end": 66, + "loc": { + "start": { + "line": 2, + "column": 17 + }, + "end": { + "line": 2, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setField", + "start": 67, + "end": 75, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 75, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 27 + }, + "end": { + "line": 2, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "incrementField", + "start": 77, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 29 + }, + "end": { + "line": 2, + "column": 43 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 92, + "end": 93, + "loc": { + "start": { + "line": 2, + "column": 44 + }, + "end": { + "line": 2, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 94, + "end": 98, + "loc": { + "start": { + "line": 2, + "column": 46 + }, + "end": { + "line": 2, + "column": 50 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../server", + "start": 99, + "end": 110, + "loc": { + "start": { + "line": 2, + "column": 51 + }, + "end": { + "line": 2, + "column": 62 + } + } + }, + { + "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": 111, + "end": 117, + "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": 118, + "end": 119, + "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": "getTeamNumber", + "start": 120, + "end": 133, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 134, + "end": 135, + "loc": { + "start": { + "line": 3, + "column": 23 + }, + "end": { + "line": 3, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 136, + "end": 140, + "loc": { + "start": { + "line": 3, + "column": 25 + }, + "end": { + "line": 3, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./serverutils", + "start": 141, + "end": 156, + "loc": { + "start": { + "line": 3, + "column": 30 + }, + "end": { + "line": 3, + "column": 45 + } + } + }, + { + "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": 157, + "end": 163, + "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": 164, + "end": 165, + "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": "tmpdir", + "start": 166, + "end": 172, + "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": 173, + "end": 174, + "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": 175, + "end": 179, + "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": "os", + "start": 180, + "end": 184, + "loc": { + "start": { + "line": 4, + "column": 23 + }, + "end": { + "line": 4, + "column": 27 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 185, + "end": 191, + "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": 192, + "end": 193, + "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": "spawnAtom", + "start": 194, + "end": 203, + "loc": { + "start": { + "line": 5, + "column": 9 + }, + "end": { + "line": 5, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 204, + "end": 205, + "loc": { + "start": { + "line": 5, + "column": 19 + }, + "end": { + "line": 5, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 206, + "end": 210, + "loc": { + "start": { + "line": 5, + "column": 21 + }, + "end": { + "line": 5, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./atoms", + "start": 211, + "end": 220, + "loc": { + "start": { + "line": 5, + "column": 26 + }, + "end": { + "line": 5, + "column": 35 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * ondamage.js\n * Contains functions:\n * - damage() Runs when a player gets damaged. Updates scores and checks if a player has been killed.\n * - splash() Runs when a collision needs to cause splash damage. Creates explosion effect and deals extra damage.\n ", + "start": 222, + "end": 486, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Changes the health of the player by the amount given.\n * @param {*} data The data sent by the client. Contains:\n * - damage (number)\n * - player (id string of player that was hit)\n * - id (id string of compound)\n * - sentBy (id string of player that sent compound)\n * @param {string} room This room.\n * @param {*} socket This socket.\n * Must include the player id and amount to damage.\n * Amount may be negative (for health boost).\n ", + "start": 488, + "end": 934, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 935, + "end": 941, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 26, + "column": 6 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 942, + "end": 950, + "loc": { + "start": { + "line": 26, + "column": 7 + }, + "end": { + "line": 26, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "damage", + "start": 951, + "end": 957, + "loc": { + "start": { + "line": 26, + "column": 16 + }, + "end": { + "line": 26, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 958, + "end": 959, + "loc": { + "start": { + "line": 26, + "column": 23 + }, + "end": { + "line": 26, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 959, + "end": 963, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 28 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 963, + "end": 964, + "loc": { + "start": { + "line": 26, + "column": 28 + }, + "end": { + "line": 26, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "room", + "start": 965, + "end": 969, + "loc": { + "start": { + "line": 26, + "column": 30 + }, + "end": { + "line": 26, + "column": 34 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 969, + "end": 970, + "loc": { + "start": { + "line": 26, + "column": 34 + }, + "end": { + "line": 26, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "socket", + "start": 971, + "end": 977, + "loc": { + "start": { + "line": 26, + "column": 36 + }, + "end": { + "line": 26, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 977, + "end": 978, + "loc": { + "start": { + "line": 26, + "column": 42 + }, + "end": { + "line": 26, + "column": 43 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 979, + "end": 980, + "loc": { + "start": { + "line": 26, + "column": 44 + }, + "end": { + "line": 26, + "column": 45 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 982, + "end": 985, + "loc": { + "start": { + "line": 27, + "column": 1 + }, + "end": { + "line": 27, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisRoom", + "start": 986, + "end": 994, + "loc": { + "start": { + "line": 27, + "column": 5 + }, + "end": { + "line": 27, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 995, + "end": 996, + "loc": { + "start": { + "line": 27, + "column": 14 + }, + "end": { + "line": 27, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getField", + "start": 997, + "end": 1005, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1005, + "end": 1006, + "loc": { + "start": { + "line": 27, + "column": 24 + }, + "end": { + "line": 27, + "column": 25 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1006, + "end": 1007, + "loc": { + "start": { + "line": 27, + "column": 25 + }, + "end": { + "line": 27, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "rooms", + "start": 1007, + "end": 1014, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1014, + "end": 1015, + "loc": { + "start": { + "line": 27, + "column": 33 + }, + "end": { + "line": 27, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "room", + "start": 1016, + "end": 1020, + "loc": { + "start": { + "line": 27, + "column": 35 + }, + "end": { + "line": 27, + "column": 39 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1020, + "end": 1021, + "loc": { + "start": { + "line": 27, + "column": 39 + }, + "end": { + "line": 27, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1021, + "end": 1022, + "loc": { + "start": { + "line": 27, + "column": 40 + }, + "end": { + "line": 27, + "column": 41 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1024, + "end": 1027, + "loc": { + "start": { + "line": 28, + "column": 1 + }, + "end": { + "line": 28, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisPlayer", + "start": 1028, + "end": 1038, + "loc": { + "start": { + "line": 28, + "column": 5 + }, + "end": { + "line": 28, + "column": 15 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1039, + "end": 1040, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisRoom", + "start": 1041, + "end": 1049, + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 28, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1049, + "end": 1050, + "loc": { + "start": { + "line": 28, + "column": 26 + }, + "end": { + "line": 28, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "players", + "start": 1050, + "end": 1057, + "loc": { + "start": { + "line": 28, + "column": 27 + }, + "end": { + "line": 28, + "column": 34 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1057, + "end": 1058, + "loc": { + "start": { + "line": 28, + "column": 34 + }, + "end": { + "line": 28, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1058, + "end": 1062, + "loc": { + "start": { + "line": 28, + "column": 35 + }, + "end": { + "line": 28, + "column": 39 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1062, + "end": 1063, + "loc": { + "start": { + "line": 28, + "column": 39 + }, + "end": { + "line": 28, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "player", + "start": 1063, + "end": 1069, + "loc": { + "start": { + "line": 28, + "column": 40 + }, + "end": { + "line": 28, + "column": 46 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1069, + "end": 1070, + "loc": { + "start": { + "line": 28, + "column": 46 + }, + "end": { + "line": 28, + "column": 47 + } + } + }, + { + "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": 1073, + "end": 1075, + "loc": { + "start": { + "line": 30, + "column": 1 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1076, + "end": 1077, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisPlayer", + "start": 1077, + "end": 1087, + "loc": { + "start": { + "line": 30, + "column": 5 + }, + "end": { + "line": 30, + "column": 15 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 1088, + "end": 1091, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "undefined", + "start": 1092, + "end": 1101, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1101, + "end": 1102, + "loc": { + "start": { + "line": 30, + "column": 29 + }, + "end": { + "line": 30, + "column": 30 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1103, + "end": 1104, + "loc": { + "start": { + "line": 30, + "column": 31 + }, + "end": { + "line": 30, + "column": 32 + } + } + }, + { + "type": "CommentLine", + "value": " thisPlayer.health -= data.damage;", + "start": 1107, + "end": 1143, + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 31, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setField", + "start": 1146, + "end": 1154, + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 32, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1154, + "end": 1155, + "loc": { + "start": { + "line": 32, + "column": 10 + }, + "end": { + "line": 32, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisPlayer", + "start": 1155, + "end": 1165, + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1165, + "end": 1166, + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 32, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "health", + "start": 1166, + "end": 1172, + "loc": { + "start": { + "line": 32, + "column": 22 + }, + "end": { + "line": 32, + "column": 28 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 1173, + "end": 1174, + "loc": { + "start": { + "line": 32, + "column": 29 + }, + "end": { + "line": 32, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1175, + "end": 1179, + "loc": { + "start": { + "line": 32, + "column": 31 + }, + "end": { + "line": 32, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1179, + "end": 1180, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "damage", + "start": 1180, + "end": 1186, + "loc": { + "start": { + "line": 32, + "column": 36 + }, + "end": { + "line": 32, + "column": 42 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1186, + "end": 1187, + "loc": { + "start": { + "line": 32, + "column": 42 + }, + "end": { + "line": 32, + "column": 43 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1188, + "end": 1189, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 45 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "rooms", + "start": 1189, + "end": 1196, + "loc": { + "start": { + "line": 32, + "column": 45 + }, + "end": { + "line": 32, + "column": 52 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1196, + "end": 1197, + "loc": { + "start": { + "line": 32, + "column": 52 + }, + "end": { + "line": 32, + "column": 53 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "room", + "start": 1198, + "end": 1202, + "loc": { + "start": { + "line": 32, + "column": 54 + }, + "end": { + "line": 32, + "column": 58 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1202, + "end": 1203, + "loc": { + "start": { + "line": 32, + "column": 58 + }, + "end": { + "line": 32, + "column": 59 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "players", + "start": 1204, + "end": 1213, + "loc": { + "start": { + "line": 32, + "column": 60 + }, + "end": { + "line": 32, + "column": 69 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1213, + "end": 1214, + "loc": { + "start": { + "line": 32, + "column": 69 + }, + "end": { + "line": 32, + "column": 70 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1215, + "end": 1219, + "loc": { + "start": { + "line": 32, + "column": 71 + }, + "end": { + "line": 32, + "column": 75 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1219, + "end": 1220, + "loc": { + "start": { + "line": 32, + "column": 75 + }, + "end": { + "line": 32, + "column": 76 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "player", + "start": 1220, + "end": 1226, + "loc": { + "start": { + "line": 32, + "column": 76 + }, + "end": { + "line": 32, + "column": 82 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1226, + "end": 1227, + "loc": { + "start": { + "line": 32, + "column": 82 + }, + "end": { + "line": 32, + "column": 83 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "health", + "start": 1228, + "end": 1236, + "loc": { + "start": { + "line": 32, + "column": 84 + }, + "end": { + "line": 32, + "column": 92 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1236, + "end": 1237, + "loc": { + "start": { + "line": 32, + "column": 92 + }, + "end": { + "line": 32, + "column": 93 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1237, + "end": 1238, + "loc": { + "start": { + "line": 32, + "column": 93 + }, + "end": { + "line": 32, + "column": 94 + } + } + }, + { + "type": "CommentLine", + "value": " Add damage to database", + "start": 1242, + "end": 1267, + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 34, + "column": 27 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1270, + "end": 1272, + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 35, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1273, + "end": 1274, + "loc": { + "start": { + "line": 35, + "column": 5 + }, + "end": { + "line": 35, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisPlayer", + "start": 1274, + "end": 1284, + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1284, + "end": 1285, + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "damagedBy", + "start": 1285, + "end": 1294, + "loc": { + "start": { + "line": 35, + "column": 17 + }, + "end": { + "line": 35, + "column": 26 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1294, + "end": 1295, + "loc": { + "start": { + "line": 35, + "column": 26 + }, + "end": { + "line": 35, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1295, + "end": 1299, + "loc": { + "start": { + "line": 35, + "column": 27 + }, + "end": { + "line": 35, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1299, + "end": 1300, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sentBy", + "start": 1300, + "end": 1306, + "loc": { + "start": { + "line": 35, + "column": 32 + }, + "end": { + "line": 35, + "column": 38 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1306, + "end": 1307, + "loc": { + "start": { + "line": 35, + "column": 38 + }, + "end": { + "line": 35, + "column": 39 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 1308, + "end": 1311, + "loc": { + "start": { + "line": 35, + "column": 40 + }, + "end": { + "line": 35, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "undefined", + "start": 1312, + "end": 1321, + "loc": { + "start": { + "line": 35, + "column": 44 + }, + "end": { + "line": 35, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1321, + "end": 1322, + "loc": { + "start": { + "line": 35, + "column": 53 + }, + "end": { + "line": 35, + "column": 54 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1323, + "end": 1324, + "loc": { + "start": { + "line": 35, + "column": 55 + }, + "end": { + "line": 35, + "column": 56 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setField", + "start": 1328, + "end": 1336, + "loc": { + "start": { + "line": 36, + "column": 3 + }, + "end": { + "line": 36, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1336, + "end": 1337, + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 12 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 1337, + "end": 1338, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 13 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1338, + "end": 1339, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 14 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1340, + "end": 1341, + "loc": { + "start": { + "line": 36, + "column": 15 + }, + "end": { + "line": 36, + "column": 16 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "rooms", + "start": 1341, + "end": 1348, + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1348, + "end": 1349, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 36, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "room", + "start": 1350, + "end": 1354, + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 36, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1354, + "end": 1355, + "loc": { + "start": { + "line": 36, + "column": 29 + }, + "end": { + "line": 36, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "players", + "start": 1356, + "end": 1365, + "loc": { + "start": { + "line": 36, + "column": 31 + }, + "end": { + "line": 36, + "column": 40 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1365, + "end": 1366, + "loc": { + "start": { + "line": 36, + "column": 40 + }, + "end": { + "line": 36, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1367, + "end": 1371, + "loc": { + "start": { + "line": 36, + "column": 42 + }, + "end": { + "line": 36, + "column": 46 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1371, + "end": 1372, + "loc": { + "start": { + "line": 36, + "column": 46 + }, + "end": { + "line": 36, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "player", + "start": 1372, + "end": 1378, + "loc": { + "start": { + "line": 36, + "column": 47 + }, + "end": { + "line": 36, + "column": 53 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1378, + "end": 1379, + "loc": { + "start": { + "line": 36, + "column": 53 + }, + "end": { + "line": 36, + "column": 54 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "damagedBy", + "start": 1380, + "end": 1391, + "loc": { + "start": { + "line": 36, + "column": 55 + }, + "end": { + "line": 36, + "column": 66 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1391, + "end": 1392, + "loc": { + "start": { + "line": 36, + "column": 66 + }, + "end": { + "line": 36, + "column": 67 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1393, + "end": 1397, + "loc": { + "start": { + "line": 36, + "column": 68 + }, + "end": { + "line": 36, + "column": 72 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1397, + "end": 1398, + "loc": { + "start": { + "line": 36, + "column": 72 + }, + "end": { + "line": 36, + "column": 73 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sentBy", + "start": 1398, + "end": 1404, + "loc": { + "start": { + "line": 36, + "column": 73 + }, + "end": { + "line": 36, + "column": 79 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1404, + "end": 1405, + "loc": { + "start": { + "line": 36, + "column": 79 + }, + "end": { + "line": 36, + "column": 80 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1405, + "end": 1406, + "loc": { + "start": { + "line": 36, + "column": 80 + }, + "end": { + "line": 36, + "column": 81 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1409, + "end": 1410, + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " thisPlayer.damagedBy[data.sentBy] += data.damage;", + "start": 1413, + "end": 1465, + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 38, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setField", + "start": 1468, + "end": 1476, + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 39, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1476, + "end": 1477, + "loc": { + "start": { + "line": 39, + "column": 10 + }, + "end": { + "line": 39, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisPlayer", + "start": 1477, + "end": 1487, + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1487, + "end": 1488, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 39, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "damagedBy", + "start": 1488, + "end": 1497, + "loc": { + "start": { + "line": 39, + "column": 22 + }, + "end": { + "line": 39, + "column": 31 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1497, + "end": 1498, + "loc": { + "start": { + "line": 39, + "column": 31 + }, + "end": { + "line": 39, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1498, + "end": 1502, + "loc": { + "start": { + "line": 39, + "column": 32 + }, + "end": { + "line": 39, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1502, + "end": 1503, + "loc": { + "start": { + "line": 39, + "column": 36 + }, + "end": { + "line": 39, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sentBy", + "start": 1503, + "end": 1509, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 43 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1509, + "end": 1510, + "loc": { + "start": { + "line": 39, + "column": 43 + }, + "end": { + "line": 39, + "column": 44 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 1511, + "end": 1512, + "loc": { + "start": { + "line": 39, + "column": 45 + }, + "end": { + "line": 39, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1513, + "end": 1517, + "loc": { + "start": { + "line": 39, + "column": 47 + }, + "end": { + "line": 39, + "column": 51 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1517, + "end": 1518, + "loc": { + "start": { + "line": 39, + "column": 51 + }, + "end": { + "line": 39, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "damage", + "start": 1518, + "end": 1524, + "loc": { + "start": { + "line": 39, + "column": 52 + }, + "end": { + "line": 39, + "column": 58 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1524, + "end": 1525, + "loc": { + "start": { + "line": 39, + "column": 58 + }, + "end": { + "line": 39, + "column": 59 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1526, + "end": 1527, + "loc": { + "start": { + "line": 39, + "column": 60 + }, + "end": { + "line": 39, + "column": 61 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "rooms", + "start": 1527, + "end": 1534, + "loc": { + "start": { + "line": 39, + "column": 61 + }, + "end": { + "line": 39, + "column": 68 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1534, + "end": 1535, + "loc": { + "start": { + "line": 39, + "column": 68 + }, + "end": { + "line": 39, + "column": 69 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "room", + "start": 1536, + "end": 1540, + "loc": { + "start": { + "line": 39, + "column": 70 + }, + "end": { + "line": 39, + "column": 74 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1540, + "end": 1541, + "loc": { + "start": { + "line": 39, + "column": 74 + }, + "end": { + "line": 39, + "column": 75 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "players", + "start": 1542, + "end": 1551, + "loc": { + "start": { + "line": 39, + "column": 76 + }, + "end": { + "line": 39, + "column": 85 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1551, + "end": 1552, + "loc": { + "start": { + "line": 39, + "column": 85 + }, + "end": { + "line": 39, + "column": 86 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1553, + "end": 1557, + "loc": { + "start": { + "line": 39, + "column": 87 + }, + "end": { + "line": 39, + "column": 91 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1557, + "end": 1558, + "loc": { + "start": { + "line": 39, + "column": 91 + }, + "end": { + "line": 39, + "column": 92 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "player", + "start": 1558, + "end": 1564, + "loc": { + "start": { + "line": 39, + "column": 92 + }, + "end": { + "line": 39, + "column": 98 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1564, + "end": 1565, + "loc": { + "start": { + "line": 39, + "column": 98 + }, + "end": { + "line": 39, + "column": 99 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "damagedBy", + "start": 1566, + "end": 1577, + "loc": { + "start": { + "line": 39, + "column": 100 + }, + "end": { + "line": 39, + "column": 111 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1577, + "end": 1578, + "loc": { + "start": { + "line": 39, + "column": 111 + }, + "end": { + "line": 39, + "column": 112 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1579, + "end": 1583, + "loc": { + "start": { + "line": 39, + "column": 113 + }, + "end": { + "line": 39, + "column": 117 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1583, + "end": 1584, + "loc": { + "start": { + "line": 39, + "column": 117 + }, + "end": { + "line": 39, + "column": 118 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sentBy", + "start": 1584, + "end": 1590, + "loc": { + "start": { + "line": 39, + "column": 118 + }, + "end": { + "line": 39, + "column": 124 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1590, + "end": 1591, + "loc": { + "start": { + "line": 39, + "column": 124 + }, + "end": { + "line": 39, + "column": 125 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1591, + "end": 1592, + "loc": { + "start": { + "line": 39, + "column": 125 + }, + "end": { + "line": 39, + "column": 126 + } + } + }, + { + "type": "CommentLine", + "value": " Check if the player has died.", + "start": 1596, + "end": 1628, + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 41, + "column": 34 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1631, + "end": 1633, + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 42, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1634, + "end": 1635, + "loc": { + "start": { + "line": 42, + "column": 5 + }, + "end": { + "line": 42, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisPlayer", + "start": 1635, + "end": 1645, + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1645, + "end": 1646, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "health", + "start": 1646, + "end": 1652, + "loc": { + "start": { + "line": 42, + "column": 17 + }, + "end": { + "line": 42, + "column": 23 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "<=", + "start": 1653, + "end": 1655, + "loc": { + "start": { + "line": 42, + "column": 24 + }, + "end": { + "line": 42, + "column": 26 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 1656, + "end": 1657, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 28 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1657, + "end": 1658, + "loc": { + "start": { + "line": 42, + "column": 28 + }, + "end": { + "line": 42, + "column": 29 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1659, + "end": 1660, + "loc": { + "start": { + "line": 42, + "column": 30 + }, + "end": { + "line": 42, + "column": 31 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(thisRoom.teams.indexOf(socket.handshake.query.team));", + "start": 1664, + "end": 1732, + "loc": { + "start": { + "line": 43, + "column": 3 + }, + "end": { + "line": 43, + "column": 71 + } + } + }, + { + "type": "CommentLine", + "value": " Releases atoms and deletes the entire atoms array in player", + "start": 1737, + "end": 1799, + "loc": { + "start": { + "line": 45, + "column": 3 + }, + "end": { + "line": 45, + "column": 65 + } + } + }, + { + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 1803, + "end": 1806, + "loc": { + "start": { + "line": 46, + "column": 3 + }, + "end": { + "line": 46, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1807, + "end": 1808, + "loc": { + "start": { + "line": 46, + "column": 7 + }, + "end": { + "line": 46, + "column": 8 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1808, + "end": 1811, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "at", + "start": 1812, + "end": 1814, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 14 + } + } + }, + { + "type": { + "label": "in", + "keyword": "in", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "in", + "start": 1815, + "end": 1817, + "loc": { + "start": { + "line": 46, + "column": 15 + }, + "end": { + "line": 46, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisPlayer", + "start": 1818, + "end": 1828, + "loc": { + "start": { + "line": 46, + "column": 18 + }, + "end": { + "line": 46, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1828, + "end": 1829, + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "atomList", + "start": 1829, + "end": 1837, + "loc": { + "start": { + "line": 46, + "column": 29 + }, + "end": { + "line": 46, + "column": 37 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1837, + "end": 1838, + "loc": { + "start": { + "line": 46, + "column": 37 + }, + "end": { + "line": 46, + "column": 38 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1839, + "end": 1840, + "loc": { + "start": { + "line": 46, + "column": 39 + }, + "end": { + "line": 46, + "column": 40 + } + } + }, + { + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 1845, + "end": 1848, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 47, + "column": 7 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1849, + "end": 1850, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 9 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1850, + "end": 1853, + "loc": { + "start": { + "line": 47, + "column": 9 + }, + "end": { + "line": 47, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 1854, + "end": 1855, + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1856, + "end": 1857, + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 47, + "column": 16 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 1858, + "end": 1859, + "loc": { + "start": { + "line": 47, + "column": 17 + }, + "end": { + "line": 47, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1859, + "end": 1860, + "loc": { + "start": { + "line": 47, + "column": 18 + }, + "end": { + "line": 47, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 1861, + "end": 1862, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 21 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "<", + "start": 1863, + "end": 1864, + "loc": { + "start": { + "line": 47, + "column": 22 + }, + "end": { + "line": 47, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "GLOBAL", + "start": 1865, + "end": 1871, + "loc": { + "start": { + "line": 47, + "column": 24 + }, + "end": { + "line": 47, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1871, + "end": 1872, + "loc": { + "start": { + "line": 47, + "column": 30 + }, + "end": { + "line": 47, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "MAX_DEATH_ATOMS", + "start": 1872, + "end": 1887, + "loc": { + "start": { + "line": 47, + "column": 31 + }, + "end": { + "line": 47, + "column": 46 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 1888, + "end": 1890, + "loc": { + "start": { + "line": 47, + "column": 47 + }, + "end": { + "line": 47, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 1891, + "end": 1892, + "loc": { + "start": { + "line": 47, + "column": 50 + }, + "end": { + "line": 47, + "column": 51 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "<", + "start": 1893, + "end": 1894, + "loc": { + "start": { + "line": 47, + "column": 52 + }, + "end": { + "line": 47, + "column": 53 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisPlayer", + "start": 1895, + "end": 1905, + "loc": { + "start": { + "line": 47, + "column": 54 + }, + "end": { + "line": 47, + "column": 64 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1905, + "end": 1906, + "loc": { + "start": { + "line": 47, + "column": 64 + }, + "end": { + "line": 47, + "column": 65 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "atomList", + "start": 1906, + "end": 1914, + "loc": { + "start": { + "line": 47, + "column": 65 + }, + "end": { + "line": 47, + "column": 73 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1914, + "end": 1915, + "loc": { + "start": { + "line": 47, + "column": 73 + }, + "end": { + "line": 47, + "column": 74 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "at", + "start": 1915, + "end": 1917, + "loc": { + "start": { + "line": 47, + "column": 74 + }, + "end": { + "line": 47, + "column": 76 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1917, + "end": 1918, + "loc": { + "start": { + "line": 47, + "column": 76 + }, + "end": { + "line": 47, + "column": 77 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1918, + "end": 1919, + "loc": { + "start": { + "line": 47, + "column": 77 + }, + "end": { + "line": 47, + "column": 78 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 1920, + "end": 1921, + "loc": { + "start": { + "line": 47, + "column": 79 + }, + "end": { + "line": 47, + "column": 80 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 1921, + "end": 1923, + "loc": { + "start": { + "line": 47, + "column": 80 + }, + "end": { + "line": 47, + "column": 82 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1923, + "end": 1924, + "loc": { + "start": { + "line": 47, + "column": 82 + }, + "end": { + "line": 47, + "column": 83 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1925, + "end": 1926, + "loc": { + "start": { + "line": 47, + "column": 84 + }, + "end": { + "line": 47, + "column": 85 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "spawnAtom", + "start": 1932, + "end": 1941, + "loc": { + "start": { + "line": 48, + "column": 5 }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * TODO\n ", - "start": 5405, - "end": 5420, - "loc": { - "start": { - "line": 139, - "column": 0 - }, - "end": { - "line": 141, - "column": 3 - } - } - } - ] + "end": { + "line": 48, + "column": 14 + } } - ], - "directives": [] - }, - "comments": [ + }, { - "type": "CommentBlock", - "value": "*\n * ondamage.js\n * Contains functions:\n * - damage() Runs when a player gets damaged. Updates scores and checks if a player has been killed.\n * - splash() Runs when a collision needs to cause splash damage. Creates explosion effect and deals extra damage.\n ", - "start": 206, - "end": 470, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1941, + "end": 1942, "loc": { "start": { - "line": 7, - "column": 0 + "line": 48, + "column": 14 }, "end": { - "line": 12, - "column": 3 + "line": 48, + "column": 15 } } }, { - "type": "CommentBlock", - "value": "*\n * Changes the health of the player by the amount given.\n * @param {*} data The data sent by the client. Contains:\n * - damage (number)\n * - player (id string of player that was hit)\n * - id (id string of compound)\n * - sentBy (id string of player that sent compound)\n * @param {string} room This room.\n * @param {*} socket This socket.\n * Must include the player id and amount to damage.\n * Amount may be negative (for health boost).\n ", - "start": 472, - "end": 918, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisPlayer", + "start": 1942, + "end": 1952, "loc": { "start": { - "line": 14, - "column": 0 + "line": 48, + "column": 15 }, "end": { - "line": 25, - "column": 3 + "line": 48, + "column": 25 } } }, { - "type": "CommentLine", - "value": " thisPlayer.health -= data.damage;", - "start": 1091, - "end": 1127, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1952, + "end": 1953, "loc": { "start": { - "line": 31, - "column": 2 + "line": 48, + "column": 25 }, "end": { - "line": 31, - "column": 38 + "line": 48, + "column": 26 } } }, { - "type": "CommentLine", - "value": " Add damage to database", - "start": 1226, - "end": 1251, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "posX", + "start": 1953, + "end": 1957, "loc": { "start": { - "line": 34, - "column": 2 + "line": 48, + "column": 26 }, "end": { - "line": 34, - "column": 27 + "line": 48, + "column": 30 } } }, { - "type": "CommentLine", - "value": " thisPlayer.damagedBy[data.sentBy] += data.damage;", - "start": 1397, - "end": 1449, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1957, + "end": 1958, "loc": { "start": { - "line": 38, - "column": 2 + "line": 48, + "column": 30 }, "end": { - "line": 38, - "column": 54 + "line": 48, + "column": 31 } } }, { - "type": "CommentLine", - "value": " Check if the player has died.", - "start": 1580, - "end": 1612, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisPlayer", + "start": 1959, + "end": 1969, "loc": { "start": { - "line": 41, - "column": 2 + "line": 48, + "column": 32 }, "end": { - "line": 41, - "column": 34 + "line": 48, + "column": 42 } } }, { - "type": "CommentLine", - "value": " console.log(thisRoom.teams.indexOf(socket.handshake.query.team));", - "start": 1648, - "end": 1716, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1969, + "end": 1970, "loc": { "start": { - "line": 43, - "column": 3 + "line": 48, + "column": 42 }, "end": { - "line": 43, - "column": 71 + "line": 48, + "column": 43 } } }, { - "type": "CommentLine", - "value": " Releases atoms and deletes the entire atoms array in player", - "start": 1721, - "end": 1783, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "posY", + "start": 1970, + "end": 1974, "loc": { "start": { - "line": 45, - "column": 3 + "line": 48, + "column": 43 }, "end": { - "line": 45, - "column": 65 + "line": 48, + "column": 47 } } }, { - "type": "CommentLine", - "value": " Reset position to spawnpoint", - "start": 2110, - "end": 2141, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1974, + "end": 1975, "loc": { "start": { - "line": 55, - "column": 3 + "line": 48, + "column": 47 }, "end": { - "line": 55, - "column": 34 + "line": 48, + "column": 48 } } }, { - "type": "CommentLine", - "value": " This will be reset when it has been verified that the player has been placed at the proper spawnpoint", - "start": 2587, - "end": 2691, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "at", + "start": 1976, + "end": 1978, "loc": { "start": { - "line": 59, - "column": 67 + "line": 48, + "column": 49 }, "end": { - "line": 59, - "column": 171 + "line": 48, + "column": 51 } } }, { - "type": "CommentLine", - "value": " Read damagedBy to award points, clear in the process", - "start": 2931, - "end": 2986, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1978, + "end": 1979, "loc": { "start": { - "line": 67, - "column": 4 + "line": 48, + "column": 51 }, "end": { - "line": 67, - "column": 59 + "line": 48, + "column": 52 } } }, { - "type": "CommentLine", - "value": " Add to team score, checking if team score is initialized", - "start": 3253, - "end": 3312, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "room", + "start": 1980, + "end": 1984, "loc": { "start": { - "line": 78, - "column": 5 + "line": 48, + "column": 53 }, "end": { - "line": 78, + "line": 48, + "column": 57 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1984, + "end": 1985, + "loc": { + "start": { + "line": 48, + "column": 57 + }, + "end": { + "line": 48, + "column": 58 + } + } + }, + { + "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": 1986, + "end": 1991, + "loc": { + "start": { + "line": 48, + "column": 59 + }, + "end": { + "line": 48, "column": 64 } } }, { - "type": "CommentLine", - "value": " Add to score of person who dealt the most damage", - "start": 3774, - "end": 3825, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1991, + "end": 1992, "loc": { "start": { - "line": 88, - "column": 4 + "line": 48, + "column": 64 }, "end": { - "line": 88, - "column": 55 + "line": 48, + "column": 65 } } }, { - "type": "CommentLine", - "value": " Add to team score", - "start": 4078, - "end": 4098, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1997, + "end": 1998, "loc": { "start": { - "line": 95, + "line": 49, "column": 4 }, "end": { - "line": 95, - "column": 24 + "line": 49, + "column": 5 } } }, { - "type": "CommentLine", - "value": " Clear damagedBy values", - "start": 4239, - "end": 4264, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2002, + "end": 2003, "loc": { "start": { - "line": 98, + "line": 50, + "column": 3 + }, + "end": { + "line": 50, "column": 4 + } + } + }, + { + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 2007, + "end": 2010, + "loc": { + "start": { + "line": 51, + "column": 3 }, "end": { - "line": 98, - "column": 29 + "line": 51, + "column": 6 } } }, { - "type": "CommentLine", - "value": " Check if a team won", - "start": 4394, - "end": 4416, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2011, + "end": 2012, + "loc": { + "start": { + "line": 51, + "column": 7 + }, + "end": { + "line": 51, + "column": 8 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 2012, + "end": 2015, + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "at", + "start": 2016, + "end": 2018, "loc": { "start": { - "line": 103, - "column": 4 + "line": 51, + "column": 12 }, "end": { - "line": 103, - "column": 26 + "line": 51, + "column": 14 } } }, { - "type": "CommentLine", - "value": " Possible winning teams", - "start": 4441, - "end": 4466, + "type": { + "label": "in", + "keyword": "in", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "in", + "start": 2019, + "end": 2021, "loc": { "start": { - "line": 104, - "column": 24 + "line": 51, + "column": 15 }, "end": { - "line": 104, - "column": 49 + "line": 51, + "column": 17 } } }, { - "type": "CommentLine", - "value": " teamScore: thisRoom.teams[dataToSend.teamSlot].score", - "start": 4815, - "end": 4870, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "thisPlayer", + "start": 2022, + "end": 2032, "loc": { "start": { - "line": 118, - "column": 7 + "line": 51, + "column": 18 }, "end": { - "line": 118, - "column": 62 + "line": 51, + "column": 28 } } }, { - "type": "CommentLine", - "value": " other data here TODO post ranking", - "start": 4878, - "end": 4914, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2032, + "end": 2033, "loc": { "start": { - "line": 119, - "column": 7 + "line": 51, + "column": 28 }, "end": { - "line": 119, - "column": 43 + "line": 51, + "column": 29 } } }, { - "type": "CommentLine", - "value": " Close room after delay (kick all players)", - "start": 5049, - "end": 5093, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "atomList", + "start": 2033, + "end": 2041, "loc": { "start": { - "line": 124, - "column": 6 + "line": 51, + "column": 29 }, "end": { - "line": 124, - "column": 50 + "line": 51, + "column": 37 } } }, { - "type": "CommentBlock", - "value": "*\n * TODO\n ", - "start": 5405, - "end": 5420, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2041, + "end": 2042, "loc": { "start": { - "line": 139, - "column": 0 + "line": 51, + "column": 37 }, "end": { - "line": 141, - "column": 3 + "line": 51, + "column": 38 } } - } - ], - "tokens": [ + }, { "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 0, - "end": 6, + "start": 2043, + "end": 2044, "loc": { "start": { - "line": 1, - "column": 0 + "line": 51, + "column": 39 }, "end": { - "line": 1, - "column": 6 + "line": 51, + "column": 40 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -12615,23 +22027,24 @@ "postfix": false, "binop": null }, - "start": 7, - "end": 8, + "value": "setField", + "start": 2049, + "end": 2057, "loc": { "start": { - "line": 1, - "column": 7 + "line": 52, + "column": 4 }, "end": { - "line": 1, - "column": 8 + "line": 52, + "column": 12 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -12640,75 +22053,76 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 9, - "end": 15, + "start": 2057, + "end": 2058, "loc": { "start": { - "line": 1, - "column": 9 + "line": 52, + "column": 12 }, "end": { - "line": 1, - "column": 15 + "line": 52, + "column": 13 } } }, { "type": { - "label": "}", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 16, - "end": 17, + "value": 0, + "start": 2058, + "end": 2059, "loc": { "start": { - "line": 1, - "column": 16 + "line": 52, + "column": 13 }, "end": { - "line": 1, - "column": 17 + "line": 52, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "from", - "start": 18, - "end": 22, + "start": 2059, + "end": 2060, "loc": { "start": { - "line": 1, - "column": 18 + "line": 52, + "column": 14 }, "end": { - "line": 1, - "column": 22 + "line": 52, + "column": 15 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -12718,24 +22132,22 @@ "binop": null, "updateContext": null }, - "value": "../../client/js/global", - "start": 23, - "end": 47, + "start": 2061, + "end": 2062, "loc": { "start": { - "line": 1, - "column": 23 + "line": 52, + "column": 16 }, "end": { - "line": 1, - "column": 47 + "line": 52, + "column": 17 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -12746,42 +22158,43 @@ "binop": null, "updateContext": null }, - "value": "import", - "start": 48, - "end": 54, + "value": "rooms", + "start": 2062, + "end": 2069, "loc": { "start": { - "line": 2, - "column": 0 + "line": 52, + "column": 17 }, "end": { - "line": 2, - "column": 6 + "line": 52, + "column": 24 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 55, - "end": 56, + "start": 2069, + "end": 2070, "loc": { "start": { - "line": 2, - "column": 7 + "line": 52, + "column": 24 }, "end": { - "line": 2, - "column": 8 + "line": 52, + "column": 25 } } }, @@ -12797,17 +22210,17 @@ "postfix": false, "binop": null }, - "value": "getField", - "start": 57, - "end": 65, + "value": "room", + "start": 2071, + "end": 2075, "loc": { "start": { - "line": 2, - "column": 9 + "line": 52, + "column": 26 }, "end": { - "line": 2, - "column": 17 + "line": 52, + "column": 30 } } }, @@ -12824,22 +22237,22 @@ "binop": null, "updateContext": null }, - "start": 65, - "end": 66, + "start": 2075, + "end": 2076, "loc": { "start": { - "line": 2, - "column": 17 + "line": 52, + "column": 30 }, "end": { - "line": 2, - "column": 18 + "line": 52, + "column": 31 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -12847,44 +22260,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setField", - "start": 67, - "end": 75, + "value": "players", + "start": 2077, + "end": 2086, "loc": { "start": { - "line": 2, - "column": 19 + "line": 52, + "column": 32 }, "end": { - "line": 2, - "column": 27 + "line": 52, + "column": 41 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 76, - "end": 77, + "start": 2086, + "end": 2087, "loc": { "start": { - "line": 2, - "column": 28 + "line": 52, + "column": 41 }, "end": { - "line": 2, - "column": 29 + "line": 52, + "column": 42 } } }, @@ -12900,25 +22315,25 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 78, - "end": 82, + "value": "thisPlayer", + "start": 2088, + "end": 2098, "loc": { "start": { - "line": 2, - "column": 30 + "line": 52, + "column": 43 }, "end": { - "line": 2, - "column": 34 + "line": 52, + "column": 53 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -12927,24 +22342,22 @@ "binop": null, "updateContext": null }, - "value": "../server", - "start": 83, - "end": 94, + "start": 2098, + "end": 2099, "loc": { "start": { - "line": 2, - "column": 35 + "line": 52, + "column": 53 }, "end": { - "line": 2, - "column": 46 + "line": 52, + "column": 54 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -12955,42 +22368,43 @@ "binop": null, "updateContext": null }, - "value": "import", - "start": 95, - "end": 101, + "value": "atomList", + "start": 2100, + "end": 2110, "loc": { "start": { - "line": 3, - "column": 0 + "line": 52, + "column": 55 }, "end": { - "line": 3, - "column": 6 + "line": 52, + "column": 65 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 102, - "end": 103, + "start": 2110, + "end": 2111, "loc": { "start": { - "line": 3, - "column": 7 + "line": 52, + "column": 65 }, "end": { - "line": 3, - "column": 8 + "line": 52, + "column": 66 } } }, @@ -13006,23 +22420,23 @@ "postfix": false, "binop": null }, - "value": "getTeamNumber", - "start": 104, - "end": 117, + "value": "at", + "start": 2112, + "end": 2114, "loc": { "start": { - "line": 3, - "column": 9 + "line": 52, + "column": 67 }, "end": { - "line": 3, - "column": 22 + "line": 52, + "column": 69 } } }, { "type": { - "label": "}", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -13030,26 +22444,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 118, - "end": 119, + "start": 2114, + "end": 2115, "loc": { "start": { - "line": 3, - "column": 23 + "line": 52, + "column": 69 }, "end": { - "line": 3, - "column": 24 + "line": 52, + "column": 70 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -13057,51 +22472,63 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 120, - "end": 124, + "start": 2115, + "end": 2116, "loc": { "start": { - "line": 3, - "column": 25 + "line": 52, + "column": 70 }, "end": { - "line": 3, - "column": 29 + "line": 52, + "column": 71 } } }, { "type": { - "label": "string", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "./serverutils", - "start": 125, - "end": 140, + "start": 2120, + "end": 2121, "loc": { "start": { - "line": 3, - "column": 30 + "line": 53, + "column": 3 }, "end": { - "line": 3, - "column": 45 + "line": 53, + "column": 4 + } + } + }, + { + "type": "CommentLine", + "value": " Reset position to spawnpoint", + "start": 2126, + "end": 2157, + "loc": { + "start": { + "line": 55, + "column": 3 + }, + "end": { + "line": 55, + "column": 34 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -13109,26 +22536,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 141, - "end": 147, + "value": "setField", + "start": 2161, + "end": 2169, "loc": { "start": { - "line": 4, - "column": 0 + "line": 56, + "column": 3 }, "end": { - "line": 4, - "column": 6 + "line": 56, + "column": 11 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -13138,16 +22564,16 @@ "postfix": false, "binop": null }, - "start": 148, - "end": 149, + "start": 2169, + "end": 2170, "loc": { "start": { - "line": 4, - "column": 7 + "line": 56, + "column": 11 }, "end": { - "line": 4, - "column": 8 + "line": 56, + "column": 12 } } }, @@ -13163,23 +22589,23 @@ "postfix": false, "binop": null }, - "value": "tmpdir", - "start": 150, - "end": 156, + "value": "GLOBAL", + "start": 2170, + "end": 2176, "loc": { "start": { - "line": 4, - "column": 9 + "line": 56, + "column": 12 }, "end": { - "line": 4, - "column": 15 + "line": 56, + "column": 18 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -13187,18 +22613,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 157, - "end": 158, + "start": 2176, + "end": 2177, "loc": { "start": { - "line": 4, - "column": 16 + "line": 56, + "column": 18 }, "end": { - "line": 4, - "column": 17 + "line": 56, + "column": 19 } } }, @@ -13214,24 +22641,24 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 159, - "end": 163, + "value": "SPAWN_POINTS", + "start": 2177, + "end": 2189, "loc": { "start": { - "line": 4, - "column": 18 + "line": 56, + "column": 19 }, "end": { - "line": 4, - "column": 22 + "line": 56, + "column": 31 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -13241,24 +22668,22 @@ "binop": null, "updateContext": null }, - "value": "os", - "start": 164, - "end": 168, + "start": 2189, + "end": 2190, "loc": { "start": { - "line": 4, - "column": 23 + "line": 56, + "column": 31 }, "end": { - "line": 4, - "column": 27 + "line": 56, + "column": 32 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -13266,26 +22691,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 169, - "end": 175, + "value": "getTeamNumber", + "start": 2190, + "end": 2203, "loc": { "start": { - "line": 5, - "column": 0 + "line": 56, + "column": 32 }, "end": { - "line": 5, - "column": 6 + "line": 56, + "column": 45 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -13295,16 +22719,16 @@ "postfix": false, "binop": null }, - "start": 176, - "end": 177, + "start": 2203, + "end": 2204, "loc": { "start": { - "line": 5, - "column": 7 + "line": 56, + "column": 45 }, "end": { - "line": 5, - "column": 8 + "line": 56, + "column": 46 } } }, @@ -13320,42 +22744,43 @@ "postfix": false, "binop": null }, - "value": "spawnAtom", - "start": 178, - "end": 187, + "value": "room", + "start": 2204, + "end": 2208, "loc": { "start": { - "line": 5, - "column": 9 + "line": 56, + "column": 46 }, "end": { - "line": 5, - "column": 18 + "line": 56, + "column": 50 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 188, - "end": 189, + "start": 2208, + "end": 2209, "loc": { "start": { - "line": 5, - "column": 19 + "line": 56, + "column": 50 }, "end": { - "line": 5, - "column": 20 + "line": 56, + "column": 51 } } }, @@ -13371,25 +22796,25 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 190, - "end": 194, + "value": "thisPlayer", + "start": 2210, + "end": 2220, "loc": { "start": { - "line": 5, - "column": 21 + "line": 56, + "column": 52 }, "end": { - "line": 5, - "column": 25 + "line": 56, + "column": 62 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -13398,86 +22823,50 @@ "binop": null, "updateContext": null }, - "value": "./atoms", - "start": 195, - "end": 204, - "loc": { - "start": { - "line": 5, - "column": 26 - }, - "end": { - "line": 5, - "column": 35 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * ondamage.js\n * Contains functions:\n * - damage() Runs when a player gets damaged. Updates scores and checks if a player has been killed.\n * - splash() Runs when a collision needs to cause splash damage. Creates explosion effect and deals extra damage.\n ", - "start": 206, - "end": 470, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Changes the health of the player by the amount given.\n * @param {*} data The data sent by the client. Contains:\n * - damage (number)\n * - player (id string of player that was hit)\n * - id (id string of compound)\n * - sentBy (id string of player that sent compound)\n * @param {string} room This room.\n * @param {*} socket This socket.\n * Must include the player id and amount to damage.\n * Amount may be negative (for health boost).\n ", - "start": 472, - "end": 918, + "start": 2220, + "end": 2221, "loc": { "start": { - "line": 14, - "column": 0 + "line": 56, + "column": 62 }, "end": { - "line": 25, - "column": 3 + "line": 56, + "column": 63 } } }, { "type": { - "label": "export", - "keyword": "export", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "export", - "start": 919, - "end": 925, + "value": "team", + "start": 2221, + "end": 2225, "loc": { "start": { - "line": 26, - "column": 0 + "line": 56, + "column": 63 }, "end": { - "line": 26, - "column": 6 + "line": 56, + "column": 67 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -13485,68 +22874,68 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 926, - "end": 934, + "start": 2225, + "end": 2226, "loc": { "start": { - "line": 26, - "column": 7 + "line": 56, + "column": 67 }, "end": { - "line": 26, - "column": 15 + "line": 56, + "column": 68 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "damage", - "start": 935, - "end": 941, + "start": 2226, + "end": 2227, "loc": { "start": { - "line": 26, - "column": 16 + "line": 56, + "column": 68 }, "end": { - "line": 26, - "column": 22 + "line": 56, + "column": 69 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 942, - "end": 943, + "start": 2227, + "end": 2228, "loc": { "start": { - "line": 26, - "column": 23 + "line": 56, + "column": 69 }, "end": { - "line": 26, - "column": 24 + "line": 56, + "column": 70 } } }, @@ -13562,23 +22951,23 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 943, - "end": 947, + "value": "x", + "start": 2228, + "end": 2229, "loc": { "start": { - "line": 26, - "column": 24 + "line": 56, + "column": 70 }, "end": { - "line": 26, - "column": 28 + "line": 56, + "column": 71 } } }, { "type": { - "label": ",", + "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -13586,19 +22975,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 947, - "end": 948, + "value": "*", + "start": 2230, + "end": 2231, "loc": { "start": { - "line": 26, - "column": 28 + "line": 56, + "column": 72 }, "end": { - "line": 26, - "column": 29 + "line": 56, + "column": 73 } } }, @@ -13614,24 +23004,24 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 949, - "end": 953, + "value": "GLOBAL", + "start": 2232, + "end": 2238, "loc": { "start": { - "line": 26, - "column": 30 + "line": 56, + "column": 74 }, "end": { - "line": 26, - "column": 34 + "line": 56, + "column": 80 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -13641,16 +23031,16 @@ "binop": null, "updateContext": null }, - "start": 953, - "end": 954, + "start": 2238, + "end": 2239, "loc": { "start": { - "line": 26, - "column": 34 + "line": 56, + "column": 80 }, "end": { - "line": 26, - "column": 35 + "line": 56, + "column": 81 } } }, @@ -13666,75 +23056,78 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 955, - "end": 961, + "value": "GRID_SPACING", + "start": 2239, + "end": 2251, "loc": { "start": { - "line": 26, - "column": 36 + "line": 56, + "column": 81 }, "end": { - "line": 26, - "column": 42 + "line": 56, + "column": 93 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "*", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 10, + "updateContext": null }, - "start": 961, - "end": 962, + "value": "*", + "start": 2252, + "end": 2253, "loc": { "start": { - "line": 26, - "column": 42 + "line": 56, + "column": 94 }, "end": { - "line": 26, - "column": 43 + "line": 56, + "column": 95 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "num", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 963, - "end": 964, + "value": 2, + "start": 2254, + "end": 2255, "loc": { "start": { - "line": 26, - "column": 44 + "line": 56, + "column": 96 }, "end": { - "line": 26, - "column": 45 + "line": 56, + "column": 97 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -13744,103 +23137,102 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 966, - "end": 969, + "start": 2255, + "end": 2256, "loc": { "start": { - "line": 27, - "column": 1 + "line": 56, + "column": 97 }, "end": { - "line": 27, - "column": 4 + "line": 56, + "column": 98 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "thisRoom", - "start": 970, - "end": 978, + "start": 2257, + "end": 2258, "loc": { "start": { - "line": 27, - "column": 5 + "line": 56, + "column": 99 }, "end": { - "line": 27, - "column": 13 + "line": 56, + "column": 100 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 979, - "end": 980, + "value": "rooms", + "start": 2258, + "end": 2265, "loc": { "start": { - "line": 27, - "column": 14 + "line": 56, + "column": 100 }, "end": { - "line": 27, - "column": 15 + "line": 56, + "column": 107 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "getField", - "start": 981, - "end": 989, + "start": 2265, + "end": 2266, "loc": { "start": { - "line": 27, - "column": 16 + "line": 56, + "column": 107 }, "end": { - "line": 27, - "column": 24 + "line": 56, + "column": 108 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -13849,24 +23241,25 @@ "postfix": false, "binop": null }, - "start": 989, - "end": 990, + "value": "room", + "start": 2267, + "end": 2271, "loc": { "start": { - "line": 27, - "column": 24 + "line": 56, + "column": 109 }, "end": { - "line": 27, - "column": 25 + "line": 56, + "column": 113 } } }, { "type": { - "label": "[", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -13875,16 +23268,16 @@ "binop": null, "updateContext": null }, - "start": 990, - "end": 991, + "start": 2271, + "end": 2272, "loc": { "start": { - "line": 27, - "column": 25 + "line": 56, + "column": 113 }, "end": { - "line": 27, - "column": 26 + "line": 56, + "column": 114 } } }, @@ -13901,17 +23294,17 @@ "binop": null, "updateContext": null }, - "value": "rooms", - "start": 991, - "end": 998, + "value": "players", + "start": 2273, + "end": 2282, "loc": { "start": { - "line": 27, - "column": 26 + "line": 56, + "column": 115 }, "end": { - "line": 27, - "column": 33 + "line": 56, + "column": 124 } } }, @@ -13928,16 +23321,16 @@ "binop": null, "updateContext": null }, - "start": 998, - "end": 999, + "start": 2282, + "end": 2283, "loc": { "start": { - "line": 27, - "column": 33 + "line": 56, + "column": 124 }, "end": { - "line": 27, - "column": 34 + "line": 56, + "column": 125 } } }, @@ -13953,23 +23346,23 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 1000, - "end": 1004, + "value": "data", + "start": 2284, + "end": 2288, "loc": { "start": { - "line": 27, - "column": 35 + "line": 56, + "column": 126 }, "end": { - "line": 27, - "column": 39 + "line": 56, + "column": 130 } } }, { "type": { - "label": "]", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -13980,24 +23373,24 @@ "binop": null, "updateContext": null }, - "start": 1004, - "end": 1005, + "start": 2288, + "end": 2289, "loc": { "start": { - "line": 27, - "column": 39 + "line": 56, + "column": 130 }, "end": { - "line": 27, - "column": 40 + "line": 56, + "column": 131 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -14005,24 +23398,24 @@ "postfix": false, "binop": null }, - "start": 1005, - "end": 1006, + "value": "player", + "start": 2289, + "end": 2295, "loc": { "start": { - "line": 27, - "column": 40 + "line": 56, + "column": 131 }, "end": { - "line": 27, - "column": 41 + "line": 56, + "column": 137 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -14032,23 +23425,22 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 1008, - "end": 1011, + "start": 2295, + "end": 2296, "loc": { "start": { - "line": 28, - "column": 1 + "line": 56, + "column": 137 }, "end": { - "line": 28, - "column": 4 + "line": 56, + "column": 138 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -14056,78 +23448,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "value": "thisPlayer", - "start": 1012, - "end": 1022, - "loc": { - "start": { - "line": 28, - "column": 5 - }, - "end": { - "line": 28, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1023, - "end": 1024, + "value": "posX", + "start": 2297, + "end": 2303, "loc": { "start": { - "line": 28, - "column": 16 + "line": 56, + "column": 139 }, "end": { - "line": 28, - "column": 17 + "line": 56, + "column": 145 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "thisRoom", - "start": 1025, - "end": 1033, + "start": 2303, + "end": 2304, "loc": { "start": { - "line": 28, - "column": 18 + "line": 56, + "column": 145 }, - "end": { - "line": 28, - "column": 26 + "end": { + "line": 56, + "column": 146 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -14135,19 +23501,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1033, - "end": 1034, + "start": 2304, + "end": 2305, "loc": { "start": { - "line": 28, - "column": 26 + "line": 56, + "column": 146 }, "end": { - "line": 28, - "column": 27 + "line": 56, + "column": 147 } } }, @@ -14163,23 +23528,23 @@ "postfix": false, "binop": null }, - "value": "players", - "start": 1034, - "end": 1041, + "value": "setField", + "start": 2309, + "end": 2317, "loc": { "start": { - "line": 28, - "column": 27 + "line": 57, + "column": 3 }, "end": { - "line": 28, - "column": 34 + "line": 57, + "column": 11 } } }, { "type": { - "label": "[", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -14187,19 +23552,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1041, - "end": 1042, + "start": 2317, + "end": 2318, "loc": { "start": { - "line": 28, - "column": 34 + "line": 57, + "column": 11 }, "end": { - "line": 28, - "column": 35 + "line": 57, + "column": 12 } } }, @@ -14215,17 +23579,17 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 1042, - "end": 1046, + "value": "GLOBAL", + "start": 2318, + "end": 2324, "loc": { "start": { - "line": 28, - "column": 35 + "line": 57, + "column": 12 }, "end": { - "line": 28, - "column": 39 + "line": 57, + "column": 18 } } }, @@ -14242,16 +23606,16 @@ "binop": null, "updateContext": null }, - "start": 1046, - "end": 1047, + "start": 2324, + "end": 2325, "loc": { "start": { - "line": 28, - "column": 39 + "line": 57, + "column": 18 }, "end": { - "line": 28, - "column": 40 + "line": 57, + "column": 19 } } }, @@ -14267,25 +23631,25 @@ "postfix": false, "binop": null }, - "value": "player", - "start": 1047, - "end": 1053, + "value": "SPAWN_POINTS", + "start": 2325, + "end": 2337, "loc": { "start": { - "line": 28, - "column": 40 + "line": 57, + "column": 19 }, "end": { - "line": 28, - "column": 46 + "line": 57, + "column": 31 } } }, { "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -14294,44 +23658,42 @@ "binop": null, "updateContext": null }, - "start": 1053, - "end": 1054, + "start": 2337, + "end": 2338, "loc": { "start": { - "line": 28, - "column": 46 + "line": 57, + "column": 31 }, "end": { - "line": 28, - "column": 47 + "line": 57, + "column": 32 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 1057, - "end": 1059, + "value": "getTeamNumber", + "start": 2338, + "end": 2351, "loc": { "start": { - "line": 30, - "column": 1 + "line": 57, + "column": 32 }, "end": { - "line": 30, - "column": 3 + "line": 57, + "column": 45 } } }, @@ -14347,16 +23709,16 @@ "postfix": false, "binop": null }, - "start": 1060, - "end": 1061, + "start": 2351, + "end": 2352, "loc": { "start": { - "line": 30, - "column": 4 + "line": 57, + "column": 45 }, "end": { - "line": 30, - "column": 5 + "line": 57, + "column": 46 } } }, @@ -14372,23 +23734,23 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1061, - "end": 1071, + "value": "room", + "start": 2352, + "end": 2356, "loc": { "start": { - "line": 30, - "column": 5 + "line": 57, + "column": 46 }, "end": { - "line": 30, - "column": 15 + "line": 57, + "column": 50 } } }, { "type": { - "label": "==/!=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -14396,20 +23758,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "!==", - "start": 1072, - "end": 1075, + "start": 2356, + "end": 2357, "loc": { "start": { - "line": 30, - "column": 16 + "line": 57, + "column": 50 }, "end": { - "line": 30, - "column": 19 + "line": 57, + "column": 51 } } }, @@ -14425,23 +23786,23 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 1076, - "end": 1085, + "value": "thisPlayer", + "start": 2358, + "end": 2368, "loc": { "start": { - "line": 30, - "column": 20 + "line": 57, + "column": 52 }, "end": { - "line": 30, - "column": 29 + "line": 57, + "column": 62 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -14449,25 +23810,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1085, - "end": 1086, + "start": 2368, + "end": 2369, "loc": { "start": { - "line": 30, - "column": 29 + "line": 57, + "column": 62 }, "end": { - "line": 30, - "column": 30 + "line": 57, + "column": 63 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -14476,83 +23838,94 @@ "postfix": false, "binop": null }, - "start": 1087, - "end": 1088, + "value": "team", + "start": 2369, + "end": 2373, "loc": { "start": { - "line": 30, - "column": 31 + "line": 57, + "column": 63 }, "end": { - "line": 30, - "column": 32 + "line": 57, + "column": 67 } } }, { - "type": "CommentLine", - "value": " thisPlayer.health -= data.damage;", - "start": 1091, - "end": 1127, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2373, + "end": 2374, "loc": { "start": { - "line": 31, - "column": 2 + "line": 57, + "column": 67 }, "end": { - "line": 31, - "column": 38 + "line": 57, + "column": 68 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setField", - "start": 1130, - "end": 1138, + "start": 2374, + "end": 2375, "loc": { "start": { - "line": 32, - "column": 2 + "line": 57, + "column": 68 }, "end": { - "line": 32, - "column": 10 + "line": 57, + "column": 69 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1138, - "end": 1139, + "start": 2375, + "end": 2376, "loc": { "start": { - "line": 32, - "column": 10 + "line": 57, + "column": 69 }, "end": { - "line": 32, - "column": 11 + "line": 57, + "column": 70 } } }, @@ -14568,43 +23941,44 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1139, - "end": 1149, + "value": "y", + "start": 2376, + "end": 2377, "loc": { "start": { - "line": 32, - "column": 11 + "line": 57, + "column": 70 }, "end": { - "line": 32, - "column": 21 + "line": 57, + "column": 71 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "*", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 1149, - "end": 1150, + "value": "*", + "start": 2378, + "end": 2379, "loc": { "start": { - "line": 32, - "column": 21 + "line": 57, + "column": 72 }, "end": { - "line": 32, - "column": 22 + "line": 57, + "column": 73 } } }, @@ -14620,44 +23994,43 @@ "postfix": false, "binop": null }, - "value": "health", - "start": 1150, - "end": 1156, + "value": "GLOBAL", + "start": 2380, + "end": 2386, "loc": { "start": { - "line": 32, - "column": 22 + "line": 57, + "column": 74 }, "end": { - "line": 32, - "column": 28 + "line": 57, + "column": 80 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "-", - "start": 1157, - "end": 1158, + "start": 2386, + "end": 2387, "loc": { "start": { - "line": 32, - "column": 29 + "line": 57, + "column": 80 }, "end": { - "line": 32, - "column": 30 + "line": 57, + "column": 81 } } }, @@ -14673,49 +24046,50 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 1159, - "end": 1163, + "value": "GRID_SPACING", + "start": 2387, + "end": 2399, "loc": { "start": { - "line": 32, - "column": 31 + "line": 57, + "column": 81 }, "end": { - "line": 32, - "column": 35 + "line": 57, + "column": 93 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "*", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 1163, - "end": 1164, + "value": "*", + "start": 2400, + "end": 2401, "loc": { "start": { - "line": 32, - "column": 35 + "line": 57, + "column": 94 }, "end": { - "line": 32, - "column": 36 + "line": 57, + "column": 95 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -14723,19 +24097,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "damage", - "start": 1164, - "end": 1170, + "value": 2, + "start": 2402, + "end": 2403, "loc": { "start": { - "line": 32, - "column": 36 + "line": 57, + "column": 96 }, "end": { - "line": 32, - "column": 42 + "line": 57, + "column": 97 } } }, @@ -14752,16 +24127,16 @@ "binop": null, "updateContext": null }, - "start": 1170, - "end": 1171, + "start": 2403, + "end": 2404, "loc": { "start": { - "line": 32, - "column": 42 + "line": 57, + "column": 97 }, "end": { - "line": 32, - "column": 43 + "line": 57, + "column": 98 } } }, @@ -14778,16 +24153,16 @@ "binop": null, "updateContext": null }, - "start": 1172, - "end": 1173, + "start": 2405, + "end": 2406, "loc": { "start": { - "line": 32, - "column": 44 + "line": 57, + "column": 99 }, "end": { - "line": 32, - "column": 45 + "line": 57, + "column": 100 } } }, @@ -14805,16 +24180,16 @@ "updateContext": null }, "value": "rooms", - "start": 1173, - "end": 1180, + "start": 2406, + "end": 2413, "loc": { "start": { - "line": 32, - "column": 45 + "line": 57, + "column": 100 }, "end": { - "line": 32, - "column": 52 + "line": 57, + "column": 107 } } }, @@ -14831,16 +24206,16 @@ "binop": null, "updateContext": null }, - "start": 1180, - "end": 1181, + "start": 2413, + "end": 2414, "loc": { "start": { - "line": 32, - "column": 52 + "line": 57, + "column": 107 }, "end": { - "line": 32, - "column": 53 + "line": 57, + "column": 108 } } }, @@ -14857,16 +24232,16 @@ "binop": null }, "value": "room", - "start": 1182, - "end": 1186, + "start": 2415, + "end": 2419, "loc": { "start": { - "line": 32, - "column": 54 + "line": 57, + "column": 109 }, "end": { - "line": 32, - "column": 58 + "line": 57, + "column": 113 } } }, @@ -14883,16 +24258,16 @@ "binop": null, "updateContext": null }, - "start": 1186, - "end": 1187, + "start": 2419, + "end": 2420, "loc": { "start": { - "line": 32, - "column": 58 + "line": 57, + "column": 113 }, "end": { - "line": 32, - "column": 59 + "line": 57, + "column": 114 } } }, @@ -14910,16 +24285,16 @@ "updateContext": null }, "value": "players", - "start": 1188, - "end": 1197, + "start": 2421, + "end": 2430, "loc": { "start": { - "line": 32, - "column": 60 + "line": 57, + "column": 115 }, "end": { - "line": 32, - "column": 69 + "line": 57, + "column": 124 } } }, @@ -14936,16 +24311,16 @@ "binop": null, "updateContext": null }, - "start": 1197, - "end": 1198, + "start": 2430, + "end": 2431, "loc": { "start": { - "line": 32, - "column": 69 + "line": 57, + "column": 124 }, "end": { - "line": 32, - "column": 70 + "line": 57, + "column": 125 } } }, @@ -14962,16 +24337,16 @@ "binop": null }, "value": "data", - "start": 1199, - "end": 1203, + "start": 2432, + "end": 2436, "loc": { "start": { - "line": 32, - "column": 71 + "line": 57, + "column": 126 }, "end": { - "line": 32, - "column": 75 + "line": 57, + "column": 130 } } }, @@ -14988,16 +24363,16 @@ "binop": null, "updateContext": null }, - "start": 1203, - "end": 1204, + "start": 2436, + "end": 2437, "loc": { "start": { - "line": 32, - "column": 75 + "line": 57, + "column": 130 }, "end": { - "line": 32, - "column": 76 + "line": 57, + "column": 131 } } }, @@ -15014,16 +24389,16 @@ "binop": null }, "value": "player", - "start": 1204, - "end": 1210, + "start": 2437, + "end": 2443, "loc": { "start": { - "line": 32, - "column": 76 + "line": 57, + "column": 131 }, "end": { - "line": 32, - "column": 82 + "line": 57, + "column": 137 } } }, @@ -15040,16 +24415,16 @@ "binop": null, "updateContext": null }, - "start": 1210, - "end": 1211, + "start": 2443, + "end": 2444, "loc": { "start": { - "line": 32, - "column": 82 + "line": 57, + "column": 137 }, "end": { - "line": 32, - "column": 83 + "line": 57, + "column": 138 } } }, @@ -15066,17 +24441,17 @@ "binop": null, "updateContext": null }, - "value": "health", - "start": 1212, - "end": 1220, + "value": "posY", + "start": 2445, + "end": 2451, "loc": { "start": { - "line": 32, - "column": 84 + "line": 57, + "column": 139 }, "end": { - "line": 32, - "column": 92 + "line": 57, + "column": 145 } } }, @@ -15093,16 +24468,16 @@ "binop": null, "updateContext": null }, - "start": 1220, - "end": 1221, + "start": 2451, + "end": 2452, "loc": { "start": { - "line": 32, - "column": 92 + "line": 57, + "column": 145 }, "end": { - "line": 32, - "column": 93 + "line": 57, + "column": 146 } } }, @@ -15118,60 +24493,42 @@ "postfix": false, "binop": null }, - "start": 1221, - "end": 1222, - "loc": { - "start": { - "line": 32, - "column": 93 - }, - "end": { - "line": 32, - "column": 94 - } - } - }, - { - "type": "CommentLine", - "value": " Add damage to database", - "start": 1226, - "end": 1251, + "start": 2452, + "end": 2453, "loc": { "start": { - "line": 34, - "column": 2 + "line": 57, + "column": 146 }, "end": { - "line": 34, - "column": 27 + "line": 57, + "column": 147 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 1254, - "end": 1256, + "value": "setField", + "start": 2457, + "end": 2465, "loc": { "start": { - "line": 35, - "column": 2 + "line": 58, + "column": 3 }, "end": { - "line": 35, - "column": 4 + "line": 58, + "column": 11 } } }, @@ -15187,16 +24544,16 @@ "postfix": false, "binop": null }, - "start": 1257, - "end": 1258, + "start": 2465, + "end": 2466, "loc": { "start": { - "line": 35, - "column": 5 + "line": 58, + "column": 11 }, "end": { - "line": 35, - "column": 6 + "line": 58, + "column": 12 } } }, @@ -15212,17 +24569,17 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1258, - "end": 1268, + "value": "GLOBAL", + "start": 2466, + "end": 2472, "loc": { "start": { - "line": 35, - "column": 6 + "line": 58, + "column": 12 }, "end": { - "line": 35, - "column": 16 + "line": 58, + "column": 18 } } }, @@ -15239,16 +24596,16 @@ "binop": null, "updateContext": null }, - "start": 1268, - "end": 1269, + "start": 2472, + "end": 2473, "loc": { "start": { - "line": 35, - "column": 16 + "line": 58, + "column": 18 }, "end": { - "line": 35, - "column": 17 + "line": 58, + "column": 19 } } }, @@ -15264,25 +24621,25 @@ "postfix": false, "binop": null }, - "value": "damagedBy", - "start": 1269, - "end": 1278, + "value": "MAX_HEALTH", + "start": 2473, + "end": 2483, "loc": { "start": { - "line": 35, - "column": 17 + "line": 58, + "column": 19 }, "end": { - "line": 35, - "column": 26 + "line": 58, + "column": 29 } } }, { "type": { - "label": "[", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15291,50 +24648,50 @@ "binop": null, "updateContext": null }, - "start": 1278, - "end": 1279, + "start": 2483, + "end": 2484, "loc": { "start": { - "line": 35, - "column": 26 + "line": 58, + "column": 29 }, "end": { - "line": 35, - "column": 27 + "line": 58, + "column": 30 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 1279, - "end": 1283, + "start": 2485, + "end": 2486, "loc": { "start": { - "line": 35, - "column": 27 + "line": 58, + "column": 31 }, "end": { - "line": 35, - "column": 31 + "line": 58, + "column": 32 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15343,74 +24700,75 @@ "binop": null, "updateContext": null }, - "start": 1283, - "end": 1284, + "value": "rooms", + "start": 2486, + "end": 2493, "loc": { "start": { - "line": 35, - "column": 31 + "line": 58, + "column": 32 }, "end": { - "line": 35, - "column": 32 + "line": 58, + "column": 39 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "sentBy", - "start": 1284, - "end": 1290, + "start": 2493, + "end": 2494, "loc": { "start": { - "line": 35, - "column": 32 + "line": 58, + "column": 39 }, "end": { - "line": 35, - "column": 38 + "line": 58, + "column": 40 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1290, - "end": 1291, + "value": "room", + "start": 2495, + "end": 2499, "loc": { "start": { - "line": 35, - "column": 38 + "line": 58, + "column": 41 }, "end": { - "line": 35, - "column": 39 + "line": 58, + "column": 45 } } }, { "type": { - "label": "==/!=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -15418,26 +24776,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 1292, - "end": 1295, + "start": 2499, + "end": 2500, "loc": { "start": { - "line": 35, - "column": 40 + "line": 58, + "column": 45 }, "end": { - "line": 35, - "column": 43 + "line": 58, + "column": 46 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -15445,51 +24802,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "undefined", - "start": 1296, - "end": 1305, + "value": "players", + "start": 2501, + "end": 2510, "loc": { "start": { - "line": 35, - "column": 44 + "line": 58, + "column": 47 }, "end": { - "line": 35, - "column": 53 + "line": 58, + "column": 56 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1305, - "end": 1306, + "start": 2510, + "end": 2511, "loc": { "start": { - "line": 35, - "column": 53 + "line": 58, + "column": 56 }, "end": { - "line": 35, - "column": 54 + "line": 58, + "column": 57 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -15498,49 +24857,50 @@ "postfix": false, "binop": null }, - "start": 1307, - "end": 1308, + "value": "data", + "start": 2512, + "end": 2516, "loc": { "start": { - "line": 35, - "column": 55 + "line": 58, + "column": 58 }, "end": { - "line": 35, - "column": 56 + "line": 58, + "column": 62 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setField", - "start": 1312, - "end": 1320, + "start": 2516, + "end": 2517, "loc": { "start": { - "line": 36, - "column": 3 + "line": 58, + "column": 62 }, "end": { - "line": 36, - "column": 11 + "line": 58, + "column": 63 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -15549,24 +24909,25 @@ "postfix": false, "binop": null }, - "start": 1320, - "end": 1321, + "value": "player", + "start": 2517, + "end": 2523, "loc": { "start": { - "line": 36, - "column": 11 + "line": 58, + "column": 63 }, "end": { - "line": 36, - "column": 12 + "line": 58, + "column": 69 } } }, { "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15575,25 +24936,24 @@ "binop": null, "updateContext": null }, - "value": 0, - "start": 1321, - "end": 1322, + "start": 2523, + "end": 2524, "loc": { "start": { - "line": 36, - "column": 12 + "line": 58, + "column": 69 }, "end": { - "line": 36, - "column": 13 + "line": 58, + "column": 70 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15602,24 +24962,25 @@ "binop": null, "updateContext": null }, - "start": 1322, - "end": 1323, + "value": "health", + "start": 2525, + "end": 2533, "loc": { "start": { - "line": 36, - "column": 13 + "line": 58, + "column": 71 }, "end": { - "line": 36, - "column": 14 + "line": 58, + "column": 79 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": "]", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15628,76 +24989,74 @@ "binop": null, "updateContext": null }, - "start": 1324, - "end": 1325, + "start": 2533, + "end": 2534, "loc": { "start": { - "line": 36, - "column": 15 + "line": 58, + "column": 79 }, "end": { - "line": 36, - "column": 16 + "line": 58, + "column": 80 } } }, { "type": { - "label": "string", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "rooms", - "start": 1325, - "end": 1332, + "start": 2534, + "end": 2535, "loc": { "start": { - "line": 36, - "column": 16 + "line": 58, + "column": 80 }, "end": { - "line": 36, - "column": 23 + "line": 58, + "column": 81 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1332, - "end": 1333, + "value": "setField", + "start": 2539, + "end": 2547, "loc": { "start": { - "line": 36, - "column": 23 + "line": 59, + "column": 3 }, "end": { - "line": 36, - "column": 24 + "line": 59, + "column": 11 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -15706,25 +25065,25 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 1334, - "end": 1338, + "start": 2547, + "end": 2548, "loc": { "start": { - "line": 36, - "column": 25 + "line": 59, + "column": 11 }, "end": { - "line": 36, - "column": 29 + "line": 59, + "column": 12 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15733,24 +25092,25 @@ "binop": null, "updateContext": null }, - "start": 1338, - "end": 1339, + "value": "true", + "start": 2548, + "end": 2552, "loc": { "start": { - "line": 36, - "column": 29 + "line": 59, + "column": 12 }, "end": { - "line": 36, - "column": 30 + "line": 59, + "column": 16 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15759,25 +25119,24 @@ "binop": null, "updateContext": null }, - "value": "players", - "start": 1340, - "end": 1349, + "start": 2552, + "end": 2553, "loc": { "start": { - "line": 36, - "column": 31 + "line": 59, + "column": 16 }, "end": { - "line": 36, - "column": 40 + "line": 59, + "column": 17 } } }, { "type": { - "label": ",", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15786,22 +25145,22 @@ "binop": null, "updateContext": null }, - "start": 1349, - "end": 1350, + "start": 2554, + "end": 2555, "loc": { "start": { - "line": 36, - "column": 40 + "line": 59, + "column": 18 }, "end": { - "line": 36, - "column": 41 + "line": 59, + "column": 19 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -15809,26 +25168,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 1351, - "end": 1355, + "value": "rooms", + "start": 2555, + "end": 2562, "loc": { "start": { - "line": 36, - "column": 42 + "line": 59, + "column": 19 }, "end": { - "line": 36, - "column": 46 + "line": 59, + "column": 26 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -15838,16 +25198,16 @@ "binop": null, "updateContext": null }, - "start": 1355, - "end": 1356, + "start": 2562, + "end": 2563, "loc": { "start": { - "line": 36, - "column": 46 + "line": 59, + "column": 26 }, "end": { - "line": 36, - "column": 47 + "line": 59, + "column": 27 } } }, @@ -15863,17 +25223,17 @@ "postfix": false, "binop": null }, - "value": "player", - "start": 1356, - "end": 1362, + "value": "room", + "start": 2564, + "end": 2568, "loc": { "start": { - "line": 36, - "column": 47 + "line": 59, + "column": 28 }, "end": { - "line": 36, - "column": 53 + "line": 59, + "column": 32 } } }, @@ -15890,16 +25250,16 @@ "binop": null, "updateContext": null }, - "start": 1362, - "end": 1363, + "start": 2568, + "end": 2569, "loc": { "start": { - "line": 36, - "column": 53 + "line": 59, + "column": 32 }, "end": { - "line": 36, - "column": 54 + "line": 59, + "column": 33 } } }, @@ -15916,17 +25276,17 @@ "binop": null, "updateContext": null }, - "value": "damagedBy", - "start": 1364, - "end": 1375, + "value": "players", + "start": 2570, + "end": 2579, "loc": { "start": { - "line": 36, - "column": 55 + "line": 59, + "column": 34 }, "end": { - "line": 36, - "column": 66 + "line": 59, + "column": 43 } } }, @@ -15943,16 +25303,16 @@ "binop": null, "updateContext": null }, - "start": 1375, - "end": 1376, + "start": 2579, + "end": 2580, "loc": { "start": { - "line": 36, - "column": 66 + "line": 59, + "column": 43 }, "end": { - "line": 36, - "column": 67 + "line": 59, + "column": 44 } } }, @@ -15969,16 +25329,16 @@ "binop": null }, "value": "data", - "start": 1377, - "end": 1381, + "start": 2581, + "end": 2585, "loc": { "start": { - "line": 36, - "column": 68 + "line": 59, + "column": 45 }, "end": { - "line": 36, - "column": 72 + "line": 59, + "column": 49 } } }, @@ -15995,16 +25355,16 @@ "binop": null, "updateContext": null }, - "start": 1381, - "end": 1382, + "start": 2585, + "end": 2586, "loc": { "start": { - "line": 36, - "column": 72 + "line": 59, + "column": 49 }, "end": { - "line": 36, - "column": 73 + "line": 59, + "column": 50 } } }, @@ -16020,24 +25380,24 @@ "postfix": false, "binop": null }, - "value": "sentBy", - "start": 1382, - "end": 1388, + "value": "player", + "start": 2586, + "end": 2592, "loc": { "start": { - "line": 36, - "column": 73 + "line": 59, + "column": 50 }, "end": { - "line": 36, - "column": 79 + "line": 59, + "column": 56 } } }, { "type": { - "label": "]", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -16047,22 +25407,49 @@ "binop": null, "updateContext": null }, - "start": 1388, - "end": 1389, + "start": 2592, + "end": 2593, "loc": { "start": { - "line": 36, - "column": 79 + "line": 59, + "column": 56 }, "end": { - "line": 36, - "column": 80 + "line": 59, + "column": 57 } } }, { "type": { - "label": ")", + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "dead", + "start": 2594, + "end": 2600, + "loc": { + "start": { + "line": 59, + "column": 58 + }, + "end": { + "line": 59, + "column": 64 + } + } + }, + { + "type": { + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -16070,24 +25457,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1389, - "end": 1390, + "start": 2600, + "end": 2601, "loc": { "start": { - "line": 36, - "column": 80 + "line": 59, + "column": 64 }, "end": { - "line": 36, - "column": 81 + "line": 59, + "column": 65 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -16097,58 +25485,60 @@ "postfix": false, "binop": null }, - "start": 1393, - "end": 1394, + "start": 2601, + "end": 2602, "loc": { "start": { - "line": 37, - "column": 2 + "line": 59, + "column": 65 }, "end": { - "line": 37, - "column": 3 + "line": 59, + "column": 66 } } }, { "type": "CommentLine", - "value": " thisPlayer.damagedBy[data.sentBy] += data.damage;", - "start": 1397, - "end": 1449, + "value": " This will be reset when it has been verified that the player has been placed at the proper spawnpoint", + "start": 2603, + "end": 2707, "loc": { "start": { - "line": 38, - "column": 2 + "line": 59, + "column": 67 }, "end": { - "line": 38, - "column": 54 + "line": 59, + "column": 171 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setField", - "start": 1452, - "end": 1460, + "value": "if", + "start": 2712, + "end": 2714, "loc": { "start": { - "line": 39, - "column": 2 + "line": 61, + "column": 3 }, "end": { - "line": 39, - "column": 10 + "line": 61, + "column": 5 } } }, @@ -16164,16 +25554,16 @@ "postfix": false, "binop": null }, - "start": 1460, - "end": 1461, + "start": 2715, + "end": 2716, "loc": { "start": { - "line": 39, - "column": 10 + "line": 61, + "column": 6 }, "end": { - "line": 39, - "column": 11 + "line": 61, + "column": 7 } } }, @@ -16189,17 +25579,17 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1461, - "end": 1471, + "value": "socket", + "start": 2716, + "end": 2722, "loc": { "start": { - "line": 39, - "column": 11 + "line": 61, + "column": 7 }, "end": { - "line": 39, - "column": 21 + "line": 61, + "column": 13 } } }, @@ -16216,16 +25606,16 @@ "binop": null, "updateContext": null }, - "start": 1471, - "end": 1472, + "start": 2722, + "end": 2723, "loc": { "start": { - "line": 39, - "column": 21 + "line": 61, + "column": 13 }, "end": { - "line": 39, - "column": 22 + "line": 61, + "column": 14 } } }, @@ -16241,43 +25631,44 @@ "postfix": false, "binop": null }, - "value": "damagedBy", - "start": 1472, - "end": 1481, + "value": "id", + "start": 2723, + "end": 2725, "loc": { "start": { - "line": 39, - "column": 22 + "line": 61, + "column": 14 }, "end": { - "line": 39, - "column": 31 + "line": 61, + "column": 16 } } }, { "type": { - "label": "[", + "label": "==/!=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 1481, - "end": 1482, + "value": "===", + "start": 2726, + "end": 2729, "loc": { "start": { - "line": 39, - "column": 31 + "line": 61, + "column": 17 }, "end": { - "line": 39, - "column": 32 + "line": 61, + "column": 20 } } }, @@ -16294,16 +25685,16 @@ "binop": null }, "value": "data", - "start": 1482, - "end": 1486, + "start": 2730, + "end": 2734, "loc": { "start": { - "line": 39, - "column": 32 + "line": 61, + "column": 21 }, "end": { - "line": 39, - "column": 36 + "line": 61, + "column": 25 } } }, @@ -16320,16 +25711,16 @@ "binop": null, "updateContext": null }, - "start": 1486, - "end": 1487, + "start": 2734, + "end": 2735, "loc": { "start": { - "line": 39, - "column": 36 + "line": 61, + "column": 25 }, "end": { - "line": 39, - "column": 37 + "line": 61, + "column": 26 } } }, @@ -16345,23 +25736,23 @@ "postfix": false, "binop": null }, - "value": "sentBy", - "start": 1487, - "end": 1493, + "value": "player", + "start": 2735, + "end": 2741, "loc": { "start": { - "line": 39, - "column": 37 + "line": 61, + "column": 26 }, "end": { - "line": 39, - "column": 43 + "line": 61, + "column": 32 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -16369,46 +25760,71 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1493, - "end": 1494, + "start": 2741, + "end": 2742, "loc": { "start": { - "line": 39, - "column": 43 + "line": 61, + "column": 32 }, "end": { - "line": 39, - "column": 44 + "line": 61, + "column": 33 } } }, { "type": { - "label": "+/-", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null + }, + "start": 2743, + "end": 2744, + "loc": { + "start": { + "line": 61, + "column": 34 + }, + "end": { + "line": 61, + "column": 35 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, "updateContext": null }, - "value": "+", - "start": 1495, - "end": 1496, + "value": "let", + "start": 2749, + "end": 2752, "loc": { "start": { - "line": 39, - "column": 45 + "line": 62, + "column": 4 }, "end": { - "line": 39, - "column": 46 + "line": 62, + "column": 7 } } }, @@ -16424,43 +25840,44 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 1497, - "end": 1501, + "value": "pl", + "start": 2753, + "end": 2755, "loc": { "start": { - "line": 39, - "column": 47 + "line": 62, + "column": 8 }, "end": { - "line": 39, - "column": 51 + "line": 62, + "column": 10 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 1501, - "end": 1502, + "value": "=", + "start": 2756, + "end": 2757, "loc": { "start": { - "line": 39, - "column": 51 + "line": 62, + "column": 11 }, "end": { - "line": 39, - "column": 52 + "line": 62, + "column": 12 } } }, @@ -16476,43 +25893,42 @@ "postfix": false, "binop": null }, - "value": "damage", - "start": 1502, - "end": 1508, + "value": "getField", + "start": 2758, + "end": 2766, "loc": { "start": { - "line": 39, - "column": 52 + "line": 62, + "column": 13 }, "end": { - "line": 39, - "column": 58 + "line": 62, + "column": 21 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1508, - "end": 1509, + "start": 2766, + "end": 2767, "loc": { "start": { - "line": 39, - "column": 58 + "line": 62, + "column": 21 }, "end": { - "line": 39, - "column": 59 + "line": 62, + "column": 22 } } }, @@ -16529,16 +25945,16 @@ "binop": null, "updateContext": null }, - "start": 1510, - "end": 1511, + "start": 2767, + "end": 2768, "loc": { "start": { - "line": 39, - "column": 60 + "line": 62, + "column": 22 }, "end": { - "line": 39, - "column": 61 + "line": 62, + "column": 23 } } }, @@ -16556,16 +25972,16 @@ "updateContext": null }, "value": "rooms", - "start": 1511, - "end": 1518, + "start": 2768, + "end": 2775, "loc": { "start": { - "line": 39, - "column": 61 + "line": 62, + "column": 23 }, "end": { - "line": 39, - "column": 68 + "line": 62, + "column": 30 } } }, @@ -16582,16 +25998,16 @@ "binop": null, "updateContext": null }, - "start": 1518, - "end": 1519, + "start": 2775, + "end": 2776, "loc": { "start": { - "line": 39, - "column": 68 + "line": 62, + "column": 30 }, "end": { - "line": 39, - "column": 69 + "line": 62, + "column": 31 } } }, @@ -16608,16 +26024,16 @@ "binop": null }, "value": "room", - "start": 1520, - "end": 1524, + "start": 2777, + "end": 2781, "loc": { "start": { - "line": 39, - "column": 70 + "line": 62, + "column": 32 }, "end": { - "line": 39, - "column": 74 + "line": 62, + "column": 36 } } }, @@ -16634,16 +26050,16 @@ "binop": null, "updateContext": null }, - "start": 1524, - "end": 1525, + "start": 2781, + "end": 2782, "loc": { "start": { - "line": 39, - "column": 74 + "line": 62, + "column": 36 }, "end": { - "line": 39, - "column": 75 + "line": 62, + "column": 37 } } }, @@ -16661,16 +26077,16 @@ "updateContext": null }, "value": "players", - "start": 1526, - "end": 1535, + "start": 2783, + "end": 2792, "loc": { "start": { - "line": 39, - "column": 76 + "line": 62, + "column": 38 }, "end": { - "line": 39, - "column": 85 + "line": 62, + "column": 47 } } }, @@ -16687,16 +26103,16 @@ "binop": null, "updateContext": null }, - "start": 1535, - "end": 1536, + "start": 2792, + "end": 2793, "loc": { "start": { - "line": 39, - "column": 85 + "line": 62, + "column": 47 }, "end": { - "line": 39, - "column": 86 + "line": 62, + "column": 48 } } }, @@ -16713,16 +26129,16 @@ "binop": null }, "value": "data", - "start": 1537, - "end": 1541, + "start": 2794, + "end": 2798, "loc": { "start": { - "line": 39, - "column": 87 + "line": 62, + "column": 49 }, "end": { - "line": 39, - "column": 91 + "line": 62, + "column": 53 } } }, @@ -16739,16 +26155,16 @@ "binop": null, "updateContext": null }, - "start": 1541, - "end": 1542, + "start": 2798, + "end": 2799, "loc": { "start": { - "line": 39, - "column": 91 + "line": 62, + "column": 53 }, "end": { - "line": 39, - "column": 92 + "line": 62, + "column": 54 } } }, @@ -16765,23 +26181,23 @@ "binop": null }, "value": "player", - "start": 1542, - "end": 1548, + "start": 2799, + "end": 2805, "loc": { "start": { - "line": 39, - "column": 92 + "line": 62, + "column": 54 }, "end": { - "line": 39, - "column": 98 + "line": 62, + "column": 60 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -16791,69 +26207,41 @@ "binop": null, "updateContext": null }, - "start": 1548, - "end": 1549, + "start": 2805, + "end": 2806, "loc": { "start": { - "line": 39, - "column": 98 + "line": 62, + "column": 60 }, "end": { - "line": 39, - "column": 99 + "line": 62, + "column": 61 } } }, { "type": { - "label": "string", + "label": ")", "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "damagedBy", - "start": 1550, - "end": 1561, - "loc": { - "start": { - "line": 39, - "column": 100 - }, - "end": { - "line": 39, - "column": 111 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1561, - "end": 1562, + "start": 2806, + "end": 2807, "loc": { "start": { - "line": 39, - "column": 111 + "line": 62, + "column": 61 }, "end": { - "line": 39, - "column": 112 + "line": 62, + "column": 62 } } }, @@ -16869,17 +26257,17 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 1563, - "end": 1567, + "value": "socket", + "start": 2812, + "end": 2818, "loc": { "start": { - "line": 39, - "column": 113 + "line": 63, + "column": 4 }, "end": { - "line": 39, - "column": 117 + "line": 63, + "column": 10 } } }, @@ -16896,16 +26284,16 @@ "binop": null, "updateContext": null }, - "start": 1567, - "end": 1568, + "start": 2818, + "end": 2819, "loc": { "start": { - "line": 39, - "column": 117 + "line": 63, + "column": 10 }, "end": { - "line": 39, - "column": 118 + "line": 63, + "column": 11 } } }, @@ -16921,51 +26309,25 @@ "postfix": false, "binop": null }, - "value": "sentBy", - "start": 1568, - "end": 1574, - "loc": { - "start": { - "line": 39, - "column": 118 - }, - "end": { - "line": 39, - "column": 124 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1574, - "end": 1575, + "value": "emit", + "start": 2819, + "end": 2823, "loc": { "start": { - "line": 39, - "column": 124 + "line": 63, + "column": 11 }, "end": { - "line": 39, - "column": 125 + "line": 63, + "column": 15 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -16973,41 +26335,24 @@ "postfix": false, "binop": null }, - "start": 1575, - "end": 1576, - "loc": { - "start": { - "line": 39, - "column": 125 - }, - "end": { - "line": 39, - "column": 126 - } - } - }, - { - "type": "CommentLine", - "value": " Check if the player has died.", - "start": 1580, - "end": 1612, + "start": 2823, + "end": 2824, "loc": { "start": { - "line": 41, - "column": 2 + "line": 63, + "column": 15 }, "end": { - "line": 41, - "column": 34 + "line": 63, + "column": 16 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -17016,49 +26361,50 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 1615, - "end": 1617, + "value": "serverSendPlayerDeath", + "start": 2824, + "end": 2847, "loc": { "start": { - "line": 42, - "column": 2 + "line": 63, + "column": 16 }, "end": { - "line": 42, - "column": 4 + "line": 63, + "column": 39 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1618, - "end": 1619, + "start": 2847, + "end": 2848, "loc": { "start": { - "line": 42, - "column": 5 + "line": 63, + "column": 39 }, "end": { - "line": 42, - "column": 6 + "line": 63, + "column": 40 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -17067,43 +26413,16 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1619, - "end": 1629, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1629, - "end": 1630, + "start": 2849, + "end": 2850, "loc": { "start": { - "line": 42, - "column": 16 + "line": 63, + "column": 41 }, "end": { - "line": 42, - "column": 17 + "line": 63, + "column": 42 } } }, @@ -17119,23 +26438,23 @@ "postfix": false, "binop": null }, - "value": "health", - "start": 1630, - "end": 1636, + "value": "posX", + "start": 2851, + "end": 2855, "loc": { "start": { - "line": 42, - "column": 17 + "line": 63, + "column": 43 }, "end": { - "line": 42, - "column": 23 + "line": 63, + "column": 47 } } }, { "type": { - "label": "", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -17143,26 +26462,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": "<=", - "start": 1637, - "end": 1639, + "start": 2855, + "end": 2856, "loc": { "start": { - "line": 42, - "column": 24 + "line": 63, + "column": 47 }, "end": { - "line": 42, - "column": 26 + "line": 63, + "column": 48 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -17170,26 +26488,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 1640, - "end": 1641, + "value": "pl", + "start": 2857, + "end": 2859, "loc": { "start": { - "line": 42, - "column": 27 + "line": 63, + "column": 49 }, "end": { - "line": 42, - "column": 28 + "line": 63, + "column": 51 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -17197,25 +26514,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1641, - "end": 1642, + "start": 2859, + "end": 2860, "loc": { "start": { - "line": 42, - "column": 28 + "line": 63, + "column": 51 }, "end": { - "line": 42, - "column": 29 + "line": 63, + "column": 52 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -17224,83 +26542,50 @@ "postfix": false, "binop": null }, - "start": 1643, - "end": 1644, - "loc": { - "start": { - "line": 42, - "column": 30 - }, - "end": { - "line": 42, - "column": 31 - } - } - }, - { - "type": "CommentLine", - "value": " console.log(thisRoom.teams.indexOf(socket.handshake.query.team));", - "start": 1648, - "end": 1716, - "loc": { - "start": { - "line": 43, - "column": 3 - }, - "end": { - "line": 43, - "column": 71 - } - } - }, - { - "type": "CommentLine", - "value": " Releases atoms and deletes the entire atoms array in player", - "start": 1721, - "end": 1783, + "value": "posX", + "start": 2860, + "end": 2864, "loc": { "start": { - "line": 45, - "column": 3 + "line": 63, + "column": 52 }, "end": { - "line": 45, - "column": 65 + "line": 63, + "column": 56 } } }, { "type": { - "label": "for", - "keyword": "for", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "for", - "start": 1787, - "end": 1790, + "start": 2864, + "end": 2865, "loc": { "start": { - "line": 46, - "column": 3 + "line": 63, + "column": 56 }, "end": { - "line": 46, - "column": 6 + "line": 63, + "column": 57 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -17309,24 +26594,24 @@ "postfix": false, "binop": null }, - "start": 1791, - "end": 1792, + "value": "posY", + "start": 2866, + "end": 2870, "loc": { "start": { - "line": 46, - "column": 7 + "line": 63, + "column": 58 }, "end": { - "line": 46, - "column": 8 + "line": 63, + "column": 62 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -17336,17 +26621,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 1792, - "end": 1795, + "start": 2870, + "end": 2871, "loc": { "start": { - "line": 46, - "column": 8 + "line": 63, + "column": 62 }, "end": { - "line": 46, - "column": 11 + "line": 63, + "column": 63 } } }, @@ -17362,45 +26646,43 @@ "postfix": false, "binop": null }, - "value": "at", - "start": 1796, - "end": 1798, + "value": "pl", + "start": 2872, + "end": 2874, "loc": { "start": { - "line": 46, - "column": 12 + "line": 63, + "column": 64 }, "end": { - "line": 46, - "column": 14 + "line": 63, + "column": 66 } } }, { "type": { - "label": "in", - "keyword": "in", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": "in", - "start": 1799, - "end": 1801, + "start": 2874, + "end": 2875, "loc": { "start": { - "line": 46, - "column": 15 + "line": 63, + "column": 66 }, "end": { - "line": 46, - "column": 17 + "line": 63, + "column": 67 } } }, @@ -17416,24 +26698,24 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1802, - "end": 1812, + "value": "posY", + "start": 2875, + "end": 2879, "loc": { "start": { - "line": 46, - "column": 18 + "line": 63, + "column": 67 }, "end": { - "line": 46, - "column": 28 + "line": 63, + "column": 71 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -17443,16 +26725,16 @@ "binop": null, "updateContext": null }, - "start": 1812, - "end": 1813, + "start": 2879, + "end": 2880, "loc": { "start": { - "line": 46, - "column": 28 + "line": 63, + "column": 71 }, "end": { - "line": 46, - "column": 29 + "line": 63, + "column": 72 } } }, @@ -17468,49 +26750,50 @@ "postfix": false, "binop": null }, - "value": "atomList", - "start": 1813, - "end": 1821, + "value": "vx", + "start": 2881, + "end": 2883, "loc": { "start": { - "line": 46, - "column": 29 + "line": 63, + "column": 73 }, "end": { - "line": 46, - "column": 37 + "line": 63, + "column": 75 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1821, - "end": 1822, + "start": 2883, + "end": 2884, "loc": { "start": { - "line": 46, - "column": 37 + "line": 63, + "column": 75 }, "end": { - "line": 46, - "column": 38 + "line": 63, + "column": 76 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -17519,51 +26802,50 @@ "postfix": false, "binop": null }, - "start": 1823, - "end": 1824, + "value": "pl", + "start": 2885, + "end": 2887, "loc": { "start": { - "line": 46, - "column": 39 + "line": 63, + "column": 77 }, "end": { - "line": 46, - "column": 40 + "line": 63, + "column": 79 } } }, { "type": { - "label": "for", - "keyword": "for", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "for", - "start": 1829, - "end": 1832, + "start": 2887, + "end": 2888, "loc": { "start": { - "line": 47, - "column": 4 + "line": 63, + "column": 79 }, "end": { - "line": 47, - "column": 7 + "line": 63, + "column": 80 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -17572,24 +26854,24 @@ "postfix": false, "binop": null }, - "start": 1833, - "end": 1834, + "value": "vx", + "start": 2888, + "end": 2890, "loc": { "start": { - "line": 47, - "column": 8 + "line": 63, + "column": 80 }, "end": { - "line": 47, - "column": 9 + "line": 63, + "column": 82 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -17599,17 +26881,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 1834, - "end": 1837, + "start": 2890, + "end": 2891, "loc": { "start": { - "line": 47, - "column": 9 + "line": 63, + "column": 82 }, "end": { - "line": 47, - "column": 12 + "line": 63, + "column": 83 } } }, @@ -17625,50 +26906,49 @@ "postfix": false, "binop": null }, - "value": "i", - "start": 1838, - "end": 1839, + "value": "vy", + "start": 2892, + "end": 2894, "loc": { "start": { - "line": 47, - "column": 13 + "line": 63, + "column": 84 }, "end": { - "line": 47, - "column": 14 + "line": 63, + "column": 86 } } }, { "type": { - "label": "=", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1840, - "end": 1841, + "start": 2894, + "end": 2895, "loc": { "start": { - "line": 47, - "column": 15 + "line": 63, + "column": 86 }, "end": { - "line": 47, - "column": 16 + "line": 63, + "column": 87 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -17676,27 +26956,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 1842, - "end": 1843, + "value": "pl", + "start": 2896, + "end": 2898, "loc": { "start": { - "line": 47, - "column": 17 + "line": 63, + "column": 88 }, "end": { - "line": 47, - "column": 18 + "line": 63, + "column": 90 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -17706,16 +26985,16 @@ "binop": null, "updateContext": null }, - "start": 1843, - "end": 1844, + "start": 2898, + "end": 2899, "loc": { "start": { - "line": 47, - "column": 18 + "line": 63, + "column": 90 }, "end": { - "line": 47, - "column": 19 + "line": 63, + "column": 91 } } }, @@ -17731,52 +27010,50 @@ "postfix": false, "binop": null }, - "value": "i", - "start": 1845, - "end": 1846, + "value": "vy", + "start": 2899, + "end": 2901, "loc": { "start": { - "line": 47, - "column": 20 + "line": 63, + "column": 91 }, "end": { - "line": 47, - "column": 21 + "line": 63, + "column": 93 } } }, { "type": { - "label": "", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, - "updateContext": null + "binop": null }, - "value": "<", - "start": 1847, - "end": 1848, + "start": 2902, + "end": 2903, "loc": { "start": { - "line": 47, - "column": 22 + "line": 63, + "column": 94 }, "end": { - "line": 47, - "column": 23 + "line": 63, + "column": 95 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -17784,23 +27061,22 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 1849, - "end": 1855, + "start": 2903, + "end": 2904, "loc": { "start": { - "line": 47, - "column": 24 + "line": 63, + "column": 95 }, "end": { - "line": 47, - "column": 30 + "line": 63, + "column": 96 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -17808,72 +27084,71 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1855, - "end": 1856, + "start": 2908, + "end": 2909, "loc": { "start": { - "line": 47, - "column": 30 + "line": 64, + "column": 3 }, "end": { - "line": 47, - "column": 31 + "line": 64, + "column": 4 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "MAX_DEATH_ATOMS", - "start": 1856, - "end": 1871, + "value": "if", + "start": 2914, + "end": 2916, "loc": { "start": { - "line": 47, - "column": 31 + "line": 66, + "column": 3 }, "end": { - "line": 47, - "column": 46 + "line": 66, + "column": 5 } } }, { "type": { - "label": "&&", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, - "updateContext": null + "binop": null }, - "value": "&&", - "start": 1872, - "end": 1874, + "start": 2917, + "end": 2918, "loc": { "start": { - "line": 47, - "column": 47 + "line": 66, + "column": 6 }, "end": { - "line": 47, - "column": 49 + "line": 66, + "column": 7 } } }, @@ -17889,44 +27164,43 @@ "postfix": false, "binop": null }, - "value": "i", - "start": 1875, - "end": 1876, + "value": "data", + "start": 2918, + "end": 2922, "loc": { "start": { - "line": 47, - "column": 50 + "line": 66, + "column": 7 }, "end": { - "line": 47, - "column": 51 + "line": 66, + "column": 11 } } }, { "type": { - "label": "", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": "<", - "start": 1877, - "end": 1878, + "start": 2922, + "end": 2923, "loc": { "start": { - "line": 47, - "column": 52 + "line": 66, + "column": 11 }, "end": { - "line": 47, - "column": 53 + "line": 66, + "column": 12 } } }, @@ -17942,43 +27216,44 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1879, - "end": 1889, + "value": "id", + "start": 2923, + "end": 2925, "loc": { "start": { - "line": 47, - "column": 54 + "line": 66, + "column": 12 }, "end": { - "line": 47, - "column": 64 + "line": 66, + "column": 14 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 1889, - "end": 1890, + "value": "!==", + "start": 2926, + "end": 2929, "loc": { "start": { - "line": 47, - "column": 64 + "line": 66, + "column": 15 }, "end": { - "line": 47, - "column": 65 + "line": 66, + "column": 18 } } }, @@ -17994,50 +27269,49 @@ "postfix": false, "binop": null }, - "value": "atomList", - "start": 1890, - "end": 1898, + "value": "undefined", + "start": 2930, + "end": 2939, "loc": { "start": { - "line": 47, - "column": 65 + "line": 66, + "column": 19 }, "end": { - "line": 47, - "column": 73 + "line": 66, + "column": 28 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1898, - "end": 1899, + "start": 2939, + "end": 2940, "loc": { "start": { - "line": 47, - "column": 73 + "line": 66, + "column": 28 }, "end": { - "line": 47, - "column": 74 + "line": 66, + "column": 29 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -18046,50 +27320,40 @@ "postfix": false, "binop": null }, - "value": "at", - "start": 1899, - "end": 1901, + "start": 2941, + "end": 2942, "loc": { "start": { - "line": 47, - "column": 74 + "line": 66, + "column": 30 }, "end": { - "line": 47, - "column": 76 + "line": 66, + "column": 31 } } }, { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1901, - "end": 1902, + "type": "CommentLine", + "value": " Read damagedBy to award points, clear in the process", + "start": 2947, + "end": 3002, "loc": { "start": { - "line": 47, - "column": 76 + "line": 67, + "column": 4 }, "end": { - "line": 47, - "column": 77 + "line": 67, + "column": 59 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -18099,16 +27363,17 @@ "binop": null, "updateContext": null }, - "start": 1902, - "end": 1903, + "value": "let", + "start": 3007, + "end": 3010, "loc": { "start": { - "line": 47, - "column": 77 + "line": 68, + "column": 4 }, "end": { - "line": 47, - "column": 78 + "line": 68, + "column": 7 } } }, @@ -18124,93 +27389,100 @@ "postfix": false, "binop": null }, - "value": "i", - "start": 1904, - "end": 1905, + "value": "max", + "start": 3011, + "end": 3014, "loc": { "start": { - "line": 47, - "column": 79 + "line": 68, + "column": 8 }, "end": { - "line": 47, - "column": 80 + "line": 68, + "column": 11 } } }, { "type": { - "label": "++/--", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": true, - "binop": null + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null }, - "value": "++", - "start": 1905, - "end": 1907, + "value": "=", + "start": 3015, + "end": 3016, "loc": { "start": { - "line": 47, - "column": 80 + "line": 68, + "column": 12 }, "end": { - "line": 47, - "column": 82 + "line": 68, + "column": 13 } } }, { "type": { - "label": ")", + "label": "null", + "keyword": "null", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1907, - "end": 1908, + "value": "null", + "start": 3017, + "end": 3021, "loc": { "start": { - "line": 47, - "column": 82 + "line": 68, + "column": 14 }, "end": { - "line": 47, - "column": 83 + "line": 68, + "column": 18 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1909, - "end": 1910, + "value": "let", + "start": 3026, + "end": 3029, "loc": { "start": { - "line": 47, - "column": 84 + "line": 69, + "column": 4 }, "end": { - "line": 47, - "column": 85 + "line": 69, + "column": 7 } } }, @@ -18226,49 +27498,52 @@ "postfix": false, "binop": null }, - "value": "spawnAtom", - "start": 1916, - "end": 1925, + "value": "dataToSend", + "start": 3030, + "end": 3040, "loc": { "start": { - "line": 48, - "column": 5 + "line": 69, + "column": 8 }, "end": { - "line": 48, - "column": 14 + "line": 69, + "column": 18 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, - "isLoop": false, + "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1925, - "end": 1926, + "value": "for", + "start": 3045, + "end": 3048, "loc": { "start": { - "line": 48, - "column": 14 + "line": 70, + "column": 4 }, "end": { - "line": 48, - "column": 15 + "line": 70, + "column": 7 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -18277,23 +27552,23 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 1926, - "end": 1936, + "start": 3049, + "end": 3050, "loc": { "start": { - "line": 48, - "column": 15 + "line": 70, + "column": 8 }, "end": { - "line": 48, - "column": 25 + "line": 70, + "column": 9 } } }, { "type": { - "label": ".", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -18304,16 +27579,17 @@ "binop": null, "updateContext": null }, - "start": 1936, - "end": 1937, + "value": "let", + "start": 3050, + "end": 3053, "loc": { "start": { - "line": 48, - "column": 25 + "line": 70, + "column": 9 }, "end": { - "line": 48, - "column": 26 + "line": 70, + "column": 12 } } }, @@ -18329,23 +27605,24 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 1937, - "end": 1941, + "value": "pl", + "start": 3054, + "end": 3056, "loc": { "start": { - "line": 48, - "column": 26 + "line": 70, + "column": 13 }, "end": { - "line": 48, - "column": 30 + "line": 70, + "column": 15 } } }, { "type": { - "label": ",", + "label": "in", + "keyword": "in", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -18353,19 +27630,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "start": 1941, - "end": 1942, + "value": "in", + "start": 3057, + "end": 3059, "loc": { "start": { - "line": 48, - "column": 30 + "line": 70, + "column": 16 }, "end": { - "line": 48, - "column": 31 + "line": 70, + "column": 18 } } }, @@ -18382,16 +27660,16 @@ "binop": null }, "value": "thisPlayer", - "start": 1943, - "end": 1953, + "start": 3060, + "end": 3070, "loc": { "start": { - "line": 48, - "column": 32 + "line": 70, + "column": 19 }, "end": { - "line": 48, - "column": 42 + "line": 70, + "column": 29 } } }, @@ -18408,16 +27686,16 @@ "binop": null, "updateContext": null }, - "start": 1953, - "end": 1954, + "start": 3070, + "end": 3071, "loc": { "start": { - "line": 48, - "column": 42 + "line": 70, + "column": 29 }, "end": { - "line": 48, - "column": 43 + "line": 70, + "column": 30 } } }, @@ -18433,51 +27711,25 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 1954, - "end": 1958, - "loc": { - "start": { - "line": 48, - "column": 43 - }, - "end": { - "line": 48, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1958, - "end": 1959, + "value": "damagedBy", + "start": 3071, + "end": 3080, "loc": { "start": { - "line": 48, - "column": 47 + "line": 70, + "column": 30 }, "end": { - "line": 48, - "column": 48 + "line": 70, + "column": 39 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -18485,43 +27737,41 @@ "postfix": false, "binop": null }, - "value": "at", - "start": 1960, - "end": 1962, + "start": 3080, + "end": 3081, "loc": { "start": { - "line": 48, - "column": 49 + "line": 70, + "column": 39 }, "end": { - "line": 48, - "column": 51 + "line": 70, + "column": 40 } } }, { "type": { - "label": ",", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1962, - "end": 1963, + "start": 3082, + "end": 3083, "loc": { "start": { - "line": 48, - "column": 51 + "line": 70, + "column": 41 }, "end": { - "line": 48, - "column": 52 + "line": 70, + "column": 42 } } }, @@ -18537,79 +27787,77 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 1964, - "end": 1968, + "value": "dataToSend", + "start": 3089, + "end": 3099, "loc": { "start": { - "line": 48, - "column": 53 + "line": 71, + "column": 5 }, "end": { - "line": 48, - "column": 57 + "line": 71, + "column": 15 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 1968, - "end": 1969, + "value": "=", + "start": 3100, + "end": 3101, "loc": { "start": { - "line": 48, - "column": 57 + "line": 71, + "column": 16 }, "end": { - "line": 48, - "column": 58 + "line": 71, + "column": 17 } } }, { "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "false", - "start": 1970, - "end": 1975, + "start": 3102, + "end": 3103, "loc": { "start": { - "line": 48, - "column": 59 + "line": 71, + "column": 18 }, "end": { - "line": 48, - "column": 64 + "line": 71, + "column": 19 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -18617,49 +27865,51 @@ "postfix": false, "binop": null }, - "start": 1975, - "end": 1976, + "value": "player", + "start": 3110, + "end": 3116, "loc": { "start": { - "line": 48, - "column": 64 + "line": 72, + "column": 6 }, "end": { - "line": 48, - "column": 65 + "line": 72, + "column": 12 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1981, - "end": 1982, + "start": 3116, + "end": 3117, "loc": { "start": { - "line": 49, - "column": 4 + "line": 72, + "column": 12 }, "end": { - "line": 49, - "column": 5 + "line": 72, + "column": 13 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -18667,51 +27917,50 @@ "postfix": false, "binop": null }, - "start": 1986, - "end": 1987, + "value": "pl", + "start": 3118, + "end": 3120, "loc": { "start": { - "line": 50, - "column": 3 + "line": 72, + "column": 14 }, "end": { - "line": 50, - "column": 4 + "line": 72, + "column": 16 } } }, { "type": { - "label": "for", - "keyword": "for", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "for", - "start": 1991, - "end": 1994, + "start": 3120, + "end": 3121, "loc": { "start": { - "line": 51, - "column": 3 + "line": 72, + "column": 16 }, "end": { - "line": 51, - "column": 6 + "line": 72, + "column": 17 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -18720,24 +27969,24 @@ "postfix": false, "binop": null }, - "start": 1995, - "end": 1996, + "value": "teamSlot", + "start": 3128, + "end": 3136, "loc": { "start": { - "line": 51, - "column": 7 + "line": 73, + "column": 6 }, "end": { - "line": 51, - "column": 8 + "line": 73, + "column": 14 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -18747,17 +27996,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 1996, - "end": 1999, + "start": 3136, + "end": 3137, "loc": { "start": { - "line": 51, - "column": 8 + "line": 73, + "column": 14 }, "end": { - "line": 51, - "column": 11 + "line": 73, + "column": 15 } } }, @@ -18773,45 +28021,42 @@ "postfix": false, "binop": null }, - "value": "at", - "start": 2000, - "end": 2002, + "value": "getTeamNumber", + "start": 3138, + "end": 3151, "loc": { "start": { - "line": 51, - "column": 12 + "line": 73, + "column": 16 }, "end": { - "line": 51, - "column": 14 + "line": 73, + "column": 29 } } }, { "type": { - "label": "in", - "keyword": "in", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, - "updateContext": null + "binop": null }, - "value": "in", - "start": 2003, - "end": 2005, + "start": 3151, + "end": 3152, "loc": { "start": { - "line": 51, - "column": 15 + "line": 73, + "column": 29 }, "end": { - "line": 51, - "column": 17 + "line": 73, + "column": 30 } } }, @@ -18827,24 +28072,24 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 2006, - "end": 2016, + "value": "room", + "start": 3152, + "end": 3156, "loc": { "start": { - "line": 51, - "column": 18 + "line": 73, + "column": 30 }, "end": { - "line": 51, - "column": 28 + "line": 73, + "column": 34 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -18854,16 +28099,16 @@ "binop": null, "updateContext": null }, - "start": 2016, - "end": 2017, + "start": 3156, + "end": 3157, "loc": { "start": { - "line": 51, - "column": 28 + "line": 73, + "column": 34 }, "end": { - "line": 51, - "column": 29 + "line": 73, + "column": 35 } } }, @@ -18879,23 +28124,23 @@ "postfix": false, "binop": null }, - "value": "atomList", - "start": 2017, - "end": 2025, + "value": "thisRoom", + "start": 3158, + "end": 3166, "loc": { "start": { - "line": 51, - "column": 29 + "line": 73, + "column": 36 }, "end": { - "line": 51, - "column": 37 + "line": 73, + "column": 44 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -18903,25 +28148,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2025, - "end": 2026, + "start": 3166, + "end": 3167, "loc": { "start": { - "line": 51, - "column": 37 + "line": 73, + "column": 44 }, "end": { - "line": 51, - "column": 38 + "line": 73, + "column": 45 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -18930,49 +28176,50 @@ "postfix": false, "binop": null }, - "start": 2027, - "end": 2028, + "value": "compounds", + "start": 3167, + "end": 3176, "loc": { "start": { - "line": 51, - "column": 39 + "line": 73, + "column": 45 }, - "end": { - "line": 51, - "column": 40 + "end": { + "line": 73, + "column": 54 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setField", - "start": 2033, - "end": 2041, + "start": 3176, + "end": 3177, "loc": { "start": { - "line": 52, - "column": 4 + "line": 73, + "column": 54 }, "end": { - "line": 52, - "column": 12 + "line": 73, + "column": 55 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -18981,24 +28228,25 @@ "postfix": false, "binop": null }, - "start": 2041, - "end": 2042, + "value": "data", + "start": 3177, + "end": 3181, "loc": { "start": { - "line": 52, - "column": 12 + "line": 73, + "column": 55 }, "end": { - "line": 52, - "column": 13 + "line": 73, + "column": 59 } } }, { "type": { - "label": "num", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -19007,51 +28255,50 @@ "binop": null, "updateContext": null }, - "value": 0, - "start": 2042, - "end": 2043, + "start": 3181, + "end": 3182, "loc": { "start": { - "line": 52, - "column": 13 + "line": 73, + "column": 59 }, "end": { - "line": 52, - "column": 14 + "line": 73, + "column": 60 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2043, - "end": 2044, + "value": "id", + "start": 3182, + "end": 3184, "loc": { "start": { - "line": 52, - "column": 14 + "line": 73, + "column": 60 }, "end": { - "line": 52, - "column": 15 + "line": 73, + "column": 62 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": "]", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -19060,24 +28307,24 @@ "binop": null, "updateContext": null }, - "start": 2045, - "end": 2046, + "start": 3184, + "end": 3185, "loc": { "start": { - "line": 52, - "column": 16 + "line": 73, + "column": 62 }, "end": { - "line": 52, - "column": 17 + "line": 73, + "column": 63 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -19086,51 +28333,50 @@ "binop": null, "updateContext": null }, - "value": "rooms", - "start": 2046, - "end": 2053, + "start": 3185, + "end": 3186, "loc": { "start": { - "line": 52, - "column": 17 + "line": 73, + "column": 63 }, "end": { - "line": 52, - "column": 24 + "line": 73, + "column": 64 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2053, - "end": 2054, + "value": "sendingTeam", + "start": 3186, + "end": 3197, "loc": { "start": { - "line": 52, - "column": 24 + "line": 73, + "column": 64 }, "end": { - "line": 52, - "column": 25 + "line": 73, + "column": 75 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -19138,17 +28384,16 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 2055, - "end": 2059, + "start": 3197, + "end": 3198, "loc": { "start": { - "line": 52, - "column": 26 + "line": 73, + "column": 75 }, "end": { - "line": 52, - "column": 30 + "line": 73, + "column": 76 } } }, @@ -19165,22 +28410,22 @@ "binop": null, "updateContext": null }, - "start": 2059, - "end": 2060, + "start": 3198, + "end": 3199, "loc": { "start": { - "line": 52, - "column": 30 + "line": 73, + "column": 76 }, "end": { - "line": 52, - "column": 31 + "line": 73, + "column": 77 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -19188,26 +28433,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "players", - "start": 2061, - "end": 2070, + "value": "increment", + "start": 3206, + "end": 3215, "loc": { "start": { - "line": 52, - "column": 32 + "line": 74, + "column": 6 }, "end": { - "line": 52, - "column": 41 + "line": 74, + "column": 15 } } }, { "type": { - "label": ",", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -19218,16 +28462,16 @@ "binop": null, "updateContext": null }, - "start": 2070, - "end": 2071, + "start": 3215, + "end": 3216, "loc": { "start": { - "line": 52, - "column": 41 + "line": 74, + "column": 15 }, "end": { - "line": 52, - "column": 42 + "line": 74, + "column": 16 } } }, @@ -19243,24 +28487,24 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 2072, - "end": 2082, + "value": "GLOBAL", + "start": 3217, + "end": 3223, "loc": { "start": { - "line": 52, - "column": 43 + "line": 74, + "column": 17 }, "end": { - "line": 52, - "column": 53 + "line": 74, + "column": 23 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -19270,22 +28514,22 @@ "binop": null, "updateContext": null }, - "start": 2082, - "end": 2083, + "start": 3223, + "end": 3224, "loc": { "start": { - "line": 52, - "column": 53 + "line": 74, + "column": 23 }, "end": { - "line": 52, - "column": 54 + "line": 74, + "column": 24 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -19293,20 +28537,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "atomList", - "start": 2084, - "end": 2094, + "value": "ASSIST_SCORE", + "start": 3224, + "end": 3236, "loc": { "start": { - "line": 52, - "column": 55 + "line": 74, + "column": 24 }, "end": { - "line": 52, - "column": 65 + "line": 74, + "column": 36 } } }, @@ -19323,16 +28566,16 @@ "binop": null, "updateContext": null }, - "start": 2094, - "end": 2095, + "start": 3236, + "end": 3237, "loc": { "start": { - "line": 52, - "column": 65 + "line": 74, + "column": 36 }, "end": { - "line": 52, - "column": 66 + "line": 74, + "column": 37 } } }, @@ -19348,24 +28591,24 @@ "postfix": false, "binop": null }, - "value": "at", - "start": 2096, - "end": 2098, + "value": "kill", + "start": 3244, + "end": 3248, "loc": { "start": { - "line": 52, - "column": 67 + "line": 75, + "column": 6 }, "end": { - "line": 52, - "column": 69 + "line": 75, + "column": 10 } } }, { "type": { - "label": "]", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -19375,41 +28618,44 @@ "binop": null, "updateContext": null }, - "start": 2098, - "end": 2099, + "start": 3248, + "end": 3249, "loc": { "start": { - "line": 52, - "column": 69 + "line": 75, + "column": 10 }, "end": { - "line": 52, - "column": 70 + "line": 75, + "column": 11 } } }, { "type": { - "label": ")", + "label": "false", + "keyword": "false", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2099, - "end": 2100, + "value": "false", + "start": 3250, + "end": 3255, "loc": { "start": { - "line": 52, - "column": 70 + "line": 75, + "column": 12 }, "end": { - "line": 52, - "column": 71 + "line": 75, + "column": 17 } } }, @@ -19425,32 +28671,32 @@ "postfix": false, "binop": null }, - "start": 2104, - "end": 2105, + "start": 3261, + "end": 3262, "loc": { "start": { - "line": 53, - "column": 3 + "line": 76, + "column": 5 }, "end": { - "line": 53, - "column": 4 + "line": 76, + "column": 6 } } }, { "type": "CommentLine", - "value": " Reset position to spawnpoint", - "start": 2110, - "end": 2141, + "value": " Add to team score, checking if team score is initialized", + "start": 3269, + "end": 3328, "loc": { "start": { - "line": 55, - "column": 3 + "line": 78, + "column": 5 }, "end": { - "line": 55, - "column": 34 + "line": 78, + "column": 64 } } }, @@ -19467,16 +28713,41 @@ "binop": null }, "value": "setField", - "start": 2145, - "end": 2153, + "start": 3334, + "end": 3342, "loc": { "start": { - "line": 56, - "column": 3 + "line": 79, + "column": 5 }, "end": { - "line": 56, - "column": 11 + "line": 79, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3342, + "end": 3343, + "loc": { + "start": { + "line": 79, + "column": 13 + }, + "end": { + "line": 79, + "column": 14 } } }, @@ -19492,16 +28763,16 @@ "postfix": false, "binop": null }, - "start": 2153, - "end": 2154, + "start": 3343, + "end": 3344, "loc": { "start": { - "line": 56, - "column": 11 + "line": 79, + "column": 14 }, "end": { - "line": 56, - "column": 12 + "line": 79, + "column": 15 } } }, @@ -19517,17 +28788,17 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 2154, - "end": 2160, + "value": "thisRoom", + "start": 3344, + "end": 3352, "loc": { "start": { - "line": 56, - "column": 12 + "line": 79, + "column": 15 }, "end": { - "line": 56, - "column": 18 + "line": 79, + "column": 23 } } }, @@ -19544,16 +28815,16 @@ "binop": null, "updateContext": null }, - "start": 2160, - "end": 2161, + "start": 3352, + "end": 3353, "loc": { "start": { - "line": 56, - "column": 18 + "line": 79, + "column": 23 }, "end": { - "line": 56, - "column": 19 + "line": 79, + "column": 24 } } }, @@ -19569,17 +28840,17 @@ "postfix": false, "binop": null }, - "value": "SPAWN_POINTS", - "start": 2161, - "end": 2173, + "value": "teams", + "start": 3353, + "end": 3358, "loc": { "start": { - "line": 56, - "column": 19 + "line": 79, + "column": 24 }, "end": { - "line": 56, - "column": 31 + "line": 79, + "column": 29 } } }, @@ -19596,16 +28867,16 @@ "binop": null, "updateContext": null }, - "start": 2173, - "end": 2174, + "start": 3358, + "end": 3359, "loc": { "start": { - "line": 56, - "column": 31 + "line": 79, + "column": 29 }, "end": { - "line": 56, - "column": 32 + "line": 79, + "column": 30 } } }, @@ -19621,42 +28892,43 @@ "postfix": false, "binop": null }, - "value": "getTeamNumber", - "start": 2174, - "end": 2187, + "value": "dataToSend", + "start": 3359, + "end": 3369, "loc": { "start": { - "line": 56, - "column": 32 + "line": 79, + "column": 30 }, "end": { - "line": 56, - "column": 45 + "line": 79, + "column": 40 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2187, - "end": 2188, + "start": 3369, + "end": 3370, "loc": { "start": { - "line": 56, - "column": 45 + "line": 79, + "column": 40 }, "end": { - "line": 56, - "column": 46 + "line": 79, + "column": 41 } } }, @@ -19672,24 +28944,24 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 2188, - "end": 2192, + "value": "teamSlot", + "start": 3370, + "end": 3378, "loc": { "start": { - "line": 56, - "column": 46 + "line": 79, + "column": 41 }, "end": { - "line": 56, - "column": 50 + "line": 79, + "column": 49 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -19699,102 +28971,103 @@ "binop": null, "updateContext": null }, - "start": 2192, - "end": 2193, + "start": 3378, + "end": 3379, "loc": { "start": { - "line": 56, - "column": 50 + "line": 79, + "column": 49 }, "end": { - "line": 56, - "column": 51 + "line": 79, + "column": 50 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "thisPlayer", - "start": 2194, - "end": 2204, + "start": 3379, + "end": 3380, "loc": { "start": { - "line": 56, - "column": 52 + "line": 79, + "column": 50 }, "end": { - "line": 56, - "column": 62 + "line": 79, + "column": 51 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2204, - "end": 2205, + "value": "score", + "start": 3380, + "end": 3385, "loc": { "start": { - "line": 56, - "column": 62 + "line": 79, + "column": 51 }, "end": { - "line": 56, - "column": 63 + "line": 79, + "column": 56 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "value": "team", - "start": 2205, - "end": 2209, + "value": "===", + "start": 3386, + "end": 3389, "loc": { "start": { - "line": 56, - "column": 63 + "line": 79, + "column": 57 }, "end": { - "line": 56, - "column": 67 + "line": 79, + "column": 60 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -19802,22 +29075,23 @@ "postfix": false, "binop": null }, - "start": 2209, - "end": 2210, + "value": "undefined", + "start": 3390, + "end": 3399, "loc": { "start": { - "line": 56, - "column": 67 + "line": 79, + "column": 61 }, "end": { - "line": 56, - "column": 68 + "line": 79, + "column": 70 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -19825,26 +29099,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2210, - "end": 2211, + "start": 3399, + "end": 3400, "loc": { "start": { - "line": 56, - "column": 68 + "line": 79, + "column": 70 }, "end": { - "line": 56, - "column": 69 + "line": 79, + "column": 71 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "?", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -19854,16 +29127,16 @@ "binop": null, "updateContext": null }, - "start": 2211, - "end": 2212, + "start": 3401, + "end": 3402, "loc": { "start": { - "line": 56, - "column": 69 + "line": 79, + "column": 72 }, "end": { - "line": 56, - "column": 70 + "line": 79, + "column": 73 } } }, @@ -19879,44 +29152,43 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 2212, - "end": 2213, + "value": "dataToSend", + "start": 3403, + "end": 3413, "loc": { "start": { - "line": 56, - "column": 70 + "line": 79, + "column": 74 }, - "end": { - "line": 56, - "column": 71 + "end": { + "line": 79, + "column": 84 } } }, { "type": { - "label": "*", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "*", - "start": 2214, - "end": 2215, + "start": 3413, + "end": 3414, "loc": { "start": { - "line": 56, - "column": 72 + "line": 79, + "column": 84 }, "end": { - "line": 56, - "column": 73 + "line": 79, + "column": 85 } } }, @@ -19932,24 +29204,24 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 2216, - "end": 2222, + "value": "increment", + "start": 3414, + "end": 3423, "loc": { "start": { - "line": 56, - "column": 74 + "line": 79, + "column": 85 }, "end": { - "line": 56, - "column": 80 + "line": 79, + "column": 94 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -19959,16 +29231,16 @@ "binop": null, "updateContext": null }, - "start": 2222, - "end": 2223, + "start": 3424, + "end": 3425, "loc": { "start": { - "line": 56, - "column": 80 + "line": 79, + "column": 95 }, "end": { - "line": 56, - "column": 81 + "line": 79, + "column": 96 } } }, @@ -19984,50 +29256,49 @@ "postfix": false, "binop": null }, - "value": "GRID_SPACING", - "start": 2223, - "end": 2235, + "value": "thisRoom", + "start": 3426, + "end": 3434, "loc": { "start": { - "line": 56, - "column": 81 + "line": 79, + "column": 97 }, "end": { - "line": 56, - "column": 93 + "line": 79, + "column": 105 } } }, { "type": { - "label": "*", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "*", - "start": 2236, - "end": 2237, + "start": 3434, + "end": 3435, "loc": { "start": { - "line": 56, - "column": 94 + "line": 79, + "column": 105 }, "end": { - "line": 56, - "column": 95 + "line": 79, + "column": 106 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -20035,28 +29306,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 2, - "start": 2238, - "end": 2239, + "value": "teams", + "start": 3435, + "end": 3440, "loc": { "start": { - "line": 56, - "column": 96 + "line": 79, + "column": 106 }, "end": { - "line": 56, - "column": 97 + "line": 79, + "column": 111 } } }, { "type": { - "label": ",", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20065,50 +29335,50 @@ "binop": null, "updateContext": null }, - "start": 2239, - "end": 2240, + "start": 3440, + "end": 3441, "loc": { "start": { - "line": 56, - "column": 97 + "line": 79, + "column": 111 }, "end": { - "line": 56, - "column": 98 + "line": 79, + "column": 112 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2241, - "end": 2242, + "value": "dataToSend", + "start": 3441, + "end": 3451, "loc": { "start": { - "line": 56, - "column": 99 + "line": 79, + "column": 112 }, "end": { - "line": 56, - "column": 100 + "line": 79, + "column": 122 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20117,76 +29387,75 @@ "binop": null, "updateContext": null }, - "value": "rooms", - "start": 2242, - "end": 2249, + "start": 3451, + "end": 3452, "loc": { "start": { - "line": 56, - "column": 100 + "line": 79, + "column": 122 }, "end": { - "line": 56, - "column": 107 + "line": 79, + "column": 123 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2249, - "end": 2250, + "value": "teamSlot", + "start": 3452, + "end": 3460, "loc": { "start": { - "line": 56, - "column": 107 + "line": 79, + "column": 123 }, "end": { - "line": 56, - "column": 108 + "line": 79, + "column": 131 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "room", - "start": 2251, - "end": 2255, + "start": 3460, + "end": 3461, "loc": { "start": { - "line": 56, - "column": 109 + "line": 79, + "column": 131 }, "end": { - "line": 56, - "column": 113 + "line": 79, + "column": 132 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -20196,22 +29465,22 @@ "binop": null, "updateContext": null }, - "start": 2255, - "end": 2256, + "start": 3461, + "end": 3462, "loc": { "start": { - "line": 56, - "column": 113 + "line": 79, + "column": 132 }, "end": { - "line": 56, - "column": 114 + "line": 79, + "column": 133 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -20219,46 +29488,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "players", - "start": 2257, - "end": 2266, + "value": "score", + "start": 3462, + "end": 3467, "loc": { "start": { - "line": 56, - "column": 115 + "line": 79, + "column": 133 }, "end": { - "line": 56, - "column": 124 + "line": 79, + "column": 138 } } }, { "type": { - "label": ",", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 2266, - "end": 2267, + "value": "+", + "start": 3468, + "end": 3469, "loc": { "start": { - "line": 56, - "column": 124 + "line": 79, + "column": 139 }, "end": { - "line": 56, - "column": 125 + "line": 79, + "column": 140 } } }, @@ -20274,17 +29543,17 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 2268, - "end": 2272, + "value": "dataToSend", + "start": 3470, + "end": 3480, "loc": { "start": { - "line": 56, - "column": 126 + "line": 79, + "column": 141 }, "end": { - "line": 56, - "column": 130 + "line": 79, + "column": 151 } } }, @@ -20301,16 +29570,16 @@ "binop": null, "updateContext": null }, - "start": 2272, - "end": 2273, + "start": 3480, + "end": 3481, "loc": { "start": { - "line": 56, - "column": 130 + "line": 79, + "column": 151 }, "end": { - "line": 56, - "column": 131 + "line": 79, + "column": 152 } } }, @@ -20326,17 +29595,17 @@ "postfix": false, "binop": null }, - "value": "player", - "start": 2273, - "end": 2279, + "value": "increment", + "start": 3481, + "end": 3490, "loc": { "start": { - "line": 56, - "column": 131 + "line": 79, + "column": 152 }, "end": { - "line": 56, - "column": 137 + "line": 79, + "column": 161 } } }, @@ -20353,23 +29622,23 @@ "binop": null, "updateContext": null }, - "start": 2279, - "end": 2280, + "start": 3490, + "end": 3491, "loc": { "start": { - "line": 56, - "column": 137 + "line": 79, + "column": 161 }, "end": { - "line": 56, - "column": 138 + "line": 79, + "column": 162 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -20379,25 +29648,24 @@ "binop": null, "updateContext": null }, - "value": "posX", - "start": 2281, - "end": 2287, + "start": 3492, + "end": 3493, "loc": { "start": { - "line": 56, - "column": 139 + "line": 79, + "column": 163 }, "end": { - "line": 56, - "column": 145 + "line": 79, + "column": 164 } } }, { "type": { - "label": "]", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20406,41 +29674,43 @@ "binop": null, "updateContext": null }, - "start": 2287, - "end": 2288, + "value": "rooms", + "start": 3493, + "end": 3500, "loc": { "start": { - "line": 56, - "column": 145 + "line": 79, + "column": 164 }, "end": { - "line": 56, - "column": 146 + "line": 79, + "column": 171 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2288, - "end": 2289, + "start": 3500, + "end": 3501, "loc": { "start": { - "line": 56, - "column": 146 + "line": 79, + "column": 171 }, "end": { - "line": 56, - "column": 147 + "line": 79, + "column": 172 } } }, @@ -20456,48 +29726,49 @@ "postfix": false, "binop": null }, - "value": "setField", - "start": 2293, - "end": 2301, + "value": "room", + "start": 3502, + "end": 3506, "loc": { "start": { - "line": 57, - "column": 3 + "line": 79, + "column": 173 }, "end": { - "line": 57, - "column": 11 + "line": 79, + "column": 177 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2301, - "end": 2302, + "start": 3506, + "end": 3507, "loc": { "start": { - "line": 57, - "column": 11 + "line": 79, + "column": 177 }, "end": { - "line": 57, - "column": 12 + "line": 79, + "column": 178 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -20505,26 +29776,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "GLOBAL", - "start": 2302, - "end": 2308, + "value": "teams", + "start": 3508, + "end": 3515, "loc": { "start": { - "line": 57, - "column": 12 + "line": 79, + "column": 179 }, "end": { - "line": 57, - "column": 18 + "line": 79, + "column": 186 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -20534,16 +29806,16 @@ "binop": null, "updateContext": null }, - "start": 2308, - "end": 2309, + "start": 3515, + "end": 3516, "loc": { "start": { - "line": 57, - "column": 18 + "line": 79, + "column": 186 }, "end": { - "line": 57, - "column": 19 + "line": 79, + "column": 187 } } }, @@ -20559,25 +29831,25 @@ "postfix": false, "binop": null }, - "value": "SPAWN_POINTS", - "start": 2309, - "end": 2321, + "value": "dataToSend", + "start": 3517, + "end": 3527, "loc": { "start": { - "line": 57, - "column": 19 + "line": 79, + "column": 188 }, "end": { - "line": 57, - "column": 31 + "line": 79, + "column": 198 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20586,16 +29858,16 @@ "binop": null, "updateContext": null }, - "start": 2321, - "end": 2322, + "start": 3527, + "end": 3528, "loc": { "start": { - "line": 57, - "column": 31 + "line": 79, + "column": 198 }, "end": { - "line": 57, - "column": 32 + "line": 79, + "column": 199 } } }, @@ -20611,48 +29883,49 @@ "postfix": false, "binop": null }, - "value": "getTeamNumber", - "start": 2322, - "end": 2335, + "value": "teamSlot", + "start": 3528, + "end": 3536, "loc": { "start": { - "line": 57, - "column": 32 + "line": 79, + "column": 199 }, "end": { - "line": 57, - "column": 45 + "line": 79, + "column": 207 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2335, - "end": 2336, + "start": 3536, + "end": 3537, "loc": { "start": { - "line": 57, - "column": 45 + "line": 79, + "column": 207 }, "end": { - "line": 57, - "column": 46 + "line": 79, + "column": 208 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -20660,26 +29933,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "room", - "start": 2336, - "end": 2340, + "value": "score", + "start": 3538, + "end": 3545, "loc": { "start": { - "line": 57, - "column": 46 + "line": 79, + "column": 209 }, "end": { - "line": 57, - "column": 50 + "line": 79, + "column": 216 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -20689,24 +29963,24 @@ "binop": null, "updateContext": null }, - "start": 2340, - "end": 2341, + "start": 3545, + "end": 3546, "loc": { "start": { - "line": 57, - "column": 50 + "line": 79, + "column": 216 }, "end": { - "line": 57, - "column": 51 + "line": 79, + "column": 217 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20714,77 +29988,76 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 2342, - "end": 2352, + "start": 3546, + "end": 3547, "loc": { "start": { - "line": 57, - "column": 52 + "line": 79, + "column": 217 }, "end": { - "line": 57, - "column": 62 + "line": 79, + "column": 218 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2352, - "end": 2353, + "value": "socket", + "start": 3554, + "end": 3560, "loc": { "start": { - "line": 57, - "column": 62 + "line": 81, + "column": 5 }, "end": { - "line": 57, - "column": 63 + "line": 81, + "column": 11 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "team", - "start": 2353, - "end": 2357, + "start": 3560, + "end": 3561, "loc": { "start": { - "line": 57, - "column": 63 + "line": 81, + "column": 11 }, "end": { - "line": 57, - "column": 67 + "line": 81, + "column": 12 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20792,76 +30065,76 @@ "postfix": false, "binop": null }, - "start": 2357, - "end": 2358, + "value": "to", + "start": 3561, + "end": 3563, "loc": { "start": { - "line": 57, - "column": 67 + "line": 81, + "column": 12 }, "end": { - "line": 57, - "column": 68 + "line": 81, + "column": 14 } } }, { "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2358, - "end": 2359, + "start": 3563, + "end": 3564, "loc": { "start": { - "line": 57, - "column": 68 + "line": 81, + "column": 14 }, "end": { - "line": 57, - "column": 69 + "line": 81, + "column": 15 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2359, - "end": 2360, + "value": "room", + "start": 3564, + "end": 3568, "loc": { "start": { - "line": 57, - "column": 69 + "line": 81, + "column": 15 }, "end": { - "line": 57, - "column": 70 + "line": 81, + "column": 19 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20869,44 +30142,42 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 2360, - "end": 2361, + "start": 3568, + "end": 3569, "loc": { "start": { - "line": 57, - "column": 70 + "line": 81, + "column": 19 }, "end": { - "line": 57, - "column": 71 + "line": 81, + "column": 20 } } }, { "type": { - "label": "*", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "*", - "start": 2362, - "end": 2363, + "start": 3569, + "end": 3570, "loc": { "start": { - "line": 57, - "column": 72 + "line": 81, + "column": 20 }, "end": { - "line": 57, - "column": 73 + "line": 81, + "column": 21 } } }, @@ -20922,17 +30193,17 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 2364, - "end": 2370, + "value": "broadcast", + "start": 3570, + "end": 3579, "loc": { "start": { - "line": 57, - "column": 74 + "line": 81, + "column": 21 }, "end": { - "line": 57, - "column": 80 + "line": 81, + "column": 30 } } }, @@ -20949,16 +30220,16 @@ "binop": null, "updateContext": null }, - "start": 2370, - "end": 2371, + "start": 3579, + "end": 3580, "loc": { "start": { - "line": 57, - "column": 80 + "line": 81, + "column": 30 }, "end": { - "line": 57, - "column": 81 + "line": 81, + "column": 31 } } }, @@ -20974,50 +30245,48 @@ "postfix": false, "binop": null }, - "value": "GRID_SPACING", - "start": 2371, - "end": 2383, + "value": "emit", + "start": 3580, + "end": 3584, "loc": { "start": { - "line": 57, - "column": 81 + "line": 81, + "column": 31 }, "end": { - "line": 57, - "column": 93 + "line": 81, + "column": 35 } } }, { "type": { - "label": "*", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, - "updateContext": null + "binop": null }, - "value": "*", - "start": 2384, - "end": 2385, + "start": 3584, + "end": 3585, "loc": { "start": { - "line": 57, - "column": 94 + "line": 81, + "column": 35 }, "end": { - "line": 57, - "column": 95 + "line": 81, + "column": 36 } } }, { "type": { - "label": "num", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -21028,17 +30297,17 @@ "binop": null, "updateContext": null }, - "value": 2, - "start": 2386, - "end": 2387, + "value": "serverSendScoreUpdate", + "start": 3585, + "end": 3608, "loc": { "start": { - "line": 57, - "column": 96 + "line": 81, + "column": 36 }, "end": { - "line": 57, - "column": 97 + "line": 81, + "column": 59 } } }, @@ -21055,48 +30324,73 @@ "binop": null, "updateContext": null }, - "start": 2387, - "end": 2388, + "start": 3608, + "end": 3609, "loc": { "start": { - "line": 57, - "column": 97 + "line": 81, + "column": 59 }, "end": { - "line": 57, - "column": 98 + "line": 81, + "column": 60 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null + }, + "value": "dataToSend", + "start": 3610, + "end": 3620, + "loc": { + "start": { + "line": 81, + "column": 61 + }, + "end": { + "line": 81, + "column": 71 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null }, - "start": 2389, - "end": 2390, + "start": 3620, + "end": 3621, "loc": { "start": { - "line": 57, - "column": 99 + "line": 81, + "column": 71 }, "end": { - "line": 57, - "column": 100 + "line": 81, + "column": 72 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -21104,27 +30398,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "rooms", - "start": 2390, - "end": 2397, + "value": "socket", + "start": 3627, + "end": 3633, "loc": { "start": { - "line": 57, - "column": 100 + "line": 82, + "column": 5 }, "end": { - "line": 57, - "column": 107 + "line": 82, + "column": 11 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -21134,16 +30427,16 @@ "binop": null, "updateContext": null }, - "start": 2397, - "end": 2398, + "start": 3633, + "end": 3634, "loc": { "start": { - "line": 57, - "column": 107 + "line": 82, + "column": 11 }, "end": { - "line": 57, - "column": 108 + "line": 82, + "column": 12 } } }, @@ -21159,43 +30452,42 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 2399, - "end": 2403, + "value": "emit", + "start": 3634, + "end": 3638, "loc": { "start": { - "line": 57, - "column": 109 + "line": 82, + "column": 12 }, "end": { - "line": 57, - "column": 113 + "line": 82, + "column": 16 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2403, - "end": 2404, + "start": 3638, + "end": 3639, "loc": { "start": { - "line": 57, - "column": 113 + "line": 82, + "column": 16 }, "end": { - "line": 57, - "column": 114 + "line": 82, + "column": 17 } } }, @@ -21212,17 +30504,17 @@ "binop": null, "updateContext": null }, - "value": "players", - "start": 2405, - "end": 2414, + "value": "serverSendScoreUpdate", + "start": 3639, + "end": 3662, "loc": { "start": { - "line": 57, - "column": 115 + "line": 82, + "column": 17 }, "end": { - "line": 57, - "column": 124 + "line": 82, + "column": 40 } } }, @@ -21239,16 +30531,16 @@ "binop": null, "updateContext": null }, - "start": 2414, - "end": 2415, + "start": 3662, + "end": 3663, "loc": { "start": { - "line": 57, - "column": 124 + "line": 82, + "column": 40 }, "end": { - "line": 57, - "column": 125 + "line": 82, + "column": 41 } } }, @@ -21264,23 +30556,23 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 2416, - "end": 2420, + "value": "dataToSend", + "start": 3664, + "end": 3674, "loc": { "start": { - "line": 57, - "column": 126 + "line": 82, + "column": 42 }, "end": { - "line": 57, - "column": 130 + "line": 82, + "column": 52 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -21288,77 +30580,77 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2420, - "end": 2421, + "start": 3674, + "end": 3675, "loc": { "start": { - "line": 57, - "column": 130 + "line": 82, + "column": 52 }, "end": { - "line": 57, - "column": 131 + "line": 82, + "column": 53 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "player", - "start": 2421, - "end": 2427, + "value": "if", + "start": 3681, + "end": 3683, "loc": { "start": { - "line": 57, - "column": 131 + "line": 83, + "column": 5 }, "end": { - "line": 57, - "column": 137 + "line": 83, + "column": 7 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2427, - "end": 2428, + "start": 3684, + "end": 3685, "loc": { "start": { - "line": 57, - "column": 137 + "line": 83, + "column": 8 }, "end": { - "line": 57, - "column": 138 + "line": 83, + "column": 9 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -21366,28 +30658,55 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": null + }, + "value": "max", + "start": 3685, + "end": 3688, + "loc": { + "start": { + "line": 83, + "column": 9 + }, + "end": { + "line": 83, + "column": 12 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, "updateContext": null }, - "value": "posY", - "start": 2429, - "end": 2435, + "value": "===", + "start": 3689, + "end": 3692, "loc": { "start": { - "line": 57, - "column": 139 + "line": 83, + "column": 13 }, "end": { - "line": 57, - "column": 145 + "line": 83, + "column": 16 } } }, { "type": { - "label": "]", + "label": "null", + "keyword": "null", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -21396,41 +30715,44 @@ "binop": null, "updateContext": null }, - "start": 2435, - "end": 2436, + "value": "null", + "start": 3693, + "end": 3697, "loc": { "start": { - "line": 57, - "column": 145 + "line": 83, + "column": 17 }, "end": { - "line": 57, - "column": 146 + "line": 83, + "column": 21 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "||", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 1, + "updateContext": null }, - "start": 2436, - "end": 2437, + "value": "||", + "start": 3698, + "end": 3700, "loc": { "start": { - "line": 57, - "column": 146 + "line": 83, + "column": 22 }, "end": { - "line": 57, - "column": 147 + "line": 83, + "column": 24 } } }, @@ -21446,42 +30768,43 @@ "postfix": false, "binop": null }, - "value": "setField", - "start": 2441, - "end": 2449, + "value": "thisPlayer", + "start": 3701, + "end": 3711, "loc": { "start": { - "line": 58, - "column": 3 + "line": 83, + "column": 25 }, "end": { - "line": 58, - "column": 11 + "line": 83, + "column": 35 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2449, - "end": 2450, + "start": 3711, + "end": 3712, "loc": { "start": { - "line": 58, - "column": 11 + "line": 83, + "column": 35 }, "end": { - "line": 58, - "column": 12 + "line": 83, + "column": 36 } } }, @@ -21497,25 +30820,25 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 2450, - "end": 2456, + "value": "damagedBy", + "start": 3712, + "end": 3721, "loc": { "start": { - "line": 58, - "column": 12 + "line": 83, + "column": 36 }, "end": { - "line": 58, - "column": 18 + "line": 83, + "column": 45 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -21524,16 +30847,16 @@ "binop": null, "updateContext": null }, - "start": 2456, - "end": 2457, + "start": 3721, + "end": 3722, "loc": { "start": { - "line": 58, - "column": 18 + "line": 83, + "column": 45 }, "end": { - "line": 58, - "column": 19 + "line": 83, + "column": 46 } } }, @@ -21549,24 +30872,24 @@ "postfix": false, "binop": null }, - "value": "MAX_HEALTH", - "start": 2457, - "end": 2467, + "value": "pl", + "start": 3722, + "end": 3724, "loc": { "start": { - "line": 58, - "column": 19 + "line": 83, + "column": 46 }, "end": { - "line": 58, - "column": 29 + "line": 83, + "column": 48 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -21576,48 +30899,49 @@ "binop": null, "updateContext": null }, - "start": 2467, - "end": 2468, + "start": 3724, + "end": 3725, "loc": { "start": { - "line": 58, - "column": 29 + "line": 83, + "column": 48 }, "end": { - "line": 58, - "column": 30 + "line": 83, + "column": 49 } } }, { "type": { - "label": "[", + "label": "", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "start": 2469, - "end": 2470, + "value": ">", + "start": 3726, + "end": 3727, "loc": { "start": { - "line": 58, - "column": 31 + "line": 83, + "column": 50 }, "end": { - "line": 58, - "column": 32 + "line": 83, + "column": 51 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -21625,27 +30949,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "rooms", - "start": 2470, - "end": 2477, + "value": "thisPlayer", + "start": 3728, + "end": 3738, "loc": { "start": { - "line": 58, - "column": 32 + "line": 83, + "column": 52 }, "end": { - "line": 58, - "column": 39 + "line": 83, + "column": 62 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -21655,16 +30978,16 @@ "binop": null, "updateContext": null }, - "start": 2477, - "end": 2478, + "start": 3738, + "end": 3739, "loc": { "start": { - "line": 58, - "column": 39 + "line": 83, + "column": 62 }, "end": { - "line": 58, - "column": 40 + "line": 83, + "column": 63 } } }, @@ -21680,25 +31003,25 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 2479, - "end": 2483, + "value": "damagedBy", + "start": 3739, + "end": 3748, "loc": { "start": { - "line": 58, - "column": 41 + "line": 83, + "column": 63 }, "end": { - "line": 58, - "column": 45 + "line": 83, + "column": 72 } } }, { "type": { - "label": ",", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -21707,22 +31030,22 @@ "binop": null, "updateContext": null }, - "start": 2483, - "end": 2484, + "start": 3748, + "end": 3749, "loc": { "start": { - "line": 58, - "column": 45 + "line": 83, + "column": 72 }, "end": { - "line": 58, - "column": 46 + "line": 83, + "column": 73 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -21730,27 +31053,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "players", - "start": 2485, - "end": 2494, + "value": "max", + "start": 3749, + "end": 3752, "loc": { "start": { - "line": 58, - "column": 47 + "line": 83, + "column": 73 }, "end": { - "line": 58, - "column": 56 + "line": 83, + "column": 76 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -21760,24 +31082,24 @@ "binop": null, "updateContext": null }, - "start": 2494, - "end": 2495, + "start": 3752, + "end": 3753, "loc": { "start": { - "line": 58, - "column": 56 + "line": 83, + "column": 76 }, "end": { - "line": 58, - "column": 57 + "line": 83, + "column": 77 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -21785,43 +31107,41 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 2496, - "end": 2500, + "start": 3753, + "end": 3754, "loc": { "start": { - "line": 58, - "column": 58 + "line": 83, + "column": 77 }, "end": { - "line": 58, - "column": 62 + "line": 83, + "column": 78 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2500, - "end": 2501, + "start": 3755, + "end": 3756, "loc": { "start": { - "line": 58, - "column": 62 + "line": 83, + "column": 79 }, "end": { - "line": 58, - "column": 63 + "line": 83, + "column": 80 } } }, @@ -21837,49 +31157,50 @@ "postfix": false, "binop": null }, - "value": "player", - "start": 2501, - "end": 2507, + "value": "max", + "start": 3763, + "end": 3766, "loc": { "start": { - "line": 58, - "column": 63 + "line": 84, + "column": 6 }, "end": { - "line": 58, - "column": 69 + "line": 84, + "column": 9 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 2507, - "end": 2508, + "value": "=", + "start": 3767, + "end": 3768, "loc": { "start": { - "line": 58, - "column": 69 + "line": 84, + "column": 10 }, "end": { - "line": 58, - "column": 70 + "line": 84, + "column": 11 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -21887,26 +31208,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "health", - "start": 2509, - "end": 2517, + "value": "pl", + "start": 3769, + "end": 3771, "loc": { "start": { - "line": 58, - "column": 71 + "line": 84, + "column": 12 }, "end": { - "line": 58, - "column": 79 + "line": 84, + "column": 14 } } }, { "type": { - "label": "]", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -21914,25 +31234,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2517, - "end": 2518, + "start": 3777, + "end": 3778, "loc": { "start": { - "line": 58, - "column": 79 + "line": 85, + "column": 5 }, "end": { - "line": 58, - "column": 80 + "line": 85, + "column": 6 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -21942,16 +31261,32 @@ "postfix": false, "binop": null }, - "start": 2518, - "end": 2519, + "start": 3783, + "end": 3784, "loc": { "start": { - "line": 58, - "column": 80 + "line": 86, + "column": 4 }, "end": { - "line": 58, - "column": 81 + "line": 86, + "column": 5 + } + } + }, + { + "type": "CommentLine", + "value": " Add to score of person who dealt the most damage", + "start": 3790, + "end": 3841, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 55 } } }, @@ -21967,49 +31302,49 @@ "postfix": false, "binop": null }, - "value": "setField", - "start": 2523, - "end": 2531, + "value": "dataToSend", + "start": 3846, + "end": 3856, "loc": { "start": { - "line": 59, - "column": 3 + "line": 89, + "column": 4 }, "end": { - "line": 59, - "column": 11 + "line": 89, + "column": 14 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2531, - "end": 2532, + "start": 3856, + "end": 3857, "loc": { "start": { - "line": 59, - "column": 11 + "line": 89, + "column": 14 }, "end": { - "line": 59, - "column": 12 + "line": 89, + "column": 15 } } }, { "type": { - "label": "true", - "keyword": "true", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -22017,78 +31352,78 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "true", - "start": 2532, - "end": 2536, + "value": "player", + "start": 3857, + "end": 3863, "loc": { "start": { - "line": 59, - "column": 12 + "line": 89, + "column": 15 }, "end": { - "line": 59, - "column": 16 + "line": 89, + "column": 21 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 2536, - "end": 2537, + "value": "=", + "start": 3864, + "end": 3865, "loc": { "start": { - "line": 59, - "column": 16 + "line": 89, + "column": 22 }, "end": { - "line": 59, - "column": 17 + "line": 89, + "column": 23 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2538, - "end": 2539, + "value": "max", + "start": 3866, + "end": 3869, "loc": { "start": { - "line": 59, - "column": 18 + "line": 89, + "column": 24 }, "end": { - "line": 59, - "column": 19 + "line": 89, + "column": 27 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -22096,27 +31431,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "rooms", - "start": 2539, - "end": 2546, + "value": "dataToSend", + "start": 3874, + "end": 3884, "loc": { "start": { - "line": 59, - "column": 19 + "line": 90, + "column": 4 }, "end": { - "line": 59, - "column": 26 + "line": 90, + "column": 14 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -22126,16 +31460,16 @@ "binop": null, "updateContext": null }, - "start": 2546, - "end": 2547, + "start": 3884, + "end": 3885, "loc": { "start": { - "line": 59, - "column": 26 + "line": 90, + "column": 14 }, "end": { - "line": 59, - "column": 27 + "line": 90, + "column": 15 } } }, @@ -22151,49 +31485,50 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 2548, - "end": 2552, + "value": "increment", + "start": 3885, + "end": 3894, "loc": { "start": { - "line": 59, - "column": 28 + "line": 90, + "column": 15 }, "end": { - "line": 59, - "column": 32 + "line": 90, + "column": 24 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 2552, - "end": 2553, + "value": "=", + "start": 3895, + "end": 3896, "loc": { "start": { - "line": 59, - "column": 32 + "line": 90, + "column": 25 }, "end": { - "line": 59, - "column": 33 + "line": 90, + "column": 26 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -22201,27 +31536,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "players", - "start": 2554, - "end": 2563, + "value": "GLOBAL", + "start": 3897, + "end": 3903, "loc": { "start": { - "line": 59, - "column": 34 + "line": 90, + "column": 27 }, "end": { - "line": 59, - "column": 43 + "line": 90, + "column": 33 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -22231,16 +31565,16 @@ "binop": null, "updateContext": null }, - "start": 2563, - "end": 2564, + "start": 3903, + "end": 3904, "loc": { "start": { - "line": 59, - "column": 43 + "line": 90, + "column": 33 }, "end": { - "line": 59, - "column": 44 + "line": 90, + "column": 34 } } }, @@ -22256,43 +31590,44 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 2565, - "end": 2569, + "value": "KILL_SCORE", + "start": 3904, + "end": 3914, "loc": { "start": { - "line": 59, - "column": 45 + "line": 90, + "column": 34 }, "end": { - "line": 59, - "column": 49 + "line": 90, + "column": 44 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 2569, - "end": 2570, + "value": "-", + "start": 3915, + "end": 3916, "loc": { "start": { - "line": 59, - "column": 49 + "line": 90, + "column": 45 }, "end": { - "line": 59, - "column": 50 + "line": 90, + "column": 46 } } }, @@ -22308,24 +31643,24 @@ "postfix": false, "binop": null }, - "value": "player", - "start": 2570, - "end": 2576, + "value": "GLOBAL", + "start": 3917, + "end": 3923, "loc": { "start": { - "line": 59, - "column": 50 + "line": 90, + "column": 47 }, "end": { - "line": 59, - "column": 56 + "line": 90, + "column": 53 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -22335,22 +31670,22 @@ "binop": null, "updateContext": null }, - "start": 2576, - "end": 2577, + "start": 3923, + "end": 3924, "loc": { "start": { - "line": 59, - "column": 56 + "line": 90, + "column": 53 }, "end": { - "line": 59, - "column": 57 + "line": 90, + "column": 54 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -22358,52 +31693,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "dead", - "start": 2578, - "end": 2584, + "value": "ASSIST_SCORE", + "start": 3924, + "end": 3936, "loc": { "start": { - "line": 59, - "column": 58 + "line": 90, + "column": 54 }, "end": { - "line": 59, - "column": 64 + "line": 90, + "column": 66 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2584, - "end": 2585, + "value": "dataToSend", + "start": 3941, + "end": 3951, "loc": { "start": { - "line": 59, - "column": 64 + "line": 91, + "column": 4 }, "end": { - "line": 59, - "column": 65 + "line": 91, + "column": 14 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -22411,87 +31745,100 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2585, - "end": 2586, + "start": 3951, + "end": 3952, "loc": { "start": { - "line": 59, - "column": 65 + "line": 91, + "column": 14 }, "end": { - "line": 59, - "column": 66 + "line": 91, + "column": 15 } } }, { - "type": "CommentLine", - "value": " This will be reset when it has been verified that the player has been placed at the proper spawnpoint", - "start": 2587, - "end": 2691, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "kill", + "start": 3952, + "end": 3956, "loc": { "start": { - "line": 59, - "column": 67 + "line": 91, + "column": 15 }, "end": { - "line": 59, - "column": 171 + "line": 91, + "column": 19 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "if", - "start": 2696, - "end": 2698, + "value": "=", + "start": 3957, + "end": 3958, "loc": { "start": { - "line": 61, - "column": 3 + "line": 91, + "column": 20 }, "end": { - "line": 61, - "column": 5 + "line": 91, + "column": 21 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "true", + "keyword": "true", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2699, - "end": 2700, + "value": "true", + "start": 3959, + "end": 3963, "loc": { "start": { - "line": 61, - "column": 6 + "line": 91, + "column": 22 }, "end": { - "line": 61, - "column": 7 + "line": 91, + "column": 26 } } }, @@ -22508,16 +31855,16 @@ "binop": null }, "value": "socket", - "start": 2700, - "end": 2706, + "start": 3968, + "end": 3974, "loc": { "start": { - "line": 61, - "column": 7 + "line": 92, + "column": 4 }, "end": { - "line": 61, - "column": 13 + "line": 92, + "column": 10 } } }, @@ -22534,16 +31881,16 @@ "binop": null, "updateContext": null }, - "start": 2706, - "end": 2707, + "start": 3974, + "end": 3975, "loc": { "start": { - "line": 61, - "column": 13 + "line": 92, + "column": 10 }, "end": { - "line": 61, - "column": 14 + "line": 92, + "column": 11 } } }, @@ -22559,52 +31906,76 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 2707, - "end": 2709, + "value": "to", + "start": 3975, + "end": 3977, "loc": { "start": { - "line": 61, - "column": 14 + "line": 92, + "column": 11 + }, + "end": { + "line": 92, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3977, + "end": 3978, + "loc": { + "start": { + "line": 92, + "column": 13 }, "end": { - "line": 61, - "column": 16 + "line": 92, + "column": 14 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "===", - "start": 2710, - "end": 2713, + "value": "room", + "start": 3978, + "end": 3982, "loc": { "start": { - "line": 61, - "column": 17 + "line": 92, + "column": 14 }, "end": { - "line": 61, - "column": 20 + "line": 92, + "column": 18 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -22612,17 +31983,16 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 2714, - "end": 2718, + "start": 3982, + "end": 3983, "loc": { "start": { - "line": 61, - "column": 21 + "line": 92, + "column": 18 }, "end": { - "line": 61, - "column": 25 + "line": 92, + "column": 19 } } }, @@ -22639,16 +32009,16 @@ "binop": null, "updateContext": null }, - "start": 2718, - "end": 2719, + "start": 3983, + "end": 3984, "loc": { "start": { - "line": 61, - "column": 25 + "line": 92, + "column": 19 }, "end": { - "line": 61, - "column": 26 + "line": 92, + "column": 20 } } }, @@ -22664,23 +32034,23 @@ "postfix": false, "binop": null }, - "value": "player", - "start": 2719, - "end": 2725, + "value": "broadcast", + "start": 3984, + "end": 3993, "loc": { "start": { - "line": 61, - "column": 26 + "line": 92, + "column": 20 }, "end": { - "line": 61, - "column": 32 + "line": 92, + "column": 29 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -22688,25 +32058,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2725, - "end": 2726, + "start": 3993, + "end": 3994, "loc": { "start": { - "line": 61, - "column": 32 + "line": 92, + "column": 29 }, "end": { - "line": 61, - "column": 33 + "line": 92, + "column": 30 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -22715,50 +32086,48 @@ "postfix": false, "binop": null }, - "start": 2727, - "end": 2728, + "value": "emit", + "start": 3994, + "end": 3998, "loc": { "start": { - "line": 61, - "column": 34 + "line": 92, + "column": 30 }, "end": { - "line": 61, - "column": 35 + "line": 92, + "column": 34 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 2733, - "end": 2736, + "start": 3998, + "end": 3999, "loc": { "start": { - "line": 62, - "column": 4 + "line": 92, + "column": 34 }, "end": { - "line": 62, - "column": 7 + "line": 92, + "column": 35 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -22766,46 +32135,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pl", - "start": 2737, - "end": 2739, + "value": "serverSendScoreUpdate", + "start": 3999, + "end": 4022, "loc": { "start": { - "line": 62, - "column": 8 + "line": 92, + "column": 35 }, "end": { - "line": 62, - "column": 10 + "line": 92, + "column": 58 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 2740, - "end": 2741, + "start": 4022, + "end": 4023, "loc": { "start": { - "line": 62, - "column": 11 + "line": 92, + "column": 58 }, "end": { - "line": 62, - "column": 12 + "line": 92, + "column": 59 } } }, @@ -22821,25 +32190,25 @@ "postfix": false, "binop": null }, - "value": "getField", - "start": 2742, - "end": 2750, + "value": "dataToSend", + "start": 4024, + "end": 4034, "loc": { "start": { - "line": 62, - "column": 13 + "line": 92, + "column": 60 }, "end": { - "line": 62, - "column": 21 + "line": 92, + "column": 70 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -22847,48 +32216,22 @@ "postfix": false, "binop": null }, - "start": 2750, - "end": 2751, - "loc": { - "start": { - "line": 62, - "column": 21 - }, - "end": { - "line": 62, - "column": 22 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2751, - "end": 2752, + "start": 4034, + "end": 4035, "loc": { "start": { - "line": 62, - "column": 22 + "line": 92, + "column": 70 }, "end": { - "line": 62, - "column": 23 + "line": 92, + "column": 71 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -22896,27 +32239,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "rooms", - "start": 2752, - "end": 2759, + "value": "socket", + "start": 4040, + "end": 4046, "loc": { "start": { - "line": 62, - "column": 23 + "line": 93, + "column": 4 }, "end": { - "line": 62, - "column": 30 + "line": 93, + "column": 10 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -22926,16 +32268,16 @@ "binop": null, "updateContext": null }, - "start": 2759, - "end": 2760, + "start": 4046, + "end": 4047, "loc": { "start": { - "line": 62, - "column": 30 + "line": 93, + "column": 10 }, "end": { - "line": 62, - "column": 31 + "line": 93, + "column": 11 } } }, @@ -22951,43 +32293,42 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 2761, - "end": 2765, + "value": "emit", + "start": 4047, + "end": 4051, "loc": { "start": { - "line": 62, - "column": 32 + "line": 93, + "column": 11 }, "end": { - "line": 62, - "column": 36 + "line": 93, + "column": 15 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2765, - "end": 2766, + "start": 4051, + "end": 4052, "loc": { "start": { - "line": 62, - "column": 36 + "line": 93, + "column": 15 }, "end": { - "line": 62, - "column": 37 + "line": 93, + "column": 16 } } }, @@ -23004,17 +32345,17 @@ "binop": null, "updateContext": null }, - "value": "players", - "start": 2767, - "end": 2776, + "value": "serverSendScoreUpdate", + "start": 4052, + "end": 4075, "loc": { "start": { - "line": 62, - "column": 38 + "line": 93, + "column": 16 }, "end": { - "line": 62, - "column": 47 + "line": 93, + "column": 39 } } }, @@ -23031,16 +32372,16 @@ "binop": null, "updateContext": null }, - "start": 2776, - "end": 2777, + "start": 4075, + "end": 4076, "loc": { "start": { - "line": 62, - "column": 47 + "line": 93, + "column": 39 }, "end": { - "line": 62, - "column": 48 + "line": 93, + "column": 40 } } }, @@ -23056,23 +32397,23 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 2778, - "end": 2782, + "value": "dataToSend", + "start": 4077, + "end": 4087, "loc": { "start": { - "line": 62, - "column": 49 + "line": 93, + "column": 41 }, "end": { - "line": 62, - "column": 53 + "line": 93, + "column": 51 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -23080,79 +32421,68 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2782, - "end": 2783, + "start": 4087, + "end": 4088, "loc": { "start": { - "line": 62, - "column": 53 + "line": 93, + "column": 51 }, "end": { - "line": 62, - "column": 54 + "line": 93, + "column": 52 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "player", - "start": 2783, - "end": 2789, + "type": "CommentLine", + "value": " Add to team score", + "start": 4094, + "end": 4114, "loc": { "start": { - "line": 62, - "column": 54 + "line": 95, + "column": 4 }, "end": { - "line": 62, - "column": 60 + "line": 95, + "column": 24 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2789, - "end": 2790, + "value": "incrementField", + "start": 4119, + "end": 4133, "loc": { "start": { - "line": 62, - "column": 60 + "line": 96, + "column": 4 }, "end": { - "line": 62, - "column": 61 + "line": 96, + "column": 18 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -23160,16 +32490,16 @@ "postfix": false, "binop": null }, - "start": 2790, - "end": 2791, + "start": 4133, + "end": 4134, "loc": { "start": { - "line": 62, - "column": 61 + "line": 96, + "column": 18 }, "end": { - "line": 62, - "column": 62 + "line": 96, + "column": 19 } } }, @@ -23185,17 +32515,17 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 2796, - "end": 2802, + "value": "dataToSend", + "start": 4134, + "end": 4144, "loc": { "start": { - "line": 63, - "column": 4 + "line": 96, + "column": 19 }, "end": { - "line": 63, - "column": 10 + "line": 96, + "column": 29 } } }, @@ -23212,16 +32542,16 @@ "binop": null, "updateContext": null }, - "start": 2802, - "end": 2803, + "start": 4144, + "end": 4145, "loc": { "start": { - "line": 63, - "column": 10 + "line": 96, + "column": 29 }, "end": { - "line": 63, - "column": 11 + "line": 96, + "column": 30 } } }, @@ -23237,49 +32567,50 @@ "postfix": false, "binop": null }, - "value": "emit", - "start": 2803, - "end": 2807, + "value": "increment", + "start": 4145, + "end": 4154, "loc": { "start": { - "line": 63, - "column": 11 + "line": 96, + "column": 30 }, "end": { - "line": 63, - "column": 15 + "line": 96, + "column": 39 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2807, - "end": 2808, + "start": 4154, + "end": 4155, "loc": { "start": { - "line": 63, - "column": 15 + "line": 96, + "column": 39 }, "end": { - "line": 63, - "column": 16 + "line": 96, + "column": 40 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -23289,25 +32620,24 @@ "binop": null, "updateContext": null }, - "value": "serverSendPlayerDeath", - "start": 2808, - "end": 2831, + "start": 4156, + "end": 4157, "loc": { "start": { - "line": 63, - "column": 16 + "line": 96, + "column": 41 }, "end": { - "line": 63, - "column": 39 + "line": 96, + "column": 42 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -23316,41 +32646,43 @@ "binop": null, "updateContext": null }, - "start": 2831, - "end": 2832, + "value": "rooms", + "start": 4157, + "end": 4164, "loc": { "start": { - "line": 63, - "column": 39 + "line": 96, + "column": 42 }, "end": { - "line": 63, - "column": 40 + "line": 96, + "column": 49 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2833, - "end": 2834, + "start": 4164, + "end": 4165, "loc": { "start": { - "line": 63, - "column": 41 + "line": 96, + "column": 49 }, "end": { - "line": 63, - "column": 42 + "line": 96, + "column": 50 } } }, @@ -23366,23 +32698,23 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 2835, - "end": 2839, + "value": "room", + "start": 4166, + "end": 4170, "loc": { "start": { - "line": 63, - "column": 43 + "line": 96, + "column": 51 }, "end": { - "line": 63, - "column": 47 + "line": 96, + "column": 55 } } }, { "type": { - "label": ":", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -23393,22 +32725,22 @@ "binop": null, "updateContext": null }, - "start": 2839, - "end": 2840, + "start": 4170, + "end": 4171, "loc": { "start": { - "line": 63, - "column": 47 + "line": 96, + "column": 55 }, "end": { - "line": 63, - "column": 48 + "line": 96, + "column": 56 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -23416,26 +32748,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pl", - "start": 2841, - "end": 2843, + "value": "teams", + "start": 4172, + "end": 4179, "loc": { "start": { - "line": 63, - "column": 49 + "line": 96, + "column": 57 }, "end": { - "line": 63, - "column": 51 + "line": 96, + "column": 64 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -23445,16 +32778,16 @@ "binop": null, "updateContext": null }, - "start": 2843, - "end": 2844, + "start": 4179, + "end": 4180, "loc": { "start": { - "line": 63, - "column": 51 + "line": 96, + "column": 64 }, "end": { - "line": 63, - "column": 52 + "line": 96, + "column": 65 } } }, @@ -23470,24 +32803,24 @@ "postfix": false, "binop": null }, - "value": "posX", - "start": 2844, - "end": 2848, + "value": "dataToSend", + "start": 4181, + "end": 4191, "loc": { "start": { - "line": 63, - "column": 52 + "line": 96, + "column": 66 }, "end": { - "line": 63, - "column": 56 + "line": 96, + "column": 76 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -23497,16 +32830,16 @@ "binop": null, "updateContext": null }, - "start": 2848, - "end": 2849, + "start": 4191, + "end": 4192, "loc": { "start": { - "line": 63, - "column": 56 + "line": 96, + "column": 76 }, "end": { - "line": 63, - "column": 57 + "line": 96, + "column": 77 } } }, @@ -23522,23 +32855,23 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 2850, - "end": 2854, + "value": "teamSlot", + "start": 4192, + "end": 4200, "loc": { "start": { - "line": 63, - "column": 58 + "line": 96, + "column": 77 }, "end": { - "line": 63, - "column": 62 + "line": 96, + "column": 85 } } }, { "type": { - "label": ":", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -23549,22 +32882,22 @@ "binop": null, "updateContext": null }, - "start": 2854, - "end": 2855, + "start": 4200, + "end": 4201, "loc": { "start": { - "line": 63, - "column": 62 + "line": 96, + "column": 85 }, "end": { - "line": 63, - "column": 63 + "line": 96, + "column": 86 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -23572,25 +32905,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pl", - "start": 2856, - "end": 2858, + "value": "score", + "start": 4202, + "end": 4209, "loc": { "start": { - "line": 63, - "column": 64 + "line": 96, + "column": 87 }, "end": { - "line": 63, - "column": 66 + "line": 96, + "column": 94 } } }, { "type": { - "label": ".", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -23601,24 +32935,24 @@ "binop": null, "updateContext": null }, - "start": 2858, - "end": 2859, + "start": 4209, + "end": 4210, "loc": { "start": { - "line": 63, - "column": 66 + "line": 96, + "column": 94 }, "end": { - "line": 63, - "column": 67 + "line": 96, + "column": 95 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -23626,50 +32960,67 @@ "postfix": false, "binop": null }, - "value": "posY", - "start": 2859, - "end": 2863, + "start": 4210, + "end": 4211, "loc": { "start": { - "line": 63, - "column": 67 + "line": 96, + "column": 95 }, "end": { - "line": 63, - "column": 71 + "line": 96, + "column": 96 + } + } + }, + { + "type": "CommentLine", + "value": " Clear damagedBy values", + "start": 4217, + "end": 4242, + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 98, + "column": 29 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "for", + "keyword": "for", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, - "isLoop": false, + "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 2863, - "end": 2864, + "value": "for", + "start": 4247, + "end": 4250, "loc": { "start": { - "line": 63, - "column": 71 + "line": 99, + "column": 4 }, "end": { - "line": 63, - "column": 72 + "line": 99, + "column": 7 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -23678,24 +33029,24 @@ "postfix": false, "binop": null }, - "value": "vx", - "start": 2865, - "end": 2867, + "start": 4251, + "end": 4252, "loc": { "start": { - "line": 63, - "column": 73 + "line": 99, + "column": 8 }, "end": { - "line": 63, - "column": 75 + "line": 99, + "column": 9 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -23705,16 +33056,17 @@ "binop": null, "updateContext": null }, - "start": 2867, - "end": 2868, + "value": "let", + "start": 4252, + "end": 4255, "loc": { "start": { - "line": 63, - "column": 75 + "line": 99, + "column": 9 }, "end": { - "line": 63, - "column": 76 + "line": 99, + "column": 12 } } }, @@ -23731,42 +33083,44 @@ "binop": null }, "value": "pl", - "start": 2869, - "end": 2871, + "start": 4256, + "end": 4258, "loc": { "start": { - "line": 63, - "column": 77 + "line": 99, + "column": 13 }, "end": { - "line": 63, - "column": 79 + "line": 99, + "column": 15 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "in", + "keyword": "in", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "start": 2871, - "end": 2872, + "value": "in", + "start": 4259, + "end": 4261, "loc": { "start": { - "line": 63, - "column": 79 + "line": 99, + "column": 16 }, "end": { - "line": 63, - "column": 80 + "line": 99, + "column": 18 } } }, @@ -23782,24 +33136,24 @@ "postfix": false, "binop": null }, - "value": "vx", - "start": 2872, - "end": 2874, + "value": "thisPlayer", + "start": 4262, + "end": 4272, "loc": { "start": { - "line": 63, - "column": 80 + "line": 99, + "column": 19 }, "end": { - "line": 63, - "column": 82 + "line": 99, + "column": 29 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -23809,16 +33163,16 @@ "binop": null, "updateContext": null }, - "start": 2874, - "end": 2875, + "start": 4272, + "end": 4273, "loc": { "start": { - "line": 63, - "column": 82 + "line": 99, + "column": 29 }, "end": { - "line": 63, - "column": 83 + "line": 99, + "column": 30 } } }, @@ -23834,50 +33188,49 @@ "postfix": false, "binop": null }, - "value": "vy", - "start": 2876, - "end": 2878, + "value": "damagedBy", + "start": 4273, + "end": 4282, "loc": { "start": { - "line": 63, - "column": 84 + "line": 99, + "column": 30 }, "end": { - "line": 63, - "column": 86 + "line": 99, + "column": 39 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2878, - "end": 2879, + "start": 4282, + "end": 4283, "loc": { "start": { - "line": 63, - "column": 86 + "line": 99, + "column": 39 }, "end": { - "line": 63, - "column": 87 + "line": 99, + "column": 40 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -23886,50 +33239,49 @@ "postfix": false, "binop": null }, - "value": "pl", - "start": 2880, - "end": 2882, + "start": 4284, + "end": 4285, "loc": { "start": { - "line": 63, - "column": 88 + "line": 99, + "column": 41 }, "end": { - "line": 63, - "column": 90 + "line": 99, + "column": 42 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2882, - "end": 2883, + "value": "setField", + "start": 4291, + "end": 4299, "loc": { "start": { - "line": 63, - "column": 90 + "line": 100, + "column": 5 }, "end": { - "line": 63, - "column": 91 + "line": 100, + "column": 13 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -23938,101 +33290,103 @@ "postfix": false, "binop": null }, - "value": "vy", - "start": 2883, - "end": 2885, + "start": 4299, + "end": 4300, "loc": { "start": { - "line": 63, - "column": 91 + "line": 100, + "column": 13 }, "end": { - "line": 63, - "column": 93 + "line": 100, + "column": 14 } } }, { "type": { - "label": "}", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2886, - "end": 2887, + "value": 0, + "start": 4300, + "end": 4301, "loc": { "start": { - "line": 63, - "column": 94 + "line": 100, + "column": 14 }, "end": { - "line": 63, - "column": 95 + "line": 100, + "column": 15 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2887, - "end": 2888, + "start": 4301, + "end": 4302, "loc": { "start": { - "line": 63, - "column": 95 + "line": 100, + "column": 15 }, "end": { - "line": 63, - "column": 96 + "line": 100, + "column": 16 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2892, - "end": 2893, + "start": 4303, + "end": 4304, "loc": { "start": { - "line": 64, - "column": 3 + "line": 100, + "column": 17 }, "end": { - "line": 64, - "column": 4 + "line": 100, + "column": 18 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -24041,42 +33395,43 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 2898, - "end": 2900, + "value": "rooms", + "start": 4304, + "end": 4311, "loc": { "start": { - "line": 66, - "column": 3 + "line": 100, + "column": 18 }, "end": { - "line": 66, - "column": 5 + "line": 100, + "column": 25 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2901, - "end": 2902, + "start": 4311, + "end": 4312, "loc": { "start": { - "line": 66, - "column": 6 + "line": 100, + "column": 25 }, "end": { - "line": 66, - "column": 7 + "line": 100, + "column": 26 } } }, @@ -24092,24 +33447,24 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 2902, - "end": 2906, + "value": "room", + "start": 4313, + "end": 4317, "loc": { "start": { - "line": 66, - "column": 7 + "line": 100, + "column": 27 }, "end": { - "line": 66, - "column": 11 + "line": 100, + "column": 31 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -24119,22 +33474,22 @@ "binop": null, "updateContext": null }, - "start": 2906, - "end": 2907, + "start": 4317, + "end": 4318, "loc": { "start": { - "line": 66, - "column": 11 + "line": 100, + "column": 31 }, "end": { - "line": 66, - "column": 12 + "line": 100, + "column": 32 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -24142,25 +33497,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "id", - "start": 2907, - "end": 2909, + "value": "players", + "start": 4319, + "end": 4328, "loc": { "start": { - "line": 66, - "column": 12 + "line": 100, + "column": 33 }, "end": { - "line": 66, - "column": 14 + "line": 100, + "column": 42 } } }, { "type": { - "label": "==/!=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -24168,20 +33524,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "!==", - "start": 2910, - "end": 2913, + "start": 4328, + "end": 4329, "loc": { "start": { - "line": 66, - "column": 15 + "line": 100, + "column": 42 }, "end": { - "line": 66, - "column": 18 + "line": 100, + "column": 43 } } }, @@ -24197,23 +33552,23 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 2914, - "end": 2923, + "value": "data", + "start": 4330, + "end": 4334, "loc": { "start": { - "line": 66, - "column": 19 + "line": 100, + "column": 44 }, "end": { - "line": 66, - "column": 28 + "line": 100, + "column": 48 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -24221,25 +33576,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2923, - "end": 2924, + "start": 4334, + "end": 4335, "loc": { "start": { - "line": 66, - "column": 28 + "line": 100, + "column": 48 }, "end": { - "line": 66, - "column": 29 + "line": 100, + "column": 49 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -24248,40 +33604,24 @@ "postfix": false, "binop": null }, - "start": 2925, - "end": 2926, - "loc": { - "start": { - "line": 66, - "column": 30 - }, - "end": { - "line": 66, - "column": 31 - } - } - }, - { - "type": "CommentLine", - "value": " Read damagedBy to award points, clear in the process", - "start": 2931, - "end": 2986, + "value": "player", + "start": 4335, + "end": 4341, "loc": { "start": { - "line": 67, - "column": 4 + "line": 100, + "column": 49 }, "end": { - "line": 67, - "column": 59 + "line": 100, + "column": 55 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -24291,23 +33631,22 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 2991, - "end": 2994, + "start": 4341, + "end": 4342, "loc": { "start": { - "line": 68, - "column": 4 + "line": 100, + "column": 55 }, "end": { - "line": 68, - "column": 7 + "line": 100, + "column": 56 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -24315,53 +33654,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "max", - "start": 2995, - "end": 2998, + "value": "damagedBy", + "start": 4343, + "end": 4354, "loc": { "start": { - "line": 68, - "column": 8 + "line": 100, + "column": 57 }, "end": { - "line": 68, - "column": 11 + "line": 100, + "column": 68 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 2999, - "end": 3000, + "start": 4354, + "end": 4355, "loc": { "start": { - "line": 68, - "column": 12 + "line": 100, + "column": 68 }, "end": { - "line": 68, - "column": 13 + "line": 100, + "column": 69 } } }, { "type": { - "label": "null", - "keyword": "null", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -24369,27 +33707,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "null", - "start": 3001, - "end": 3005, + "value": "pl", + "start": 4356, + "end": 4358, "loc": { "start": { - "line": 68, - "column": 14 + "line": 100, + "column": 70 }, "end": { - "line": 68, - "column": 18 + "line": 100, + "column": 72 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -24400,25 +33736,24 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 3010, - "end": 3013, + "start": 4358, + "end": 4359, "loc": { "start": { - "line": 69, - "column": 4 + "line": 100, + "column": 72 }, "end": { - "line": 69, - "column": 7 + "line": 100, + "column": 73 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -24426,70 +33761,57 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 3014, - "end": 3024, + "start": 4359, + "end": 4360, "loc": { "start": { - "line": 69, - "column": 8 + "line": 100, + "column": 73 }, "end": { - "line": 69, - "column": 18 + "line": 100, + "column": 74 } } }, { "type": { - "label": "for", - "keyword": "for", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "for", - "start": 3029, - "end": 3032, + "start": 4365, + "end": 4366, "loc": { "start": { - "line": 70, + "line": 101, "column": 4 }, "end": { - "line": 70, - "column": 7 + "line": 101, + "column": 5 } } }, { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3033, - "end": 3034, + "type": "CommentLine", + "value": " Check if a team won", + "start": 4372, + "end": 4394, "loc": { "start": { - "line": 70, - "column": 8 + "line": 103, + "column": 4 }, "end": { - "line": 70, - "column": 9 + "line": 103, + "column": 26 } } }, @@ -24508,16 +33830,16 @@ "updateContext": null }, "value": "let", - "start": 3034, - "end": 3037, + "start": 4399, + "end": 4402, "loc": { "start": { - "line": 70, - "column": 9 + "line": 104, + "column": 4 }, "end": { - "line": 70, - "column": 12 + "line": 104, + "column": 7 } } }, @@ -24533,77 +33855,76 @@ "postfix": false, "binop": null }, - "value": "pl", - "start": 3038, - "end": 3040, + "value": "highScores", + "start": 4403, + "end": 4413, "loc": { "start": { - "line": 70, - "column": 13 + "line": 104, + "column": 8 }, "end": { - "line": 70, - "column": 15 + "line": 104, + "column": 18 } } }, { "type": { - "label": "in", - "keyword": "in", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": "in", - "start": 3041, - "end": 3043, + "value": "=", + "start": 4414, + "end": 4415, "loc": { "start": { - "line": 70, - "column": 16 + "line": 104, + "column": 19 }, "end": { - "line": 70, - "column": 18 + "line": 104, + "column": 20 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "thisPlayer", - "start": 3044, - "end": 3054, + "start": 4416, + "end": 4417, "loc": { "start": { - "line": 70, - "column": 19 + "line": 104, + "column": 21 }, "end": { - "line": 70, - "column": 29 + "line": 104, + "column": 22 } } }, { "type": { - "label": ".", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -24614,48 +33935,39 @@ "binop": null, "updateContext": null }, - "start": 3054, - "end": 3055, + "start": 4417, + "end": 4418, "loc": { "start": { - "line": 70, - "column": 29 + "line": 104, + "column": 22 }, "end": { - "line": 70, - "column": 30 + "line": 104, + "column": 23 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "damagedBy", - "start": 3055, - "end": 3064, + "type": "CommentLine", + "value": " Possible winning teams", + "start": 4419, + "end": 4444, "loc": { "start": { - "line": 70, - "column": 30 + "line": 104, + "column": 24 }, "end": { - "line": 70, - "column": 39 + "line": 104, + "column": 49 } } }, { "type": { - "label": ")", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -24663,25 +33975,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3064, - "end": 3065, + "value": "let", + "start": 4449, + "end": 4452, "loc": { "start": { - "line": 70, - "column": 39 + "line": 105, + "column": 4 }, "end": { - "line": 70, - "column": 40 + "line": 105, + "column": 7 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -24690,101 +34004,106 @@ "postfix": false, "binop": null }, - "start": 3066, - "end": 3067, + "value": "maxScore", + "start": 4453, + "end": 4461, "loc": { "start": { - "line": 70, - "column": 41 + "line": 105, + "column": 8 }, "end": { - "line": 70, - "column": 42 + "line": 105, + "column": 16 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "dataToSend", - "start": 3073, - "end": 3083, + "value": "=", + "start": 4462, + "end": 4463, "loc": { "start": { - "line": 71, - "column": 5 + "line": 105, + "column": 17 }, "end": { - "line": 71, - "column": 15 + "line": 105, + "column": 18 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "num", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 3084, - "end": 3085, + "value": 0, + "start": 4464, + "end": 4465, "loc": { "start": { - "line": 71, - "column": 16 + "line": 105, + "column": 19 }, "end": { - "line": 71, - "column": 17 + "line": 105, + "column": 20 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, - "isLoop": false, + "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3086, - "end": 3087, + "value": "for", + "start": 4470, + "end": 4473, "loc": { "start": { - "line": 71, - "column": 18 + "line": 106, + "column": 4 }, "end": { - "line": 71, - "column": 19 + "line": 106, + "column": 7 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -24793,24 +34112,24 @@ "postfix": false, "binop": null }, - "value": "player", - "start": 3094, - "end": 3100, + "start": 4474, + "end": 4475, "loc": { "start": { - "line": 72, - "column": 6 + "line": 106, + "column": 8 }, "end": { - "line": 72, - "column": 12 + "line": 106, + "column": 9 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -24820,16 +34139,17 @@ "binop": null, "updateContext": null }, - "start": 3100, - "end": 3101, + "value": "let", + "start": 4475, + "end": 4478, "loc": { "start": { - "line": 72, - "column": 12 + "line": 106, + "column": 9 }, "end": { - "line": 72, - "column": 13 + "line": 106, + "column": 12 } } }, @@ -24845,43 +34165,43 @@ "postfix": false, "binop": null }, - "value": "pl", - "start": 3102, - "end": 3104, + "value": "tm", + "start": 4479, + "end": 4481, "loc": { "start": { - "line": 72, - "column": 14 + "line": 106, + "column": 13 }, "end": { - "line": 72, - "column": 16 + "line": 106, + "column": 15 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3104, - "end": 3105, + "value": "of", + "start": 4482, + "end": 4484, "loc": { "start": { - "line": 72, + "line": 106, "column": 16 }, "end": { - "line": 72, - "column": 17 + "line": 106, + "column": 18 } } }, @@ -24897,24 +34217,24 @@ "postfix": false, "binop": null }, - "value": "teamSlot", - "start": 3112, - "end": 3120, + "value": "thisRoom", + "start": 4485, + "end": 4493, "loc": { "start": { - "line": 73, - "column": 6 + "line": 106, + "column": 19 }, "end": { - "line": 73, - "column": 14 + "line": 106, + "column": 27 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -24924,16 +34244,16 @@ "binop": null, "updateContext": null }, - "start": 3120, - "end": 3121, + "start": 4493, + "end": 4494, "loc": { "start": { - "line": 73, - "column": 14 + "line": 106, + "column": 27 }, "end": { - "line": 73, - "column": 15 + "line": 106, + "column": 28 } } }, @@ -24949,25 +34269,25 @@ "postfix": false, "binop": null }, - "value": "getTeamNumber", - "start": 3122, - "end": 3135, + "value": "teams", + "start": 4494, + "end": 4499, "loc": { "start": { - "line": 73, - "column": 16 + "line": 106, + "column": 28 }, "end": { - "line": 73, - "column": 29 + "line": 106, + "column": 33 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -24975,23 +34295,23 @@ "postfix": false, "binop": null }, - "start": 3135, - "end": 3136, + "start": 4499, + "end": 4500, "loc": { "start": { - "line": 73, - "column": 29 + "line": 106, + "column": 33 }, "end": { - "line": 73, - "column": 30 + "line": 106, + "column": 34 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -25000,24 +34320,24 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 3136, - "end": 3140, + "start": 4501, + "end": 4502, "loc": { "start": { - "line": 73, - "column": 30 + "line": 106, + "column": 35 }, "end": { - "line": 73, - "column": 34 + "line": 106, + "column": 36 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -25027,16 +34347,42 @@ "binop": null, "updateContext": null }, - "start": 3140, - "end": 3141, + "value": "if", + "start": 4508, + "end": 4510, "loc": { "start": { - "line": 73, - "column": 34 + "line": 107, + "column": 5 }, "end": { - "line": 73, - "column": 35 + "line": 107, + "column": 7 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4511, + "end": 4512, + "loc": { + "start": { + "line": 107, + "column": 8 + }, + "end": { + "line": 107, + "column": 9 } } }, @@ -25052,17 +34398,17 @@ "postfix": false, "binop": null }, - "value": "thisRoom", - "start": 3142, - "end": 3150, + "value": "tm", + "start": 4512, + "end": 4514, "loc": { "start": { - "line": 73, - "column": 36 + "line": 107, + "column": 9 }, "end": { - "line": 73, - "column": 44 + "line": 107, + "column": 11 } } }, @@ -25079,16 +34425,16 @@ "binop": null, "updateContext": null }, - "start": 3150, - "end": 3151, + "start": 4514, + "end": 4515, "loc": { "start": { - "line": 73, - "column": 44 + "line": 107, + "column": 11 }, "end": { - "line": 73, - "column": 45 + "line": 107, + "column": 12 } } }, @@ -25104,43 +34450,44 @@ "postfix": false, "binop": null }, - "value": "compounds", - "start": 3151, - "end": 3160, + "value": "score", + "start": 4515, + "end": 4520, "loc": { "start": { - "line": 73, - "column": 45 + "line": 107, + "column": 12 }, "end": { - "line": 73, - "column": 54 + "line": 107, + "column": 17 } } }, { "type": { - "label": "[", + "label": "", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "start": 3160, - "end": 3161, + "value": ">=", + "start": 4521, + "end": 4523, "loc": { "start": { - "line": 73, - "column": 54 + "line": 107, + "column": 18 }, "end": { - "line": 73, - "column": 55 + "line": 107, + "column": 20 } } }, @@ -25156,17 +34503,17 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 3161, - "end": 3165, + "value": "GLOBAL", + "start": 4524, + "end": 4530, "loc": { "start": { - "line": 73, - "column": 55 + "line": 107, + "column": 21 }, "end": { - "line": 73, - "column": 59 + "line": 107, + "column": 27 } } }, @@ -25183,16 +34530,16 @@ "binop": null, "updateContext": null }, - "start": 3165, - "end": 3166, + "start": 4530, + "end": 4531, "loc": { "start": { - "line": 73, - "column": 59 + "line": 107, + "column": 27 }, "end": { - "line": 73, - "column": 60 + "line": 107, + "column": 28 } } }, @@ -25208,49 +34555,23 @@ "postfix": false, "binop": null }, - "value": "id", - "start": 3166, - "end": 3168, - "loc": { - "start": { - "line": 73, - "column": 60 - }, - "end": { - "line": 73, - "column": 62 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3168, - "end": 3169, + "value": "WINNING_SCORE", + "start": 4531, + "end": 4544, "loc": { "start": { - "line": 73, - "column": 62 + "line": 107, + "column": 28 }, "end": { - "line": 73, - "column": 63 + "line": 107, + "column": 41 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -25258,26 +34579,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3169, - "end": 3170, + "start": 4544, + "end": 4545, "loc": { "start": { - "line": 73, - "column": 63 + "line": 107, + "column": 41 }, "end": { - "line": 73, - "column": 64 + "line": 107, + "column": 42 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -25286,25 +34606,24 @@ "postfix": false, "binop": null }, - "value": "sendingTeam", - "start": 3170, - "end": 3181, + "start": 4546, + "end": 4547, "loc": { "start": { - "line": 73, - "column": 64 + "line": 107, + "column": 43 }, "end": { - "line": 73, - "column": 75 + "line": 107, + "column": 44 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -25312,23 +34631,24 @@ "postfix": false, "binop": null }, - "start": 3181, - "end": 3182, + "value": "highScores", + "start": 4554, + "end": 4564, "loc": { "start": { - "line": 73, - "column": 75 + "line": 108, + "column": 6 }, "end": { - "line": 73, - "column": 76 + "line": 108, + "column": 16 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -25338,16 +34658,16 @@ "binop": null, "updateContext": null }, - "start": 3182, - "end": 3183, + "start": 4564, + "end": 4565, "loc": { "start": { - "line": 73, - "column": 76 + "line": 108, + "column": 16 }, "end": { - "line": 73, - "column": 77 + "line": 108, + "column": 17 } } }, @@ -25363,43 +34683,42 @@ "postfix": false, "binop": null }, - "value": "increment", - "start": 3190, - "end": 3199, + "value": "push", + "start": 4565, + "end": 4569, "loc": { "start": { - "line": 74, - "column": 6 + "line": 108, + "column": 17 }, "end": { - "line": 74, - "column": 15 + "line": 108, + "column": 21 } } }, { "type": { - "label": ":", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3199, - "end": 3200, + "start": 4569, + "end": 4570, "loc": { "start": { - "line": 74, - "column": 15 + "line": 108, + "column": 21 }, "end": { - "line": 74, - "column": 16 + "line": 108, + "column": 22 } } }, @@ -25415,23 +34734,23 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 3201, - "end": 3207, + "value": "tm", + "start": 4570, + "end": 4572, "loc": { "start": { - "line": 74, - "column": 17 + "line": 108, + "column": 22 }, "end": { - "line": 74, - "column": 23 + "line": 108, + "column": 24 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -25439,71 +34758,71 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3207, - "end": 3208, + "start": 4572, + "end": 4573, "loc": { "start": { - "line": 74, - "column": 23 + "line": 108, + "column": 24 }, "end": { - "line": 74, - "column": 24 + "line": 108, + "column": 25 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "ASSIST_SCORE", - "start": 3208, - "end": 3220, + "value": "if", + "start": 4580, + "end": 4582, "loc": { "start": { - "line": 74, - "column": 24 + "line": 109, + "column": 6 }, "end": { - "line": 74, - "column": 36 + "line": 109, + "column": 8 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3220, - "end": 3221, + "start": 4583, + "end": 4584, "loc": { "start": { - "line": 74, - "column": 36 + "line": 109, + "column": 9 }, "end": { - "line": 74, - "column": 37 + "line": 109, + "column": 10 } } }, @@ -25519,23 +34838,23 @@ "postfix": false, "binop": null }, - "value": "kill", - "start": 3228, - "end": 3232, + "value": "maxScore", + "start": 4584, + "end": 4592, "loc": { "start": { - "line": 75, - "column": 6 + "line": 109, + "column": 10 }, "end": { - "line": 75, - "column": 10 + "line": 109, + "column": 18 } } }, { "type": { - "label": ":", + "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -25543,26 +34862,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "start": 3232, - "end": 3233, + "value": "<", + "start": 4593, + "end": 4594, "loc": { "start": { - "line": 75, - "column": 10 + "line": 109, + "column": 19 }, "end": { - "line": 75, - "column": 11 + "line": 109, + "column": 20 } } }, { "type": { - "label": "false", - "keyword": "false", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -25570,26 +34889,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "false", - "start": 3234, - "end": 3239, + "value": "tm", + "start": 4595, + "end": 4597, "loc": { "start": { - "line": 75, - "column": 12 + "line": 109, + "column": 21 }, "end": { - "line": 75, - "column": 17 + "line": 109, + "column": 23 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -25597,34 +34915,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3245, - "end": 3246, - "loc": { - "start": { - "line": 76, - "column": 5 - }, - "end": { - "line": 76, - "column": 6 - } - } - }, - { - "type": "CommentLine", - "value": " Add to team score, checking if team score is initialized", - "start": 3253, - "end": 3312, + "start": 4597, + "end": 4598, "loc": { "start": { - "line": 78, - "column": 5 + "line": 109, + "column": 23 }, "end": { - "line": 78, - "column": 64 + "line": 109, + "column": 24 } } }, @@ -25640,25 +34943,25 @@ "postfix": false, "binop": null }, - "value": "setField", - "start": 3318, - "end": 3326, + "value": "score", + "start": 4598, + "end": 4603, "loc": { "start": { - "line": 79, - "column": 5 + "line": 109, + "column": 24 }, "end": { - "line": 79, - "column": 13 + "line": 109, + "column": 29 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -25666,22 +34969,22 @@ "postfix": false, "binop": null }, - "start": 3326, - "end": 3327, + "start": 4603, + "end": 4604, "loc": { "start": { - "line": 79, - "column": 13 + "line": 109, + "column": 29 }, "end": { - "line": 79, - "column": 14 + "line": 109, + "column": 30 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -25691,16 +34994,16 @@ "postfix": false, "binop": null }, - "start": 3327, - "end": 3328, + "start": 4605, + "end": 4606, "loc": { "start": { - "line": 79, - "column": 14 + "line": 109, + "column": 31 }, "end": { - "line": 79, - "column": 15 + "line": 109, + "column": 32 } } }, @@ -25716,43 +35019,44 @@ "postfix": false, "binop": null }, - "value": "thisRoom", - "start": 3328, - "end": 3336, + "value": "maxScore", + "start": 4614, + "end": 4622, "loc": { "start": { - "line": 79, - "column": 15 + "line": 110, + "column": 7 }, "end": { - "line": 79, - "column": 23 + "line": 110, + "column": 15 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 3336, - "end": 3337, + "value": "=", + "start": 4623, + "end": 4624, "loc": { "start": { - "line": 79, - "column": 23 + "line": 110, + "column": 16 }, "end": { - "line": 79, - "column": 24 + "line": 110, + "column": 17 } } }, @@ -25768,25 +35072,25 @@ "postfix": false, "binop": null }, - "value": "teams", - "start": 3337, - "end": 3342, + "value": "tm", + "start": 4625, + "end": 4627, "loc": { "start": { - "line": 79, - "column": 24 + "line": 110, + "column": 18 }, "end": { - "line": 79, - "column": 29 + "line": 110, + "column": 20 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -25795,16 +35099,16 @@ "binop": null, "updateContext": null }, - "start": 3342, - "end": 3343, + "start": 4627, + "end": 4628, "loc": { "start": { - "line": 79, - "column": 29 + "line": 110, + "column": 20 }, "end": { - "line": 79, - "column": 30 + "line": 110, + "column": 21 } } }, @@ -25820,23 +35124,23 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 3343, - "end": 3353, + "value": "score", + "start": 4628, + "end": 4633, "loc": { "start": { - "line": 79, - "column": 30 + "line": 110, + "column": 21 }, "end": { - "line": 79, - "column": 40 + "line": 110, + "column": 26 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -25844,27 +35148,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3353, - "end": 3354, + "start": 4640, + "end": 4641, "loc": { "start": { - "line": 79, - "column": 40 + "line": 111, + "column": 6 }, "end": { - "line": 79, - "column": 41 + "line": 111, + "column": 7 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -25872,23 +35175,22 @@ "postfix": false, "binop": null }, - "value": "teamSlot", - "start": 3354, - "end": 3362, + "start": 4647, + "end": 4648, "loc": { "start": { - "line": 79, - "column": 41 + "line": 112, + "column": 5 }, "end": { - "line": 79, - "column": 49 + "line": 112, + "column": 6 } } }, { "type": { - "label": "]", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -25896,52 +35198,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3362, - "end": 3363, + "start": 4653, + "end": 4654, "loc": { "start": { - "line": 79, - "column": 49 + "line": 113, + "column": 4 }, "end": { - "line": 79, - "column": 50 + "line": 113, + "column": 5 } } }, { "type": { - "label": ".", + "label": "for", + "keyword": "for", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, - "isLoop": false, + "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 3363, - "end": 3364, + "value": "for", + "start": 4659, + "end": 4662, "loc": { "start": { - "line": 79, - "column": 50 + "line": 114, + "column": 4 }, "end": { - "line": 79, - "column": 51 + "line": 114, + "column": 7 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -25950,44 +35253,44 @@ "postfix": false, "binop": null }, - "value": "score", - "start": 3364, - "end": 3369, + "start": 4663, + "end": 4664, "loc": { "start": { - "line": 79, - "column": 51 + "line": 114, + "column": 8 }, "end": { - "line": 79, - "column": 56 + "line": 114, + "column": 9 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 3370, - "end": 3373, + "value": "let", + "start": 4664, + "end": 4667, "loc": { "start": { - "line": 79, - "column": 57 + "line": 114, + "column": 9 }, "end": { - "line": 79, - "column": 60 + "line": 114, + "column": 12 } } }, @@ -26003,25 +35306,25 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 3374, - "end": 3383, + "value": "winningTm", + "start": 4668, + "end": 4677, "loc": { "start": { - "line": 79, - "column": 61 + "line": 114, + "column": 13 }, "end": { - "line": 79, - "column": 70 + "line": 114, + "column": 22 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26029,50 +35332,51 @@ "postfix": false, "binop": null }, - "start": 3383, - "end": 3384, + "value": "of", + "start": 4678, + "end": 4680, "loc": { "start": { - "line": 79, - "column": 70 + "line": 114, + "column": 23 }, "end": { - "line": 79, - "column": 71 + "line": 114, + "column": 25 } } }, { "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3385, - "end": 3386, + "value": "highScores", + "start": 4681, + "end": 4691, "loc": { "start": { - "line": 79, - "column": 72 + "line": 114, + "column": 26 }, "end": { - "line": 79, - "column": 73 + "line": 114, + "column": 36 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26080,95 +35384,94 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 3387, - "end": 3397, + "start": 4691, + "end": 4692, "loc": { "start": { - "line": 79, - "column": 74 + "line": 114, + "column": 36 }, "end": { - "line": 79, - "column": 84 + "line": 114, + "column": 37 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3397, - "end": 3398, + "start": 4693, + "end": 4694, "loc": { "start": { - "line": 79, - "column": 84 + "line": 114, + "column": 38 }, "end": { - "line": 79, - "column": 85 + "line": 114, + "column": 39 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "increment", - "start": 3398, - "end": 3407, + "value": "if", + "start": 4700, + "end": 4702, "loc": { "start": { - "line": 79, - "column": 85 + "line": 115, + "column": 5 }, "end": { - "line": 79, - "column": 94 + "line": 115, + "column": 7 } } }, { "type": { - "label": ":", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3408, - "end": 3409, + "start": 4703, + "end": 4704, "loc": { "start": { - "line": 79, - "column": 95 + "line": 115, + "column": 8 }, "end": { - "line": 79, - "column": 96 + "line": 115, + "column": 9 } } }, @@ -26184,17 +35487,17 @@ "postfix": false, "binop": null }, - "value": "thisRoom", - "start": 3410, - "end": 3418, + "value": "winningTm", + "start": 4704, + "end": 4713, "loc": { "start": { - "line": 79, - "column": 97 + "line": 115, + "column": 9 }, "end": { - "line": 79, - "column": 105 + "line": 115, + "column": 18 } } }, @@ -26211,16 +35514,16 @@ "binop": null, "updateContext": null }, - "start": 3418, - "end": 3419, + "start": 4713, + "end": 4714, "loc": { "start": { - "line": 79, - "column": 105 + "line": 115, + "column": 18 }, "end": { - "line": 79, - "column": 106 + "line": 115, + "column": 19 } } }, @@ -26236,43 +35539,44 @@ "postfix": false, "binop": null }, - "value": "teams", - "start": 3419, - "end": 3424, + "value": "score", + "start": 4714, + "end": 4719, "loc": { "start": { - "line": 79, - "column": 106 + "line": 115, + "column": 19 }, "end": { - "line": 79, - "column": 111 + "line": 115, + "column": 24 } } }, { "type": { - "label": "[", + "label": "==/!=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 3424, - "end": 3425, + "value": "===", + "start": 4720, + "end": 4723, "loc": { "start": { - "line": 79, - "column": 111 + "line": 115, + "column": 25 }, "end": { - "line": 79, - "column": 112 + "line": 115, + "column": 28 } } }, @@ -26288,23 +35592,23 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 3425, - "end": 3435, + "value": "maxScore", + "start": 4724, + "end": 4732, "loc": { "start": { - "line": 79, - "column": 112 + "line": 115, + "column": 29 }, "end": { - "line": 79, - "column": 122 + "line": 115, + "column": 37 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -26312,26 +35616,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3435, - "end": 3436, + "start": 4732, + "end": 4733, "loc": { "start": { - "line": 79, - "column": 122 + "line": 115, + "column": 37 }, "end": { - "line": 79, - "column": 123 + "line": 115, + "column": 38 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -26340,23 +35643,23 @@ "postfix": false, "binop": null }, - "value": "teamSlot", - "start": 3436, - "end": 3444, + "start": 4734, + "end": 4735, "loc": { "start": { - "line": 79, - "column": 123 + "line": 115, + "column": 39 }, "end": { - "line": 79, - "column": 131 + "line": 115, + "column": 40 } } }, { "type": { - "label": "]", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -26367,95 +35670,95 @@ "binop": null, "updateContext": null }, - "start": 3444, - "end": 3445, + "value": "let", + "start": 4742, + "end": 4745, "loc": { "start": { - "line": 79, - "column": 131 + "line": 116, + "column": 6 }, "end": { - "line": 79, - "column": 132 + "line": 116, + "column": 9 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3445, - "end": 3446, + "value": "dataToSend", + "start": 4746, + "end": 4756, "loc": { "start": { - "line": 79, - "column": 132 + "line": 116, + "column": 10 }, "end": { - "line": 79, - "column": 133 + "line": 116, + "column": 20 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "score", - "start": 3446, - "end": 3451, + "value": "=", + "start": 4757, + "end": 4758, "loc": { "start": { - "line": 79, - "column": 133 + "line": 116, + "column": 21 }, "end": { - "line": 79, - "column": 138 + "line": 116, + "column": 22 } } }, { "type": { - "label": "+/-", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "+", - "start": 3452, - "end": 3453, + "start": 4759, + "end": 4760, "loc": { "start": { - "line": 79, - "column": 139 + "line": 116, + "column": 23 }, "end": { - "line": 79, - "column": 140 + "line": 116, + "column": 24 } } }, @@ -26471,24 +35774,24 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 3454, - "end": 3464, + "value": "winner", + "start": 4768, + "end": 4774, "loc": { "start": { - "line": 79, - "column": 141 + "line": 117, + "column": 7 }, "end": { - "line": 79, - "column": 151 + "line": 117, + "column": 13 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -26498,16 +35801,16 @@ "binop": null, "updateContext": null }, - "start": 3464, - "end": 3465, + "start": 4774, + "end": 4775, "loc": { "start": { - "line": 79, - "column": 151 + "line": 117, + "column": 13 }, "end": { - "line": 79, - "column": 152 + "line": 117, + "column": 14 } } }, @@ -26523,77 +35826,108 @@ "postfix": false, "binop": null }, - "value": "increment", - "start": 3465, - "end": 3474, + "value": "winningTm", + "start": 4776, + "end": 4785, "loc": { "start": { - "line": 79, - "column": 152 + "line": 117, + "column": 15 }, "end": { - "line": 79, - "column": 161 + "line": 117, + "column": 24 + } + } + }, + { + "type": "CommentLine", + "value": " teamScore: thisRoom.teams[dataToSend.teamSlot].score", + "start": 4793, + "end": 4848, + "loc": { + "start": { + "line": 118, + "column": 7 + }, + "end": { + "line": 118, + "column": 62 + } + } + }, + { + "type": "CommentLine", + "value": " other data here TODO post ranking", + "start": 4856, + "end": 4892, + "loc": { + "start": { + "line": 119, + "column": 7 + }, + "end": { + "line": 119, + "column": 43 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3474, - "end": 3475, + "start": 4899, + "end": 4900, "loc": { "start": { - "line": 79, - "column": 161 + "line": 120, + "column": 6 }, "end": { - "line": 79, - "column": 162 + "line": 120, + "column": 7 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3476, - "end": 3477, + "value": "socket", + "start": 4907, + "end": 4913, "loc": { "start": { - "line": 79, - "column": 163 + "line": 121, + "column": 6 }, "end": { - "line": 79, - "column": 164 + "line": 121, + "column": 12 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26602,50 +35936,49 @@ "binop": null, "updateContext": null }, - "value": "rooms", - "start": 3477, - "end": 3484, + "start": 4913, + "end": 4914, "loc": { "start": { - "line": 79, - "column": 164 + "line": 121, + "column": 12 }, "end": { - "line": 79, - "column": 171 + "line": 121, + "column": 13 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3484, - "end": 3485, + "value": "to", + "start": 4914, + "end": 4916, "loc": { "start": { - "line": 79, - "column": 171 + "line": 121, + "column": 13 }, "end": { - "line": 79, - "column": 172 + "line": 121, + "column": 15 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -26654,77 +35987,74 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 3486, - "end": 3490, + "start": 4916, + "end": 4917, "loc": { "start": { - "line": 79, - "column": 173 + "line": 121, + "column": 15 }, "end": { - "line": 79, - "column": 177 + "line": 121, + "column": 16 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3490, - "end": 3491, + "value": "room", + "start": 4917, + "end": 4921, "loc": { "start": { - "line": 79, - "column": 177 + "line": 121, + "column": 16 }, "end": { - "line": 79, - "column": 178 + "line": 121, + "column": 20 } } }, { "type": { - "label": "string", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "teams", - "start": 3492, - "end": 3499, + "start": 4921, + "end": 4922, "loc": { "start": { - "line": 79, - "column": 179 + "line": 121, + "column": 20 }, "end": { - "line": 79, - "column": 186 + "line": 121, + "column": 21 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -26734,16 +36064,16 @@ "binop": null, "updateContext": null }, - "start": 3499, - "end": 3500, + "start": 4922, + "end": 4923, "loc": { "start": { - "line": 79, - "column": 186 + "line": 121, + "column": 21 }, "end": { - "line": 79, - "column": 187 + "line": 121, + "column": 22 } } }, @@ -26759,17 +36089,17 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 3501, - "end": 3511, + "value": "broadcast", + "start": 4923, + "end": 4932, "loc": { "start": { - "line": 79, - "column": 188 + "line": 121, + "column": 22 }, "end": { - "line": 79, - "column": 198 + "line": 121, + "column": 31 } } }, @@ -26786,16 +36116,16 @@ "binop": null, "updateContext": null }, - "start": 3511, - "end": 3512, + "start": 4932, + "end": 4933, "loc": { "start": { - "line": 79, - "column": 198 + "line": 121, + "column": 31 }, "end": { - "line": 79, - "column": 199 + "line": 121, + "column": 32 } } }, @@ -26811,43 +36141,42 @@ "postfix": false, "binop": null }, - "value": "teamSlot", - "start": 3512, - "end": 3520, + "value": "emit", + "start": 4933, + "end": 4937, "loc": { "start": { - "line": 79, - "column": 199 + "line": 121, + "column": 32 }, "end": { - "line": 79, - "column": 207 + "line": 121, + "column": 36 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3520, - "end": 3521, + "start": 4937, + "end": 4938, "loc": { "start": { - "line": 79, - "column": 207 + "line": 121, + "column": 36 }, "end": { - "line": 79, - "column": 208 + "line": 121, + "column": 37 } } }, @@ -26864,24 +36193,24 @@ "binop": null, "updateContext": null }, - "value": "score", - "start": 3522, - "end": 3529, + "value": "serverSendWinner", + "start": 4938, + "end": 4956, "loc": { "start": { - "line": 79, - "column": 209 + "line": 121, + "column": 37 }, "end": { - "line": 79, - "column": 216 + "line": 121, + "column": 55 } } }, { "type": { - "label": "]", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -26891,24 +36220,24 @@ "binop": null, "updateContext": null }, - "start": 3529, - "end": 3530, + "start": 4956, + "end": 4957, "loc": { "start": { - "line": 79, - "column": 216 + "line": 121, + "column": 55 }, "end": { - "line": 79, - "column": 217 + "line": 121, + "column": 56 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26916,24 +36245,25 @@ "postfix": false, "binop": null }, - "start": 3530, - "end": 3531, + "value": "dataToSend", + "start": 4958, + "end": 4968, "loc": { "start": { - "line": 79, - "column": 217 + "line": 121, + "column": 57 }, "end": { - "line": 79, - "column": 218 + "line": 121, + "column": 67 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26941,76 +36271,75 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 3538, - "end": 3544, + "start": 4968, + "end": 4969, "loc": { "start": { - "line": 81, - "column": 5 + "line": 121, + "column": 67 }, "end": { - "line": 81, - "column": 11 + "line": 121, + "column": 68 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3544, - "end": 3545, + "value": "socket", + "start": 4976, + "end": 4982, "loc": { "start": { - "line": 81, - "column": 11 + "line": 122, + "column": 6 }, "end": { - "line": 81, + "line": 122, "column": 12 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "to", - "start": 3545, - "end": 3547, + "start": 4982, + "end": 4983, "loc": { "start": { - "line": 81, + "line": 122, "column": 12 }, "end": { - "line": 81, - "column": 14 + "line": 122, + "column": 13 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -27019,23 +36348,24 @@ "postfix": false, "binop": null }, - "start": 3547, - "end": 3548, + "value": "emit", + "start": 4983, + "end": 4987, "loc": { "start": { - "line": 81, - "column": 14 + "line": 122, + "column": 13 }, "end": { - "line": 81, - "column": 15 + "line": 122, + "column": 17 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -27044,49 +36374,50 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 3548, - "end": 3552, + "start": 4987, + "end": 4988, "loc": { "start": { - "line": 81, - "column": 15 + "line": 122, + "column": 17 }, "end": { - "line": 81, - "column": 19 + "line": 122, + "column": 18 } } }, { "type": { - "label": ")", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3552, - "end": 3553, + "value": "serverSendWinner", + "start": 4988, + "end": 5006, "loc": { "start": { - "line": 81, - "column": 19 + "line": 122, + "column": 18 }, "end": { - "line": 81, - "column": 20 + "line": 122, + "column": 36 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -27096,16 +36427,16 @@ "binop": null, "updateContext": null }, - "start": 3553, - "end": 3554, + "start": 5006, + "end": 5007, "loc": { "start": { - "line": 81, - "column": 20 + "line": 122, + "column": 36 }, "end": { - "line": 81, - "column": 21 + "line": 122, + "column": 37 } } }, @@ -27121,23 +36452,23 @@ "postfix": false, "binop": null }, - "value": "broadcast", - "start": 3554, - "end": 3563, + "value": "dataToSend", + "start": 5008, + "end": 5018, "loc": { "start": { - "line": 81, - "column": 21 + "line": 122, + "column": 38 }, "end": { - "line": 81, - "column": 30 + "line": 122, + "column": 48 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27145,19 +36476,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3563, - "end": 3564, + "start": 5018, + "end": 5019, + "loc": { + "start": { + "line": 122, + "column": 48 + }, + "end": { + "line": 122, + "column": 49 + } + } + }, + { + "type": "CommentLine", + "value": " Close room after delay (kick all players)", + "start": 5027, + "end": 5071, "loc": { "start": { - "line": 81, - "column": 30 + "line": 124, + "column": 6 }, "end": { - "line": 81, - "column": 31 + "line": 124, + "column": 50 } } }, @@ -27173,17 +36519,17 @@ "postfix": false, "binop": null }, - "value": "emit", - "start": 3564, - "end": 3568, + "value": "setTimeout", + "start": 5078, + "end": 5088, "loc": { "start": { - "line": 81, - "column": 31 + "line": 125, + "column": 6 }, "end": { - "line": 81, - "column": 35 + "line": 125, + "column": 16 } } }, @@ -27199,103 +36545,100 @@ "postfix": false, "binop": null }, - "start": 3568, - "end": 3569, + "start": 5088, + "end": 5089, "loc": { "start": { - "line": 81, - "column": 35 + "line": 125, + "column": 16 }, "end": { - "line": 81, - "column": 36 + "line": 125, + "column": 17 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "serverSendScoreUpdate", - "start": 3569, - "end": 3592, + "start": 5089, + "end": 5090, "loc": { "start": { - "line": 81, - "column": 36 + "line": 125, + "column": 17 }, "end": { - "line": 81, - "column": 59 + "line": 125, + "column": 18 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3592, - "end": 3593, + "start": 5090, + "end": 5091, "loc": { "start": { - "line": 81, - "column": 59 + "line": 125, + "column": 18 }, "end": { - "line": 81, - "column": 60 + "line": 125, + "column": 19 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "dataToSend", - "start": 3594, - "end": 3604, + "start": 5092, + "end": 5094, "loc": { "start": { - "line": 81, - "column": 61 + "line": 125, + "column": 20 }, "end": { - "line": 81, - "column": 71 + "line": 125, + "column": 22 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -27303,16 +36646,16 @@ "postfix": false, "binop": null }, - "start": 3604, - "end": 3605, + "start": 5095, + "end": 5096, "loc": { "start": { - "line": 81, - "column": 71 + "line": 125, + "column": 23 }, "end": { - "line": 81, - "column": 72 + "line": 125, + "column": 24 } } }, @@ -27329,16 +36672,16 @@ "binop": null }, "value": "socket", - "start": 3611, - "end": 3617, + "start": 5104, + "end": 5110, "loc": { "start": { - "line": 82, - "column": 5 + "line": 126, + "column": 7 }, "end": { - "line": 82, - "column": 11 + "line": 126, + "column": 13 } } }, @@ -27355,16 +36698,16 @@ "binop": null, "updateContext": null }, - "start": 3617, - "end": 3618, + "start": 5110, + "end": 5111, "loc": { "start": { - "line": 82, - "column": 11 + "line": 126, + "column": 13 }, "end": { - "line": 82, - "column": 12 + "line": 126, + "column": 14 } } }, @@ -27381,16 +36724,16 @@ "binop": null }, "value": "emit", - "start": 3618, - "end": 3622, + "start": 5111, + "end": 5115, "loc": { "start": { - "line": 82, - "column": 12 + "line": 126, + "column": 14 }, "end": { - "line": 82, - "column": 16 + "line": 126, + "column": 18 } } }, @@ -27406,16 +36749,16 @@ "postfix": false, "binop": null }, - "start": 3622, - "end": 3623, + "start": 5115, + "end": 5116, "loc": { "start": { - "line": 82, - "column": 16 + "line": 126, + "column": 18 }, "end": { - "line": 82, - "column": 17 + "line": 126, + "column": 19 } } }, @@ -27432,17 +36775,17 @@ "binop": null, "updateContext": null }, - "value": "serverSendScoreUpdate", - "start": 3623, - "end": 3646, + "value": "serverSendDisconnect", + "start": 5116, + "end": 5138, "loc": { "start": { - "line": 82, - "column": 17 + "line": 126, + "column": 19 }, "end": { - "line": 82, - "column": 40 + "line": 126, + "column": 41 } } }, @@ -27459,23 +36802,23 @@ "binop": null, "updateContext": null }, - "start": 3646, - "end": 3647, + "start": 5138, + "end": 5139, "loc": { "start": { - "line": 82, - "column": 40 + "line": 126, + "column": 41 }, "end": { - "line": 82, - "column": 41 + "line": 126, + "column": 42 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -27484,23 +36827,22 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 3648, - "end": 3658, + "start": 5140, + "end": 5141, "loc": { "start": { - "line": 82, - "column": 42 + "line": 126, + "column": 43 }, "end": { - "line": 82, - "column": 52 + "line": 126, + "column": 44 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27510,23 +36852,22 @@ "postfix": false, "binop": null }, - "start": 3658, - "end": 3659, + "start": 5141, + "end": 5142, "loc": { "start": { - "line": 82, - "column": 52 + "line": 126, + "column": 44 }, "end": { - "line": 82, - "column": 53 + "line": 126, + "column": 45 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27534,27 +36875,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 3665, - "end": 3667, + "start": 5142, + "end": 5143, "loc": { "start": { - "line": 83, - "column": 5 + "line": 126, + "column": 45 }, "end": { - "line": 83, - "column": 7 + "line": 126, + "column": 46 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -27563,16 +36902,43 @@ "postfix": false, "binop": null }, - "start": 3668, - "end": 3669, + "value": "socket", + "start": 5151, + "end": 5157, "loc": { "start": { - "line": 83, - "column": 8 + "line": 127, + "column": 7 }, "end": { - "line": 83, - "column": 9 + "line": 127, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5157, + "end": 5158, + "loc": { + "start": { + "line": 127, + "column": 13 + }, + "end": { + "line": 127, + "column": 14 } } }, @@ -27588,51 +36954,48 @@ "postfix": false, "binop": null }, - "value": "max", - "start": 3669, - "end": 3672, + "value": "to", + "start": 5158, + "end": 5160, "loc": { "start": { - "line": 83, - "column": 9 + "line": 127, + "column": 14 }, "end": { - "line": 83, - "column": 12 + "line": 127, + "column": 16 } } }, { "type": { - "label": "==/!=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "===", - "start": 3673, - "end": 3676, + "start": 5160, + "end": 5161, "loc": { "start": { - "line": 83, - "column": 13 + "line": 127, + "column": 16 }, "end": { - "line": 83, - "column": 16 + "line": 127, + "column": 17 } } }, { "type": { - "label": "null", - "keyword": "null", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -27640,47 +37003,70 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "null", - "start": 3677, - "end": 3681, + "value": "room", + "start": 5161, + "end": 5165, "loc": { "start": { - "line": 83, + "line": 127, "column": 17 }, "end": { - "line": 83, + "line": 127, "column": 21 } } }, { "type": { - "label": "||", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, + "binop": null + }, + "start": 5165, + "end": 5166, + "loc": { + "start": { + "line": 127, + "column": 21 + }, + "end": { + "line": 127, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, "updateContext": null }, - "value": "||", - "start": 3682, - "end": 3684, + "start": 5166, + "end": 5167, "loc": { "start": { - "line": 83, + "line": 127, "column": 22 }, "end": { - "line": 83, - "column": 24 + "line": 127, + "column": 23 } } }, @@ -27696,17 +37082,17 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 3685, - "end": 3695, + "value": "broadcast", + "start": 5167, + "end": 5176, "loc": { "start": { - "line": 83, - "column": 25 + "line": 127, + "column": 23 }, "end": { - "line": 83, - "column": 35 + "line": 127, + "column": 32 } } }, @@ -27723,16 +37109,16 @@ "binop": null, "updateContext": null }, - "start": 3695, - "end": 3696, + "start": 5176, + "end": 5177, "loc": { "start": { - "line": 83, - "column": 35 + "line": 127, + "column": 32 }, "end": { - "line": 83, - "column": 36 + "line": 127, + "column": 33 } } }, @@ -27748,23 +37134,23 @@ "postfix": false, "binop": null }, - "value": "damagedBy", - "start": 3696, - "end": 3705, + "value": "emit", + "start": 5177, + "end": 5181, "loc": { "start": { - "line": 83, - "column": 36 + "line": 127, + "column": 33 }, "end": { - "line": 83, - "column": 45 + "line": 127, + "column": 37 } } }, { "type": { - "label": "[", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -27772,25 +37158,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3705, - "end": 3706, + "start": 5181, + "end": 5182, "loc": { "start": { - "line": 83, - "column": 45 + "line": 127, + "column": 37 }, "end": { - "line": 83, - "column": 46 + "line": 127, + "column": 38 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -27798,26 +37183,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pl", - "start": 3706, - "end": 3708, + "value": "serverSendDisconnect", + "start": 5182, + "end": 5204, "loc": { "start": { - "line": 83, - "column": 46 + "line": 127, + "column": 38 }, "end": { - "line": 83, - "column": 48 + "line": 127, + "column": 60 } } }, { "type": { - "label": "]", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -27827,51 +37213,49 @@ "binop": null, "updateContext": null }, - "start": 3708, - "end": 3709, + "start": 5204, + "end": 5205, "loc": { "start": { - "line": 83, - "column": 48 + "line": 127, + "column": 60 }, "end": { - "line": 83, - "column": 49 + "line": 127, + "column": 61 } } }, { "type": { - "label": "", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, - "updateContext": null + "binop": null }, - "value": ">", - "start": 3710, - "end": 3711, + "start": 5206, + "end": 5207, "loc": { "start": { - "line": 83, - "column": 50 + "line": 127, + "column": 62 }, "end": { - "line": 83, - "column": 51 + "line": 127, + "column": 63 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -27879,23 +37263,22 @@ "postfix": false, "binop": null }, - "value": "thisPlayer", - "start": 3712, - "end": 3722, + "start": 5207, + "end": 5208, "loc": { "start": { - "line": 83, - "column": 52 + "line": 127, + "column": 63 }, "end": { - "line": 83, - "column": 62 + "line": 127, + "column": 64 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27903,27 +37286,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3722, - "end": 3723, + "start": 5208, + "end": 5209, "loc": { "start": { - "line": 83, - "column": 62 + "line": 127, + "column": 64 }, "end": { - "line": 83, - "column": 63 + "line": 127, + "column": 65 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -27931,25 +37313,24 @@ "postfix": false, "binop": null }, - "value": "damagedBy", - "start": 3723, - "end": 3732, + "start": 5216, + "end": 5217, "loc": { "start": { - "line": 83, - "column": 63 + "line": 128, + "column": 6 }, "end": { - "line": 83, - "column": 72 + "line": 128, + "column": 7 } } }, { "type": { - "label": "[", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -27958,16 +37339,16 @@ "binop": null, "updateContext": null }, - "start": 3732, - "end": 3733, + "start": 5217, + "end": 5218, "loc": { "start": { - "line": 83, - "column": 72 + "line": 128, + "column": 7 }, "end": { - "line": 83, - "column": 73 + "line": 128, + "column": 8 } } }, @@ -27983,23 +37364,23 @@ "postfix": false, "binop": null }, - "value": "max", - "start": 3733, - "end": 3736, + "value": "GLOBAL", + "start": 5219, + "end": 5225, "loc": { "start": { - "line": 83, - "column": 73 + "line": 128, + "column": 9 }, "end": { - "line": 83, - "column": 76 + "line": 128, + "column": 15 } } }, { "type": { - "label": "]", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -28010,48 +37391,23 @@ "binop": null, "updateContext": null }, - "start": 3736, - "end": 3737, + "start": 5225, + "end": 5226, "loc": { "start": { - "line": 83, - "column": 76 + "line": 128, + "column": 15 }, "end": { - "line": 83, - "column": 77 + "line": 128, + "column": 16 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3737, - "end": 3738, - "loc": { - "start": { - "line": 83, - "column": 77 - }, - "end": { - "line": 83, - "column": 78 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -28060,24 +37416,25 @@ "postfix": false, "binop": null }, - "start": 3739, - "end": 3740, + "value": "ROOM_DELETE_DELAY", + "start": 5226, + "end": 5243, "loc": { "start": { - "line": 83, - "column": 79 + "line": 128, + "column": 16 }, "end": { - "line": 83, - "column": 80 + "line": 128, + "column": 33 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28085,52 +37442,49 @@ "postfix": false, "binop": null }, - "value": "max", - "start": 3747, - "end": 3750, + "start": 5243, + "end": 5244, "loc": { "start": { - "line": 84, - "column": 6 + "line": 128, + "column": 33 }, "end": { - "line": 84, - "column": 9 + "line": 128, + "column": 34 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 3751, - "end": 3752, + "start": 5250, + "end": 5251, "loc": { "start": { - "line": 84, - "column": 10 + "line": 129, + "column": 5 }, "end": { - "line": 84, - "column": 11 + "line": 129, + "column": 6 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28138,17 +37492,16 @@ "postfix": false, "binop": null }, - "value": "pl", - "start": 3753, - "end": 3755, + "start": 5256, + "end": 5257, "loc": { "start": { - "line": 84, - "column": 12 + "line": 130, + "column": 4 }, "end": { - "line": 84, - "column": 14 + "line": 130, + "column": 5 } } }, @@ -28164,16 +37517,16 @@ "postfix": false, "binop": null }, - "start": 3761, - "end": 3762, + "start": 5261, + "end": 5262, "loc": { "start": { - "line": 85, - "column": 5 + "line": 131, + "column": 3 }, "end": { - "line": 85, - "column": 6 + "line": 131, + "column": 4 } } }, @@ -28189,40 +37542,24 @@ "postfix": false, "binop": null }, - "start": 3767, - "end": 3768, - "loc": { - "start": { - "line": 86, - "column": 4 - }, - "end": { - "line": 86, - "column": 5 - } - } - }, - { - "type": "CommentLine", - "value": " Add to score of person who dealt the most damage", - "start": 3774, - "end": 3825, + "start": 5265, + "end": 5266, "loc": { "start": { - "line": 88, - "column": 4 + "line": 132, + "column": 2 }, "end": { - "line": 88, - "column": 55 + "line": 132, + "column": 3 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28230,24 +37567,24 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 3830, - "end": 3840, + "start": 5268, + "end": 5269, "loc": { "start": { - "line": 89, - "column": 4 + "line": 133, + "column": 1 }, "end": { - "line": 89, - "column": 14 + "line": 133, + "column": 2 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "else", + "keyword": "else", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28257,23 +37594,24 @@ "binop": null, "updateContext": null }, - "start": 3840, - "end": 3841, + "value": "else", + "start": 5271, + "end": 5275, "loc": { "start": { - "line": 89, - "column": 14 + "line": 134, + "column": 1 }, "end": { - "line": 89, - "column": 15 + "line": 134, + "column": 5 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -28282,70 +37620,68 @@ "postfix": false, "binop": null }, - "value": "player", - "start": 3841, - "end": 3847, + "start": 5276, + "end": 5277, "loc": { "start": { - "line": 89, - "column": 15 + "line": 134, + "column": 6 }, "end": { - "line": 89, - "column": 21 + "line": 134, + "column": 7 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 3848, - "end": 3849, + "value": "console", + "start": 5280, + "end": 5287, "loc": { "start": { - "line": 89, - "column": 22 + "line": 135, + "column": 2 }, "end": { - "line": 89, - "column": 23 + "line": 135, + "column": 9 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "max", - "start": 3850, - "end": 3853, + "start": 5287, + "end": 5288, "loc": { "start": { - "line": 89, - "column": 24 + "line": 135, + "column": 9 }, "end": { - "line": 89, - "column": 27 + "line": 135, + "column": 10 } } }, @@ -28361,49 +37697,48 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 3858, - "end": 3868, + "value": "warn", + "start": 5288, + "end": 5292, "loc": { "start": { - "line": 90, - "column": 4 + "line": 135, + "column": 10 }, "end": { - "line": 90, + "line": 135, "column": 14 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3868, - "end": 3869, + "start": 5292, + "end": 5293, "loc": { "start": { - "line": 90, + "line": 135, "column": 14 }, "end": { - "line": 90, + "line": 135, "column": 15 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28411,46 +37746,47 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "increment", - "start": 3869, - "end": 3878, + "value": "Player of ID ", + "start": 5293, + "end": 5308, "loc": { "start": { - "line": 90, + "line": 135, "column": 15 }, "end": { - "line": 90, - "column": 24 + "line": 135, + "column": 30 } } }, { "type": { - "label": "=", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, - "prefix": false, + "isAssign": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "value": "=", - "start": 3879, - "end": 3880, + "value": "+", + "start": 5309, + "end": 5310, "loc": { "start": { - "line": 90, - "column": 25 + "line": 135, + "column": 31 }, "end": { - "line": 90, - "column": 26 + "line": 135, + "column": 32 } } }, @@ -28466,17 +37802,17 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 3881, - "end": 3887, + "value": "data", + "start": 5311, + "end": 5315, "loc": { "start": { - "line": 90, - "column": 27 + "line": 135, + "column": 33 }, "end": { - "line": 90, - "column": 33 + "line": 135, + "column": 37 } } }, @@ -28493,16 +37829,16 @@ "binop": null, "updateContext": null }, - "start": 3887, - "end": 3888, + "start": 5315, + "end": 5316, "loc": { "start": { - "line": 90, - "column": 33 + "line": 135, + "column": 37 }, "end": { - "line": 90, - "column": 34 + "line": 135, + "column": 38 } } }, @@ -28518,16 +37854,16 @@ "postfix": false, "binop": null }, - "value": "KILL_SCORE", - "start": 3888, - "end": 3898, + "value": "player", + "start": 5316, + "end": 5322, "loc": { "start": { - "line": 90, - "column": 34 + "line": 135, + "column": 38 }, "end": { - "line": 90, + "line": 135, "column": 44 } } @@ -28545,23 +37881,23 @@ "binop": 9, "updateContext": null }, - "value": "-", - "start": 3899, - "end": 3900, + "value": "+", + "start": 5323, + "end": 5324, "loc": { "start": { - "line": 90, + "line": 135, "column": 45 }, "end": { - "line": 90, + "line": 135, "column": 46 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28569,25 +37905,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "GLOBAL", - "start": 3901, - "end": 3907, + "value": " couldn't be damaged because they don't exist!", + "start": 5325, + "end": 5375, "loc": { "start": { - "line": 90, + "line": 135, "column": 47 }, "end": { - "line": 90, - "column": 53 + "line": 135, + "column": 97 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -28595,27 +37932,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3907, - "end": 3908, + "start": 5375, + "end": 5376, "loc": { "start": { - "line": 90, - "column": 53 + "line": 135, + "column": 97 }, "end": { - "line": 90, - "column": 54 + "line": 135, + "column": 98 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28623,25 +37959,24 @@ "postfix": false, "binop": null }, - "value": "ASSIST_SCORE", - "start": 3908, - "end": 3920, + "start": 5378, + "end": 5379, "loc": { "start": { - "line": 90, - "column": 54 + "line": 136, + "column": 1 }, "end": { - "line": 90, - "column": 66 + "line": 136, + "column": 2 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28649,23 +37984,23 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 3925, - "end": 3935, + "start": 5380, + "end": 5381, "loc": { "start": { - "line": 91, - "column": 4 + "line": 137, + "column": 0 }, "end": { - "line": 91, - "column": 14 + "line": 137, + "column": 1 } } }, { "type": { - "label": ".", + "label": "export", + "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -28676,22 +38011,24 @@ "binop": null, "updateContext": null }, - "start": 3935, - "end": 3936, + "value": "export", + "start": 5383, + "end": 5389, "loc": { "start": { - "line": 91, - "column": 14 + "line": 139, + "column": 0 }, "end": { - "line": 91, - "column": 15 + "line": 139, + "column": 6 } } }, { "type": { - "label": "name", + "label": "function", + "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28701,72 +38038,68 @@ "postfix": false, "binop": null }, - "value": "kill", - "start": 3936, - "end": 3940, + "value": "function", + "start": 5390, + "end": 5398, "loc": { "start": { - "line": 91, - "column": 15 + "line": 139, + "column": 7 }, "end": { - "line": 91, - "column": 19 + "line": 139, + "column": 15 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 3941, - "end": 3942, + "value": "damageTile", + "start": 5399, + "end": 5409, "loc": { "start": { - "line": 91, - "column": 20 + "line": 139, + "column": 16 }, "end": { - "line": 91, - "column": 21 + "line": 139, + "column": 26 } } }, { "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "true", - "start": 3943, - "end": 3947, + "start": 5410, + "end": 5411, "loc": { "start": { - "line": 91, - "column": 22 + "line": 139, + "column": 27 }, "end": { - "line": 91, - "column": 26 + "line": 139, + "column": 28 } } }, @@ -28782,24 +38115,24 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 3952, - "end": 3958, + "value": "tileID", + "start": 5411, + "end": 5417, "loc": { "start": { - "line": 92, - "column": 4 + "line": 139, + "column": 28 }, "end": { - "line": 92, - "column": 10 + "line": 139, + "column": 34 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28809,16 +38142,16 @@ "binop": null, "updateContext": null }, - "start": 3958, - "end": 3959, + "start": 5417, + "end": 5418, "loc": { "start": { - "line": 92, - "column": 10 + "line": 139, + "column": 34 }, "end": { - "line": 92, - "column": 11 + "line": 139, + "column": 35 } } }, @@ -28834,42 +38167,43 @@ "postfix": false, "binop": null }, - "value": "to", - "start": 3959, - "end": 3961, + "value": "damageAmount", + "start": 5419, + "end": 5431, "loc": { "start": { - "line": 92, - "column": 11 + "line": 139, + "column": 36 }, "end": { - "line": 92, - "column": 13 + "line": 139, + "column": 48 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3961, - "end": 3962, + "start": 5431, + "end": 5432, "loc": { "start": { - "line": 92, - "column": 13 + "line": 139, + "column": 48 }, "end": { - "line": 92, - "column": 14 + "line": 139, + "column": 49 } } }, @@ -28885,49 +38219,76 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 3962, - "end": 3966, + "value": "player", + "start": 5433, + "end": 5439, "loc": { "start": { - "line": 92, - "column": 14 + "line": 139, + "column": 50 }, "end": { - "line": 92, - "column": 18 + "line": 139, + "column": 56 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3966, - "end": 3967, + "start": 5439, + "end": 5440, "loc": { "start": { - "line": 92, - "column": 18 + "line": 139, + "column": 56 }, "end": { - "line": 92, - "column": 19 + "line": 139, + "column": 57 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "room", + "start": 5441, + "end": 5445, + "loc": { + "start": { + "line": 139, + "column": 58 + }, + "end": { + "line": 139, + "column": 62 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28937,16 +38298,16 @@ "binop": null, "updateContext": null }, - "start": 3967, - "end": 3968, + "start": 5445, + "end": 5446, "loc": { "start": { - "line": 92, - "column": 19 + "line": 139, + "column": 62 }, "end": { - "line": 92, - "column": 20 + "line": 139, + "column": 63 } } }, @@ -28962,23 +38323,23 @@ "postfix": false, "binop": null }, - "value": "broadcast", - "start": 3968, - "end": 3977, + "value": "socket", + "start": 5447, + "end": 5453, "loc": { "start": { - "line": 92, - "column": 20 + "line": 139, + "column": 64 }, "end": { - "line": 92, - "column": 29 + "line": 139, + "column": 70 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -28986,19 +38347,43 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null + }, + "start": 5453, + "end": 5454, + "loc": { + "start": { + "line": 139, + "column": 70 + }, + "end": { + "line": 139, + "column": 71 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null }, - "start": 3977, - "end": 3978, + "start": 5455, + "end": 5456, "loc": { "start": { - "line": 92, - "column": 29 + "line": 139, + "column": 72 }, "end": { - "line": 92, - "column": 30 + "line": 139, + "column": 73 } } }, @@ -29014,17 +38399,17 @@ "postfix": false, "binop": null }, - "value": "emit", - "start": 3978, - "end": 3982, + "value": "incrementField", + "start": 5458, + "end": 5472, "loc": { "start": { - "line": 92, - "column": 30 + "line": 140, + "column": 1 }, "end": { - "line": 92, - "column": 34 + "line": 140, + "column": 15 } } }, @@ -29040,126 +38425,127 @@ "postfix": false, "binop": null }, - "start": 3982, - "end": 3983, + "start": 5472, + "end": 5473, "loc": { "start": { - "line": 92, - "column": 34 + "line": 140, + "column": 15 }, "end": { - "line": 92, - "column": 35 + "line": 140, + "column": 16 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "+/-", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "value": "serverSendScoreUpdate", - "start": 3983, - "end": 4006, + "value": "-", + "start": 5473, + "end": 5474, "loc": { "start": { - "line": 92, - "column": 35 + "line": 140, + "column": 16 }, "end": { - "line": 92, - "column": 58 + "line": 140, + "column": 17 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4006, - "end": 4007, + "value": "damageAmount", + "start": 5474, + "end": 5486, "loc": { "start": { - "line": 92, - "column": 58 + "line": 140, + "column": 17 }, "end": { - "line": 92, - "column": 59 + "line": 140, + "column": 29 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "dataToSend", - "start": 4008, - "end": 4018, + "start": 5486, + "end": 5487, "loc": { "start": { - "line": 92, - "column": 60 + "line": 140, + "column": 29 }, "end": { - "line": 92, - "column": 70 + "line": 140, + "column": 30 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4018, - "end": 4019, + "start": 5488, + "end": 5489, "loc": { "start": { - "line": 92, - "column": 70 + "line": 140, + "column": 31 }, "end": { - "line": 92, - "column": 71 + "line": 140, + "column": 32 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -29167,26 +38553,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "socket", - "start": 4024, - "end": 4030, + "value": "rooms", + "start": 5489, + "end": 5496, "loc": { "start": { - "line": 93, - "column": 4 + "line": 140, + "column": 32 }, "end": { - "line": 93, - "column": 10 + "line": 140, + "column": 39 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -29196,16 +38583,16 @@ "binop": null, "updateContext": null }, - "start": 4030, - "end": 4031, + "start": 5496, + "end": 5497, "loc": { "start": { - "line": 93, - "column": 10 + "line": 140, + "column": 39 }, "end": { - "line": 93, - "column": 11 + "line": 140, + "column": 40 } } }, @@ -29221,42 +38608,43 @@ "postfix": false, "binop": null }, - "value": "emit", - "start": 4031, - "end": 4035, + "value": "room", + "start": 5498, + "end": 5502, "loc": { "start": { - "line": 93, - "column": 11 + "line": 140, + "column": 41 }, "end": { - "line": 93, - "column": 15 + "line": 140, + "column": 45 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4035, - "end": 4036, + "start": 5502, + "end": 5503, "loc": { "start": { - "line": 93, - "column": 15 + "line": 140, + "column": 45 }, "end": { - "line": 93, - "column": 16 + "line": 140, + "column": 46 } } }, @@ -29273,17 +38661,17 @@ "binop": null, "updateContext": null }, - "value": "serverSendScoreUpdate", - "start": 4036, - "end": 4059, + "value": "tiles", + "start": 5504, + "end": 5511, "loc": { "start": { - "line": 93, - "column": 16 + "line": 140, + "column": 47 }, "end": { - "line": 93, - "column": 39 + "line": 140, + "column": 54 } } }, @@ -29300,16 +38688,16 @@ "binop": null, "updateContext": null }, - "start": 4059, - "end": 4060, + "start": 5511, + "end": 5512, "loc": { "start": { - "line": 93, - "column": 39 + "line": 140, + "column": 54 }, "end": { - "line": 93, - "column": 40 + "line": 140, + "column": 55 } } }, @@ -29325,92 +38713,104 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 4061, - "end": 4071, + "value": "tileID", + "start": 5513, + "end": 5519, "loc": { "start": { - "line": 93, - "column": 41 + "line": 140, + "column": 56 }, "end": { - "line": 93, - "column": 51 + "line": 140, + "column": 62 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4071, - "end": 4072, + "start": 5519, + "end": 5520, "loc": { "start": { - "line": 93, - "column": 51 + "line": 140, + "column": 62 }, "end": { - "line": 93, - "column": 52 + "line": 140, + "column": 63 } } }, { - "type": "CommentLine", - "value": " Add to team score", - "start": 4078, - "end": 4098, + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "health", + "start": 5521, + "end": 5529, "loc": { "start": { - "line": 95, - "column": 4 + "line": 140, + "column": 64 }, "end": { - "line": 95, - "column": 24 + "line": 140, + "column": 72 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setField", - "start": 4103, - "end": 4111, + "start": 5529, + "end": 5530, "loc": { "start": { - "line": 96, - "column": 4 + "line": 140, + "column": 72 }, "end": { - "line": 96, - "column": 12 + "line": 140, + "column": 73 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29418,16 +38818,16 @@ "postfix": false, "binop": null }, - "start": 4111, - "end": 4112, + "start": 5530, + "end": 5531, "loc": { "start": { - "line": 96, - "column": 12 + "line": 140, + "column": 73 }, "end": { - "line": 96, - "column": 13 + "line": 140, + "column": 74 } } }, @@ -29443,17 +38843,17 @@ "postfix": false, "binop": null }, - "value": "thisRoom", - "start": 4112, - "end": 4120, + "value": "console", + "start": 5534, + "end": 5541, "loc": { "start": { - "line": 96, - "column": 13 + "line": 142, + "column": 1 }, "end": { - "line": 96, - "column": 21 + "line": 142, + "column": 8 } } }, @@ -29470,16 +38870,16 @@ "binop": null, "updateContext": null }, - "start": 4120, - "end": 4121, + "start": 5541, + "end": 5542, "loc": { "start": { - "line": 96, - "column": 21 + "line": 142, + "column": 8 }, "end": { - "line": 96, - "column": 22 + "line": 142, + "column": 9 } } }, @@ -29495,23 +38895,23 @@ "postfix": false, "binop": null }, - "value": "teams", - "start": 4121, - "end": 4126, + "value": "log", + "start": 5542, + "end": 5545, "loc": { "start": { - "line": 96, - "column": 22 + "line": 142, + "column": 9 }, "end": { - "line": 96, - "column": 27 + "line": 142, + "column": 12 } } }, { "type": { - "label": "[", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -29519,25 +38919,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4126, - "end": 4127, + "start": 5545, + "end": 5546, "loc": { "start": { - "line": 96, - "column": 27 + "line": 142, + "column": 12 }, "end": { - "line": 96, - "column": 28 + "line": 142, + "column": 13 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -29545,45 +38944,47 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "dataToSend", - "start": 4127, - "end": 4137, + "value": "tile ", + "start": 5546, + "end": 5553, "loc": { "start": { - "line": 96, - "column": 28 + "line": 142, + "column": 13 }, "end": { - "line": 96, - "column": 38 + "line": 142, + "column": 20 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 4137, - "end": 4138, + "value": "+", + "start": 5554, + "end": 5555, "loc": { "start": { - "line": 96, - "column": 38 + "line": 142, + "column": 21 }, "end": { - "line": 96, - "column": 39 + "line": 142, + "column": 22 } } }, @@ -29599,51 +39000,52 @@ "postfix": false, "binop": null }, - "value": "teamSlot", - "start": 4138, - "end": 4146, + "value": "tileID", + "start": 5556, + "end": 5562, "loc": { "start": { - "line": 96, - "column": 39 + "line": 142, + "column": 23 }, "end": { - "line": 96, - "column": 47 + "line": 142, + "column": 29 } } }, { "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 4146, - "end": 4147, + "value": "+", + "start": 5563, + "end": 5564, "loc": { "start": { - "line": 96, - "column": 47 + "line": 142, + "column": 30 }, "end": { - "line": 96, - "column": 48 + "line": 142, + "column": 31 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29652,76 +39054,77 @@ "binop": null, "updateContext": null }, - "start": 4147, - "end": 4148, + "value": " is now at ", + "start": 5565, + "end": 5578, "loc": { "start": { - "line": 96, - "column": 48 + "line": 142, + "column": 32 }, "end": { - "line": 96, - "column": 49 + "line": 142, + "column": 45 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "+/-", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "value": "score", - "start": 4148, - "end": 4153, + "value": "+", + "start": 5579, + "end": 5580, "loc": { "start": { - "line": 96, - "column": 49 + "line": 142, + "column": 46 }, "end": { - "line": 96, - "column": 54 + "line": 142, + "column": 47 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "+", - "start": 4154, - "end": 4155, + "value": "getField", + "start": 5581, + "end": 5589, "loc": { "start": { - "line": 96, - "column": 55 + "line": 142, + "column": 48 }, "end": { - "line": 96, + "line": 142, "column": 56 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -29730,25 +39133,24 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 4156, - "end": 4166, + "start": 5589, + "end": 5590, "loc": { "start": { - "line": 96, - "column": 57 + "line": 142, + "column": 56 }, "end": { - "line": 96, - "column": 67 + "line": 142, + "column": 57 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29757,22 +39159,22 @@ "binop": null, "updateContext": null }, - "start": 4166, - "end": 4167, + "start": 5590, + "end": 5591, "loc": { "start": { - "line": 96, - "column": 67 + "line": 142, + "column": 57 }, "end": { - "line": 96, - "column": 68 + "line": 142, + "column": 58 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -29780,19 +39182,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "increment", - "start": 4167, - "end": 4176, + "value": "rooms", + "start": 5591, + "end": 5598, "loc": { "start": { - "line": 96, - "column": 68 + "line": 142, + "column": 58 }, "end": { - "line": 96, - "column": 77 + "line": 142, + "column": 65 } } }, @@ -29809,42 +39212,68 @@ "binop": null, "updateContext": null }, - "start": 4176, - "end": 4177, + "start": 5598, + "end": 5599, "loc": { "start": { - "line": 96, - "column": 77 + "line": 142, + "column": 65 }, "end": { - "line": 96, - "column": 78 + "line": 142, + "column": 66 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "value": "room", + "start": 5600, + "end": 5604, + "loc": { + "start": { + "line": 142, + "column": 67 + }, + "end": { + "line": 142, + "column": 71 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 4178, - "end": 4179, + "start": 5604, + "end": 5605, "loc": { "start": { - "line": 96, - "column": 79 + "line": 142, + "column": 71 }, "end": { - "line": 96, - "column": 80 + "line": 142, + "column": 72 } } }, @@ -29861,17 +39290,17 @@ "binop": null, "updateContext": null }, - "value": "rooms", - "start": 4179, - "end": 4186, + "value": "tiles", + "start": 5606, + "end": 5613, "loc": { "start": { - "line": 96, - "column": 80 + "line": 142, + "column": 73 }, "end": { - "line": 96, - "column": 87 + "line": 142, + "column": 80 } } }, @@ -29888,16 +39317,16 @@ "binop": null, "updateContext": null }, - "start": 4186, - "end": 4187, + "start": 5613, + "end": 5614, "loc": { "start": { - "line": 96, - "column": 87 + "line": 142, + "column": 80 }, "end": { - "line": 96, - "column": 88 + "line": 142, + "column": 81 } } }, @@ -29913,17 +39342,17 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 4188, - "end": 4192, + "value": "tileID", + "start": 5615, + "end": 5621, "loc": { "start": { - "line": 96, - "column": 89 + "line": 142, + "column": 82 }, "end": { - "line": 96, - "column": 93 + "line": 142, + "column": 88 } } }, @@ -29940,16 +39369,16 @@ "binop": null, "updateContext": null }, - "start": 4192, - "end": 4193, + "start": 5621, + "end": 5622, "loc": { "start": { - "line": 96, - "column": 93 + "line": 142, + "column": 88 }, "end": { - "line": 96, - "column": 94 + "line": 142, + "column": 89 } } }, @@ -29966,24 +39395,24 @@ "binop": null, "updateContext": null }, - "value": "teams", - "start": 4194, - "end": 4201, + "value": "health", + "start": 5623, + "end": 5631, "loc": { "start": { - "line": 96, - "column": 95 + "line": 142, + "column": 90 }, "end": { - "line": 96, - "column": 102 + "line": 142, + "column": 98 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -29993,24 +39422,24 @@ "binop": null, "updateContext": null }, - "start": 4201, - "end": 4202, + "start": 5631, + "end": 5632, "loc": { "start": { - "line": 96, - "column": 102 + "line": 142, + "column": 98 }, "end": { - "line": 96, - "column": 103 + "line": 142, + "column": 99 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30018,23 +39447,22 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 4203, - "end": 4213, + "start": 5632, + "end": 5633, "loc": { "start": { - "line": 96, - "column": 104 + "line": 142, + "column": 99 }, "end": { - "line": 96, - "column": 114 + "line": 142, + "column": 100 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -30042,52 +39470,42 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4213, - "end": 4214, + "start": 5633, + "end": 5634, "loc": { "start": { - "line": 96, - "column": 114 + "line": 142, + "column": 100 }, "end": { - "line": 96, - "column": 115 + "line": 142, + "column": 101 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "teamSlot", - "start": 4214, - "end": 4222, + "type": "CommentLine", + "value": " Check if tile is fully captured", + "start": 5637, + "end": 5671, "loc": { "start": { - "line": 96, - "column": 115 + "line": 144, + "column": 1 }, "end": { - "line": 96, - "column": 123 + "line": 144, + "column": 35 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -30097,77 +39515,76 @@ "binop": null, "updateContext": null }, - "start": 4222, - "end": 4223, + "value": "if", + "start": 5673, + "end": 5675, "loc": { "start": { - "line": 96, - "column": 123 + "line": 145, + "column": 1 }, "end": { - "line": 96, - "column": 124 + "line": 145, + "column": 3 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "score", - "start": 4224, - "end": 4231, + "start": 5676, + "end": 5677, "loc": { "start": { - "line": 96, - "column": 125 + "line": 145, + "column": 4 }, "end": { - "line": 96, - "column": 132 + "line": 145, + "column": 5 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4231, - "end": 4232, + "value": "getField", + "start": 5677, + "end": 5685, "loc": { "start": { - "line": 96, - "column": 132 + "line": 145, + "column": 5 }, "end": { - "line": 96, - "column": 133 + "line": 145, + "column": 13 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30175,93 +39592,76 @@ "postfix": false, "binop": null }, - "start": 4232, - "end": 4233, - "loc": { - "start": { - "line": 96, - "column": 133 - }, - "end": { - "line": 96, - "column": 134 - } - } - }, - { - "type": "CommentLine", - "value": " Clear damagedBy values", - "start": 4239, - "end": 4264, + "start": 5685, + "end": 5686, "loc": { "start": { - "line": 98, - "column": 4 + "line": 145, + "column": 13 }, "end": { - "line": 98, - "column": 29 + "line": 145, + "column": 14 } } }, { "type": { - "label": "for", - "keyword": "for", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "for", - "start": 4269, - "end": 4272, + "start": 5686, + "end": 5687, "loc": { "start": { - "line": 99, - "column": 4 + "line": 145, + "column": 14 }, "end": { - "line": 99, - "column": 7 + "line": 145, + "column": 15 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4273, - "end": 4274, + "value": "rooms", + "start": 5687, + "end": 5694, "loc": { "start": { - "line": 99, - "column": 8 + "line": 145, + "column": 15 }, "end": { - "line": 99, - "column": 9 + "line": 145, + "column": 22 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -30271,17 +39671,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 4274, - "end": 4277, + "start": 5694, + "end": 5695, "loc": { "start": { - "line": 99, - "column": 9 + "line": 145, + "column": 22 }, "end": { - "line": 99, - "column": 12 + "line": 145, + "column": 23 } } }, @@ -30297,24 +39696,23 @@ "postfix": false, "binop": null }, - "value": "pl", - "start": 4278, - "end": 4280, + "value": "room", + "start": 5696, + "end": 5700, "loc": { "start": { - "line": 99, - "column": 13 + "line": 145, + "column": 24 }, "end": { - "line": 99, - "column": 15 + "line": 145, + "column": 28 } } }, { "type": { - "label": "in", - "keyword": "in", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -30322,26 +39720,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": "in", - "start": 4281, - "end": 4283, + "start": 5700, + "end": 5701, "loc": { "start": { - "line": 99, - "column": 16 + "line": 145, + "column": 28 }, "end": { - "line": 99, - "column": 18 + "line": 145, + "column": 29 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -30349,26 +39746,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "thisPlayer", - "start": 4284, - "end": 4294, + "value": "tiles", + "start": 5702, + "end": 5709, "loc": { "start": { - "line": 99, - "column": 19 + "line": 145, + "column": 30 }, "end": { - "line": 99, - "column": 29 + "line": 145, + "column": 37 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -30378,16 +39776,16 @@ "binop": null, "updateContext": null }, - "start": 4294, - "end": 4295, + "start": 5709, + "end": 5710, "loc": { "start": { - "line": 99, - "column": 29 + "line": 145, + "column": 37 }, "end": { - "line": 99, - "column": 30 + "line": 145, + "column": 38 } } }, @@ -30403,101 +39801,104 @@ "postfix": false, "binop": null }, - "value": "damagedBy", - "start": 4295, - "end": 4304, + "value": "tileID", + "start": 5711, + "end": 5717, "loc": { "start": { - "line": 99, - "column": 30 + "line": 145, + "column": 39 }, "end": { - "line": 99, - "column": 39 + "line": 145, + "column": 45 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4304, - "end": 4305, + "start": 5717, + "end": 5718, "loc": { "start": { - "line": 99, - "column": 39 + "line": 145, + "column": 45 }, "end": { - "line": 99, - "column": 40 + "line": 145, + "column": 46 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4306, - "end": 4307, + "value": "health", + "start": 5719, + "end": 5727, "loc": { "start": { - "line": 99, - "column": 41 + "line": 145, + "column": 47 }, "end": { - "line": 99, - "column": 42 + "line": 145, + "column": 55 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setField", - "start": 4313, - "end": 4321, + "start": 5727, + "end": 5728, "loc": { "start": { - "line": 100, - "column": 5 + "line": 145, + "column": 55 }, "end": { - "line": 100, - "column": 13 + "line": 145, + "column": 56 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30505,51 +39906,51 @@ "postfix": false, "binop": null }, - "start": 4321, - "end": 4322, + "start": 5728, + "end": 5729, "loc": { "start": { - "line": 100, - "column": 13 + "line": 145, + "column": 56 }, "end": { - "line": 100, - "column": 14 + "line": 145, + "column": 57 } } }, { "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, + "label": "", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "value": 0, - "start": 4322, - "end": 4323, + "value": "<=", + "start": 5730, + "end": 5732, "loc": { "start": { - "line": 100, - "column": 14 + "line": 145, + "column": 58 }, "end": { - "line": 100, - "column": 15 + "line": 145, + "column": 60 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "num", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30558,102 +39959,102 @@ "binop": null, "updateContext": null }, - "start": 4323, - "end": 4324, + "value": 0, + "start": 5733, + "end": 5734, "loc": { "start": { - "line": 100, - "column": 15 + "line": 145, + "column": 61 }, "end": { - "line": 100, - "column": 16 + "line": 145, + "column": 62 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4325, - "end": 4326, + "start": 5734, + "end": 5735, "loc": { "start": { - "line": 100, - "column": 17 + "line": 145, + "column": 62 }, "end": { - "line": 100, - "column": 18 + "line": 145, + "column": 63 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "rooms", - "start": 4326, - "end": 4333, + "start": 5736, + "end": 5737, "loc": { "start": { - "line": 100, - "column": 18 + "line": 145, + "column": 64 }, "end": { - "line": 100, - "column": 25 + "line": 145, + "column": 65 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "for", + "keyword": "for", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, - "isLoop": false, + "isLoop": true, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 4333, - "end": 4334, + "value": "for", + "start": 5740, + "end": 5743, "loc": { "start": { - "line": 100, - "column": 25 + "line": 146, + "column": 2 }, "end": { - "line": 100, - "column": 26 + "line": 146, + "column": 5 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -30662,24 +40063,24 @@ "postfix": false, "binop": null }, - "value": "room", - "start": 4335, - "end": 4339, + "start": 5744, + "end": 5745, "loc": { "start": { - "line": 100, - "column": 27 + "line": 146, + "column": 6 }, "end": { - "line": 100, - "column": 31 + "line": 146, + "column": 7 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -30689,22 +40090,23 @@ "binop": null, "updateContext": null }, - "start": 4339, - "end": 4340, + "value": "let", + "start": 5745, + "end": 5748, "loc": { "start": { - "line": 100, - "column": 31 + "line": 146, + "column": 7 }, "end": { - "line": 100, - "column": 32 + "line": 146, + "column": 10 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -30712,52 +40114,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "players", - "start": 4341, - "end": 4350, + "value": "i", + "start": 5749, + "end": 5750, "loc": { "start": { - "line": 100, - "column": 33 + "line": 146, + "column": 11 }, "end": { - "line": 100, - "column": 42 + "line": 146, + "column": 12 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 4350, - "end": 4351, + "value": "=", + "start": 5751, + "end": 5752, "loc": { "start": { - "line": 100, - "column": 42 + "line": 146, + "column": 13 }, "end": { - "line": 100, - "column": 43 + "line": 146, + "column": 14 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -30765,26 +40167,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 4352, - "end": 4356, + "value": 0, + "start": 5753, + "end": 5754, "loc": { "start": { - "line": 100, - "column": 44 + "line": 146, + "column": 15 }, "end": { - "line": 100, - "column": 48 + "line": 146, + "column": 16 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -30794,16 +40197,16 @@ "binop": null, "updateContext": null }, - "start": 4356, - "end": 4357, + "start": 5754, + "end": 5755, "loc": { "start": { - "line": 100, - "column": 48 + "line": 146, + "column": 16 }, "end": { - "line": 100, - "column": 49 + "line": 146, + "column": 17 } } }, @@ -30819,23 +40222,23 @@ "postfix": false, "binop": null }, - "value": "player", - "start": 4357, - "end": 4363, + "value": "i", + "start": 5756, + "end": 5757, "loc": { "start": { - "line": 100, - "column": 49 + "line": 146, + "column": 18 }, "end": { - "line": 100, - "column": 55 + "line": 146, + "column": 19 } } }, { "type": { - "label": ",", + "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -30843,25 +40246,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "start": 4363, - "end": 4364, + "value": "<", + "start": 5758, + "end": 5759, "loc": { "start": { - "line": 100, - "column": 55 + "line": 146, + "column": 20 }, "end": { - "line": 100, - "column": 56 + "line": 146, + "column": 21 } } }, { "type": { - "label": "string", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -30872,23 +40276,23 @@ "binop": null, "updateContext": null }, - "value": "damagedBy", - "start": 4365, - "end": 4376, + "value": 3, + "start": 5760, + "end": 5761, "loc": { "start": { - "line": 100, - "column": 57 + "line": 146, + "column": 22 }, "end": { - "line": 100, - "column": 68 + "line": 146, + "column": 23 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -30899,48 +40303,74 @@ "binop": null, "updateContext": null }, - "start": 4376, - "end": 4377, + "start": 5761, + "end": 5762, "loc": { "start": { - "line": 100, - "column": 68 + "line": 146, + "column": 23 }, "end": { - "line": 100, - "column": 69 + "line": 146, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 5763, + "end": 5764, + "loc": { + "start": { + "line": 146, + "column": 25 + }, + "end": { + "line": 146, + "column": 26 } } }, { "type": { - "label": "name", + "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, - "postfix": false, + "prefix": true, + "postfix": true, "binop": null }, - "value": "pl", - "start": 4378, - "end": 4380, + "value": "++", + "start": 5764, + "end": 5766, "loc": { "start": { - "line": 100, - "column": 70 + "line": 146, + "column": 26 }, "end": { - "line": 100, - "column": 72 + "line": 146, + "column": 28 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -30948,27 +40378,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4380, - "end": 4381, + "start": 5766, + "end": 5767, "loc": { "start": { - "line": 100, - "column": 72 + "line": 146, + "column": 28 }, "end": { - "line": 100, - "column": 73 + "line": 146, + "column": 29 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30976,22 +40405,23 @@ "postfix": false, "binop": null }, - "start": 4381, - "end": 4382, + "start": 5768, + "end": 5769, "loc": { "start": { - "line": 100, - "column": 73 + "line": 146, + "column": 30 }, "end": { - "line": 100, - "column": 74 + "line": 146, + "column": 31 } } }, { "type": { - "label": "}", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -30999,61 +40429,44 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4387, - "end": 4388, + "value": "if", + "start": 5773, + "end": 5775, "loc": { "start": { - "line": 101, - "column": 4 + "line": 147, + "column": 3 }, "end": { - "line": 101, + "line": 147, "column": 5 } } }, - { - "type": "CommentLine", - "value": " Check if a team won", - "start": 4394, - "end": 4416, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 26 - } - } - }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 4421, - "end": 4424, + "start": 5776, + "end": 5777, "loc": { "start": { - "line": 104, - "column": 4 + "line": 147, + "column": 6 }, "end": { - "line": 104, + "line": 147, "column": 7 } } @@ -31070,44 +40483,42 @@ "postfix": false, "binop": null }, - "value": "highScores", - "start": 4425, - "end": 4435, + "value": "getField", + "start": 5777, + "end": 5785, "loc": { "start": { - "line": 104, - "column": 8 + "line": 147, + "column": 7 }, "end": { - "line": 104, - "column": 18 + "line": 147, + "column": 15 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 4436, - "end": 4437, + "start": 5785, + "end": 5786, "loc": { "start": { - "line": 104, - "column": 19 + "line": 147, + "column": 15 }, "end": { - "line": 104, - "column": 20 + "line": 147, + "column": 16 } } }, @@ -31124,24 +40535,24 @@ "binop": null, "updateContext": null }, - "start": 4438, - "end": 4439, + "start": 5786, + "end": 5787, "loc": { "start": { - "line": 104, - "column": 21 + "line": 147, + "column": 16 }, "end": { - "line": 104, - "column": 22 + "line": 147, + "column": 17 } } }, { "type": { - "label": "]", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31150,40 +40561,24 @@ "binop": null, "updateContext": null }, - "start": 4439, - "end": 4440, + "value": "rooms", + "start": 5787, + "end": 5794, "loc": { "start": { - "line": 104, - "column": 22 + "line": 147, + "column": 17 }, "end": { - "line": 104, - "column": 23 - } - } - }, - { - "type": "CommentLine", - "value": " Possible winning teams", - "start": 4441, - "end": 4466, - "loc": { - "start": { - "line": 104, + "line": 147, "column": 24 - }, - "end": { - "line": 104, - "column": 49 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -31193,17 +40588,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 4471, - "end": 4474, + "start": 5794, + "end": 5795, "loc": { "start": { - "line": 105, - "column": 4 + "line": 147, + "column": 24 }, "end": { - "line": 105, - "column": 7 + "line": 147, + "column": 25 } } }, @@ -31219,50 +40613,49 @@ "postfix": false, "binop": null }, - "value": "maxScore", - "start": 4475, - "end": 4483, + "value": "room", + "start": 5796, + "end": 5800, "loc": { "start": { - "line": 105, - "column": 8 + "line": 147, + "column": 26 }, "end": { - "line": 105, - "column": 16 + "line": 147, + "column": 30 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4484, - "end": 4485, + "start": 5800, + "end": 5801, "loc": { "start": { - "line": 105, - "column": 17 + "line": 147, + "column": 30 }, "end": { - "line": 105, - "column": 18 + "line": 147, + "column": 31 } } }, { "type": { - "label": "num", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31273,52 +40666,50 @@ "binop": null, "updateContext": null }, - "value": 0, - "start": 4486, - "end": 4487, + "value": "teams", + "start": 5802, + "end": 5809, "loc": { "start": { - "line": 105, - "column": 19 + "line": 147, + "column": 32 }, "end": { - "line": 105, - "column": 20 + "line": 147, + "column": 39 } } }, { "type": { - "label": "for", - "keyword": "for", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "for", - "start": 4492, - "end": 4495, + "start": 5809, + "end": 5810, "loc": { "start": { - "line": 106, - "column": 4 + "line": 147, + "column": 39 }, "end": { - "line": 106, - "column": 7 + "line": 147, + "column": 40 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -31327,23 +40718,23 @@ "postfix": false, "binop": null }, - "start": 4496, - "end": 4497, + "value": "i", + "start": 5811, + "end": 5812, "loc": { "start": { - "line": 106, - "column": 8 + "line": 147, + "column": 41 }, "end": { - "line": 106, - "column": 9 + "line": 147, + "column": 42 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -31354,25 +40745,24 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 4497, - "end": 4500, + "start": 5812, + "end": 5813, "loc": { "start": { - "line": 106, - "column": 9 + "line": 147, + "column": 42 }, "end": { - "line": 106, - "column": 12 + "line": 147, + "column": 43 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31380,43 +40770,42 @@ "postfix": false, "binop": null }, - "value": "tm", - "start": 4501, - "end": 4503, + "start": 5813, + "end": 5814, "loc": { "start": { - "line": 106, - "column": 13 + "line": 147, + "column": 43 }, "end": { - "line": 106, - "column": 15 + "line": 147, + "column": 44 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "of", - "start": 4504, - "end": 4506, + "start": 5814, + "end": 5815, "loc": { "start": { - "line": 106, - "column": 16 + "line": 147, + "column": 44 }, "end": { - "line": 106, - "column": 18 + "line": 147, + "column": 45 } } }, @@ -31432,43 +40821,44 @@ "postfix": false, "binop": null }, - "value": "thisRoom", - "start": 4507, - "end": 4515, + "value": "name", + "start": 5815, + "end": 5819, "loc": { "start": { - "line": 106, - "column": 19 + "line": 147, + "column": 45 }, "end": { - "line": 106, - "column": 27 + "line": 147, + "column": 49 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 4515, - "end": 4516, + "value": "===", + "start": 5820, + "end": 5823, "loc": { "start": { - "line": 106, - "column": 27 + "line": 147, + "column": 50 }, "end": { - "line": 106, - "column": 28 + "line": 147, + "column": 53 } } }, @@ -31484,25 +40874,25 @@ "postfix": false, "binop": null }, - "value": "teams", - "start": 4516, - "end": 4521, + "value": "getField", + "start": 5824, + "end": 5832, "loc": { "start": { - "line": 106, - "column": 28 + "line": 147, + "column": 54 }, "end": { - "line": 106, - "column": 33 + "line": 147, + "column": 62 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31510,22 +40900,22 @@ "postfix": false, "binop": null }, - "start": 4521, - "end": 4522, + "start": 5832, + "end": 5833, "loc": { "start": { - "line": 106, - "column": 33 + "line": 147, + "column": 62 }, "end": { - "line": 106, - "column": 34 + "line": 147, + "column": 63 } } }, { "type": { - "label": "{", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -31533,27 +40923,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4523, - "end": 4524, + "start": 5833, + "end": 5834, "loc": { "start": { - "line": 106, - "column": 35 + "line": 147, + "column": 63 }, "end": { - "line": 106, - "column": 36 + "line": 147, + "column": 64 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31562,42 +40952,43 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 4530, - "end": 4532, + "value": "rooms", + "start": 5834, + "end": 5841, "loc": { "start": { - "line": 107, - "column": 5 + "line": 147, + "column": 64 }, "end": { - "line": 107, - "column": 7 + "line": 147, + "column": 71 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4533, - "end": 4534, + "start": 5841, + "end": 5842, "loc": { "start": { - "line": 107, - "column": 8 + "line": 147, + "column": 71 }, "end": { - "line": 107, - "column": 9 + "line": 147, + "column": 72 } } }, @@ -31613,24 +41004,24 @@ "postfix": false, "binop": null }, - "value": "tm", - "start": 4534, - "end": 4536, + "value": "room", + "start": 5843, + "end": 5847, "loc": { "start": { - "line": 107, - "column": 9 + "line": 147, + "column": 73 }, "end": { - "line": 107, - "column": 11 + "line": 147, + "column": 77 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -31640,22 +41031,22 @@ "binop": null, "updateContext": null }, - "start": 4536, - "end": 4537, + "start": 5847, + "end": 5848, "loc": { "start": { - "line": 107, - "column": 11 + "line": 147, + "column": 77 }, "end": { - "line": 107, - "column": 12 + "line": 147, + "column": 78 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31663,25 +41054,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "score", - "start": 4537, - "end": 4542, + "value": "players", + "start": 5849, + "end": 5858, "loc": { "start": { - "line": 107, - "column": 12 + "line": 147, + "column": 79 }, "end": { - "line": 107, - "column": 17 + "line": 147, + "column": 88 } } }, { "type": { - "label": "", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -31689,20 +41081,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": ">=", - "start": 4543, - "end": 4545, + "start": 5858, + "end": 5859, "loc": { "start": { - "line": 107, - "column": 18 + "line": 147, + "column": 88 }, "end": { - "line": 107, - "column": 20 + "line": 147, + "column": 89 } } }, @@ -31718,24 +41109,24 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 4546, - "end": 4552, + "value": "player", + "start": 5860, + "end": 5866, "loc": { "start": { - "line": 107, - "column": 21 + "line": 147, + "column": 90 }, "end": { - "line": 107, - "column": 27 + "line": 147, + "column": 96 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -31745,22 +41136,22 @@ "binop": null, "updateContext": null }, - "start": 4552, - "end": 4553, + "start": 5866, + "end": 5867, "loc": { "start": { - "line": 107, - "column": 27 + "line": 147, + "column": 96 }, "end": { - "line": 107, - "column": 28 + "line": 147, + "column": 97 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31768,25 +41159,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "WINNING_SCORE", - "start": 4553, - "end": 4566, + "value": "team", + "start": 5868, + "end": 5874, "loc": { "start": { - "line": 107, - "column": 28 + "line": 147, + "column": 98 }, "end": { - "line": 107, - "column": 41 + "line": 147, + "column": 104 } } }, { "type": { - "label": ")", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -31794,51 +41186,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 4566, - "end": 4567, - "loc": { - "start": { - "line": 107, - "column": 41 - }, - "end": { - "line": 107, - "column": 42 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4568, - "end": 4569, + "start": 5874, + "end": 5875, "loc": { "start": { - "line": 107, - "column": 43 + "line": 147, + "column": 104 }, "end": { - "line": 107, - "column": 44 + "line": 147, + "column": 105 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31846,23 +41214,22 @@ "postfix": false, "binop": null }, - "value": "highScores", - "start": 4576, - "end": 4586, + "start": 5875, + "end": 5876, "loc": { "start": { - "line": 108, - "column": 6 + "line": 147, + "column": 105 }, "end": { - "line": 108, - "column": 16 + "line": 147, + "column": 106 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -31870,26 +41237,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4586, - "end": 4587, + "start": 5876, + "end": 5877, "loc": { "start": { - "line": 108, - "column": 16 + "line": 147, + "column": 106 }, "end": { - "line": 108, - "column": 17 + "line": 147, + "column": 107 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -31898,76 +41264,68 @@ "postfix": false, "binop": null }, - "value": "push", - "start": 4587, - "end": 4591, + "start": 5878, + "end": 5879, "loc": { "start": { - "line": 108, - "column": 17 + "line": 147, + "column": 108 }, "end": { - "line": 108, - "column": 21 + "line": 147, + "column": 109 } } }, { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4591, - "end": 4592, + "type": "CommentLine", + "value": " Notify clients of texture change", + "start": 5884, + "end": 5919, "loc": { "start": { - "line": 108, - "column": 21 + "line": 148, + "column": 4 }, "end": { - "line": 108, - "column": 22 + "line": 148, + "column": 39 } } }, { "type": { - "label": "name", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "tm", - "start": 4592, - "end": 4594, + "value": "let", + "start": 5924, + "end": 5927, "loc": { "start": { - "line": 108, - "column": 22 + "line": 149, + "column": 4 }, "end": { - "line": 108, - "column": 24 + "line": 149, + "column": 7 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31975,50 +41333,50 @@ "postfix": false, "binop": null }, - "start": 4594, - "end": 4595, + "value": "data", + "start": 5928, + "end": 5932, "loc": { "start": { - "line": 108, - "column": 24 + "line": 149, + "column": 8 }, "end": { - "line": 108, - "column": 25 + "line": 149, + "column": 12 } } }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, + { + "type": { + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "if", - "start": 4602, - "end": 4604, + "value": "=", + "start": 5933, + "end": 5934, "loc": { "start": { - "line": 109, - "column": 6 + "line": 149, + "column": 13 }, "end": { - "line": 109, - "column": 8 + "line": 149, + "column": 14 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -32028,16 +41386,16 @@ "postfix": false, "binop": null }, - "start": 4605, - "end": 4606, + "start": 5935, + "end": 5936, "loc": { "start": { - "line": 109, - "column": 9 + "line": 149, + "column": 15 }, "end": { - "line": 109, - "column": 10 + "line": 149, + "column": 16 } } }, @@ -32053,23 +41411,23 @@ "postfix": false, "binop": null }, - "value": "maxScore", - "start": 4606, - "end": 4614, + "value": "teamNumber", + "start": 5942, + "end": 5952, "loc": { "start": { - "line": 109, - "column": 10 + "line": 150, + "column": 5 }, "end": { - "line": 109, - "column": 18 + "line": 150, + "column": 15 } } }, { "type": { - "label": "", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -32077,20 +41435,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": "<", - "start": 4615, - "end": 4616, + "start": 5952, + "end": 5953, "loc": { "start": { - "line": 109, - "column": 19 + "line": 150, + "column": 15 }, "end": { - "line": 109, - "column": 20 + "line": 150, + "column": 16 } } }, @@ -32106,24 +41463,24 @@ "postfix": false, "binop": null }, - "value": "tm", - "start": 4617, - "end": 4619, + "value": "i", + "start": 5954, + "end": 5955, "loc": { "start": { - "line": 109, - "column": 21 + "line": 150, + "column": 17 }, "end": { - "line": 109, - "column": 23 + "line": 150, + "column": 18 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -32133,16 +41490,16 @@ "binop": null, "updateContext": null }, - "start": 4619, - "end": 4620, + "start": 5955, + "end": 5956, "loc": { "start": { - "line": 109, - "column": 23 + "line": 150, + "column": 18 }, "end": { - "line": 109, - "column": 24 + "line": 150, + "column": 19 } } }, @@ -32158,49 +41515,50 @@ "postfix": false, "binop": null }, - "value": "score", - "start": 4620, - "end": 4625, + "value": "tileX", + "start": 5962, + "end": 5967, "loc": { "start": { - "line": 109, - "column": 24 + "line": 151, + "column": 5 }, "end": { - "line": 109, - "column": 29 + "line": 151, + "column": 10 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4625, - "end": 4626, + "start": 5967, + "end": 5968, "loc": { "start": { - "line": 109, - "column": 29 + "line": 151, + "column": 10 }, "end": { - "line": 109, - "column": 30 + "line": 151, + "column": 11 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -32209,23 +41567,24 @@ "postfix": false, "binop": null }, - "start": 4627, - "end": 4628, + "value": "getField", + "start": 5969, + "end": 5977, "loc": { "start": { - "line": 109, - "column": 31 + "line": 151, + "column": 12 }, "end": { - "line": 109, - "column": 32 + "line": 151, + "column": 20 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -32234,50 +41593,48 @@ "postfix": false, "binop": null }, - "value": "maxScore", - "start": 4636, - "end": 4644, + "start": 5977, + "end": 5978, "loc": { "start": { - "line": 110, - "column": 7 + "line": 151, + "column": 20 }, "end": { - "line": 110, - "column": 15 + "line": 151, + "column": 21 } } }, { "type": { - "label": "=", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4645, - "end": 4646, + "start": 5978, + "end": 5979, "loc": { "start": { - "line": 110, - "column": 16 + "line": 151, + "column": 21 }, "end": { - "line": 110, - "column": 17 + "line": 151, + "column": 22 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32285,26 +41642,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "tm", - "start": 4647, - "end": 4649, + "value": "rooms", + "start": 5979, + "end": 5986, "loc": { "start": { - "line": 110, - "column": 18 + "line": 151, + "column": 22 }, "end": { - "line": 110, - "column": 20 + "line": 151, + "column": 29 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -32314,16 +41672,16 @@ "binop": null, "updateContext": null }, - "start": 4649, - "end": 4650, + "start": 5986, + "end": 5987, "loc": { "start": { - "line": 110, - "column": 20 + "line": 151, + "column": 29 }, "end": { - "line": 110, - "column": 21 + "line": 151, + "column": 30 } } }, @@ -32339,75 +41697,104 @@ "postfix": false, "binop": null }, - "value": "score", - "start": 4650, - "end": 4655, + "value": "room", + "start": 5988, + "end": 5992, "loc": { "start": { - "line": 110, - "column": 21 + "line": 151, + "column": 31 }, "end": { - "line": 110, - "column": 26 + "line": 151, + "column": 35 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4662, - "end": 4663, + "start": 5992, + "end": 5993, "loc": { "start": { - "line": 111, - "column": 6 + "line": 151, + "column": 35 }, "end": { - "line": 111, - "column": 7 + "line": 151, + "column": 36 } } }, { "type": { - "label": "}", + "label": "string", "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "tiles", + "start": 5994, + "end": 6001, + "loc": { + "start": { + "line": 151, + "column": 37 + }, + "end": { + "line": 151, + "column": 44 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4669, - "end": 4670, + "start": 6001, + "end": 6002, "loc": { "start": { - "line": 112, - "column": 5 + "line": 151, + "column": 44 }, "end": { - "line": 112, - "column": 6 + "line": 151, + "column": 45 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32415,76 +41802,76 @@ "postfix": false, "binop": null }, - "start": 4675, - "end": 4676, + "value": "tileID", + "start": 6003, + "end": 6009, "loc": { "start": { - "line": 113, - "column": 4 + "line": 151, + "column": 46 }, "end": { - "line": 113, - "column": 5 + "line": 151, + "column": 52 } } }, { "type": { - "label": "for", - "keyword": "for", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "for", - "start": 4681, - "end": 4684, + "start": 6009, + "end": 6010, "loc": { "start": { - "line": 114, - "column": 4 + "line": 151, + "column": 52 }, "end": { - "line": 114, - "column": 7 + "line": 151, + "column": 53 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4685, - "end": 4686, + "value": "globalX", + "start": 6011, + "end": 6020, "loc": { "start": { - "line": 114, - "column": 8 + "line": 151, + "column": 54 }, "end": { - "line": 114, - "column": 9 + "line": 151, + "column": 63 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -32495,25 +41882,24 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 4686, - "end": 4689, + "start": 6020, + "end": 6021, "loc": { "start": { - "line": 114, - "column": 9 + "line": 151, + "column": 63 }, "end": { - "line": 114, - "column": 12 + "line": 151, + "column": 64 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32521,43 +41907,42 @@ "postfix": false, "binop": null }, - "value": "winningTm", - "start": 4690, - "end": 4699, + "start": 6021, + "end": 6022, "loc": { "start": { - "line": 114, - "column": 13 + "line": 151, + "column": 64 }, "end": { - "line": 114, - "column": 22 + "line": 151, + "column": 65 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "of", - "start": 4700, - "end": 4702, + "start": 6022, + "end": 6023, "loc": { "start": { - "line": 114, - "column": 23 + "line": 151, + "column": 65 }, "end": { - "line": 114, - "column": 25 + "line": 151, + "column": 66 } } }, @@ -32573,49 +41958,50 @@ "postfix": false, "binop": null }, - "value": "highScores", - "start": 4703, - "end": 4713, + "value": "tileY", + "start": 6029, + "end": 6034, "loc": { "start": { - "line": 114, - "column": 26 + "line": 152, + "column": 5 }, "end": { - "line": 114, - "column": 36 + "line": 152, + "column": 10 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4713, - "end": 4714, + "start": 6034, + "end": 6035, "loc": { "start": { - "line": 114, - "column": 36 + "line": 152, + "column": 10 }, "end": { - "line": 114, - "column": 37 + "line": 152, + "column": 11 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -32624,50 +42010,48 @@ "postfix": false, "binop": null }, - "start": 4715, - "end": 4716, + "value": "getField", + "start": 6036, + "end": 6044, "loc": { "start": { - "line": 114, - "column": 38 + "line": 152, + "column": 12 }, "end": { - "line": 114, - "column": 39 + "line": 152, + "column": 20 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 4722, - "end": 4724, + "start": 6044, + "end": 6045, "loc": { "start": { - "line": 115, - "column": 5 + "line": 152, + "column": 20 }, "end": { - "line": 115, - "column": 7 + "line": 152, + "column": 21 } } }, { "type": { - "label": "(", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -32675,24 +42059,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4725, - "end": 4726, + "start": 6045, + "end": 6046, "loc": { "start": { - "line": 115, - "column": 8 + "line": 152, + "column": 21 }, "end": { - "line": 115, - "column": 9 + "line": 152, + "column": 22 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32700,26 +42085,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "winningTm", - "start": 4726, - "end": 4735, + "value": "rooms", + "start": 6046, + "end": 6053, "loc": { "start": { - "line": 115, - "column": 9 + "line": 152, + "column": 22 }, "end": { - "line": 115, - "column": 18 + "line": 152, + "column": 29 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -32729,16 +42115,16 @@ "binop": null, "updateContext": null }, - "start": 4735, - "end": 4736, + "start": 6053, + "end": 6054, "loc": { "start": { - "line": 115, - "column": 18 + "line": 152, + "column": 29 }, "end": { - "line": 115, - "column": 19 + "line": 152, + "column": 30 } } }, @@ -32754,23 +42140,23 @@ "postfix": false, "binop": null }, - "value": "score", - "start": 4736, - "end": 4741, + "value": "room", + "start": 6055, + "end": 6059, "loc": { "start": { - "line": 115, - "column": 19 + "line": 152, + "column": 31 }, "end": { - "line": 115, - "column": 24 + "line": 152, + "column": 35 } } }, { "type": { - "label": "==/!=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -32778,26 +42164,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 4742, - "end": 4745, + "start": 6059, + "end": 6060, "loc": { "start": { - "line": 115, - "column": 25 + "line": 152, + "column": 35 }, "end": { - "line": 115, - "column": 28 + "line": 152, + "column": 36 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32805,51 +42190,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "maxScore", - "start": 4746, - "end": 4754, + "value": "tiles", + "start": 6061, + "end": 6068, "loc": { "start": { - "line": 115, - "column": 29 + "line": 152, + "column": 37 }, "end": { - "line": 115, - "column": 37 + "line": 152, + "column": 44 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4754, - "end": 4755, + "start": 6068, + "end": 6069, "loc": { "start": { - "line": 115, - "column": 37 + "line": 152, + "column": 44 }, "end": { - "line": 115, - "column": 38 + "line": 152, + "column": 45 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -32858,24 +42245,24 @@ "postfix": false, "binop": null }, - "start": 4756, - "end": 4757, + "value": "tileID", + "start": 6070, + "end": 6076, "loc": { "start": { - "line": 115, - "column": 39 + "line": 152, + "column": 46 }, "end": { - "line": 115, - "column": 40 + "line": 152, + "column": 52 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -32885,23 +42272,22 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 4764, - "end": 4767, + "start": 6076, + "end": 6077, "loc": { "start": { - "line": 116, - "column": 6 + "line": 152, + "column": 52 }, "end": { - "line": 116, - "column": 9 + "line": 152, + "column": 53 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32909,54 +42295,54 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "dataToSend", - "start": 4768, - "end": 4778, + "value": "globalY", + "start": 6078, + "end": 6087, "loc": { "start": { - "line": 116, - "column": 10 + "line": 152, + "column": 54 }, "end": { - "line": 116, - "column": 20 + "line": 152, + "column": 63 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4779, - "end": 4780, + "start": 6087, + "end": 6088, "loc": { "start": { - "line": 116, - "column": 21 + "line": 152, + "column": 63 }, "end": { - "line": 116, - "column": 22 + "line": 152, + "column": 64 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32964,24 +42350,24 @@ "postfix": false, "binop": null }, - "start": 4781, - "end": 4782, + "start": 6088, + "end": 6089, "loc": { "start": { - "line": 116, - "column": 23 + "line": 152, + "column": 64 }, "end": { - "line": 116, - "column": 24 + "line": 152, + "column": 65 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32989,109 +42375,127 @@ "postfix": false, "binop": null }, - "value": "winner", - "start": 4790, - "end": 4796, + "start": 6094, + "end": 6095, "loc": { "start": { - "line": 117, - "column": 7 + "line": 153, + "column": 4 }, "end": { - "line": 117, - "column": 13 + "line": 153, + "column": 5 } } }, { "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4796, - "end": 4797, + "value": "socket", + "start": 6100, + "end": 6106, "loc": { "start": { - "line": 117, - "column": 13 + "line": 154, + "column": 4 }, "end": { - "line": 117, - "column": 14 + "line": 154, + "column": 10 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "winningTm", - "start": 4798, - "end": 4807, + "start": 6106, + "end": 6107, "loc": { "start": { - "line": 117, - "column": 15 + "line": 154, + "column": 10 }, "end": { - "line": 117, - "column": 24 + "line": 154, + "column": 11 } } }, { - "type": "CommentLine", - "value": " teamScore: thisRoom.teams[dataToSend.teamSlot].score", - "start": 4815, - "end": 4870, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "to", + "start": 6107, + "end": 6109, "loc": { "start": { - "line": 118, - "column": 7 + "line": 154, + "column": 11 }, "end": { - "line": 118, - "column": 62 + "line": 154, + "column": 13 } } }, { - "type": "CommentLine", - "value": " other data here TODO post ranking", - "start": 4878, - "end": 4914, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6109, + "end": 6110, "loc": { "start": { - "line": 119, - "column": 7 + "line": 154, + "column": 13 }, "end": { - "line": 119, - "column": 43 + "line": 154, + "column": 14 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33099,24 +42503,25 @@ "postfix": false, "binop": null }, - "start": 4921, - "end": 4922, + "value": "room", + "start": 6110, + "end": 6114, "loc": { "start": { - "line": 120, - "column": 6 + "line": 154, + "column": 14 }, "end": { - "line": 120, - "column": 7 + "line": 154, + "column": 18 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33124,17 +42529,16 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 4929, - "end": 4935, + "start": 6114, + "end": 6115, "loc": { "start": { - "line": 121, - "column": 6 + "line": 154, + "column": 18 }, "end": { - "line": 121, - "column": 12 + "line": 154, + "column": 19 } } }, @@ -33151,16 +42555,16 @@ "binop": null, "updateContext": null }, - "start": 4935, - "end": 4936, + "start": 6115, + "end": 6116, "loc": { "start": { - "line": 121, - "column": 12 + "line": 154, + "column": 19 }, "end": { - "line": 121, - "column": 13 + "line": 154, + "column": 20 } } }, @@ -33176,17 +42580,17 @@ "postfix": false, "binop": null }, - "value": "to", - "start": 4936, - "end": 4938, + "value": "emit", + "start": 6116, + "end": 6120, "loc": { "start": { - "line": 121, - "column": 13 + "line": 154, + "column": 20 }, "end": { - "line": 121, - "column": 15 + "line": 154, + "column": 24 } } }, @@ -33202,22 +42606,22 @@ "postfix": false, "binop": null }, - "start": 4938, - "end": 4939, + "start": 6120, + "end": 6121, "loc": { "start": { - "line": 121, - "column": 15 + "line": 154, + "column": 24 }, "end": { - "line": 121, - "column": 16 + "line": 154, + "column": 25 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -33225,50 +42629,78 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "room", - "start": 4939, - "end": 4943, + "value": "serverSendTileCapture", + "start": 6121, + "end": 6144, "loc": { "start": { - "line": 121, - "column": 16 + "line": 154, + "column": 25 }, "end": { - "line": 121, - "column": 20 + "line": 154, + "column": 48 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6144, + "end": 6145, + "loc": { + "start": { + "line": 154, + "column": 48 + }, + "end": { + "line": 154, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null }, - "start": 4943, - "end": 4944, + "value": "data", + "start": 6146, + "end": 6150, "loc": { "start": { - "line": 121, - "column": 20 + "line": 154, + "column": 50 }, "end": { - "line": 121, - "column": 21 + "line": 154, + "column": 54 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -33276,19 +42708,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4944, - "end": 4945, + "start": 6150, + "end": 6151, "loc": { "start": { - "line": 121, - "column": 21 + "line": 154, + "column": 54 }, "end": { - "line": 121, - "column": 22 + "line": 154, + "column": 55 } } }, @@ -33304,17 +42735,17 @@ "postfix": false, "binop": null }, - "value": "broadcast", - "start": 4945, - "end": 4954, + "value": "socket", + "start": 6156, + "end": 6162, "loc": { "start": { - "line": 121, - "column": 22 + "line": 155, + "column": 4 }, "end": { - "line": 121, - "column": 31 + "line": 155, + "column": 10 } } }, @@ -33331,16 +42762,16 @@ "binop": null, "updateContext": null }, - "start": 4954, - "end": 4955, + "start": 6162, + "end": 6163, "loc": { "start": { - "line": 121, - "column": 31 + "line": 155, + "column": 10 }, "end": { - "line": 121, - "column": 32 + "line": 155, + "column": 11 } } }, @@ -33357,16 +42788,16 @@ "binop": null }, "value": "emit", - "start": 4955, - "end": 4959, + "start": 6163, + "end": 6167, "loc": { "start": { - "line": 121, - "column": 32 + "line": 155, + "column": 11 }, "end": { - "line": 121, - "column": 36 + "line": 155, + "column": 15 } } }, @@ -33382,16 +42813,16 @@ "postfix": false, "binop": null }, - "start": 4959, - "end": 4960, + "start": 6167, + "end": 6168, "loc": { "start": { - "line": 121, - "column": 36 + "line": 155, + "column": 15 }, "end": { - "line": 121, - "column": 37 + "line": 155, + "column": 16 } } }, @@ -33408,17 +42839,17 @@ "binop": null, "updateContext": null }, - "value": "serverSendWinner", - "start": 4960, - "end": 4978, + "value": "serverSendTileCapture", + "start": 6168, + "end": 6191, "loc": { "start": { - "line": 121, - "column": 37 + "line": 155, + "column": 16 }, "end": { - "line": 121, - "column": 55 + "line": 155, + "column": 39 } } }, @@ -33435,16 +42866,16 @@ "binop": null, "updateContext": null }, - "start": 4978, - "end": 4979, + "start": 6191, + "end": 6192, "loc": { "start": { - "line": 121, - "column": 55 + "line": 155, + "column": 39 }, "end": { - "line": 121, - "column": 56 + "line": 155, + "column": 40 } } }, @@ -33460,17 +42891,17 @@ "postfix": false, "binop": null }, - "value": "dataToSend", - "start": 4980, - "end": 4990, + "value": "data", + "start": 6193, + "end": 6197, "loc": { "start": { - "line": 121, - "column": 57 + "line": 155, + "column": 41 }, "end": { - "line": 121, - "column": 67 + "line": 155, + "column": 45 } } }, @@ -33486,16 +42917,32 @@ "postfix": false, "binop": null }, - "start": 4990, - "end": 4991, + "start": 6197, + "end": 6198, "loc": { "start": { - "line": 121, - "column": 67 + "line": 155, + "column": 45 }, "end": { - "line": 121, - "column": 68 + "line": 155, + "column": 46 + } + } + }, + { + "type": "CommentLine", + "value": " Distribute points", + "start": 6204, + "end": 6224, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 157, + "column": 24 } } }, @@ -33511,43 +42958,42 @@ "postfix": false, "binop": null }, - "value": "socket", - "start": 4998, - "end": 5004, + "value": "incrementField", + "start": 6229, + "end": 6243, "loc": { "start": { - "line": 122, - "column": 6 + "line": 158, + "column": 4 }, "end": { - "line": 122, - "column": 12 + "line": 158, + "column": 18 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5004, - "end": 5005, + "start": 6243, + "end": 6244, "loc": { "start": { - "line": 122, - "column": 12 + "line": 158, + "column": 18 }, "end": { - "line": 122, - "column": 13 + "line": 158, + "column": 19 } } }, @@ -33563,48 +43009,49 @@ "postfix": false, "binop": null }, - "value": "emit", - "start": 5005, - "end": 5009, + "value": "GLOBAL", + "start": 6244, + "end": 6250, "loc": { "start": { - "line": 122, - "column": 13 + "line": 158, + "column": 19 }, "end": { - "line": 122, - "column": 17 + "line": 158, + "column": 25 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5009, - "end": 5010, + "start": 6250, + "end": 6251, "loc": { "start": { - "line": 122, - "column": 17 + "line": 158, + "column": 25 }, "end": { - "line": 122, - "column": 18 + "line": 158, + "column": 26 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -33612,20 +43059,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "serverSendWinner", - "start": 5010, - "end": 5028, + "value": "CAPTURE_SCORE", + "start": 6251, + "end": 6264, "loc": { "start": { - "line": 122, - "column": 18 + "line": 158, + "column": 26 }, "end": { - "line": 122, - "column": 36 + "line": 158, + "column": 39 } } }, @@ -33642,82 +43088,94 @@ "binop": null, "updateContext": null }, - "start": 5028, - "end": 5029, + "start": 6264, + "end": 6265, "loc": { "start": { - "line": 122, - "column": 36 + "line": 158, + "column": 39 }, "end": { - "line": 122, - "column": 37 + "line": 158, + "column": 40 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "dataToSend", - "start": 5030, - "end": 5040, + "start": 6266, + "end": 6267, "loc": { "start": { - "line": 122, - "column": 38 + "line": 158, + "column": 41 }, "end": { - "line": 122, - "column": 48 + "line": 158, + "column": 42 } } }, { "type": { - "label": ")", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5040, - "end": 5041, + "value": "rooms", + "start": 6267, + "end": 6274, "loc": { "start": { - "line": 122, - "column": 48 + "line": 158, + "column": 42 }, "end": { - "line": 122, + "line": 158, "column": 49 } } }, { - "type": "CommentLine", - "value": " Close room after delay (kick all players)", - "start": 5049, - "end": 5093, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6274, + "end": 6275, "loc": { "start": { - "line": 124, - "column": 6 + "line": 158, + "column": 49 }, "end": { - "line": 124, + "line": 158, "column": 50 } } @@ -33734,149 +43192,154 @@ "postfix": false, "binop": null }, - "value": "setTimeout", - "start": 5100, - "end": 5110, + "value": "room", + "start": 6276, + "end": 6280, "loc": { "start": { - "line": 125, - "column": 6 + "line": 158, + "column": 51 }, "end": { - "line": 125, - "column": 16 + "line": 158, + "column": 55 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5110, - "end": 5111, + "start": 6280, + "end": 6281, "loc": { "start": { - "line": 125, - "column": 16 + "line": 158, + "column": 55 }, "end": { - "line": 125, - "column": 17 + "line": 158, + "column": 56 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5111, - "end": 5112, + "value": "teams", + "start": 6282, + "end": 6289, "loc": { "start": { - "line": 125, - "column": 17 + "line": 158, + "column": 57 }, "end": { - "line": 125, - "column": 18 + "line": 158, + "column": 64 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5112, - "end": 5113, + "start": 6289, + "end": 6290, "loc": { "start": { - "line": 125, - "column": 18 + "line": 158, + "column": 64 }, "end": { - "line": 125, - "column": 19 + "line": 158, + "column": 65 } } }, { "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5114, - "end": 5116, + "value": "i", + "start": 6291, + "end": 6292, "loc": { "start": { - "line": 125, - "column": 20 + "line": 158, + "column": 66 }, "end": { - "line": 125, - "column": 22 + "line": 158, + "column": 67 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5117, - "end": 5118, + "start": 6292, + "end": 6293, "loc": { "start": { - "line": 125, - "column": 23 + "line": 158, + "column": 67 }, "end": { - "line": 125, - "column": 24 + "line": 158, + "column": 68 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -33884,25 +43347,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "socket", - "start": 5126, - "end": 5132, + "value": "score", + "start": 6294, + "end": 6301, "loc": { "start": { - "line": 126, - "column": 7 + "line": 158, + "column": 69 }, "end": { - "line": 126, - "column": 13 + "line": 158, + "column": 76 } } }, { "type": { - "label": ".", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -33913,24 +43377,24 @@ "binop": null, "updateContext": null }, - "start": 5132, - "end": 5133, + "start": 6301, + "end": 6302, "loc": { "start": { - "line": 126, - "column": 13 + "line": 158, + "column": 76 }, "end": { - "line": 126, - "column": 14 + "line": 158, + "column": 77 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33938,48 +43402,38 @@ "postfix": false, "binop": null }, - "value": "emit", - "start": 5133, - "end": 5137, + "start": 6302, + "end": 6303, "loc": { "start": { - "line": 126, - "column": 14 + "line": 158, + "column": 77 }, "end": { - "line": 126, - "column": 18 + "line": 158, + "column": 78 } } }, { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5137, - "end": 5138, + "type": "CommentLine", + "value": " Reset health", + "start": 6309, + "end": 6324, "loc": { "start": { - "line": 126, - "column": 18 + "line": 160, + "column": 4 }, "end": { - "line": 126, + "line": 160, "column": 19 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -33987,53 +43441,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "serverSendDisconnect", - "start": 5138, - "end": 5160, + "value": "setField", + "start": 6329, + "end": 6337, "loc": { "start": { - "line": 126, - "column": 19 + "line": 161, + "column": 4 }, "end": { - "line": 126, - "column": 41 + "line": 161, + "column": 12 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5160, - "end": 5161, + "start": 6337, + "end": 6338, "loc": { "start": { - "line": 126, - "column": 41 + "line": 161, + "column": 12 }, "end": { - "line": 126, - "column": 42 + "line": 161, + "column": 13 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -34042,49 +43494,51 @@ "postfix": false, "binop": null }, - "start": 5162, - "end": 5163, + "value": "GLOBAL", + "start": 6338, + "end": 6344, "loc": { "start": { - "line": 126, - "column": 43 + "line": 161, + "column": 13 }, "end": { - "line": 126, - "column": 44 + "line": 161, + "column": 19 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5163, - "end": 5164, + "start": 6344, + "end": 6345, "loc": { "start": { - "line": 126, - "column": 44 + "line": 161, + "column": 19 }, "end": { - "line": 126, - "column": 45 + "line": 161, + "column": 20 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34092,22 +43546,22 @@ "postfix": false, "binop": null }, - "start": 5164, - "end": 5165, + "start": 6345, + "end": 6346, "loc": { "start": { - "line": 126, - "column": 45 + "line": 161, + "column": 20 }, "end": { - "line": 126, - "column": 46 + "line": 161, + "column": 21 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -34115,45 +43569,47 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "socket", - "start": 5173, - "end": 5179, + "value": "MAX_", + "start": 6346, + "end": 6352, "loc": { "start": { - "line": 127, - "column": 7 + "line": 161, + "column": 21 }, "end": { - "line": 127, - "column": 13 + "line": 161, + "column": 27 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 5179, - "end": 5180, + "value": "+", + "start": 6353, + "end": 6354, "loc": { "start": { - "line": 127, - "column": 13 + "line": 161, + "column": 28 }, "end": { - "line": 127, - "column": 14 + "line": 161, + "column": 29 } } }, @@ -34169,17 +43625,17 @@ "postfix": false, "binop": null }, - "value": "to", - "start": 5180, - "end": 5182, + "value": "getField", + "start": 6355, + "end": 6363, "loc": { "start": { - "line": 127, - "column": 14 + "line": 161, + "column": 30 }, "end": { - "line": 127, - "column": 16 + "line": 161, + "column": 38 } } }, @@ -34195,74 +43651,76 @@ "postfix": false, "binop": null }, - "start": 5182, - "end": 5183, + "start": 6363, + "end": 6364, "loc": { "start": { - "line": 127, - "column": 16 + "line": 161, + "column": 38 }, "end": { - "line": 127, - "column": 17 + "line": 161, + "column": 39 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "room", - "start": 5183, - "end": 5187, + "start": 6364, + "end": 6365, "loc": { "start": { - "line": 127, - "column": 17 + "line": 161, + "column": 39 }, "end": { - "line": 127, - "column": 21 + "line": 161, + "column": 40 } } }, { "type": { - "label": ")", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5187, - "end": 5188, + "value": "rooms", + "start": 6365, + "end": 6372, "loc": { "start": { - "line": 127, - "column": 21 + "line": 161, + "column": 40 }, "end": { - "line": 127, - "column": 22 + "line": 161, + "column": 47 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -34272,16 +43730,16 @@ "binop": null, "updateContext": null }, - "start": 5188, - "end": 5189, + "start": 6372, + "end": 6373, "loc": { "start": { - "line": 127, - "column": 22 + "line": 161, + "column": 47 }, "end": { - "line": 127, - "column": 23 + "line": 161, + "column": 48 } } }, @@ -34297,24 +43755,24 @@ "postfix": false, "binop": null }, - "value": "broadcast", - "start": 5189, - "end": 5198, + "value": "room", + "start": 6374, + "end": 6378, "loc": { "start": { - "line": 127, - "column": 23 + "line": 161, + "column": 49 }, "end": { - "line": 127, - "column": 32 + "line": 161, + "column": 53 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -34324,22 +43782,22 @@ "binop": null, "updateContext": null }, - "start": 5198, - "end": 5199, + "start": 6378, + "end": 6379, "loc": { "start": { - "line": 127, - "column": 32 + "line": 161, + "column": 53 }, "end": { - "line": 127, - "column": 33 + "line": 161, + "column": 54 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -34347,50 +43805,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "emit", - "start": 5199, - "end": 5203, + "value": "tiles", + "start": 6380, + "end": 6387, "loc": { "start": { - "line": 127, - "column": 33 + "line": 161, + "column": 55 }, "end": { - "line": 127, - "column": 37 + "line": 161, + "column": 62 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5203, - "end": 5204, + "start": 6387, + "end": 6388, "loc": { "start": { - "line": 127, - "column": 37 + "line": 161, + "column": 62 }, "end": { - "line": 127, - "column": 38 + "line": 161, + "column": 63 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -34398,20 +43858,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "serverSendDisconnect", - "start": 5204, - "end": 5226, + "value": "tileID", + "start": 6389, + "end": 6395, "loc": { "start": { - "line": 127, - "column": 38 + "line": 161, + "column": 64 }, "end": { - "line": 127, - "column": 60 + "line": 161, + "column": 70 } } }, @@ -34428,47 +43887,49 @@ "binop": null, "updateContext": null }, - "start": 5226, - "end": 5227, + "start": 6395, + "end": 6396, "loc": { "start": { - "line": 127, - "column": 60 + "line": 161, + "column": 70 }, "end": { - "line": 127, - "column": 61 + "line": 161, + "column": 71 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5228, - "end": 5229, + "value": "type", + "start": 6397, + "end": 6403, "loc": { "start": { - "line": 127, - "column": 62 + "line": 161, + "column": 72 }, "end": { - "line": 127, - "column": 63 + "line": 161, + "column": 78 } } }, { "type": { - "label": "}", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -34476,18 +43937,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5229, - "end": 5230, + "start": 6403, + "end": 6404, "loc": { "start": { - "line": 127, - "column": 63 + "line": 161, + "column": 78 }, "end": { - "line": 127, - "column": 64 + "line": 161, + "column": 79 } } }, @@ -34503,49 +43965,51 @@ "postfix": false, "binop": null }, - "start": 5230, - "end": 5231, + "start": 6404, + "end": 6405, "loc": { "start": { - "line": 127, - "column": 64 + "line": 161, + "column": 79 }, "end": { - "line": 127, - "column": 65 + "line": 161, + "column": 80 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 5238, - "end": 5239, + "value": "+", + "start": 6406, + "end": 6407, "loc": { "start": { - "line": 128, - "column": 6 + "line": 161, + "column": 81 }, "end": { - "line": 128, - "column": 7 + "line": 161, + "column": 82 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34554,24 +44018,25 @@ "binop": null, "updateContext": null }, - "start": 5239, - "end": 5240, + "value": "_HEALTH", + "start": 6408, + "end": 6417, "loc": { "start": { - "line": 128, - "column": 7 + "line": 161, + "column": 83 }, "end": { - "line": 128, - "column": 8 + "line": 161, + "column": 92 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34579,17 +44044,16 @@ "postfix": false, "binop": null }, - "value": "GLOBAL", - "start": 5241, - "end": 5247, + "start": 6417, + "end": 6418, "loc": { "start": { - "line": 128, - "column": 9 + "line": 161, + "column": 92 }, "end": { - "line": 128, - "column": 15 + "line": 161, + "column": 93 } } }, @@ -34606,16 +44070,16 @@ "binop": null, "updateContext": null }, - "start": 5247, - "end": 5248, + "start": 6418, + "end": 6419, "loc": { "start": { - "line": 128, - "column": 15 + "line": 161, + "column": 93 }, "end": { - "line": 128, - "column": 16 + "line": 161, + "column": 94 } } }, @@ -34631,25 +44095,25 @@ "postfix": false, "binop": null }, - "value": "ROOM_DELETE_DELAY", - "start": 5248, - "end": 5265, + "value": "toUpperCase", + "start": 6419, + "end": 6430, "loc": { "start": { - "line": 128, - "column": 16 + "line": 161, + "column": 94 }, "end": { - "line": 128, - "column": 33 + "line": 161, + "column": 105 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34657,22 +44121,22 @@ "postfix": false, "binop": null }, - "start": 5265, - "end": 5266, + "start": 6430, + "end": 6431, "loc": { "start": { - "line": 128, - "column": 33 + "line": 161, + "column": 105 }, "end": { - "line": 128, - "column": 34 + "line": 161, + "column": 106 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -34682,22 +44146,22 @@ "postfix": false, "binop": null }, - "start": 5272, - "end": 5273, + "start": 6431, + "end": 6432, "loc": { "start": { - "line": 129, - "column": 5 + "line": 161, + "column": 106 }, "end": { - "line": 129, - "column": 6 + "line": 161, + "column": 107 } } }, { "type": { - "label": "}", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -34705,100 +44169,104 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5278, - "end": 5279, + "start": 6432, + "end": 6433, "loc": { "start": { - "line": 130, - "column": 4 + "line": 161, + "column": 107 }, "end": { - "line": 130, - "column": 5 + "line": 161, + "column": 108 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5283, - "end": 5284, + "start": 6433, + "end": 6434, "loc": { "start": { - "line": 131, - "column": 3 + "line": 161, + "column": 108 }, "end": { - "line": 131, - "column": 4 + "line": 161, + "column": 109 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5287, - "end": 5288, + "start": 6435, + "end": 6436, "loc": { "start": { - "line": 132, - "column": 2 + "line": 161, + "column": 110 }, "end": { - "line": 132, - "column": 3 + "line": 161, + "column": 111 } } }, { "type": { - "label": "}", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5290, - "end": 5291, + "value": "rooms", + "start": 6436, + "end": 6443, "loc": { "start": { - "line": 133, - "column": 1 + "line": 161, + "column": 111 }, "end": { - "line": 133, - "column": 2 + "line": 161, + "column": 118 } } }, { "type": { - "label": "else", - "keyword": "else", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -34809,24 +44277,23 @@ "binop": null, "updateContext": null }, - "value": "else", - "start": 5293, - "end": 5297, + "start": 6443, + "end": 6444, "loc": { "start": { - "line": 134, - "column": 1 + "line": 161, + "column": 118 }, "end": { - "line": 134, - "column": 5 + "line": 161, + "column": 119 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -34835,50 +44302,51 @@ "postfix": false, "binop": null }, - "start": 5298, - "end": 5299, + "value": "room", + "start": 6445, + "end": 6449, "loc": { "start": { - "line": 134, - "column": 6 + "line": 161, + "column": 120 }, "end": { - "line": 134, - "column": 7 + "line": 161, + "column": 124 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "console", - "start": 5302, - "end": 5309, + "start": 6449, + "end": 6450, "loc": { "start": { - "line": 135, - "column": 2 + "line": 161, + "column": 124 }, "end": { - "line": 135, - "column": 9 + "line": 161, + "column": 125 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34887,49 +44355,50 @@ "binop": null, "updateContext": null }, - "start": 5309, - "end": 5310, + "value": "tiles", + "start": 6451, + "end": 6458, "loc": { "start": { - "line": 135, - "column": 9 + "line": 161, + "column": 126 }, "end": { - "line": 135, - "column": 10 + "line": 161, + "column": 133 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "warn", - "start": 5310, - "end": 5314, + "start": 6458, + "end": 6459, "loc": { "start": { - "line": 135, - "column": 10 + "line": 161, + "column": 133 }, "end": { - "line": 135, - "column": 14 + "line": 161, + "column": 134 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -34938,24 +44407,25 @@ "postfix": false, "binop": null }, - "start": 5314, - "end": 5315, + "value": "tileID", + "start": 6460, + "end": 6466, "loc": { "start": { - "line": 135, - "column": 14 + "line": 161, + "column": 135 }, "end": { - "line": 135, - "column": 15 + "line": 161, + "column": 141 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34964,76 +44434,75 @@ "binop": null, "updateContext": null }, - "value": "Player of ID ", - "start": 5315, - "end": 5330, + "start": 6466, + "end": 6467, "loc": { "start": { - "line": 135, - "column": 15 + "line": 161, + "column": 141 }, "end": { - "line": 135, - "column": 30 + "line": 161, + "column": 142 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 5331, - "end": 5332, + "value": "health", + "start": 6468, + "end": 6476, "loc": { "start": { - "line": 135, - "column": 31 + "line": 161, + "column": 143 }, "end": { - "line": 135, - "column": 32 + "line": 161, + "column": 151 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 5333, - "end": 5337, + "start": 6476, + "end": 6477, "loc": { "start": { - "line": 135, - "column": 33 + "line": 161, + "column": 151 }, "end": { - "line": 135, - "column": 37 + "line": 161, + "column": 152 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -35041,105 +44510,105 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5337, - "end": 5338, + "start": 6477, + "end": 6478, "loc": { "start": { - "line": 135, - "column": 37 + "line": 161, + "column": 152 }, "end": { - "line": 135, - "column": 38 + "line": 161, + "column": 153 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "player", - "start": 5338, - "end": 5344, + "value": "return", + "start": 6484, + "end": 6490, "loc": { "start": { - "line": 135, - "column": 38 + "line": 163, + "column": 4 }, "end": { - "line": 135, - "column": 44 + "line": 163, + "column": 10 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, + "label": "true", + "keyword": "true", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 5345, - "end": 5346, + "value": "true", + "start": 6491, + "end": 6495, "loc": { "start": { - "line": 135, - "column": 45 + "line": 163, + "column": 11 }, "end": { - "line": 135, - "column": 46 + "line": 163, + "column": 15 } } }, { "type": { - "label": "string", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": " couldn't be damaged because they don't exist!", - "start": 5347, - "end": 5397, + "start": 6499, + "end": 6500, "loc": { "start": { - "line": 135, - "column": 47 + "line": 164, + "column": 3 }, "end": { - "line": 135, - "column": 97 + "line": 164, + "column": 4 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -35149,16 +44618,16 @@ "postfix": false, "binop": null }, - "start": 5397, - "end": 5398, + "start": 6503, + "end": 6504, "loc": { "start": { - "line": 135, - "column": 97 + "line": 165, + "column": 2 }, "end": { - "line": 135, - "column": 98 + "line": 165, + "column": 3 } } }, @@ -35174,15 +44643,15 @@ "postfix": false, "binop": null }, - "start": 5400, - "end": 5401, + "start": 6506, + "end": 6507, "loc": { "start": { - "line": 136, + "line": 166, "column": 1 }, "end": { - "line": 136, + "line": 166, "column": 2 } } @@ -35199,15 +44668,15 @@ "postfix": false, "binop": null }, - "start": 5402, - "end": 5403, + "start": 6508, + "end": 6509, "loc": { "start": { - "line": 137, + "line": 167, "column": 0 }, "end": { - "line": 137, + "line": 167, "column": 1 } } @@ -35215,15 +44684,15 @@ { "type": "CommentBlock", "value": "*\n * TODO\n ", - "start": 5405, - "end": 5420, + "start": 6511, + "end": 6526, "loc": { "start": { - "line": 139, + "line": 169, "column": 0 }, "end": { - "line": 141, + "line": 171, "column": 3 } } @@ -35243,15 +44712,15 @@ "updateContext": null }, "value": "export", - "start": 5421, - "end": 5427, + "start": 6527, + "end": 6533, "loc": { "start": { - "line": 142, + "line": 172, "column": 0 }, "end": { - "line": 142, + "line": 172, "column": 6 } } @@ -35270,15 +44739,15 @@ "binop": null }, "value": "function", - "start": 5428, - "end": 5436, + "start": 6534, + "end": 6542, "loc": { "start": { - "line": 142, + "line": 172, "column": 7 }, "end": { - "line": 142, + "line": 172, "column": 15 } } @@ -35296,15 +44765,15 @@ "binop": null }, "value": "splash", - "start": 5437, - "end": 5443, + "start": 6543, + "end": 6549, "loc": { "start": { - "line": 142, + "line": 172, "column": 16 }, "end": { - "line": 142, + "line": 172, "column": 22 } } @@ -35321,15 +44790,15 @@ "postfix": false, "binop": null }, - "start": 5444, - "end": 5445, + "start": 6550, + "end": 6551, "loc": { "start": { - "line": 142, + "line": 172, "column": 23 }, "end": { - "line": 142, + "line": 172, "column": 24 } } @@ -35346,15 +44815,15 @@ "postfix": false, "binop": null }, - "start": 5445, - "end": 5446, + "start": 6551, + "end": 6552, "loc": { "start": { - "line": 142, + "line": 172, "column": 24 }, "end": { - "line": 142, + "line": 172, "column": 25 } } @@ -35371,15 +44840,15 @@ "postfix": false, "binop": null }, - "start": 5447, - "end": 5448, + "start": 6553, + "end": 6554, "loc": { "start": { - "line": 142, + "line": 172, "column": 26 }, "end": { - "line": 142, + "line": 172, "column": 27 } } @@ -35396,15 +44865,15 @@ "postfix": false, "binop": null }, - "start": 5450, - "end": 5451, + "start": 6556, + "end": 6557, "loc": { "start": { - "line": 144, + "line": 174, "column": 0 }, "end": { - "line": 144, + "line": 174, "column": 1 } } @@ -35422,15 +44891,15 @@ "binop": null, "updateContext": null }, - "start": 5452, - "end": 5452, + "start": 6558, + "end": 6558, "loc": { "start": { - "line": 145, + "line": 175, "column": 0 }, "end": { - "line": 145, + "line": 175, "column": 0 } } diff --git a/docs/ast/source/server/utils/serverinit.js.json b/docs/ast/source/server/utils/serverinit.js.json index b87f533..6ff6d33 100644 --- a/docs/ast/source/server/utils/serverinit.js.json +++ b/docs/ast/source/server/utils/serverinit.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 4059, + "end": 4009, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 127, + "line": 126, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 4059, + "end": 4009, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 127, + "line": 126, "column": 0 } }, @@ -3967,14 +3967,14 @@ { "type": "ExportNamedDeclaration", "start": 1878, - "end": 4058, + "end": 4008, "loc": { "start": { "line": 58, "column": 0 }, "end": { - "line": 126, + "line": 125, "column": 1 } }, @@ -3983,14 +3983,14 @@ "declaration": { "type": "FunctionDeclaration", "start": 1885, - "end": 4058, + "end": 4008, "loc": { "start": { "line": 58, "column": 7 }, "end": { - "line": 126, + "line": 125, "column": 1 } }, @@ -4071,14 +4071,14 @@ "body": { "type": "BlockStatement", "start": 1926, - "end": 4058, + "end": 4008, "loc": { "start": { "line": 58, "column": 48 }, "end": { - "line": 126, + "line": 125, "column": 1 } }, @@ -4264,14 +4264,14 @@ { "type": "IfStatement", "start": 2072, - "end": 3189, + "end": 3139, "loc": { "start": { "line": 63, "column": 1 }, "end": { - "line": 99, + "line": 98, "column": 2 } }, @@ -4395,14 +4395,14 @@ "consequent": { "type": "BlockStatement", "start": 2121, - "end": 3189, + "end": 3139, "loc": { "start": { "line": 63, "column": 50 }, "end": { - "line": 99, + "line": 98, "column": 2 } }, @@ -7584,196 +7584,6 @@ } } ] - }, - { - "type": "ExpressionStatement", - "start": 3139, - "end": 3186, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 98, - "column": 49 - } - }, - "expression": { - "type": "CallExpression", - "start": 3139, - "end": 3186, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 98, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3139, - "end": 3150, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 98, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3139, - "end": 3146, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 98, - "column": 9 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 3147, - "end": 3150, - "loc": { - "start": { - "line": 98, - "column": 10 - }, - "end": { - "line": 98, - "column": 13 - }, - "identifierName": "log" - }, - "name": "log" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3151, - "end": 3185, - "loc": { - "start": { - "line": 98, - "column": 14 - }, - "end": { - "line": 98, - "column": 48 - } - }, - "callee": { - "type": "Identifier", - "start": 3151, - "end": 3159, - "loc": { - "start": { - "line": 98, - "column": 14 - }, - "end": { - "line": 98, - "column": 22 - }, - "identifierName": "getField" - }, - "name": "getField" - }, - "arguments": [ - { - "type": "ArrayExpression", - "start": 3160, - "end": 3184, - "loc": { - "start": { - "line": 98, - "column": 23 - }, - "end": { - "line": 98, - "column": 47 - } - }, - "elements": [ - { - "type": "StringLiteral", - "start": 3161, - "end": 3168, - "loc": { - "start": { - "line": 98, - "column": 24 - }, - "end": { - "line": 98, - "column": 31 - } - }, - "extra": { - "rawValue": "rooms", - "raw": "'rooms'" - }, - "value": "rooms" - }, - { - "type": "Identifier", - "start": 3170, - "end": 3174, - "loc": { - "start": { - "line": 98, - "column": 33 - }, - "end": { - "line": 98, - "column": 37 - }, - "identifierName": "room" - }, - "name": "room" - }, - { - "type": "StringLiteral", - "start": 3176, - "end": 3183, - "loc": { - "start": { - "line": 98, - "column": 39 - }, - "end": { - "line": 98, - "column": 46 - } - }, - "extra": { - "rawValue": "tiles", - "raw": "'tiles'" - }, - "value": "tiles" - } - ] - } - ] - } - ] - } } ], "directives": [] @@ -7800,44 +7610,44 @@ }, { "type": "ExpressionStatement", - "start": 3191, - "end": 3227, + "start": 3141, + "end": 3177, "loc": { "start": { - "line": 100, + "line": 99, "column": 1 }, "end": { - "line": 100, + "line": 99, "column": 37 } }, "expression": { "type": "AssignmentExpression", - "start": 3191, - "end": 3227, + "start": 3141, + "end": 3177, "loc": { "start": { - "line": 100, + "line": 99, "column": 1 }, "end": { - "line": 100, + "line": 99, "column": 37 } }, "operator": "=", "left": { "type": "Identifier", - "start": 3191, - "end": 3199, + "start": 3141, + "end": 3149, "loc": { "start": { - "line": 100, + "line": 99, "column": 1 }, "end": { - "line": 100, + "line": 99, "column": 9 }, "identifierName": "thisRoom" @@ -7846,29 +7656,29 @@ }, "right": { "type": "CallExpression", - "start": 3202, - "end": 3227, + "start": 3152, + "end": 3177, "loc": { "start": { - "line": 100, + "line": 99, "column": 12 }, "end": { - "line": 100, + "line": 99, "column": 37 } }, "callee": { "type": "Identifier", - "start": 3202, - "end": 3210, + "start": 3152, + "end": 3160, "loc": { "start": { - "line": 100, + "line": 99, "column": 12 }, "end": { - "line": 100, + "line": 99, "column": 20 }, "identifierName": "getField" @@ -7878,30 +7688,30 @@ "arguments": [ { "type": "ArrayExpression", - "start": 3211, - "end": 3226, + "start": 3161, + "end": 3176, "loc": { "start": { - "line": 100, + "line": 99, "column": 21 }, "end": { - "line": 100, + "line": 99, "column": 36 } }, "elements": [ { "type": "StringLiteral", - "start": 3212, - "end": 3219, + "start": 3162, + "end": 3169, "loc": { "start": { - "line": 100, + "line": 99, "column": 22 }, "end": { - "line": 100, + "line": 99, "column": 29 } }, @@ -7913,15 +7723,15 @@ }, { "type": "Identifier", - "start": 3221, - "end": 3225, + "start": 3171, + "end": 3175, "loc": { "start": { - "line": 100, + "line": 99, "column": 31 }, "end": { - "line": 100, + "line": 99, "column": 35 }, "identifierName": "room" @@ -7939,15 +7749,15 @@ { "type": "CommentLine", "value": " Add team to database", - "start": 3230, - "end": 3253, + "start": 3180, + "end": 3203, "loc": { "start": { - "line": 102, + "line": 101, "column": 1 }, "end": { - "line": 102, + "line": 101, "column": 24 } } @@ -7955,15 +7765,15 @@ { "type": "CommentLine", "value": " Equivalent to rooms[room].teams.push({ name: team });", - "start": 3256, - "end": 3312, + "start": 3206, + "end": 3262, "loc": { "start": { - "line": 104, + "line": 103, "column": 1 }, "end": { - "line": 104, + "line": 103, "column": 57 } } @@ -7972,43 +7782,43 @@ }, { "type": "ExpressionStatement", - "start": 3314, - "end": 3407, + "start": 3264, + "end": 3357, "loc": { "start": { - "line": 105, + "line": 104, "column": 1 }, "end": { - "line": 105, + "line": 104, "column": 94 } }, "expression": { "type": "CallExpression", - "start": 3314, - "end": 3407, + "start": 3264, + "end": 3357, "loc": { "start": { - "line": 105, + "line": 104, "column": 1 }, "end": { - "line": 105, + "line": 104, "column": 94 } }, "callee": { "type": "Identifier", - "start": 3314, - "end": 3322, + "start": 3264, + "end": 3272, "loc": { "start": { - "line": 105, + "line": 104, "column": 1 }, "end": { - "line": 105, + "line": 104, "column": 9 }, "identifierName": "setField" @@ -8019,30 +7829,30 @@ "arguments": [ { "type": "ObjectExpression", - "start": 3323, - "end": 3337, + "start": 3273, + "end": 3287, "loc": { "start": { - "line": 105, + "line": 104, "column": 10 }, "end": { - "line": 105, + "line": 104, "column": 24 } }, "properties": [ { "type": "ObjectProperty", - "start": 3325, - "end": 3335, + "start": 3275, + "end": 3285, "loc": { "start": { - "line": 105, + "line": 104, "column": 12 }, "end": { - "line": 105, + "line": 104, "column": 22 } }, @@ -8051,15 +7861,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3325, - "end": 3329, + "start": 3275, + "end": 3279, "loc": { "start": { - "line": 105, + "line": 104, "column": 12 }, "end": { - "line": 105, + "line": 104, "column": 16 }, "identifierName": "name" @@ -8068,15 +7878,15 @@ }, "value": { "type": "Identifier", - "start": 3331, - "end": 3335, + "start": 3281, + "end": 3285, "loc": { "start": { - "line": 105, + "line": 104, "column": 18 }, "end": { - "line": 105, + "line": 104, "column": 22 }, "identifierName": "team" @@ -8088,30 +7898,30 @@ }, { "type": "ArrayExpression", - "start": 3339, - "end": 3406, + "start": 3289, + "end": 3356, "loc": { "start": { - "line": 105, + "line": 104, "column": 26 }, "end": { - "line": 105, + "line": 104, "column": 93 } }, "elements": [ { "type": "StringLiteral", - "start": 3340, - "end": 3347, + "start": 3290, + "end": 3297, "loc": { "start": { - "line": 105, + "line": 104, "column": 27 }, "end": { - "line": 105, + "line": 104, "column": 34 } }, @@ -8123,15 +7933,15 @@ }, { "type": "Identifier", - "start": 3349, - "end": 3353, + "start": 3299, + "end": 3303, "loc": { "start": { - "line": 105, + "line": 104, "column": 36 }, "end": { - "line": 105, + "line": 104, "column": 40 }, "identifierName": "room" @@ -8140,15 +7950,15 @@ }, { "type": "StringLiteral", - "start": 3355, - "end": 3362, + "start": 3305, + "end": 3312, "loc": { "start": { - "line": 105, + "line": 104, "column": 42 }, "end": { - "line": 105, + "line": 104, "column": 49 } }, @@ -8160,43 +7970,43 @@ }, { "type": "MemberExpression", - "start": 3364, - "end": 3405, + "start": 3314, + "end": 3355, "loc": { "start": { - "line": 105, + "line": 104, "column": 51 }, "end": { - "line": 105, + "line": 104, "column": 92 } }, "object": { "type": "CallExpression", - "start": 3364, - "end": 3398, + "start": 3314, + "end": 3348, "loc": { "start": { - "line": 105, + "line": 104, "column": 51 }, "end": { - "line": 105, + "line": 104, "column": 85 } }, "callee": { "type": "Identifier", - "start": 3364, - "end": 3372, + "start": 3314, + "end": 3322, "loc": { "start": { - "line": 105, + "line": 104, "column": 51 }, "end": { - "line": 105, + "line": 104, "column": 59 }, "identifierName": "getField" @@ -8206,30 +8016,30 @@ "arguments": [ { "type": "ArrayExpression", - "start": 3373, - "end": 3397, + "start": 3323, + "end": 3347, "loc": { "start": { - "line": 105, + "line": 104, "column": 60 }, "end": { - "line": 105, + "line": 104, "column": 84 } }, "elements": [ { "type": "StringLiteral", - "start": 3374, - "end": 3381, + "start": 3324, + "end": 3331, "loc": { "start": { - "line": 105, + "line": 104, "column": 61 }, "end": { - "line": 105, + "line": 104, "column": 68 } }, @@ -8241,15 +8051,15 @@ }, { "type": "Identifier", - "start": 3383, - "end": 3387, + "start": 3333, + "end": 3337, "loc": { "start": { - "line": 105, + "line": 104, "column": 70 }, "end": { - "line": 105, + "line": 104, "column": 74 }, "identifierName": "room" @@ -8258,15 +8068,15 @@ }, { "type": "StringLiteral", - "start": 3389, - "end": 3396, + "start": 3339, + "end": 3346, "loc": { "start": { - "line": 105, + "line": 104, "column": 76 }, "end": { - "line": 105, + "line": 104, "column": 83 } }, @@ -8282,15 +8092,15 @@ }, "property": { "type": "Identifier", - "start": 3399, - "end": 3405, + "start": 3349, + "end": 3355, "loc": { "start": { - "line": 105, + "line": 104, "column": 86 }, "end": { - "line": 105, + "line": 104, "column": 92 }, "identifierName": "length" @@ -8309,15 +8119,15 @@ { "type": "CommentLine", "value": " Add team to database", - "start": 3230, - "end": 3253, + "start": 3180, + "end": 3203, "loc": { "start": { - "line": 102, + "line": 101, "column": 1 }, "end": { - "line": 102, + "line": 101, "column": 24 } } @@ -8325,15 +8135,15 @@ { "type": "CommentLine", "value": " Equivalent to rooms[room].teams.push({ name: team });", - "start": 3256, - "end": 3312, + "start": 3206, + "end": 3262, "loc": { "start": { - "line": 104, + "line": 103, "column": 1 }, "end": { - "line": 104, + "line": 103, "column": 57 } } @@ -8343,15 +8153,15 @@ { "type": "CommentLine", "value": " Check if room is full", - "start": 3410, - "end": 3434, + "start": 3360, + "end": 3384, "loc": { "start": { - "line": 107, + "line": 106, "column": 1 }, "end": { - "line": 107, + "line": 106, "column": 25 } } @@ -8360,99 +8170,99 @@ }, { "type": "IfStatement", - "start": 3436, - "end": 3609, + "start": 3386, + "end": 3559, "loc": { "start": { - "line": 108, + "line": 107, "column": 1 }, "end": { - "line": 110, + "line": 109, "column": 2 } }, "test": { "type": "LogicalExpression", - "start": 3440, - "end": 3556, + "start": 3390, + "end": 3506, "loc": { "start": { - "line": 108, + "line": 107, "column": 5 }, "end": { - "line": 108, + "line": 107, "column": 121 } }, "left": { "type": "LogicalExpression", - "start": 3441, - "end": 3524, + "start": 3391, + "end": 3474, "loc": { "start": { - "line": 108, + "line": 107, "column": 6 }, "end": { - "line": 108, + "line": 107, "column": 89 } }, "left": { "type": "LogicalExpression", - "start": 3442, - "end": 3492, + "start": 3392, + "end": 3442, "loc": { "start": { - "line": 108, + "line": 107, "column": 7 }, "end": { - "line": 108, + "line": 107, "column": 57 } }, "left": { "type": "BinaryExpression", - "start": 3442, - "end": 3465, + "start": 3392, + "end": 3415, "loc": { "start": { - "line": 108, + "line": 107, "column": 7 }, "end": { - "line": 108, + "line": 107, "column": 30 } }, "left": { "type": "MemberExpression", - "start": 3442, - "end": 3455, + "start": 3392, + "end": 3405, "loc": { "start": { - "line": 108, + "line": 107, "column": 7 }, "end": { - "line": 108, + "line": 107, "column": 20 } }, "object": { "type": "Identifier", - "start": 3442, - "end": 3450, + "start": 3392, + "end": 3400, "loc": { "start": { - "line": 108, + "line": 107, "column": 7 }, "end": { - "line": 108, + "line": 107, "column": 15 }, "identifierName": "thisRoom" @@ -8462,15 +8272,15 @@ }, "property": { "type": "Identifier", - "start": 3451, - "end": 3455, + "start": 3401, + "end": 3405, "loc": { "start": { - "line": 108, + "line": 107, "column": 16 }, "end": { - "line": 108, + "line": 107, "column": 20 }, "identifierName": "type" @@ -8483,15 +8293,15 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 3460, - "end": 3465, + "start": 3410, + "end": 3415, "loc": { "start": { - "line": 108, + "line": 107, "column": 25 }, "end": { - "line": 108, + "line": 107, "column": 30 } }, @@ -8506,43 +8316,43 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 3469, - "end": 3492, + "start": 3419, + "end": 3442, "loc": { "start": { - "line": 108, + "line": 107, "column": 34 }, "end": { - "line": 108, + "line": 107, "column": 57 } }, "left": { "type": "MemberExpression", - "start": 3469, - "end": 3482, + "start": 3419, + "end": 3432, "loc": { "start": { - "line": 108, + "line": 107, "column": 34 }, "end": { - "line": 108, + "line": 107, "column": 47 } }, "object": { "type": "Identifier", - "start": 3469, - "end": 3477, + "start": 3419, + "end": 3427, "loc": { "start": { - "line": 108, + "line": 107, "column": 34 }, "end": { - "line": 108, + "line": 107, "column": 42 }, "identifierName": "thisRoom" @@ -8551,15 +8361,15 @@ }, "property": { "type": "Identifier", - "start": 3478, - "end": 3482, + "start": 3428, + "end": 3432, "loc": { "start": { - "line": 108, + "line": 107, "column": 43 }, "end": { - "line": 108, + "line": 107, "column": 47 }, "identifierName": "type" @@ -8571,15 +8381,15 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 3487, - "end": 3492, + "start": 3437, + "end": 3442, "loc": { "start": { - "line": 108, + "line": 107, "column": 52 }, "end": { - "line": 108, + "line": 107, "column": 57 } }, @@ -8593,63 +8403,63 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 3441 + "parenStart": 3391 } }, "operator": "&&", "right": { "type": "BinaryExpression", - "start": 3497, - "end": 3524, + "start": 3447, + "end": 3474, "loc": { "start": { - "line": 108, + "line": 107, "column": 62 }, "end": { - "line": 108, + "line": 107, "column": 89 } }, "left": { "type": "MemberExpression", - "start": 3497, - "end": 3518, + "start": 3447, + "end": 3468, "loc": { "start": { - "line": 108, + "line": 107, "column": 62 }, "end": { - "line": 108, + "line": 107, "column": 83 } }, "object": { "type": "MemberExpression", - "start": 3497, - "end": 3511, + "start": 3447, + "end": 3461, "loc": { "start": { - "line": 108, + "line": 107, "column": 62 }, "end": { - "line": 108, + "line": 107, "column": 76 } }, "object": { "type": "Identifier", - "start": 3497, - "end": 3505, + "start": 3447, + "end": 3455, "loc": { "start": { - "line": 108, + "line": 107, "column": 62 }, "end": { - "line": 108, + "line": 107, "column": 70 }, "identifierName": "thisRoom" @@ -8658,15 +8468,15 @@ }, "property": { "type": "Identifier", - "start": 3506, - "end": 3511, + "start": 3456, + "end": 3461, "loc": { "start": { - "line": 108, + "line": 107, "column": 71 }, "end": { - "line": 108, + "line": 107, "column": 76 }, "identifierName": "teams" @@ -8677,15 +8487,15 @@ }, "property": { "type": "Identifier", - "start": 3512, - "end": 3518, + "start": 3462, + "end": 3468, "loc": { "start": { - "line": 108, + "line": 107, "column": 77 }, "end": { - "line": 108, + "line": 107, "column": 83 }, "identifierName": "length" @@ -8697,15 +8507,15 @@ "operator": "===", "right": { "type": "NumericLiteral", - "start": 3523, - "end": 3524, + "start": 3473, + "end": 3474, "loc": { "start": { - "line": 108, + "line": 107, "column": 88 }, "end": { - "line": 108, + "line": 107, "column": 89 } }, @@ -8719,63 +8529,63 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 3440 + "parenStart": 3390 } }, "operator": "||", "right": { "type": "BinaryExpression", - "start": 3529, - "end": 3556, + "start": 3479, + "end": 3506, "loc": { "start": { - "line": 108, + "line": 107, "column": 94 }, "end": { - "line": 108, + "line": 107, "column": 121 } }, "left": { "type": "MemberExpression", - "start": 3529, - "end": 3550, + "start": 3479, + "end": 3500, "loc": { "start": { - "line": 108, + "line": 107, "column": 94 }, "end": { - "line": 108, + "line": 107, "column": 115 } }, "object": { "type": "MemberExpression", - "start": 3529, - "end": 3543, + "start": 3479, + "end": 3493, "loc": { "start": { - "line": 108, + "line": 107, "column": 94 }, "end": { - "line": 108, + "line": 107, "column": 108 } }, "object": { "type": "Identifier", - "start": 3529, - "end": 3537, + "start": 3479, + "end": 3487, "loc": { "start": { - "line": 108, + "line": 107, "column": 94 }, "end": { - "line": 108, + "line": 107, "column": 102 }, "identifierName": "thisRoom" @@ -8784,15 +8594,15 @@ }, "property": { "type": "Identifier", - "start": 3538, - "end": 3543, + "start": 3488, + "end": 3493, "loc": { "start": { - "line": 108, + "line": 107, "column": 103 }, "end": { - "line": 108, + "line": 107, "column": 108 }, "identifierName": "teams" @@ -8803,15 +8613,15 @@ }, "property": { "type": "Identifier", - "start": 3544, - "end": 3550, + "start": 3494, + "end": 3500, "loc": { "start": { - "line": 108, + "line": 107, "column": 109 }, "end": { - "line": 108, + "line": 107, "column": 115 }, "identifierName": "length" @@ -8823,15 +8633,15 @@ "operator": "===", "right": { "type": "NumericLiteral", - "start": 3555, - "end": 3556, + "start": 3505, + "end": 3506, "loc": { "start": { - "line": 108, + "line": 107, "column": 120 }, "end": { - "line": 108, + "line": 107, "column": 121 } }, @@ -8846,58 +8656,58 @@ }, "consequent": { "type": "BlockStatement", - "start": 3558, - "end": 3609, + "start": 3508, + "end": 3559, "loc": { "start": { - "line": 108, + "line": 107, "column": 123 }, "end": { - "line": 110, + "line": 109, "column": 2 } }, "body": [ { "type": "ExpressionStatement", - "start": 3562, - "end": 3606, + "start": 3512, + "end": 3556, "loc": { "start": { - "line": 109, + "line": 108, "column": 2 }, "end": { - "line": 109, + "line": 108, "column": 46 } }, "expression": { "type": "CallExpression", - "start": 3562, - "end": 3606, + "start": 3512, + "end": 3556, "loc": { "start": { - "line": 109, + "line": 108, "column": 2 }, "end": { - "line": 109, + "line": 108, "column": 46 } }, "callee": { "type": "Identifier", - "start": 3562, - "end": 3570, + "start": 3512, + "end": 3520, "loc": { "start": { - "line": 109, + "line": 108, "column": 2 }, "end": { - "line": 109, + "line": 108, "column": 10 }, "identifierName": "setField" @@ -8907,15 +8717,15 @@ "arguments": [ { "type": "BooleanLiteral", - "start": 3571, - "end": 3576, + "start": 3521, + "end": 3526, "loc": { "start": { - "line": 109, + "line": 108, "column": 11 }, "end": { - "line": 109, + "line": 108, "column": 16 } }, @@ -8923,30 +8733,30 @@ }, { "type": "ArrayExpression", - "start": 3578, - "end": 3605, + "start": 3528, + "end": 3555, "loc": { "start": { - "line": 109, + "line": 108, "column": 18 }, "end": { - "line": 109, + "line": 108, "column": 45 } }, "elements": [ { "type": "StringLiteral", - "start": 3579, - "end": 3586, + "start": 3529, + "end": 3536, "loc": { "start": { - "line": 109, + "line": 108, "column": 19 }, "end": { - "line": 109, + "line": 108, "column": 26 } }, @@ -8958,15 +8768,15 @@ }, { "type": "Identifier", - "start": 3588, - "end": 3592, + "start": 3538, + "end": 3542, "loc": { "start": { - "line": 109, + "line": 108, "column": 28 }, "end": { - "line": 109, + "line": 108, "column": 32 }, "identifierName": "room" @@ -8975,15 +8785,15 @@ }, { "type": "StringLiteral", - "start": 3594, - "end": 3604, + "start": 3544, + "end": 3554, "loc": { "start": { - "line": 109, + "line": 108, "column": 34 }, "end": { - "line": 109, + "line": 108, "column": 44 } }, @@ -9007,15 +8817,15 @@ { "type": "CommentLine", "value": " Check if room is full", - "start": 3410, - "end": 3434, + "start": 3360, + "end": 3384, "loc": { "start": { - "line": 107, + "line": 106, "column": 1 }, "end": { - "line": 107, + "line": 106, "column": 25 } } @@ -9025,15 +8835,15 @@ { "type": "CommentLine", "value": " Create new player in rooms object", - "start": 3612, - "end": 3648, + "start": 3562, + "end": 3598, "loc": { "start": { - "line": 112, + "line": 111, "column": 1 }, "end": { - "line": 112, + "line": 111, "column": 37 } } @@ -9042,43 +8852,43 @@ }, { "type": "ExpressionStatement", - "start": 3650, - "end": 4056, + "start": 3600, + "end": 4006, "loc": { "start": { - "line": 113, + "line": 112, "column": 1 }, "end": { - "line": 125, + "line": 124, "column": 42 } }, "expression": { "type": "CallExpression", - "start": 3650, - "end": 4056, + "start": 3600, + "end": 4006, "loc": { "start": { - "line": 113, + "line": 112, "column": 1 }, "end": { - "line": 125, + "line": 124, "column": 42 } }, "callee": { "type": "Identifier", - "start": 3650, - "end": 3658, + "start": 3600, + "end": 3608, "loc": { "start": { - "line": 113, + "line": 112, "column": 1 }, "end": { - "line": 113, + "line": 112, "column": 9 }, "identifierName": "setField" @@ -9089,30 +8899,30 @@ "arguments": [ { "type": "ObjectExpression", - "start": 3659, - "end": 4016, + "start": 3609, + "end": 3966, "loc": { "start": { - "line": 113, + "line": 112, "column": 10 }, "end": { - "line": 125, + "line": 124, "column": 2 } }, "properties": [ { "type": "ObjectProperty", - "start": 3663, - "end": 3676, + "start": 3613, + "end": 3626, "loc": { "start": { - "line": 114, + "line": 113, "column": 2 }, "end": { - "line": 114, + "line": 113, "column": 15 } }, @@ -9121,15 +8931,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3663, - "end": 3665, + "start": 3613, + "end": 3615, "loc": { "start": { - "line": 114, + "line": 113, "column": 2 }, "end": { - "line": 114, + "line": 113, "column": 4 }, "identifierName": "id" @@ -9138,29 +8948,29 @@ }, "value": { "type": "MemberExpression", - "start": 3667, - "end": 3676, + "start": 3617, + "end": 3626, "loc": { "start": { - "line": 114, + "line": 113, "column": 6 }, "end": { - "line": 114, + "line": 113, "column": 15 } }, "object": { "type": "Identifier", - "start": 3667, - "end": 3673, + "start": 3617, + "end": 3623, "loc": { "start": { - "line": 114, + "line": 113, "column": 6 }, "end": { - "line": 114, + "line": 113, "column": 12 }, "identifierName": "socket" @@ -9169,15 +8979,15 @@ }, "property": { "type": "Identifier", - "start": 3674, - "end": 3676, + "start": 3624, + "end": 3626, "loc": { "start": { - "line": 114, + "line": 113, "column": 13 }, "end": { - "line": 114, + "line": 113, "column": 15 }, "identifierName": "id" @@ -9189,15 +8999,15 @@ }, { "type": "ObjectProperty", - "start": 3680, - "end": 3713, + "start": 3630, + "end": 3663, "loc": { "start": { - "line": 115, + "line": 114, "column": 2 }, "end": { - "line": 115, + "line": 114, "column": 35 } }, @@ -9206,15 +9016,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3680, - "end": 3684, + "start": 3630, + "end": 3634, "loc": { "start": { - "line": 115, + "line": 114, "column": 2 }, "end": { - "line": 115, + "line": 114, "column": 6 }, "identifierName": "name" @@ -9223,57 +9033,57 @@ }, "value": { "type": "MemberExpression", - "start": 3686, - "end": 3713, + "start": 3636, + "end": 3663, "loc": { "start": { - "line": 115, + "line": 114, "column": 8 }, "end": { - "line": 115, + "line": 114, "column": 35 } }, "object": { "type": "MemberExpression", - "start": 3686, - "end": 3708, + "start": 3636, + "end": 3658, "loc": { "start": { - "line": 115, + "line": 114, "column": 8 }, "end": { - "line": 115, + "line": 114, "column": 30 } }, "object": { "type": "MemberExpression", - "start": 3686, - "end": 3702, + "start": 3636, + "end": 3652, "loc": { "start": { - "line": 115, + "line": 114, "column": 8 }, "end": { - "line": 115, + "line": 114, "column": 24 } }, "object": { "type": "Identifier", - "start": 3686, - "end": 3692, + "start": 3636, + "end": 3642, "loc": { "start": { - "line": 115, + "line": 114, "column": 8 }, "end": { - "line": 115, + "line": 114, "column": 14 }, "identifierName": "socket" @@ -9282,15 +9092,15 @@ }, "property": { "type": "Identifier", - "start": 3693, - "end": 3702, + "start": 3643, + "end": 3652, "loc": { "start": { - "line": 115, + "line": 114, "column": 15 }, "end": { - "line": 115, + "line": 114, "column": 24 }, "identifierName": "handshake" @@ -9301,15 +9111,15 @@ }, "property": { "type": "Identifier", - "start": 3703, - "end": 3708, + "start": 3653, + "end": 3658, "loc": { "start": { - "line": 115, + "line": 114, "column": 25 }, "end": { - "line": 115, + "line": 114, "column": 30 }, "identifierName": "query" @@ -9320,15 +9130,15 @@ }, "property": { "type": "Identifier", - "start": 3709, - "end": 3713, + "start": 3659, + "end": 3663, "loc": { "start": { - "line": 115, + "line": 114, "column": 31 }, "end": { - "line": 115, + "line": 114, "column": 35 }, "identifierName": "name" @@ -9340,15 +9150,15 @@ }, { "type": "ObjectProperty", - "start": 3717, - "end": 3750, + "start": 3667, + "end": 3700, "loc": { "start": { - "line": 116, + "line": 115, "column": 2 }, "end": { - "line": 116, + "line": 115, "column": 35 } }, @@ -9357,15 +9167,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3717, - "end": 3721, + "start": 3667, + "end": 3671, "loc": { "start": { - "line": 116, + "line": 115, "column": 2 }, "end": { - "line": 116, + "line": 115, "column": 6 }, "identifierName": "room" @@ -9374,57 +9184,57 @@ }, "value": { "type": "MemberExpression", - "start": 3723, - "end": 3750, + "start": 3673, + "end": 3700, "loc": { "start": { - "line": 116, + "line": 115, "column": 8 }, "end": { - "line": 116, + "line": 115, "column": 35 } }, "object": { "type": "MemberExpression", - "start": 3723, - "end": 3745, + "start": 3673, + "end": 3695, "loc": { "start": { - "line": 116, + "line": 115, "column": 8 }, "end": { - "line": 116, + "line": 115, "column": 30 } }, "object": { "type": "MemberExpression", - "start": 3723, - "end": 3739, + "start": 3673, + "end": 3689, "loc": { "start": { - "line": 116, + "line": 115, "column": 8 }, "end": { - "line": 116, + "line": 115, "column": 24 } }, "object": { "type": "Identifier", - "start": 3723, - "end": 3729, + "start": 3673, + "end": 3679, "loc": { "start": { - "line": 116, + "line": 115, "column": 8 }, "end": { - "line": 116, + "line": 115, "column": 14 }, "identifierName": "socket" @@ -9433,15 +9243,15 @@ }, "property": { "type": "Identifier", - "start": 3730, - "end": 3739, + "start": 3680, + "end": 3689, "loc": { "start": { - "line": 116, + "line": 115, "column": 15 }, "end": { - "line": 116, + "line": 115, "column": 24 }, "identifierName": "handshake" @@ -9452,15 +9262,15 @@ }, "property": { "type": "Identifier", - "start": 3740, - "end": 3745, + "start": 3690, + "end": 3695, "loc": { "start": { - "line": 116, + "line": 115, "column": 25 }, "end": { - "line": 116, + "line": 115, "column": 30 }, "identifierName": "query" @@ -9471,15 +9281,15 @@ }, "property": { "type": "Identifier", - "start": 3746, - "end": 3750, + "start": 3696, + "end": 3700, "loc": { "start": { - "line": 116, + "line": 115, "column": 31 }, "end": { - "line": 116, + "line": 115, "column": 35 }, "identifierName": "room" @@ -9491,15 +9301,15 @@ }, { "type": "ObjectProperty", - "start": 3754, - "end": 3764, + "start": 3704, + "end": 3714, "loc": { "start": { - "line": 117, + "line": 116, "column": 2 }, "end": { - "line": 117, + "line": 116, "column": 12 } }, @@ -9508,15 +9318,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3754, - "end": 3758, + "start": 3704, + "end": 3708, "loc": { "start": { - "line": 117, + "line": 116, "column": 2 }, "end": { - "line": 117, + "line": 116, "column": 6 }, "identifierName": "team" @@ -9525,15 +9335,15 @@ }, "value": { "type": "Identifier", - "start": 3760, - "end": 3764, + "start": 3710, + "end": 3714, "loc": { "start": { - "line": 117, + "line": 116, "column": 8 }, "end": { - "line": 117, + "line": 116, "column": 12 }, "identifierName": "team" @@ -9543,15 +9353,15 @@ }, { "type": "ObjectProperty", - "start": 3768, - "end": 3793, + "start": 3718, + "end": 3743, "loc": { "start": { - "line": 118, + "line": 117, "column": 2 }, "end": { - "line": 118, + "line": 117, "column": 27 } }, @@ -9560,15 +9370,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3768, - "end": 3774, + "start": 3718, + "end": 3724, "loc": { "start": { - "line": 118, + "line": 117, "column": 2 }, "end": { - "line": 118, + "line": 117, "column": 8 }, "identifierName": "health" @@ -9577,29 +9387,29 @@ }, "value": { "type": "MemberExpression", - "start": 3776, - "end": 3793, + "start": 3726, + "end": 3743, "loc": { "start": { - "line": 118, + "line": 117, "column": 10 }, "end": { - "line": 118, + "line": 117, "column": 27 } }, "object": { "type": "Identifier", - "start": 3776, - "end": 3782, + "start": 3726, + "end": 3732, "loc": { "start": { - "line": 118, + "line": 117, "column": 10 }, "end": { - "line": 118, + "line": 117, "column": 16 }, "identifierName": "GLOBAL" @@ -9608,15 +9418,15 @@ }, "property": { "type": "Identifier", - "start": 3783, - "end": 3793, + "start": 3733, + "end": 3743, "loc": { "start": { - "line": 118, + "line": 117, "column": 17 }, "end": { - "line": 118, + "line": 117, "column": 27 }, "identifierName": "MAX_HEALTH" @@ -9628,15 +9438,15 @@ }, { "type": "ObjectProperty", - "start": 3797, - "end": 3877, + "start": 3747, + "end": 3827, "loc": { "start": { - "line": 119, + "line": 118, "column": 2 }, "end": { - "line": 119, + "line": 118, "column": 82 } }, @@ -9645,15 +9455,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3797, - "end": 3801, + "start": 3747, + "end": 3751, "loc": { "start": { - "line": 119, + "line": 118, "column": 2 }, "end": { - "line": 119, + "line": 118, "column": 6 }, "identifierName": "posX" @@ -9662,85 +9472,85 @@ }, "value": { "type": "BinaryExpression", - "start": 3803, - "end": 3877, + "start": 3753, + "end": 3827, "loc": { "start": { - "line": 119, + "line": 118, "column": 8 }, "end": { - "line": 119, + "line": 118, "column": 82 } }, "left": { "type": "BinaryExpression", - "start": 3803, - "end": 3873, + "start": 3753, + "end": 3823, "loc": { "start": { - "line": 119, + "line": 118, "column": 8 }, "end": { - "line": 119, + "line": 118, "column": 78 } }, "left": { "type": "MemberExpression", - "start": 3803, - "end": 3851, + "start": 3753, + "end": 3801, "loc": { "start": { - "line": 119, + "line": 118, "column": 8 }, "end": { - "line": 119, + "line": 118, "column": 56 } }, "object": { "type": "MemberExpression", - "start": 3803, - "end": 3849, + "start": 3753, + "end": 3799, "loc": { "start": { - "line": 119, + "line": 118, "column": 8 }, "end": { - "line": 119, + "line": 118, "column": 54 } }, "object": { "type": "MemberExpression", - "start": 3803, - "end": 3822, + "start": 3753, + "end": 3772, "loc": { "start": { - "line": 119, + "line": 118, "column": 8 }, "end": { - "line": 119, + "line": 118, "column": 27 } }, "object": { "type": "Identifier", - "start": 3803, - "end": 3809, + "start": 3753, + "end": 3759, "loc": { "start": { - "line": 119, + "line": 118, "column": 8 }, "end": { - "line": 119, + "line": 118, "column": 14 }, "identifierName": "GLOBAL" @@ -9749,15 +9559,15 @@ }, "property": { "type": "Identifier", - "start": 3810, - "end": 3822, + "start": 3760, + "end": 3772, "loc": { "start": { - "line": 119, + "line": 118, "column": 15 }, "end": { - "line": 119, + "line": 118, "column": 27 }, "identifierName": "SPAWN_POINTS" @@ -9768,57 +9578,57 @@ }, "property": { "type": "BinaryExpression", - "start": 3823, - "end": 3848, + "start": 3773, + "end": 3798, "loc": { "start": { - "line": 119, + "line": 118, "column": 28 }, "end": { - "line": 119, + "line": 118, "column": 53 } }, "left": { "type": "MemberExpression", - "start": 3823, - "end": 3844, + "start": 3773, + "end": 3794, "loc": { "start": { - "line": 119, + "line": 118, "column": 28 }, "end": { - "line": 119, + "line": 118, "column": 49 } }, "object": { "type": "MemberExpression", - "start": 3823, - "end": 3837, + "start": 3773, + "end": 3787, "loc": { "start": { - "line": 119, + "line": 118, "column": 28 }, "end": { - "line": 119, + "line": 118, "column": 42 } }, "object": { "type": "Identifier", - "start": 3823, - "end": 3831, + "start": 3773, + "end": 3781, "loc": { "start": { - "line": 119, + "line": 118, "column": 28 }, "end": { - "line": 119, + "line": 118, "column": 36 }, "identifierName": "thisRoom" @@ -9827,15 +9637,15 @@ }, "property": { "type": "Identifier", - "start": 3832, - "end": 3837, + "start": 3782, + "end": 3787, "loc": { "start": { - "line": 119, + "line": 118, "column": 37 }, "end": { - "line": 119, + "line": 118, "column": 42 }, "identifierName": "teams" @@ -9846,15 +9656,15 @@ }, "property": { "type": "Identifier", - "start": 3838, - "end": 3844, + "start": 3788, + "end": 3794, "loc": { "start": { - "line": 119, + "line": 118, "column": 43 }, "end": { - "line": 119, + "line": 118, "column": 49 }, "identifierName": "length" @@ -9866,15 +9676,15 @@ "operator": "-", "right": { "type": "NumericLiteral", - "start": 3847, - "end": 3848, + "start": 3797, + "end": 3798, "loc": { "start": { - "line": 119, + "line": 118, "column": 52 }, "end": { - "line": 119, + "line": 118, "column": 53 } }, @@ -9889,15 +9699,15 @@ }, "property": { "type": "Identifier", - "start": 3850, - "end": 3851, + "start": 3800, + "end": 3801, "loc": { "start": { - "line": 119, + "line": 118, "column": 55 }, "end": { - "line": 119, + "line": 118, "column": 56 }, "identifierName": "x" @@ -9909,29 +9719,29 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 3854, - "end": 3873, + "start": 3804, + "end": 3823, "loc": { "start": { - "line": 119, + "line": 118, "column": 59 }, "end": { - "line": 119, + "line": 118, "column": 78 } }, "object": { "type": "Identifier", - "start": 3854, - "end": 3860, + "start": 3804, + "end": 3810, "loc": { "start": { - "line": 119, + "line": 118, "column": 59 }, "end": { - "line": 119, + "line": 118, "column": 65 }, "identifierName": "GLOBAL" @@ -9940,15 +9750,15 @@ }, "property": { "type": "Identifier", - "start": 3861, - "end": 3873, + "start": 3811, + "end": 3823, "loc": { "start": { - "line": 119, + "line": 118, "column": 66 }, "end": { - "line": 119, + "line": 118, "column": 78 }, "identifierName": "GRID_SPACING" @@ -9961,15 +9771,15 @@ "operator": "*", "right": { "type": "NumericLiteral", - "start": 3876, - "end": 3877, + "start": 3826, + "end": 3827, "loc": { "start": { - "line": 119, + "line": 118, "column": 81 }, "end": { - "line": 119, + "line": 118, "column": 82 } }, @@ -9983,15 +9793,15 @@ }, { "type": "ObjectProperty", - "start": 3881, - "end": 3961, + "start": 3831, + "end": 3911, "loc": { "start": { - "line": 120, + "line": 119, "column": 2 }, "end": { - "line": 120, + "line": 119, "column": 82 } }, @@ -10000,15 +9810,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3881, - "end": 3885, + "start": 3831, + "end": 3835, "loc": { "start": { - "line": 120, + "line": 119, "column": 2 }, "end": { - "line": 120, + "line": 119, "column": 6 }, "identifierName": "posY" @@ -10017,85 +9827,85 @@ }, "value": { "type": "BinaryExpression", - "start": 3887, - "end": 3961, + "start": 3837, + "end": 3911, "loc": { "start": { - "line": 120, + "line": 119, "column": 8 }, "end": { - "line": 120, + "line": 119, "column": 82 } }, "left": { "type": "BinaryExpression", - "start": 3887, - "end": 3957, + "start": 3837, + "end": 3907, "loc": { "start": { - "line": 120, + "line": 119, "column": 8 }, "end": { - "line": 120, + "line": 119, "column": 78 } }, "left": { "type": "MemberExpression", - "start": 3887, - "end": 3935, + "start": 3837, + "end": 3885, "loc": { "start": { - "line": 120, + "line": 119, "column": 8 }, "end": { - "line": 120, + "line": 119, "column": 56 } }, "object": { "type": "MemberExpression", - "start": 3887, - "end": 3933, + "start": 3837, + "end": 3883, "loc": { "start": { - "line": 120, + "line": 119, "column": 8 }, "end": { - "line": 120, + "line": 119, "column": 54 } }, "object": { "type": "MemberExpression", - "start": 3887, - "end": 3906, + "start": 3837, + "end": 3856, "loc": { "start": { - "line": 120, + "line": 119, "column": 8 }, "end": { - "line": 120, + "line": 119, "column": 27 } }, "object": { "type": "Identifier", - "start": 3887, - "end": 3893, + "start": 3837, + "end": 3843, "loc": { "start": { - "line": 120, + "line": 119, "column": 8 }, "end": { - "line": 120, + "line": 119, "column": 14 }, "identifierName": "GLOBAL" @@ -10104,15 +9914,15 @@ }, "property": { "type": "Identifier", - "start": 3894, - "end": 3906, + "start": 3844, + "end": 3856, "loc": { "start": { - "line": 120, + "line": 119, "column": 15 }, "end": { - "line": 120, + "line": 119, "column": 27 }, "identifierName": "SPAWN_POINTS" @@ -10123,57 +9933,57 @@ }, "property": { "type": "BinaryExpression", - "start": 3907, - "end": 3932, + "start": 3857, + "end": 3882, "loc": { "start": { - "line": 120, + "line": 119, "column": 28 }, "end": { - "line": 120, + "line": 119, "column": 53 } }, "left": { "type": "MemberExpression", - "start": 3907, - "end": 3928, + "start": 3857, + "end": 3878, "loc": { "start": { - "line": 120, + "line": 119, "column": 28 }, "end": { - "line": 120, + "line": 119, "column": 49 } }, "object": { "type": "MemberExpression", - "start": 3907, - "end": 3921, + "start": 3857, + "end": 3871, "loc": { "start": { - "line": 120, + "line": 119, "column": 28 }, "end": { - "line": 120, + "line": 119, "column": 42 } }, "object": { "type": "Identifier", - "start": 3907, - "end": 3915, + "start": 3857, + "end": 3865, "loc": { "start": { - "line": 120, + "line": 119, "column": 28 }, "end": { - "line": 120, + "line": 119, "column": 36 }, "identifierName": "thisRoom" @@ -10182,15 +9992,15 @@ }, "property": { "type": "Identifier", - "start": 3916, - "end": 3921, + "start": 3866, + "end": 3871, "loc": { "start": { - "line": 120, + "line": 119, "column": 37 }, "end": { - "line": 120, + "line": 119, "column": 42 }, "identifierName": "teams" @@ -10201,15 +10011,15 @@ }, "property": { "type": "Identifier", - "start": 3922, - "end": 3928, + "start": 3872, + "end": 3878, "loc": { "start": { - "line": 120, + "line": 119, "column": 43 }, "end": { - "line": 120, + "line": 119, "column": 49 }, "identifierName": "length" @@ -10221,15 +10031,15 @@ "operator": "-", "right": { "type": "NumericLiteral", - "start": 3931, - "end": 3932, + "start": 3881, + "end": 3882, "loc": { "start": { - "line": 120, + "line": 119, "column": 52 }, "end": { - "line": 120, + "line": 119, "column": 53 } }, @@ -10244,15 +10054,15 @@ }, "property": { "type": "Identifier", - "start": 3934, - "end": 3935, + "start": 3884, + "end": 3885, "loc": { "start": { - "line": 120, + "line": 119, "column": 55 }, "end": { - "line": 120, + "line": 119, "column": 56 }, "identifierName": "y" @@ -10264,29 +10074,29 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 3938, - "end": 3957, + "start": 3888, + "end": 3907, "loc": { "start": { - "line": 120, + "line": 119, "column": 59 }, "end": { - "line": 120, + "line": 119, "column": 78 } }, "object": { "type": "Identifier", - "start": 3938, - "end": 3944, + "start": 3888, + "end": 3894, "loc": { "start": { - "line": 120, + "line": 119, "column": 59 }, "end": { - "line": 120, + "line": 119, "column": 65 }, "identifierName": "GLOBAL" @@ -10295,15 +10105,15 @@ }, "property": { "type": "Identifier", - "start": 3945, - "end": 3957, + "start": 3895, + "end": 3907, "loc": { "start": { - "line": 120, + "line": 119, "column": 66 }, "end": { - "line": 120, + "line": 119, "column": 78 }, "identifierName": "GRID_SPACING" @@ -10316,15 +10126,15 @@ "operator": "*", "right": { "type": "NumericLiteral", - "start": 3960, - "end": 3961, + "start": 3910, + "end": 3911, "loc": { "start": { - "line": 120, + "line": 119, "column": 81 }, "end": { - "line": 120, + "line": 119, "column": 82 } }, @@ -10338,15 +10148,15 @@ }, { "type": "ObjectProperty", - "start": 3965, - "end": 3970, + "start": 3915, + "end": 3920, "loc": { "start": { - "line": 121, + "line": 120, "column": 2 }, "end": { - "line": 121, + "line": 120, "column": 7 } }, @@ -10355,15 +10165,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3965, - "end": 3967, + "start": 3915, + "end": 3917, "loc": { "start": { - "line": 121, + "line": 120, "column": 2 }, "end": { - "line": 121, + "line": 120, "column": 4 }, "identifierName": "vx" @@ -10372,15 +10182,15 @@ }, "value": { "type": "NumericLiteral", - "start": 3969, - "end": 3970, + "start": 3919, + "end": 3920, "loc": { "start": { - "line": 121, + "line": 120, "column": 6 }, "end": { - "line": 121, + "line": 120, "column": 7 } }, @@ -10393,15 +10203,15 @@ }, { "type": "ObjectProperty", - "start": 3974, - "end": 3979, + "start": 3924, + "end": 3929, "loc": { "start": { - "line": 122, + "line": 121, "column": 2 }, "end": { - "line": 122, + "line": 121, "column": 7 } }, @@ -10410,15 +10220,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3974, - "end": 3976, + "start": 3924, + "end": 3926, "loc": { "start": { - "line": 122, + "line": 121, "column": 2 }, "end": { - "line": 122, + "line": 121, "column": 4 }, "identifierName": "vy" @@ -10427,15 +10237,15 @@ }, "value": { "type": "NumericLiteral", - "start": 3978, - "end": 3979, + "start": 3928, + "end": 3929, "loc": { "start": { - "line": 122, + "line": 121, "column": 6 }, "end": { - "line": 122, + "line": 121, "column": 7 } }, @@ -10448,15 +10258,15 @@ }, { "type": "ObjectProperty", - "start": 3983, - "end": 3996, + "start": 3933, + "end": 3946, "loc": { "start": { - "line": 123, + "line": 122, "column": 2 }, "end": { - "line": 123, + "line": 122, "column": 15 } }, @@ -10465,15 +10275,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3983, - "end": 3993, + "start": 3933, + "end": 3943, "loc": { "start": { - "line": 123, + "line": 122, "column": 2 }, "end": { - "line": 123, + "line": 122, "column": 12 }, "identifierName": "experience" @@ -10482,15 +10292,15 @@ }, "value": { "type": "NumericLiteral", - "start": 3995, - "end": 3996, + "start": 3945, + "end": 3946, "loc": { "start": { - "line": 123, + "line": 122, "column": 14 }, "end": { - "line": 123, + "line": 122, "column": 15 } }, @@ -10503,15 +10313,15 @@ }, { "type": "ObjectProperty", - "start": 4000, - "end": 4013, + "start": 3950, + "end": 3963, "loc": { "start": { - "line": 124, + "line": 123, "column": 2 }, "end": { - "line": 124, + "line": 123, "column": 15 } }, @@ -10520,15 +10330,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 4000, - "end": 4009, + "start": 3950, + "end": 3959, "loc": { "start": { - "line": 124, + "line": 123, "column": 2 }, "end": { - "line": 124, + "line": 123, "column": 11 }, "identifierName": "damagedBy" @@ -10537,15 +10347,15 @@ }, "value": { "type": "ObjectExpression", - "start": 4011, - "end": 4013, + "start": 3961, + "end": 3963, "loc": { "start": { - "line": 124, + "line": 123, "column": 13 }, "end": { - "line": 124, + "line": 123, "column": 15 } }, @@ -10556,30 +10366,30 @@ }, { "type": "ArrayExpression", - "start": 4018, - "end": 4055, + "start": 3968, + "end": 4005, "loc": { "start": { - "line": 125, + "line": 124, "column": 4 }, "end": { - "line": 125, + "line": 124, "column": 41 } }, "elements": [ { "type": "StringLiteral", - "start": 4019, - "end": 4026, + "start": 3969, + "end": 3976, "loc": { "start": { - "line": 125, + "line": 124, "column": 5 }, "end": { - "line": 125, + "line": 124, "column": 12 } }, @@ -10591,15 +10401,15 @@ }, { "type": "Identifier", - "start": 4028, - "end": 4032, + "start": 3978, + "end": 3982, "loc": { "start": { - "line": 125, + "line": 124, "column": 14 }, "end": { - "line": 125, + "line": 124, "column": 18 }, "identifierName": "room" @@ -10608,15 +10418,15 @@ }, { "type": "StringLiteral", - "start": 4034, - "end": 4043, + "start": 3984, + "end": 3993, "loc": { "start": { - "line": 125, + "line": 124, "column": 20 }, "end": { - "line": 125, + "line": 124, "column": 29 } }, @@ -10628,29 +10438,29 @@ }, { "type": "MemberExpression", - "start": 4045, - "end": 4054, + "start": 3995, + "end": 4004, "loc": { "start": { - "line": 125, + "line": 124, "column": 31 }, "end": { - "line": 125, + "line": 124, "column": 40 } }, "object": { "type": "Identifier", - "start": 4045, - "end": 4051, + "start": 3995, + "end": 4001, "loc": { "start": { - "line": 125, + "line": 124, "column": 31 }, "end": { - "line": 125, + "line": 124, "column": 37 }, "identifierName": "socket" @@ -10659,15 +10469,15 @@ }, "property": { "type": "Identifier", - "start": 4052, - "end": 4054, + "start": 4002, + "end": 4004, "loc": { "start": { - "line": 125, + "line": 124, "column": 38 }, "end": { - "line": 125, + "line": 124, "column": 40 }, "identifierName": "id" @@ -10685,15 +10495,15 @@ { "type": "CommentLine", "value": " Create new player in rooms object", - "start": 3612, - "end": 3648, + "start": 3562, + "end": 3598, "loc": { "start": { - "line": 112, + "line": 111, "column": 1 }, "end": { - "line": 112, + "line": 111, "column": 37 } } @@ -10941,15 +10751,15 @@ { "type": "CommentLine", "value": " Add team to database", - "start": 3230, - "end": 3253, + "start": 3180, + "end": 3203, "loc": { "start": { - "line": 102, + "line": 101, "column": 1 }, "end": { - "line": 102, + "line": 101, "column": 24 } } @@ -10957,15 +10767,15 @@ { "type": "CommentLine", "value": " Equivalent to rooms[room].teams.push({ name: team });", - "start": 3256, - "end": 3312, + "start": 3206, + "end": 3262, "loc": { "start": { - "line": 104, + "line": 103, "column": 1 }, "end": { - "line": 104, + "line": 103, "column": 57 } } @@ -10973,15 +10783,15 @@ { "type": "CommentLine", "value": " Check if room is full", - "start": 3410, - "end": 3434, + "start": 3360, + "end": 3384, "loc": { "start": { - "line": 107, + "line": 106, "column": 1 }, "end": { - "line": 107, + "line": 106, "column": 25 } } @@ -10989,15 +10799,15 @@ { "type": "CommentLine", "value": " Create new player in rooms object", - "start": 3612, - "end": 3648, + "start": 3562, + "end": 3598, "loc": { "start": { - "line": 112, + "line": 111, "column": 1 }, "end": { - "line": 112, + "line": 111, "column": 37 } } @@ -26009,9 +25819,9 @@ }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26019,396 +25829,34 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 3139, - "end": 3146, + "start": 3138, + "end": 3139, "loc": { "start": { "line": 98, - "column": 2 + "column": 1 }, "end": { "line": 98, - "column": 9 + "column": 2 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3146, - "end": 3147, - "loc": { - "start": { - "line": 98, - "column": 9 - }, - "end": { - "line": 98, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "log", - "start": 3147, - "end": 3150, - "loc": { - "start": { - "line": 98, - "column": 10 - }, - "end": { - "line": 98, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3150, - "end": 3151, - "loc": { - "start": { - "line": 98, - "column": 13 - }, - "end": { - "line": 98, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getField", - "start": 3151, - "end": 3159, - "loc": { - "start": { - "line": 98, - "column": 14 - }, - "end": { - "line": 98, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3159, - "end": 3160, - "loc": { - "start": { - "line": 98, - "column": 22 - }, - "end": { - "line": 98, - "column": 23 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3160, - "end": 3161, - "loc": { - "start": { - "line": 98, - "column": 23 - }, - "end": { - "line": 98, - "column": 24 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rooms", - "start": 3161, - "end": 3168, - "loc": { - "start": { - "line": 98, - "column": 24 - }, - "end": { - "line": 98, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3168, - "end": 3169, - "loc": { - "start": { - "line": 98, - "column": 31 - }, - "end": { - "line": 98, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "room", - "start": 3170, - "end": 3174, - "loc": { - "start": { - "line": 98, - "column": 33 - }, - "end": { - "line": 98, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3174, - "end": 3175, - "loc": { - "start": { - "line": 98, - "column": 37 - }, - "end": { - "line": 98, - "column": 38 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "tiles", - "start": 3176, - "end": 3183, - "loc": { - "start": { - "line": 98, - "column": 39 - }, - "end": { - "line": 98, - "column": 46 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3183, - "end": 3184, - "loc": { - "start": { - "line": 98, - "column": 46 - }, - "end": { - "line": 98, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3184, - "end": 3185, - "loc": { - "start": { - "line": 98, - "column": 47 - }, - "end": { - "line": 98, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3185, - "end": 3186, - "loc": { - "start": { - "line": 98, - "column": 48 - }, - "end": { - "line": 98, - "column": 49 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3188, - "end": 3189, + "value": "thisRoom", + "start": 3141, + "end": 3149, "loc": { "start": { "line": 99, @@ -26416,32 +25864,6 @@ }, "end": { "line": 99, - "column": 2 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "thisRoom", - "start": 3191, - "end": 3199, - "loc": { - "start": { - "line": 100, - "column": 1 - }, - "end": { - "line": 100, "column": 9 } } @@ -26460,15 +25882,15 @@ "updateContext": null }, "value": "=", - "start": 3200, - "end": 3201, + "start": 3150, + "end": 3151, "loc": { "start": { - "line": 100, + "line": 99, "column": 10 }, "end": { - "line": 100, + "line": 99, "column": 11 } } @@ -26486,15 +25908,15 @@ "binop": null }, "value": "getField", - "start": 3202, - "end": 3210, + "start": 3152, + "end": 3160, "loc": { "start": { - "line": 100, + "line": 99, "column": 12 }, "end": { - "line": 100, + "line": 99, "column": 20 } } @@ -26511,15 +25933,15 @@ "postfix": false, "binop": null }, - "start": 3210, - "end": 3211, + "start": 3160, + "end": 3161, "loc": { "start": { - "line": 100, + "line": 99, "column": 20 }, "end": { - "line": 100, + "line": 99, "column": 21 } } @@ -26537,15 +25959,15 @@ "binop": null, "updateContext": null }, - "start": 3211, - "end": 3212, + "start": 3161, + "end": 3162, "loc": { "start": { - "line": 100, + "line": 99, "column": 21 }, "end": { - "line": 100, + "line": 99, "column": 22 } } @@ -26564,15 +25986,15 @@ "updateContext": null }, "value": "rooms", - "start": 3212, - "end": 3219, + "start": 3162, + "end": 3169, "loc": { "start": { - "line": 100, + "line": 99, "column": 22 }, "end": { - "line": 100, + "line": 99, "column": 29 } } @@ -26590,15 +26012,15 @@ "binop": null, "updateContext": null }, - "start": 3219, - "end": 3220, + "start": 3169, + "end": 3170, "loc": { "start": { - "line": 100, + "line": 99, "column": 29 }, "end": { - "line": 100, + "line": 99, "column": 30 } } @@ -26616,15 +26038,15 @@ "binop": null }, "value": "room", - "start": 3221, - "end": 3225, + "start": 3171, + "end": 3175, "loc": { "start": { - "line": 100, + "line": 99, "column": 31 }, "end": { - "line": 100, + "line": 99, "column": 35 } } @@ -26642,15 +26064,15 @@ "binop": null, "updateContext": null }, - "start": 3225, - "end": 3226, + "start": 3175, + "end": 3176, "loc": { "start": { - "line": 100, + "line": 99, "column": 35 }, "end": { - "line": 100, + "line": 99, "column": 36 } } @@ -26667,15 +26089,15 @@ "postfix": false, "binop": null }, - "start": 3226, - "end": 3227, + "start": 3176, + "end": 3177, "loc": { "start": { - "line": 100, + "line": 99, "column": 36 }, "end": { - "line": 100, + "line": 99, "column": 37 } } @@ -26683,15 +26105,15 @@ { "type": "CommentLine", "value": " Add team to database", - "start": 3230, - "end": 3253, + "start": 3180, + "end": 3203, "loc": { "start": { - "line": 102, + "line": 101, "column": 1 }, "end": { - "line": 102, + "line": 101, "column": 24 } } @@ -26699,15 +26121,15 @@ { "type": "CommentLine", "value": " Equivalent to rooms[room].teams.push({ name: team });", - "start": 3256, - "end": 3312, + "start": 3206, + "end": 3262, "loc": { "start": { - "line": 104, + "line": 103, "column": 1 }, "end": { - "line": 104, + "line": 103, "column": 57 } } @@ -26725,15 +26147,15 @@ "binop": null }, "value": "setField", - "start": 3314, - "end": 3322, + "start": 3264, + "end": 3272, "loc": { "start": { - "line": 105, + "line": 104, "column": 1 }, "end": { - "line": 105, + "line": 104, "column": 9 } } @@ -26750,15 +26172,15 @@ "postfix": false, "binop": null }, - "start": 3322, - "end": 3323, + "start": 3272, + "end": 3273, "loc": { "start": { - "line": 105, + "line": 104, "column": 9 }, "end": { - "line": 105, + "line": 104, "column": 10 } } @@ -26775,15 +26197,15 @@ "postfix": false, "binop": null }, - "start": 3323, - "end": 3324, + "start": 3273, + "end": 3274, "loc": { "start": { - "line": 105, + "line": 104, "column": 10 }, "end": { - "line": 105, + "line": 104, "column": 11 } } @@ -26801,15 +26223,15 @@ "binop": null }, "value": "name", - "start": 3325, - "end": 3329, + "start": 3275, + "end": 3279, "loc": { "start": { - "line": 105, + "line": 104, "column": 12 }, "end": { - "line": 105, + "line": 104, "column": 16 } } @@ -26827,15 +26249,15 @@ "binop": null, "updateContext": null }, - "start": 3329, - "end": 3330, + "start": 3279, + "end": 3280, "loc": { "start": { - "line": 105, + "line": 104, "column": 16 }, "end": { - "line": 105, + "line": 104, "column": 17 } } @@ -26853,15 +26275,15 @@ "binop": null }, "value": "team", - "start": 3331, - "end": 3335, + "start": 3281, + "end": 3285, "loc": { "start": { - "line": 105, + "line": 104, "column": 18 }, "end": { - "line": 105, + "line": 104, "column": 22 } } @@ -26878,15 +26300,15 @@ "postfix": false, "binop": null }, - "start": 3336, - "end": 3337, + "start": 3286, + "end": 3287, "loc": { "start": { - "line": 105, + "line": 104, "column": 23 }, "end": { - "line": 105, + "line": 104, "column": 24 } } @@ -26904,15 +26326,15 @@ "binop": null, "updateContext": null }, - "start": 3337, - "end": 3338, + "start": 3287, + "end": 3288, "loc": { "start": { - "line": 105, + "line": 104, "column": 24 }, "end": { - "line": 105, + "line": 104, "column": 25 } } @@ -26930,15 +26352,15 @@ "binop": null, "updateContext": null }, - "start": 3339, - "end": 3340, + "start": 3289, + "end": 3290, "loc": { "start": { - "line": 105, + "line": 104, "column": 26 }, "end": { - "line": 105, + "line": 104, "column": 27 } } @@ -26957,15 +26379,15 @@ "updateContext": null }, "value": "rooms", - "start": 3340, - "end": 3347, + "start": 3290, + "end": 3297, "loc": { "start": { - "line": 105, + "line": 104, "column": 27 }, "end": { - "line": 105, + "line": 104, "column": 34 } } @@ -26983,15 +26405,15 @@ "binop": null, "updateContext": null }, - "start": 3347, - "end": 3348, + "start": 3297, + "end": 3298, "loc": { "start": { - "line": 105, + "line": 104, "column": 34 }, "end": { - "line": 105, + "line": 104, "column": 35 } } @@ -27009,15 +26431,15 @@ "binop": null }, "value": "room", - "start": 3349, - "end": 3353, + "start": 3299, + "end": 3303, "loc": { "start": { - "line": 105, + "line": 104, "column": 36 }, "end": { - "line": 105, + "line": 104, "column": 40 } } @@ -27035,15 +26457,15 @@ "binop": null, "updateContext": null }, - "start": 3353, - "end": 3354, + "start": 3303, + "end": 3304, "loc": { "start": { - "line": 105, + "line": 104, "column": 40 }, "end": { - "line": 105, + "line": 104, "column": 41 } } @@ -27062,15 +26484,15 @@ "updateContext": null }, "value": "teams", - "start": 3355, - "end": 3362, + "start": 3305, + "end": 3312, "loc": { "start": { - "line": 105, + "line": 104, "column": 42 }, "end": { - "line": 105, + "line": 104, "column": 49 } } @@ -27088,15 +26510,15 @@ "binop": null, "updateContext": null }, - "start": 3362, - "end": 3363, + "start": 3312, + "end": 3313, "loc": { "start": { - "line": 105, + "line": 104, "column": 49 }, "end": { - "line": 105, + "line": 104, "column": 50 } } @@ -27114,15 +26536,15 @@ "binop": null }, "value": "getField", - "start": 3364, - "end": 3372, + "start": 3314, + "end": 3322, "loc": { "start": { - "line": 105, + "line": 104, "column": 51 }, "end": { - "line": 105, + "line": 104, "column": 59 } } @@ -27139,15 +26561,15 @@ "postfix": false, "binop": null }, - "start": 3372, - "end": 3373, + "start": 3322, + "end": 3323, "loc": { "start": { - "line": 105, + "line": 104, "column": 59 }, "end": { - "line": 105, + "line": 104, "column": 60 } } @@ -27165,15 +26587,15 @@ "binop": null, "updateContext": null }, - "start": 3373, - "end": 3374, + "start": 3323, + "end": 3324, "loc": { "start": { - "line": 105, + "line": 104, "column": 60 }, "end": { - "line": 105, + "line": 104, "column": 61 } } @@ -27192,15 +26614,15 @@ "updateContext": null }, "value": "rooms", - "start": 3374, - "end": 3381, + "start": 3324, + "end": 3331, "loc": { "start": { - "line": 105, + "line": 104, "column": 61 }, "end": { - "line": 105, + "line": 104, "column": 68 } } @@ -27218,15 +26640,15 @@ "binop": null, "updateContext": null }, - "start": 3381, - "end": 3382, + "start": 3331, + "end": 3332, "loc": { "start": { - "line": 105, + "line": 104, "column": 68 }, "end": { - "line": 105, + "line": 104, "column": 69 } } @@ -27244,15 +26666,15 @@ "binop": null }, "value": "room", - "start": 3383, - "end": 3387, + "start": 3333, + "end": 3337, "loc": { "start": { - "line": 105, + "line": 104, "column": 70 }, "end": { - "line": 105, + "line": 104, "column": 74 } } @@ -27270,15 +26692,15 @@ "binop": null, "updateContext": null }, - "start": 3387, - "end": 3388, + "start": 3337, + "end": 3338, "loc": { "start": { - "line": 105, + "line": 104, "column": 74 }, "end": { - "line": 105, + "line": 104, "column": 75 } } @@ -27297,15 +26719,15 @@ "updateContext": null }, "value": "teams", - "start": 3389, - "end": 3396, + "start": 3339, + "end": 3346, "loc": { "start": { - "line": 105, + "line": 104, "column": 76 }, "end": { - "line": 105, + "line": 104, "column": 83 } } @@ -27323,15 +26745,15 @@ "binop": null, "updateContext": null }, - "start": 3396, - "end": 3397, + "start": 3346, + "end": 3347, "loc": { "start": { - "line": 105, + "line": 104, "column": 83 }, "end": { - "line": 105, + "line": 104, "column": 84 } } @@ -27348,15 +26770,15 @@ "postfix": false, "binop": null }, - "start": 3397, - "end": 3398, + "start": 3347, + "end": 3348, "loc": { "start": { - "line": 105, + "line": 104, "column": 84 }, "end": { - "line": 105, + "line": 104, "column": 85 } } @@ -27374,15 +26796,15 @@ "binop": null, "updateContext": null }, - "start": 3398, - "end": 3399, + "start": 3348, + "end": 3349, "loc": { "start": { - "line": 105, + "line": 104, "column": 85 }, "end": { - "line": 105, + "line": 104, "column": 86 } } @@ -27400,15 +26822,15 @@ "binop": null }, "value": "length", - "start": 3399, - "end": 3405, + "start": 3349, + "end": 3355, "loc": { "start": { - "line": 105, + "line": 104, "column": 86 }, "end": { - "line": 105, + "line": 104, "column": 92 } } @@ -27426,15 +26848,15 @@ "binop": null, "updateContext": null }, - "start": 3405, - "end": 3406, + "start": 3355, + "end": 3356, "loc": { "start": { - "line": 105, + "line": 104, "column": 92 }, "end": { - "line": 105, + "line": 104, "column": 93 } } @@ -27451,15 +26873,15 @@ "postfix": false, "binop": null }, - "start": 3406, - "end": 3407, + "start": 3356, + "end": 3357, "loc": { "start": { - "line": 105, + "line": 104, "column": 93 }, "end": { - "line": 105, + "line": 104, "column": 94 } } @@ -27467,15 +26889,15 @@ { "type": "CommentLine", "value": " Check if room is full", - "start": 3410, - "end": 3434, + "start": 3360, + "end": 3384, "loc": { "start": { - "line": 107, + "line": 106, "column": 1 }, "end": { - "line": 107, + "line": 106, "column": 25 } } @@ -27495,15 +26917,15 @@ "updateContext": null }, "value": "if", - "start": 3436, - "end": 3438, + "start": 3386, + "end": 3388, "loc": { "start": { - "line": 108, + "line": 107, "column": 1 }, "end": { - "line": 108, + "line": 107, "column": 3 } } @@ -27520,15 +26942,15 @@ "postfix": false, "binop": null }, - "start": 3439, - "end": 3440, + "start": 3389, + "end": 3390, "loc": { "start": { - "line": 108, + "line": 107, "column": 4 }, "end": { - "line": 108, + "line": 107, "column": 5 } } @@ -27545,15 +26967,15 @@ "postfix": false, "binop": null }, - "start": 3440, - "end": 3441, + "start": 3390, + "end": 3391, "loc": { "start": { - "line": 108, + "line": 107, "column": 5 }, "end": { - "line": 108, + "line": 107, "column": 6 } } @@ -27570,15 +26992,15 @@ "postfix": false, "binop": null }, - "start": 3441, - "end": 3442, + "start": 3391, + "end": 3392, "loc": { "start": { - "line": 108, + "line": 107, "column": 6 }, "end": { - "line": 108, + "line": 107, "column": 7 } } @@ -27596,15 +27018,15 @@ "binop": null }, "value": "thisRoom", - "start": 3442, - "end": 3450, + "start": 3392, + "end": 3400, "loc": { "start": { - "line": 108, + "line": 107, "column": 7 }, "end": { - "line": 108, + "line": 107, "column": 15 } } @@ -27622,15 +27044,15 @@ "binop": null, "updateContext": null }, - "start": 3450, - "end": 3451, + "start": 3400, + "end": 3401, "loc": { "start": { - "line": 108, + "line": 107, "column": 15 }, "end": { - "line": 108, + "line": 107, "column": 16 } } @@ -27648,15 +27070,15 @@ "binop": null }, "value": "type", - "start": 3451, - "end": 3455, + "start": 3401, + "end": 3405, "loc": { "start": { - "line": 108, + "line": 107, "column": 16 }, "end": { - "line": 108, + "line": 107, "column": 20 } } @@ -27675,15 +27097,15 @@ "updateContext": null }, "value": "===", - "start": 3456, - "end": 3459, + "start": 3406, + "end": 3409, "loc": { "start": { - "line": 108, + "line": 107, "column": 21 }, "end": { - "line": 108, + "line": 107, "column": 24 } } @@ -27702,15 +27124,15 @@ "updateContext": null }, "value": "4v4", - "start": 3460, - "end": 3465, + "start": 3410, + "end": 3415, "loc": { "start": { - "line": 108, + "line": 107, "column": 25 }, "end": { - "line": 108, + "line": 107, "column": 30 } } @@ -27729,15 +27151,15 @@ "updateContext": null }, "value": "||", - "start": 3466, - "end": 3468, + "start": 3416, + "end": 3418, "loc": { "start": { - "line": 108, + "line": 107, "column": 31 }, "end": { - "line": 108, + "line": 107, "column": 33 } } @@ -27755,15 +27177,15 @@ "binop": null }, "value": "thisRoom", - "start": 3469, - "end": 3477, + "start": 3419, + "end": 3427, "loc": { "start": { - "line": 108, + "line": 107, "column": 34 }, "end": { - "line": 108, + "line": 107, "column": 42 } } @@ -27781,15 +27203,15 @@ "binop": null, "updateContext": null }, - "start": 3477, - "end": 3478, + "start": 3427, + "end": 3428, "loc": { "start": { - "line": 108, + "line": 107, "column": 42 }, "end": { - "line": 108, + "line": 107, "column": 43 } } @@ -27807,15 +27229,15 @@ "binop": null }, "value": "type", - "start": 3478, - "end": 3482, + "start": 3428, + "end": 3432, "loc": { "start": { - "line": 108, + "line": 107, "column": 43 }, "end": { - "line": 108, + "line": 107, "column": 47 } } @@ -27834,15 +27256,15 @@ "updateContext": null }, "value": "===", - "start": 3483, - "end": 3486, + "start": 3433, + "end": 3436, "loc": { "start": { - "line": 108, + "line": 107, "column": 48 }, "end": { - "line": 108, + "line": 107, "column": 51 } } @@ -27861,15 +27283,15 @@ "updateContext": null }, "value": "2v2", - "start": 3487, - "end": 3492, + "start": 3437, + "end": 3442, "loc": { "start": { - "line": 108, + "line": 107, "column": 52 }, "end": { - "line": 108, + "line": 107, "column": 57 } } @@ -27886,15 +27308,15 @@ "postfix": false, "binop": null }, - "start": 3492, - "end": 3493, + "start": 3442, + "end": 3443, "loc": { "start": { - "line": 108, + "line": 107, "column": 57 }, "end": { - "line": 108, + "line": 107, "column": 58 } } @@ -27913,15 +27335,15 @@ "updateContext": null }, "value": "&&", - "start": 3494, - "end": 3496, + "start": 3444, + "end": 3446, "loc": { "start": { - "line": 108, + "line": 107, "column": 59 }, "end": { - "line": 108, + "line": 107, "column": 61 } } @@ -27939,15 +27361,15 @@ "binop": null }, "value": "thisRoom", - "start": 3497, - "end": 3505, + "start": 3447, + "end": 3455, "loc": { "start": { - "line": 108, + "line": 107, "column": 62 }, "end": { - "line": 108, + "line": 107, "column": 70 } } @@ -27965,15 +27387,15 @@ "binop": null, "updateContext": null }, - "start": 3505, - "end": 3506, + "start": 3455, + "end": 3456, "loc": { "start": { - "line": 108, + "line": 107, "column": 70 }, "end": { - "line": 108, + "line": 107, "column": 71 } } @@ -27991,15 +27413,15 @@ "binop": null }, "value": "teams", - "start": 3506, - "end": 3511, + "start": 3456, + "end": 3461, "loc": { "start": { - "line": 108, + "line": 107, "column": 71 }, "end": { - "line": 108, + "line": 107, "column": 76 } } @@ -28017,15 +27439,15 @@ "binop": null, "updateContext": null }, - "start": 3511, - "end": 3512, + "start": 3461, + "end": 3462, "loc": { "start": { - "line": 108, + "line": 107, "column": 76 }, "end": { - "line": 108, + "line": 107, "column": 77 } } @@ -28043,15 +27465,15 @@ "binop": null }, "value": "length", - "start": 3512, - "end": 3518, + "start": 3462, + "end": 3468, "loc": { "start": { - "line": 108, + "line": 107, "column": 77 }, "end": { - "line": 108, + "line": 107, "column": 83 } } @@ -28070,15 +27492,15 @@ "updateContext": null }, "value": "===", - "start": 3519, - "end": 3522, + "start": 3469, + "end": 3472, "loc": { "start": { - "line": 108, + "line": 107, "column": 84 }, "end": { - "line": 108, + "line": 107, "column": 87 } } @@ -28097,15 +27519,15 @@ "updateContext": null }, "value": 2, - "start": 3523, - "end": 3524, + "start": 3473, + "end": 3474, "loc": { "start": { - "line": 108, + "line": 107, "column": 88 }, "end": { - "line": 108, + "line": 107, "column": 89 } } @@ -28122,15 +27544,15 @@ "postfix": false, "binop": null }, - "start": 3524, - "end": 3525, + "start": 3474, + "end": 3475, "loc": { "start": { - "line": 108, + "line": 107, "column": 89 }, "end": { - "line": 108, + "line": 107, "column": 90 } } @@ -28149,15 +27571,15 @@ "updateContext": null }, "value": "||", - "start": 3526, - "end": 3528, + "start": 3476, + "end": 3478, "loc": { "start": { - "line": 108, + "line": 107, "column": 91 }, "end": { - "line": 108, + "line": 107, "column": 93 } } @@ -28175,15 +27597,15 @@ "binop": null }, "value": "thisRoom", - "start": 3529, - "end": 3537, + "start": 3479, + "end": 3487, "loc": { "start": { - "line": 108, + "line": 107, "column": 94 }, "end": { - "line": 108, + "line": 107, "column": 102 } } @@ -28201,15 +27623,15 @@ "binop": null, "updateContext": null }, - "start": 3537, - "end": 3538, + "start": 3487, + "end": 3488, "loc": { "start": { - "line": 108, + "line": 107, "column": 102 }, "end": { - "line": 108, + "line": 107, "column": 103 } } @@ -28227,15 +27649,15 @@ "binop": null }, "value": "teams", - "start": 3538, - "end": 3543, + "start": 3488, + "end": 3493, "loc": { "start": { - "line": 108, + "line": 107, "column": 103 }, "end": { - "line": 108, + "line": 107, "column": 108 } } @@ -28253,15 +27675,15 @@ "binop": null, "updateContext": null }, - "start": 3543, - "end": 3544, + "start": 3493, + "end": 3494, "loc": { "start": { - "line": 108, + "line": 107, "column": 108 }, "end": { - "line": 108, + "line": 107, "column": 109 } } @@ -28279,15 +27701,15 @@ "binop": null }, "value": "length", - "start": 3544, - "end": 3550, + "start": 3494, + "end": 3500, "loc": { "start": { - "line": 108, + "line": 107, "column": 109 }, "end": { - "line": 108, + "line": 107, "column": 115 } } @@ -28306,15 +27728,15 @@ "updateContext": null }, "value": "===", - "start": 3551, - "end": 3554, + "start": 3501, + "end": 3504, "loc": { "start": { - "line": 108, + "line": 107, "column": 116 }, "end": { - "line": 108, + "line": 107, "column": 119 } } @@ -28333,15 +27755,15 @@ "updateContext": null }, "value": 4, - "start": 3555, - "end": 3556, + "start": 3505, + "end": 3506, "loc": { "start": { - "line": 108, + "line": 107, "column": 120 }, "end": { - "line": 108, + "line": 107, "column": 121 } } @@ -28358,15 +27780,15 @@ "postfix": false, "binop": null }, - "start": 3556, - "end": 3557, + "start": 3506, + "end": 3507, "loc": { "start": { - "line": 108, + "line": 107, "column": 121 }, "end": { - "line": 108, + "line": 107, "column": 122 } } @@ -28383,15 +27805,15 @@ "postfix": false, "binop": null }, - "start": 3558, - "end": 3559, + "start": 3508, + "end": 3509, "loc": { "start": { - "line": 108, + "line": 107, "column": 123 }, "end": { - "line": 108, + "line": 107, "column": 124 } } @@ -28409,15 +27831,15 @@ "binop": null }, "value": "setField", - "start": 3562, - "end": 3570, + "start": 3512, + "end": 3520, "loc": { "start": { - "line": 109, + "line": 108, "column": 2 }, "end": { - "line": 109, + "line": 108, "column": 10 } } @@ -28434,15 +27856,15 @@ "postfix": false, "binop": null }, - "start": 3570, - "end": 3571, + "start": 3520, + "end": 3521, "loc": { "start": { - "line": 109, + "line": 108, "column": 10 }, "end": { - "line": 109, + "line": 108, "column": 11 } } @@ -28462,15 +27884,15 @@ "updateContext": null }, "value": "false", - "start": 3571, - "end": 3576, + "start": 3521, + "end": 3526, "loc": { "start": { - "line": 109, + "line": 108, "column": 11 }, "end": { - "line": 109, + "line": 108, "column": 16 } } @@ -28488,15 +27910,15 @@ "binop": null, "updateContext": null }, - "start": 3576, - "end": 3577, + "start": 3526, + "end": 3527, "loc": { "start": { - "line": 109, + "line": 108, "column": 16 }, "end": { - "line": 109, + "line": 108, "column": 17 } } @@ -28514,15 +27936,15 @@ "binop": null, "updateContext": null }, - "start": 3578, - "end": 3579, + "start": 3528, + "end": 3529, "loc": { "start": { - "line": 109, + "line": 108, "column": 18 }, "end": { - "line": 109, + "line": 108, "column": 19 } } @@ -28541,15 +27963,15 @@ "updateContext": null }, "value": "rooms", - "start": 3579, - "end": 3586, + "start": 3529, + "end": 3536, "loc": { "start": { - "line": 109, + "line": 108, "column": 19 }, "end": { - "line": 109, + "line": 108, "column": 26 } } @@ -28567,15 +27989,15 @@ "binop": null, "updateContext": null }, - "start": 3586, - "end": 3587, + "start": 3536, + "end": 3537, "loc": { "start": { - "line": 109, + "line": 108, "column": 26 }, "end": { - "line": 109, + "line": 108, "column": 27 } } @@ -28593,15 +28015,15 @@ "binop": null }, "value": "room", - "start": 3588, - "end": 3592, + "start": 3538, + "end": 3542, "loc": { "start": { - "line": 109, + "line": 108, "column": 28 }, "end": { - "line": 109, + "line": 108, "column": 32 } } @@ -28619,15 +28041,15 @@ "binop": null, "updateContext": null }, - "start": 3592, - "end": 3593, + "start": 3542, + "end": 3543, "loc": { "start": { - "line": 109, + "line": 108, "column": 32 }, "end": { - "line": 109, + "line": 108, "column": 33 } } @@ -28646,15 +28068,15 @@ "updateContext": null }, "value": "joinable", - "start": 3594, - "end": 3604, + "start": 3544, + "end": 3554, "loc": { "start": { - "line": 109, + "line": 108, "column": 34 }, "end": { - "line": 109, + "line": 108, "column": 44 } } @@ -28672,15 +28094,15 @@ "binop": null, "updateContext": null }, - "start": 3604, - "end": 3605, + "start": 3554, + "end": 3555, "loc": { "start": { - "line": 109, + "line": 108, "column": 44 }, "end": { - "line": 109, + "line": 108, "column": 45 } } @@ -28697,15 +28119,15 @@ "postfix": false, "binop": null }, - "start": 3605, - "end": 3606, + "start": 3555, + "end": 3556, "loc": { "start": { - "line": 109, + "line": 108, "column": 45 }, "end": { - "line": 109, + "line": 108, "column": 46 } } @@ -28722,15 +28144,15 @@ "postfix": false, "binop": null }, - "start": 3608, - "end": 3609, + "start": 3558, + "end": 3559, "loc": { "start": { - "line": 110, + "line": 109, "column": 1 }, "end": { - "line": 110, + "line": 109, "column": 2 } } @@ -28738,15 +28160,15 @@ { "type": "CommentLine", "value": " Create new player in rooms object", - "start": 3612, - "end": 3648, + "start": 3562, + "end": 3598, "loc": { "start": { - "line": 112, + "line": 111, "column": 1 }, "end": { - "line": 112, + "line": 111, "column": 37 } } @@ -28764,15 +28186,15 @@ "binop": null }, "value": "setField", - "start": 3650, - "end": 3658, + "start": 3600, + "end": 3608, "loc": { "start": { - "line": 113, + "line": 112, "column": 1 }, "end": { - "line": 113, + "line": 112, "column": 9 } } @@ -28789,15 +28211,15 @@ "postfix": false, "binop": null }, - "start": 3658, - "end": 3659, + "start": 3608, + "end": 3609, "loc": { "start": { - "line": 113, + "line": 112, "column": 9 }, "end": { - "line": 113, + "line": 112, "column": 10 } } @@ -28814,15 +28236,15 @@ "postfix": false, "binop": null }, - "start": 3659, - "end": 3660, + "start": 3609, + "end": 3610, "loc": { "start": { - "line": 113, + "line": 112, "column": 10 }, "end": { - "line": 113, + "line": 112, "column": 11 } } @@ -28840,15 +28262,15 @@ "binop": null }, "value": "id", - "start": 3663, - "end": 3665, + "start": 3613, + "end": 3615, "loc": { "start": { - "line": 114, + "line": 113, "column": 2 }, "end": { - "line": 114, + "line": 113, "column": 4 } } @@ -28866,15 +28288,15 @@ "binop": null, "updateContext": null }, - "start": 3665, - "end": 3666, + "start": 3615, + "end": 3616, "loc": { "start": { - "line": 114, + "line": 113, "column": 4 }, "end": { - "line": 114, + "line": 113, "column": 5 } } @@ -28892,15 +28314,15 @@ "binop": null }, "value": "socket", - "start": 3667, - "end": 3673, + "start": 3617, + "end": 3623, "loc": { "start": { - "line": 114, + "line": 113, "column": 6 }, "end": { - "line": 114, + "line": 113, "column": 12 } } @@ -28918,15 +28340,15 @@ "binop": null, "updateContext": null }, - "start": 3673, - "end": 3674, + "start": 3623, + "end": 3624, "loc": { "start": { - "line": 114, + "line": 113, "column": 12 }, "end": { - "line": 114, + "line": 113, "column": 13 } } @@ -28944,15 +28366,15 @@ "binop": null }, "value": "id", - "start": 3674, - "end": 3676, + "start": 3624, + "end": 3626, "loc": { "start": { - "line": 114, + "line": 113, "column": 13 }, "end": { - "line": 114, + "line": 113, "column": 15 } } @@ -28970,15 +28392,15 @@ "binop": null, "updateContext": null }, - "start": 3676, - "end": 3677, + "start": 3626, + "end": 3627, "loc": { "start": { - "line": 114, + "line": 113, "column": 15 }, "end": { - "line": 114, + "line": 113, "column": 16 } } @@ -28996,15 +28418,15 @@ "binop": null }, "value": "name", - "start": 3680, - "end": 3684, + "start": 3630, + "end": 3634, "loc": { "start": { - "line": 115, + "line": 114, "column": 2 }, "end": { - "line": 115, + "line": 114, "column": 6 } } @@ -29022,15 +28444,15 @@ "binop": null, "updateContext": null }, - "start": 3684, - "end": 3685, + "start": 3634, + "end": 3635, "loc": { "start": { - "line": 115, + "line": 114, "column": 6 }, "end": { - "line": 115, + "line": 114, "column": 7 } } @@ -29048,15 +28470,15 @@ "binop": null }, "value": "socket", - "start": 3686, - "end": 3692, + "start": 3636, + "end": 3642, "loc": { "start": { - "line": 115, + "line": 114, "column": 8 }, "end": { - "line": 115, + "line": 114, "column": 14 } } @@ -29074,15 +28496,15 @@ "binop": null, "updateContext": null }, - "start": 3692, - "end": 3693, + "start": 3642, + "end": 3643, "loc": { "start": { - "line": 115, + "line": 114, "column": 14 }, "end": { - "line": 115, + "line": 114, "column": 15 } } @@ -29100,15 +28522,15 @@ "binop": null }, "value": "handshake", - "start": 3693, - "end": 3702, + "start": 3643, + "end": 3652, "loc": { "start": { - "line": 115, + "line": 114, "column": 15 }, "end": { - "line": 115, + "line": 114, "column": 24 } } @@ -29126,15 +28548,15 @@ "binop": null, "updateContext": null }, - "start": 3702, - "end": 3703, + "start": 3652, + "end": 3653, "loc": { "start": { - "line": 115, + "line": 114, "column": 24 }, "end": { - "line": 115, + "line": 114, "column": 25 } } @@ -29152,15 +28574,15 @@ "binop": null }, "value": "query", - "start": 3703, - "end": 3708, + "start": 3653, + "end": 3658, "loc": { "start": { - "line": 115, + "line": 114, "column": 25 }, "end": { - "line": 115, + "line": 114, "column": 30 } } @@ -29178,15 +28600,15 @@ "binop": null, "updateContext": null }, - "start": 3708, - "end": 3709, + "start": 3658, + "end": 3659, "loc": { "start": { - "line": 115, + "line": 114, "column": 30 }, "end": { - "line": 115, + "line": 114, "column": 31 } } @@ -29204,15 +28626,15 @@ "binop": null }, "value": "name", - "start": 3709, - "end": 3713, + "start": 3659, + "end": 3663, "loc": { "start": { - "line": 115, + "line": 114, "column": 31 }, "end": { - "line": 115, + "line": 114, "column": 35 } } @@ -29230,15 +28652,15 @@ "binop": null, "updateContext": null }, - "start": 3713, - "end": 3714, + "start": 3663, + "end": 3664, "loc": { "start": { - "line": 115, + "line": 114, "column": 35 }, "end": { - "line": 115, + "line": 114, "column": 36 } } @@ -29256,15 +28678,15 @@ "binop": null }, "value": "room", - "start": 3717, - "end": 3721, + "start": 3667, + "end": 3671, "loc": { "start": { - "line": 116, + "line": 115, "column": 2 }, "end": { - "line": 116, + "line": 115, "column": 6 } } @@ -29282,15 +28704,15 @@ "binop": null, "updateContext": null }, - "start": 3721, - "end": 3722, + "start": 3671, + "end": 3672, "loc": { "start": { - "line": 116, + "line": 115, "column": 6 }, "end": { - "line": 116, + "line": 115, "column": 7 } } @@ -29308,15 +28730,15 @@ "binop": null }, "value": "socket", - "start": 3723, - "end": 3729, + "start": 3673, + "end": 3679, "loc": { "start": { - "line": 116, + "line": 115, "column": 8 }, "end": { - "line": 116, + "line": 115, "column": 14 } } @@ -29334,15 +28756,15 @@ "binop": null, "updateContext": null }, - "start": 3729, - "end": 3730, + "start": 3679, + "end": 3680, "loc": { "start": { - "line": 116, + "line": 115, "column": 14 }, "end": { - "line": 116, + "line": 115, "column": 15 } } @@ -29360,15 +28782,15 @@ "binop": null }, "value": "handshake", - "start": 3730, - "end": 3739, + "start": 3680, + "end": 3689, "loc": { "start": { - "line": 116, + "line": 115, "column": 15 }, "end": { - "line": 116, + "line": 115, "column": 24 } } @@ -29386,15 +28808,15 @@ "binop": null, "updateContext": null }, - "start": 3739, - "end": 3740, + "start": 3689, + "end": 3690, "loc": { "start": { - "line": 116, + "line": 115, "column": 24 }, "end": { - "line": 116, + "line": 115, "column": 25 } } @@ -29412,15 +28834,15 @@ "binop": null }, "value": "query", - "start": 3740, - "end": 3745, + "start": 3690, + "end": 3695, "loc": { "start": { - "line": 116, + "line": 115, "column": 25 }, "end": { - "line": 116, + "line": 115, "column": 30 } } @@ -29438,15 +28860,15 @@ "binop": null, "updateContext": null }, - "start": 3745, - "end": 3746, + "start": 3695, + "end": 3696, "loc": { "start": { - "line": 116, + "line": 115, "column": 30 }, "end": { - "line": 116, + "line": 115, "column": 31 } } @@ -29464,15 +28886,15 @@ "binop": null }, "value": "room", - "start": 3746, - "end": 3750, + "start": 3696, + "end": 3700, "loc": { "start": { - "line": 116, + "line": 115, "column": 31 }, "end": { - "line": 116, + "line": 115, "column": 35 } } @@ -29490,15 +28912,15 @@ "binop": null, "updateContext": null }, - "start": 3750, - "end": 3751, + "start": 3700, + "end": 3701, "loc": { "start": { - "line": 116, + "line": 115, "column": 35 }, "end": { - "line": 116, + "line": 115, "column": 36 } } @@ -29516,15 +28938,15 @@ "binop": null }, "value": "team", - "start": 3754, - "end": 3758, + "start": 3704, + "end": 3708, "loc": { "start": { - "line": 117, + "line": 116, "column": 2 }, "end": { - "line": 117, + "line": 116, "column": 6 } } @@ -29542,15 +28964,15 @@ "binop": null, "updateContext": null }, - "start": 3758, - "end": 3759, + "start": 3708, + "end": 3709, "loc": { "start": { - "line": 117, + "line": 116, "column": 6 }, "end": { - "line": 117, + "line": 116, "column": 7 } } @@ -29568,15 +28990,15 @@ "binop": null }, "value": "team", - "start": 3760, - "end": 3764, + "start": 3710, + "end": 3714, "loc": { "start": { - "line": 117, + "line": 116, "column": 8 }, "end": { - "line": 117, + "line": 116, "column": 12 } } @@ -29594,15 +29016,15 @@ "binop": null, "updateContext": null }, - "start": 3764, - "end": 3765, + "start": 3714, + "end": 3715, "loc": { "start": { - "line": 117, + "line": 116, "column": 12 }, "end": { - "line": 117, + "line": 116, "column": 13 } } @@ -29620,15 +29042,15 @@ "binop": null }, "value": "health", - "start": 3768, - "end": 3774, + "start": 3718, + "end": 3724, "loc": { "start": { - "line": 118, + "line": 117, "column": 2 }, "end": { - "line": 118, + "line": 117, "column": 8 } } @@ -29646,15 +29068,15 @@ "binop": null, "updateContext": null }, - "start": 3774, - "end": 3775, + "start": 3724, + "end": 3725, "loc": { "start": { - "line": 118, + "line": 117, "column": 8 }, "end": { - "line": 118, + "line": 117, "column": 9 } } @@ -29672,15 +29094,15 @@ "binop": null }, "value": "GLOBAL", - "start": 3776, - "end": 3782, + "start": 3726, + "end": 3732, "loc": { "start": { - "line": 118, + "line": 117, "column": 10 }, "end": { - "line": 118, + "line": 117, "column": 16 } } @@ -29698,15 +29120,15 @@ "binop": null, "updateContext": null }, - "start": 3782, - "end": 3783, + "start": 3732, + "end": 3733, "loc": { "start": { - "line": 118, + "line": 117, "column": 16 }, "end": { - "line": 118, + "line": 117, "column": 17 } } @@ -29724,15 +29146,15 @@ "binop": null }, "value": "MAX_HEALTH", - "start": 3783, - "end": 3793, + "start": 3733, + "end": 3743, "loc": { "start": { - "line": 118, + "line": 117, "column": 17 }, "end": { - "line": 118, + "line": 117, "column": 27 } } @@ -29750,15 +29172,15 @@ "binop": null, "updateContext": null }, - "start": 3793, - "end": 3794, + "start": 3743, + "end": 3744, "loc": { "start": { - "line": 118, + "line": 117, "column": 27 }, "end": { - "line": 118, + "line": 117, "column": 28 } } @@ -29776,15 +29198,15 @@ "binop": null }, "value": "posX", - "start": 3797, - "end": 3801, + "start": 3747, + "end": 3751, "loc": { "start": { - "line": 119, + "line": 118, "column": 2 }, "end": { - "line": 119, + "line": 118, "column": 6 } } @@ -29802,15 +29224,15 @@ "binop": null, "updateContext": null }, - "start": 3801, - "end": 3802, + "start": 3751, + "end": 3752, "loc": { "start": { - "line": 119, + "line": 118, "column": 6 }, "end": { - "line": 119, + "line": 118, "column": 7 } } @@ -29828,15 +29250,15 @@ "binop": null }, "value": "GLOBAL", - "start": 3803, - "end": 3809, + "start": 3753, + "end": 3759, "loc": { "start": { - "line": 119, + "line": 118, "column": 8 }, "end": { - "line": 119, + "line": 118, "column": 14 } } @@ -29854,15 +29276,15 @@ "binop": null, "updateContext": null }, - "start": 3809, - "end": 3810, + "start": 3759, + "end": 3760, "loc": { "start": { - "line": 119, + "line": 118, "column": 14 }, "end": { - "line": 119, + "line": 118, "column": 15 } } @@ -29880,15 +29302,15 @@ "binop": null }, "value": "SPAWN_POINTS", - "start": 3810, - "end": 3822, + "start": 3760, + "end": 3772, "loc": { "start": { - "line": 119, + "line": 118, "column": 15 }, "end": { - "line": 119, + "line": 118, "column": 27 } } @@ -29906,15 +29328,15 @@ "binop": null, "updateContext": null }, - "start": 3822, - "end": 3823, + "start": 3772, + "end": 3773, "loc": { "start": { - "line": 119, + "line": 118, "column": 27 }, "end": { - "line": 119, + "line": 118, "column": 28 } } @@ -29932,15 +29354,15 @@ "binop": null }, "value": "thisRoom", - "start": 3823, - "end": 3831, + "start": 3773, + "end": 3781, "loc": { "start": { - "line": 119, + "line": 118, "column": 28 }, "end": { - "line": 119, + "line": 118, "column": 36 } } @@ -29958,15 +29380,15 @@ "binop": null, "updateContext": null }, - "start": 3831, - "end": 3832, + "start": 3781, + "end": 3782, "loc": { "start": { - "line": 119, + "line": 118, "column": 36 }, "end": { - "line": 119, + "line": 118, "column": 37 } } @@ -29984,15 +29406,15 @@ "binop": null }, "value": "teams", - "start": 3832, - "end": 3837, + "start": 3782, + "end": 3787, "loc": { "start": { - "line": 119, + "line": 118, "column": 37 }, "end": { - "line": 119, + "line": 118, "column": 42 } } @@ -30010,15 +29432,15 @@ "binop": null, "updateContext": null }, - "start": 3837, - "end": 3838, + "start": 3787, + "end": 3788, "loc": { "start": { - "line": 119, + "line": 118, "column": 42 }, "end": { - "line": 119, + "line": 118, "column": 43 } } @@ -30036,15 +29458,15 @@ "binop": null }, "value": "length", - "start": 3838, - "end": 3844, + "start": 3788, + "end": 3794, "loc": { "start": { - "line": 119, + "line": 118, "column": 43 }, "end": { - "line": 119, + "line": 118, "column": 49 } } @@ -30063,15 +29485,15 @@ "updateContext": null }, "value": "-", - "start": 3845, - "end": 3846, + "start": 3795, + "end": 3796, "loc": { "start": { - "line": 119, + "line": 118, "column": 50 }, "end": { - "line": 119, + "line": 118, "column": 51 } } @@ -30090,15 +29512,15 @@ "updateContext": null }, "value": 1, - "start": 3847, - "end": 3848, + "start": 3797, + "end": 3798, "loc": { "start": { - "line": 119, + "line": 118, "column": 52 }, "end": { - "line": 119, + "line": 118, "column": 53 } } @@ -30116,15 +29538,15 @@ "binop": null, "updateContext": null }, - "start": 3848, - "end": 3849, + "start": 3798, + "end": 3799, "loc": { "start": { - "line": 119, + "line": 118, "column": 53 }, "end": { - "line": 119, + "line": 118, "column": 54 } } @@ -30142,15 +29564,15 @@ "binop": null, "updateContext": null }, - "start": 3849, - "end": 3850, + "start": 3799, + "end": 3800, "loc": { "start": { - "line": 119, + "line": 118, "column": 54 }, "end": { - "line": 119, + "line": 118, "column": 55 } } @@ -30168,15 +29590,15 @@ "binop": null }, "value": "x", - "start": 3850, - "end": 3851, + "start": 3800, + "end": 3801, "loc": { "start": { - "line": 119, + "line": 118, "column": 55 }, "end": { - "line": 119, + "line": 118, "column": 56 } } @@ -30195,15 +29617,15 @@ "updateContext": null }, "value": "*", - "start": 3852, - "end": 3853, + "start": 3802, + "end": 3803, "loc": { "start": { - "line": 119, + "line": 118, "column": 57 }, "end": { - "line": 119, + "line": 118, "column": 58 } } @@ -30221,15 +29643,15 @@ "binop": null }, "value": "GLOBAL", - "start": 3854, - "end": 3860, + "start": 3804, + "end": 3810, "loc": { "start": { - "line": 119, + "line": 118, "column": 59 }, "end": { - "line": 119, + "line": 118, "column": 65 } } @@ -30247,15 +29669,15 @@ "binop": null, "updateContext": null }, - "start": 3860, - "end": 3861, + "start": 3810, + "end": 3811, "loc": { "start": { - "line": 119, + "line": 118, "column": 65 }, "end": { - "line": 119, + "line": 118, "column": 66 } } @@ -30273,15 +29695,15 @@ "binop": null }, "value": "GRID_SPACING", - "start": 3861, - "end": 3873, + "start": 3811, + "end": 3823, "loc": { "start": { - "line": 119, + "line": 118, "column": 66 }, "end": { - "line": 119, + "line": 118, "column": 78 } } @@ -30300,15 +29722,15 @@ "updateContext": null }, "value": "*", - "start": 3874, - "end": 3875, + "start": 3824, + "end": 3825, "loc": { "start": { - "line": 119, + "line": 118, "column": 79 }, "end": { - "line": 119, + "line": 118, "column": 80 } } @@ -30327,15 +29749,15 @@ "updateContext": null }, "value": 2, - "start": 3876, - "end": 3877, + "start": 3826, + "end": 3827, "loc": { "start": { - "line": 119, + "line": 118, "column": 81 }, "end": { - "line": 119, + "line": 118, "column": 82 } } @@ -30353,15 +29775,15 @@ "binop": null, "updateContext": null }, - "start": 3877, - "end": 3878, + "start": 3827, + "end": 3828, "loc": { "start": { - "line": 119, + "line": 118, "column": 82 }, "end": { - "line": 119, + "line": 118, "column": 83 } } @@ -30379,15 +29801,15 @@ "binop": null }, "value": "posY", - "start": 3881, - "end": 3885, + "start": 3831, + "end": 3835, "loc": { "start": { - "line": 120, + "line": 119, "column": 2 }, "end": { - "line": 120, + "line": 119, "column": 6 } } @@ -30405,15 +29827,15 @@ "binop": null, "updateContext": null }, - "start": 3885, - "end": 3886, + "start": 3835, + "end": 3836, "loc": { "start": { - "line": 120, + "line": 119, "column": 6 }, "end": { - "line": 120, + "line": 119, "column": 7 } } @@ -30431,15 +29853,15 @@ "binop": null }, "value": "GLOBAL", - "start": 3887, - "end": 3893, + "start": 3837, + "end": 3843, "loc": { "start": { - "line": 120, + "line": 119, "column": 8 }, "end": { - "line": 120, + "line": 119, "column": 14 } } @@ -30457,15 +29879,15 @@ "binop": null, "updateContext": null }, - "start": 3893, - "end": 3894, + "start": 3843, + "end": 3844, "loc": { "start": { - "line": 120, + "line": 119, "column": 14 }, "end": { - "line": 120, + "line": 119, "column": 15 } } @@ -30483,15 +29905,15 @@ "binop": null }, "value": "SPAWN_POINTS", - "start": 3894, - "end": 3906, + "start": 3844, + "end": 3856, "loc": { "start": { - "line": 120, + "line": 119, "column": 15 }, "end": { - "line": 120, + "line": 119, "column": 27 } } @@ -30509,15 +29931,15 @@ "binop": null, "updateContext": null }, - "start": 3906, - "end": 3907, + "start": 3856, + "end": 3857, "loc": { "start": { - "line": 120, + "line": 119, "column": 27 }, "end": { - "line": 120, + "line": 119, "column": 28 } } @@ -30535,15 +29957,15 @@ "binop": null }, "value": "thisRoom", - "start": 3907, - "end": 3915, + "start": 3857, + "end": 3865, "loc": { "start": { - "line": 120, + "line": 119, "column": 28 }, "end": { - "line": 120, + "line": 119, "column": 36 } } @@ -30561,15 +29983,15 @@ "binop": null, "updateContext": null }, - "start": 3915, - "end": 3916, + "start": 3865, + "end": 3866, "loc": { "start": { - "line": 120, + "line": 119, "column": 36 }, "end": { - "line": 120, + "line": 119, "column": 37 } } @@ -30587,15 +30009,15 @@ "binop": null }, "value": "teams", - "start": 3916, - "end": 3921, + "start": 3866, + "end": 3871, "loc": { "start": { - "line": 120, + "line": 119, "column": 37 }, "end": { - "line": 120, + "line": 119, "column": 42 } } @@ -30613,15 +30035,15 @@ "binop": null, "updateContext": null }, - "start": 3921, - "end": 3922, + "start": 3871, + "end": 3872, "loc": { "start": { - "line": 120, + "line": 119, "column": 42 }, "end": { - "line": 120, + "line": 119, "column": 43 } } @@ -30639,15 +30061,15 @@ "binop": null }, "value": "length", - "start": 3922, - "end": 3928, + "start": 3872, + "end": 3878, "loc": { "start": { - "line": 120, + "line": 119, "column": 43 }, "end": { - "line": 120, + "line": 119, "column": 49 } } @@ -30666,15 +30088,15 @@ "updateContext": null }, "value": "-", - "start": 3929, - "end": 3930, + "start": 3879, + "end": 3880, "loc": { "start": { - "line": 120, + "line": 119, "column": 50 }, "end": { - "line": 120, + "line": 119, "column": 51 } } @@ -30693,15 +30115,15 @@ "updateContext": null }, "value": 1, - "start": 3931, - "end": 3932, + "start": 3881, + "end": 3882, "loc": { "start": { - "line": 120, + "line": 119, "column": 52 }, "end": { - "line": 120, + "line": 119, "column": 53 } } @@ -30719,15 +30141,15 @@ "binop": null, "updateContext": null }, - "start": 3932, - "end": 3933, + "start": 3882, + "end": 3883, "loc": { "start": { - "line": 120, + "line": 119, "column": 53 }, "end": { - "line": 120, + "line": 119, "column": 54 } } @@ -30745,15 +30167,15 @@ "binop": null, "updateContext": null }, - "start": 3933, - "end": 3934, + "start": 3883, + "end": 3884, "loc": { "start": { - "line": 120, + "line": 119, "column": 54 }, "end": { - "line": 120, + "line": 119, "column": 55 } } @@ -30771,15 +30193,15 @@ "binop": null }, "value": "y", - "start": 3934, - "end": 3935, + "start": 3884, + "end": 3885, "loc": { "start": { - "line": 120, + "line": 119, "column": 55 }, "end": { - "line": 120, + "line": 119, "column": 56 } } @@ -30798,15 +30220,15 @@ "updateContext": null }, "value": "*", - "start": 3936, - "end": 3937, + "start": 3886, + "end": 3887, "loc": { "start": { - "line": 120, + "line": 119, "column": 57 }, "end": { - "line": 120, + "line": 119, "column": 58 } } @@ -30824,15 +30246,15 @@ "binop": null }, "value": "GLOBAL", - "start": 3938, - "end": 3944, + "start": 3888, + "end": 3894, "loc": { "start": { - "line": 120, + "line": 119, "column": 59 }, "end": { - "line": 120, + "line": 119, "column": 65 } } @@ -30850,15 +30272,15 @@ "binop": null, "updateContext": null }, - "start": 3944, - "end": 3945, + "start": 3894, + "end": 3895, "loc": { "start": { - "line": 120, + "line": 119, "column": 65 }, "end": { - "line": 120, + "line": 119, "column": 66 } } @@ -30876,15 +30298,15 @@ "binop": null }, "value": "GRID_SPACING", - "start": 3945, - "end": 3957, + "start": 3895, + "end": 3907, "loc": { "start": { - "line": 120, + "line": 119, "column": 66 }, "end": { - "line": 120, + "line": 119, "column": 78 } } @@ -30903,15 +30325,15 @@ "updateContext": null }, "value": "*", - "start": 3958, - "end": 3959, + "start": 3908, + "end": 3909, "loc": { "start": { - "line": 120, + "line": 119, "column": 79 }, "end": { - "line": 120, + "line": 119, "column": 80 } } @@ -30930,15 +30352,15 @@ "updateContext": null }, "value": 2, - "start": 3960, - "end": 3961, + "start": 3910, + "end": 3911, "loc": { "start": { - "line": 120, + "line": 119, "column": 81 }, "end": { - "line": 120, + "line": 119, "column": 82 } } @@ -30956,15 +30378,15 @@ "binop": null, "updateContext": null }, - "start": 3961, - "end": 3962, + "start": 3911, + "end": 3912, "loc": { "start": { - "line": 120, + "line": 119, "column": 82 }, "end": { - "line": 120, + "line": 119, "column": 83 } } @@ -30982,15 +30404,15 @@ "binop": null }, "value": "vx", - "start": 3965, - "end": 3967, + "start": 3915, + "end": 3917, "loc": { "start": { - "line": 121, + "line": 120, "column": 2 }, "end": { - "line": 121, + "line": 120, "column": 4 } } @@ -31008,15 +30430,15 @@ "binop": null, "updateContext": null }, - "start": 3967, - "end": 3968, + "start": 3917, + "end": 3918, "loc": { "start": { - "line": 121, + "line": 120, "column": 4 }, "end": { - "line": 121, + "line": 120, "column": 5 } } @@ -31035,15 +30457,15 @@ "updateContext": null }, "value": 0, - "start": 3969, - "end": 3970, + "start": 3919, + "end": 3920, "loc": { "start": { - "line": 121, + "line": 120, "column": 6 }, "end": { - "line": 121, + "line": 120, "column": 7 } } @@ -31061,15 +30483,15 @@ "binop": null, "updateContext": null }, - "start": 3970, - "end": 3971, + "start": 3920, + "end": 3921, "loc": { "start": { - "line": 121, + "line": 120, "column": 7 }, "end": { - "line": 121, + "line": 120, "column": 8 } } @@ -31087,15 +30509,15 @@ "binop": null }, "value": "vy", - "start": 3974, - "end": 3976, + "start": 3924, + "end": 3926, "loc": { "start": { - "line": 122, + "line": 121, "column": 2 }, "end": { - "line": 122, + "line": 121, "column": 4 } } @@ -31113,15 +30535,15 @@ "binop": null, "updateContext": null }, - "start": 3976, - "end": 3977, + "start": 3926, + "end": 3927, "loc": { "start": { - "line": 122, + "line": 121, "column": 4 }, "end": { - "line": 122, + "line": 121, "column": 5 } } @@ -31140,15 +30562,15 @@ "updateContext": null }, "value": 0, - "start": 3978, - "end": 3979, + "start": 3928, + "end": 3929, "loc": { "start": { - "line": 122, + "line": 121, "column": 6 }, "end": { - "line": 122, + "line": 121, "column": 7 } } @@ -31166,15 +30588,15 @@ "binop": null, "updateContext": null }, - "start": 3979, - "end": 3980, + "start": 3929, + "end": 3930, "loc": { "start": { - "line": 122, + "line": 121, "column": 7 }, "end": { - "line": 122, + "line": 121, "column": 8 } } @@ -31192,15 +30614,15 @@ "binop": null }, "value": "experience", - "start": 3983, - "end": 3993, + "start": 3933, + "end": 3943, "loc": { "start": { - "line": 123, + "line": 122, "column": 2 }, "end": { - "line": 123, + "line": 122, "column": 12 } } @@ -31218,15 +30640,15 @@ "binop": null, "updateContext": null }, - "start": 3993, - "end": 3994, + "start": 3943, + "end": 3944, "loc": { "start": { - "line": 123, + "line": 122, "column": 12 }, "end": { - "line": 123, + "line": 122, "column": 13 } } @@ -31245,15 +30667,15 @@ "updateContext": null }, "value": 0, - "start": 3995, - "end": 3996, + "start": 3945, + "end": 3946, "loc": { "start": { - "line": 123, + "line": 122, "column": 14 }, "end": { - "line": 123, + "line": 122, "column": 15 } } @@ -31271,15 +30693,15 @@ "binop": null, "updateContext": null }, - "start": 3996, - "end": 3997, + "start": 3946, + "end": 3947, "loc": { "start": { - "line": 123, + "line": 122, "column": 15 }, "end": { - "line": 123, + "line": 122, "column": 16 } } @@ -31297,15 +30719,15 @@ "binop": null }, "value": "damagedBy", - "start": 4000, - "end": 4009, + "start": 3950, + "end": 3959, "loc": { "start": { - "line": 124, + "line": 123, "column": 2 }, "end": { - "line": 124, + "line": 123, "column": 11 } } @@ -31323,15 +30745,15 @@ "binop": null, "updateContext": null }, - "start": 4009, - "end": 4010, + "start": 3959, + "end": 3960, "loc": { "start": { - "line": 124, + "line": 123, "column": 11 }, "end": { - "line": 124, + "line": 123, "column": 12 } } @@ -31348,15 +30770,15 @@ "postfix": false, "binop": null }, - "start": 4011, - "end": 4012, + "start": 3961, + "end": 3962, "loc": { "start": { - "line": 124, + "line": 123, "column": 13 }, "end": { - "line": 124, + "line": 123, "column": 14 } } @@ -31373,15 +30795,15 @@ "postfix": false, "binop": null }, - "start": 4012, - "end": 4013, + "start": 3962, + "end": 3963, "loc": { "start": { - "line": 124, + "line": 123, "column": 14 }, "end": { - "line": 124, + "line": 123, "column": 15 } } @@ -31398,15 +30820,15 @@ "postfix": false, "binop": null }, - "start": 4015, - "end": 4016, + "start": 3965, + "end": 3966, "loc": { "start": { - "line": 125, + "line": 124, "column": 1 }, "end": { - "line": 125, + "line": 124, "column": 2 } } @@ -31424,15 +30846,15 @@ "binop": null, "updateContext": null }, - "start": 4016, - "end": 4017, + "start": 3966, + "end": 3967, "loc": { "start": { - "line": 125, + "line": 124, "column": 2 }, "end": { - "line": 125, + "line": 124, "column": 3 } } @@ -31450,15 +30872,15 @@ "binop": null, "updateContext": null }, - "start": 4018, - "end": 4019, + "start": 3968, + "end": 3969, "loc": { "start": { - "line": 125, + "line": 124, "column": 4 }, "end": { - "line": 125, + "line": 124, "column": 5 } } @@ -31477,15 +30899,15 @@ "updateContext": null }, "value": "rooms", - "start": 4019, - "end": 4026, + "start": 3969, + "end": 3976, "loc": { "start": { - "line": 125, + "line": 124, "column": 5 }, "end": { - "line": 125, + "line": 124, "column": 12 } } @@ -31503,15 +30925,15 @@ "binop": null, "updateContext": null }, - "start": 4026, - "end": 4027, + "start": 3976, + "end": 3977, "loc": { "start": { - "line": 125, + "line": 124, "column": 12 }, "end": { - "line": 125, + "line": 124, "column": 13 } } @@ -31529,15 +30951,15 @@ "binop": null }, "value": "room", - "start": 4028, - "end": 4032, + "start": 3978, + "end": 3982, "loc": { "start": { - "line": 125, + "line": 124, "column": 14 }, "end": { - "line": 125, + "line": 124, "column": 18 } } @@ -31555,15 +30977,15 @@ "binop": null, "updateContext": null }, - "start": 4032, - "end": 4033, + "start": 3982, + "end": 3983, "loc": { "start": { - "line": 125, + "line": 124, "column": 18 }, "end": { - "line": 125, + "line": 124, "column": 19 } } @@ -31582,15 +31004,15 @@ "updateContext": null }, "value": "players", - "start": 4034, - "end": 4043, + "start": 3984, + "end": 3993, "loc": { "start": { - "line": 125, + "line": 124, "column": 20 }, "end": { - "line": 125, + "line": 124, "column": 29 } } @@ -31608,15 +31030,15 @@ "binop": null, "updateContext": null }, - "start": 4043, - "end": 4044, + "start": 3993, + "end": 3994, "loc": { "start": { - "line": 125, + "line": 124, "column": 29 }, "end": { - "line": 125, + "line": 124, "column": 30 } } @@ -31634,15 +31056,15 @@ "binop": null }, "value": "socket", - "start": 4045, - "end": 4051, + "start": 3995, + "end": 4001, "loc": { "start": { - "line": 125, + "line": 124, "column": 31 }, "end": { - "line": 125, + "line": 124, "column": 37 } } @@ -31660,15 +31082,15 @@ "binop": null, "updateContext": null }, - "start": 4051, - "end": 4052, + "start": 4001, + "end": 4002, "loc": { "start": { - "line": 125, + "line": 124, "column": 37 }, "end": { - "line": 125, + "line": 124, "column": 38 } } @@ -31686,15 +31108,15 @@ "binop": null }, "value": "id", - "start": 4052, - "end": 4054, + "start": 4002, + "end": 4004, "loc": { "start": { - "line": 125, + "line": 124, "column": 38 }, "end": { - "line": 125, + "line": 124, "column": 40 } } @@ -31712,15 +31134,15 @@ "binop": null, "updateContext": null }, - "start": 4054, - "end": 4055, + "start": 4004, + "end": 4005, "loc": { "start": { - "line": 125, + "line": 124, "column": 40 }, "end": { - "line": 125, + "line": 124, "column": 41 } } @@ -31737,15 +31159,15 @@ "postfix": false, "binop": null }, - "start": 4055, - "end": 4056, + "start": 4005, + "end": 4006, "loc": { "start": { - "line": 125, + "line": 124, "column": 41 }, "end": { - "line": 125, + "line": 124, "column": 42 } } @@ -31762,15 +31184,15 @@ "postfix": false, "binop": null }, - "start": 4057, - "end": 4058, + "start": 4007, + "end": 4008, "loc": { "start": { - "line": 126, + "line": 125, "column": 0 }, "end": { - "line": 126, + "line": 125, "column": 1 } } @@ -31788,15 +31210,15 @@ "binop": null, "updateContext": null }, - "start": 4059, - "end": 4059, + "start": 4009, + "end": 4009, "loc": { "start": { - "line": 127, + "line": 126, "column": 0 }, "end": { - "line": 127, + "line": 126, "column": 0 } } diff --git a/docs/badge.svg b/docs/badge.svg index 303f6c6..8f516c4 100644 --- a/docs/badge.svg +++ b/docs/badge.svg @@ -11,7 +11,7 @@ document document - 52% - 52% + 51% + 51% diff --git a/docs/class/src/client/js/lib/chat-client.js~ChatClient.html b/docs/class/src/client/js/lib/chat-client.js~ChatClient.html index 54ef4d0..804dff0 100644 --- a/docs/class/src/client/js/lib/chat-client.js~ChatClient.html +++ b/docs/class/src/client/js/lib/chat-client.js~ChatClient.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/class/src/client/js/lib/mobilejoystick.js~VirtualJoystick.html b/docs/class/src/client/js/lib/mobilejoystick.js~VirtualJoystick.html index 6eec489..ef504ff 100644 --- a/docs/class/src/client/js/lib/mobilejoystick.js~VirtualJoystick.html +++ b/docs/class/src/client/js/lib/mobilejoystick.js~VirtualJoystick.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/class/src/client/js/obj/gameobject.js~GameObject.html b/docs/class/src/client/js/obj/gameobject.js~GameObject.html index 8310f0a..8e4891b 100644 --- a/docs/class/src/client/js/obj/gameobject.js~GameObject.html +++ b/docs/class/src/client/js/obj/gameobject.js~GameObject.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/class/src/client/js/obj/maptile.js~MapTile.html b/docs/class/src/client/js/obj/maptile.js~MapTile.html index 190f618..3697f22 100644 --- a/docs/class/src/client/js/obj/maptile.js~MapTile.html +++ b/docs/class/src/client/js/obj/maptile.js~MapTile.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/class/src/client/js/obj/player.js~Player.html b/docs/class/src/client/js/obj/player.js~Player.html index ae08071..bdb878f 100644 --- a/docs/class/src/client/js/obj/player.js~Player.html +++ b/docs/class/src/client/js/obj/player.js~Player.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/coverage.json b/docs/coverage.json index 7ff86de..55d7c38 100644 --- a/docs/coverage.json +++ b/docs/coverage.json @@ -1,6 +1,6 @@ { - "coverage": "52.14%", - "expectCount": 163, + "coverage": "51.82%", + "expectCount": 164, "actualCount": 85, "files": { "src/client/js/app.js": { @@ -23,7 +23,7 @@ "actualCount": 3, "undocumentLines": [ 4, - 174 + 176 ] }, "src/client/js/lib/chat-client.js": { @@ -150,7 +150,7 @@ "undocumentLines": [ 18, 33, - 363 + 369 ] }, "src/server/server.js": { @@ -201,9 +201,11 @@ "undocumentLines": [] }, "src/server/utils/ondamage.js": { - "expectCount": 2, + "expectCount": 3, "actualCount": 2, - "undocumentLines": [] + "undocumentLines": [ + 139 + ] }, "src/server/utils/serverinit.js": { "expectCount": 2, diff --git a/docs/file/src/client/js/app.js.html b/docs/file/src/client/js/app.js.html index 9bbd63b..5164ab9 100644 --- a/docs/file/src/client/js/app.js.html +++ b/docs/file/src/client/js/app.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/client/js/app.test.js.html b/docs/file/src/client/js/app.test.js.html index 4daa275..338d75c 100644 --- a/docs/file/src/client/js/app.test.js.html +++ b/docs/file/src/client/js/app.test.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/client/js/global.js.html b/docs/file/src/client/js/global.js.html index 9ce9217..f91d1ec 100644 --- a/docs/file/src/client/js/global.js.html +++ b/docs/file/src/client/js/global.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • @@ -182,7 +183,7 @@ ATOM_SPAWN_DELAY: 5000, // Atom spawn delay, in milliseconds ATOM_COLLECT_THRESHOLD: 100, // Distance away from center of player that the atom must be before being collected - // Map + // Map and Tiles MAP_SIZE: 2000, SPAWN_POINTS: [ { x: 0, y: 0 }, @@ -192,6 +193,7 @@ ], // Spawn points for different teams MAX_SPAWNER_HEALTH: 100, MAX_STRONGHOLD_HEALTH: 200, + STRONGHOLD_RADIUS: 100, // Drawing DRAW_RADIUS: 1000, // Radius around player in which to draw other objects @@ -270,6 +272,7 @@ KILL_SCORE: 6, // How many points are awarded to the player/team who dealt the most damage to the player ASSIST_SCORE: 2, // How many points are awarded to all players who assist in killing the player WINNING_SCORE: 20, // How many points are required to win the game per team. TODO increase + CAPTURE_SCORE: 5, // How many points are awarded to the team who captured a stronghold/vent MAX_DEATH_ATOMS: 100 // How many atoms of each type can be ejected on death at maximum. Prevents testers from ejecting thousands of atoms at a time. } @@ -301,7 +304,7 @@ let pos = getGlobalLocation(obj) try { - return MAP_LAYOUT[MAP_LAYOUT.length - pos.globalY - 2][pos.globalX] + return MAP_LAYOUT[pos.globalY][pos.globalX] } catch (error) { return 'E' @@ -314,8 +317,8 @@ */ export function getGlobalLocation (obj) { return { - globalX: Math.floor(obj.posX / (GLOBAL.GRID_SPACING * 2)), - globalY: Math.floor(obj.posY / (GLOBAL.GRID_SPACING * 2)) + globalY: Math.floor(obj.posY / (GLOBAL.GRID_SPACING * 2)) + 1, + globalX: Math.floor(obj.posX / (GLOBAL.GRID_SPACING * 2)) } } diff --git a/docs/file/src/client/js/lib/chat-client.js.html b/docs/file/src/client/js/lib/chat-client.js.html index dd0fc94..a40af1b 100644 --- a/docs/file/src/client/js/lib/chat-client.js.html +++ b/docs/file/src/client/js/lib/chat-client.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/client/js/lib/cookies.js.html b/docs/file/src/client/js/lib/cookies.js.html index ec7b195..da2289f 100644 --- a/docs/file/src/client/js/lib/cookies.js.html +++ b/docs/file/src/client/js/lib/cookies.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/client/js/lib/keyboard.js.html b/docs/file/src/client/js/lib/keyboard.js.html index c2353ee..2c04cc5 100644 --- a/docs/file/src/client/js/lib/keyboard.js.html +++ b/docs/file/src/client/js/lib/keyboard.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/client/js/lib/mobilejoystick.js.html b/docs/file/src/client/js/lib/mobilejoystick.js.html index c14b6f5..0434e2d 100644 --- a/docs/file/src/client/js/lib/mobilejoystick.js.html +++ b/docs/file/src/client/js/lib/mobilejoystick.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/client/js/obj/blueprints.js.html b/docs/file/src/client/js/obj/blueprints.js.html index 0901137..55a557c 100644 --- a/docs/file/src/client/js/obj/blueprints.js.html +++ b/docs/file/src/client/js/obj/blueprints.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/client/js/obj/create.js.html b/docs/file/src/client/js/obj/create.js.html index 60c268f..900923a 100644 --- a/docs/file/src/client/js/obj/create.js.html +++ b/docs/file/src/client/js/obj/create.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/client/js/obj/gameobject.js.html b/docs/file/src/client/js/obj/gameobject.js.html index 3369d29..0d723b3 100644 --- a/docs/file/src/client/js/obj/gameobject.js.html +++ b/docs/file/src/client/js/obj/gameobject.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/client/js/obj/maptile.js.html b/docs/file/src/client/js/obj/maptile.js.html index 3a21ed9..be24527 100644 --- a/docs/file/src/client/js/obj/maptile.js.html +++ b/docs/file/src/client/js/obj/maptile.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/client/js/obj/player.js.html b/docs/file/src/client/js/obj/player.js.html index c4b581e..33648c2 100644 --- a/docs/file/src/client/js/obj/player.js.html +++ b/docs/file/src/client/js/obj/player.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/client/js/obj/tiles.js.html b/docs/file/src/client/js/obj/tiles.js.html index c1706c0..86397b5 100644 --- a/docs/file/src/client/js/obj/tiles.js.html +++ b/docs/file/src/client/js/obj/tiles.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • @@ -208,7 +209,7 @@ } }, stronghold: { - texture: 'StrongholdNeutral.png', + texture: 'stronghold.png', type: 'stronghold' } } diff --git a/docs/file/src/client/js/pixigame.js.html b/docs/file/src/client/js/pixigame.js.html index 1190968..025cf75 100644 --- a/docs/file/src/client/js/pixigame.js.html +++ b/docs/file/src/client/js/pixigame.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • @@ -269,7 +270,7 @@ // Draw map for (let row = 0; row < MAP_LAYOUT.length; row++) { for (let col = 0; col < MAP_LAYOUT[0].length; col++) { - let tileName = 'tile_' + col + '_' + row + let tileName = 'tile_' + col + '_' + (MAP_LAYOUT.length - row - 1) if (objects.tiles[tileName] === undefined || objects.tiles[tileName] === null) { if (TILE_NAMES[MAP_LAYOUT[row][col]] !== undefined) { objects.tiles[tileName] = new MapTile(TILE_NAMES[MAP_LAYOUT[row][col]], col, MAP_LAYOUT.length - row - 1) diff --git a/docs/file/src/client/js/socket.js.html b/docs/file/src/client/js/socket.js.html index 75ac236..91bd3be 100644 --- a/docs/file/src/client/js/socket.js.html +++ b/docs/file/src/client/js/socket.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • @@ -109,7 +110,7 @@
    import { GLOBAL } from './global'
     import { cookieInputs, quitGame, updateLobby, updateScores, hideElement, displayWinner, updateAtomList } from './app'
     import ChatClient from './lib/chat-client'
    -import { loadTextures, app, createPlayer, isSetup, startGame, setIngame } from './pixigame'
    +import { loadTextures, app, createPlayer, isSetup, startGame, setIngame, spritesheet } from './pixigame'
     import { createRenderAtom, createRenderCompound } from './obj/create'
     
     /**
    @@ -454,11 +455,17 @@
     		displayWinner(data)
     	})
     
    -	// Team colors
    +	// Sync team colors
     	socket.on('serverSendTeamColors', (data) => {
     		teamColors = data
     		console.log(teamColors)
     	})
    +
    +	// Change texture when a tile has been captured
    +	socket.on('serverSendTileCapture', (data) => {
    +		objects.tiles['tile_' + data.tileY + '_' + data.tileX].texture = (spritesheet.textures[data.teamNumber + objects.tiles['tile_' + data.tileY + '_' + data.tileX].tile.texture])
    +		// console.log(objects.tiles['tile_' + data.tileY + '_' + data.tileX].texture)
    +	})
     }
     
     /*
    diff --git a/docs/file/src/server/entry.js.html b/docs/file/src/server/entry.js.html
    index 254dcdf..90e3597 100644
    --- a/docs/file/src/server/entry.js.html
    +++ b/docs/file/src/server/entry.js.html
    @@ -94,6 +94,7 @@
     
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/server/server.js.html b/docs/file/src/server/server.js.html index 326fb3e..b416a44 100644 --- a/docs/file/src/server/server.js.html +++ b/docs/file/src/server/server.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • @@ -291,7 +292,7 @@ // Testing purposes- give yourself 5000 of each atom socket.on('testCommand', (data) => { if (GLOBAL.DEBUG) { - console.log(rooms[room].players[data.player].atomList) + // console.log(rooms[room].players[data.player].atomList) for (let i in rooms[room].players[data.player].atomList) { rooms[room].players[data.player].atomList[i] += 5000 } diff --git a/docs/file/src/server/utils/atoms.js.html b/docs/file/src/server/utils/atoms.js.html index 38a5ead..d5feaa0 100644 --- a/docs/file/src/server/utils/atoms.js.html +++ b/docs/file/src/server/utils/atoms.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/server/utils/collision.js.html b/docs/file/src/server/utils/collision.js.html index 7611f11..f3ca9ff 100644 --- a/docs/file/src/server/utils/collision.js.html +++ b/docs/file/src/server/utils/collision.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • @@ -108,7 +109,7 @@

    src/server/utils/collision.js

    import { distanceBetween, GLOBAL, getCurrTile, getGlobalLocation } from '../../client/js/global'
     import { deleteObject } from '../server'
    -import { damage } from './ondamage'
    +import { damage, damageTile } from './ondamage'
     import { incrementAtom } from './atoms'
     import { TILE_NAMES, TILES } from '../../client/js/obj/tiles'
     import { getTileID } from './serverutils'
    @@ -170,7 +171,13 @@
     		else { // check for tile collisions
     			let tileID = getTileID(getGlobalLocation(cmp), room)
     			if (tileID) {
    -				console.log('hit ' + tileID + ' at ' + JSON.stringify(getGlobalLocation(cmp)))
    +				if (distanceBetween(cmp, {
    +					posX: getGlobalLocation(cmp).globalX * GLOBAL.GRID_SPACING * 2 + GLOBAL.GRID_SPACING,
    +					posY: getGlobalLocation(cmp).globalY * GLOBAL.GRID_SPACING * 2 - GLOBAL.GRID_SPACING
    +				}) < GLOBAL.STRONGHOLD_RADIUS) {
    +					deleteObject('compounds', compound, room, socket)
    +					damageTile(tileID, cmp.blueprint.params.damage, socket.id, room, socket)
    +				}
     			}
     		}
     	}
    diff --git a/docs/file/src/server/utils/compound.js.html b/docs/file/src/server/utils/compound.js.html
    index c55c56e..e786353 100644
    --- a/docs/file/src/server/utils/compound.js.html
    +++ b/docs/file/src/server/utils/compound.js.html
    @@ -94,6 +94,7 @@
     
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/server/utils/experience.js.html b/docs/file/src/server/utils/experience.js.html index f9e4330..fbd702a 100644 --- a/docs/file/src/server/utils/experience.js.html +++ b/docs/file/src/server/utils/experience.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/server/utils/framesync.js.html b/docs/file/src/server/utils/framesync.js.html index 0c94d3b..c4a3736 100644 --- a/docs/file/src/server/utils/framesync.js.html +++ b/docs/file/src/server/utils/framesync.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/server/utils/matchmaker.js.html b/docs/file/src/server/utils/matchmaker.js.html index f56fdc8..ae67d12 100644 --- a/docs/file/src/server/utils/matchmaker.js.html +++ b/docs/file/src/server/utils/matchmaker.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/file/src/server/utils/ondamage.js.html b/docs/file/src/server/utils/ondamage.js.html index 612e50a..786316b 100644 --- a/docs/file/src/server/utils/ondamage.js.html +++ b/docs/file/src/server/utils/ondamage.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • @@ -107,7 +108,7 @@

    src/server/utils/ondamage.js

    import { GLOBAL } from '../../client/js/global'
    -import { getField, setField } from '../server'
    +import { getField, setField, incrementField } from '../server'
     import { getTeamNumber } from './serverutils'
     import { tmpdir } from 'os'
     import { spawnAtom } from './atoms'
    @@ -201,7 +202,7 @@
     				socket.emit('serverSendScoreUpdate', dataToSend)
     
     				// Add to team score
    -				setField(thisRoom.teams[dataToSend.teamSlot].score + dataToSend.increment, ['rooms', room, 'teams', dataToSend.teamSlot, 'score'])
    +				incrementField(dataToSend.increment, ['rooms', room, 'teams', dataToSend.teamSlot, 'score'])
     
     				// Clear damagedBy values
     				for (let pl in thisPlayer.damagedBy) {
    @@ -244,6 +245,36 @@
     	}
     }
     
    +export function damageTile (tileID, damageAmount, player, room, socket) {
    +	incrementField(-damageAmount, ['rooms', room, 'tiles', tileID, 'health'])
    +
    +	console.log('tile ' + tileID + ' is now at ' + getField(['rooms', room, 'tiles', tileID, 'health']))
    +
    +	// Check if tile is fully captured
    +	if (getField(['rooms', room, 'tiles', tileID, 'health']) <= 0) {
    +		for (let i = 0; i < 3; i++) {
    +			if (getField(['rooms', room, 'teams', i]).name === getField(['rooms', room, 'players', player, 'team'])) {
    +				// Notify clients of texture change
    +				let data = {
    +					teamNumber: i,
    +					tileX: getField(['rooms', room, 'tiles', tileID, 'globalX']),
    +					tileY: getField(['rooms', room, 'tiles', tileID, 'globalY'])
    +				}
    +				socket.to(room).emit('serverSendTileCapture', data)
    +				socket.emit('serverSendTileCapture', data)
    +
    +				// Distribute points
    +				incrementField(GLOBAL.CAPTURE_SCORE, ['rooms', room, 'teams', i, 'score'])
    +
    +				// Reset health
    +				setField(GLOBAL[('MAX_' + getField(['rooms', room, 'tiles', tileID, 'type']) + '_HEALTH').toUpperCase()], ['rooms', room, 'tiles', tileID, 'health'])
    +
    +				return true
    +			}
    +		}
    +	}
    +}
    +
     /**
      * TODO
      */
    diff --git a/docs/file/src/server/utils/serverinit.js.html b/docs/file/src/server/utils/serverinit.js.html
    index ca4f67a..8fab56d 100644
    --- a/docs/file/src/server/utils/serverinit.js.html
    +++ b/docs/file/src/server/utils/serverinit.js.html
    @@ -94,6 +94,7 @@
     
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • @@ -203,7 +204,6 @@ } } } - console.log(getField(['rooms', room, 'tiles'])) } thisRoom = getField(['rooms', room]) diff --git a/docs/file/src/server/utils/serverutils.js.html b/docs/file/src/server/utils/serverutils.js.html index 1bd7312..0242105 100644 --- a/docs/file/src/server/utils/serverutils.js.html +++ b/docs/file/src/server/utils/serverutils.js.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/function/index.html b/docs/function/index.html index 0091d8d..1273e77 100644 --- a/docs/function/index.html +++ b/docs/function/index.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • @@ -433,6 +434,34 @@ + + + +
    +

    + + + + damageTile(tileID: *, damageAmount: *, player: *, room: *, socket: *): boolean +

    +
    +
    + + + +
    + + + + + + + + + public + + + @@ -759,7 +788,7 @@ - getGlobalLocation(obj: *): {"globalX": *, "globalY": *} + getGlobalLocation(obj: *): {"globalY": *, "globalX": *}

    @@ -2574,6 +2603,101 @@

    Params:

    +
    +
    +

    + public + + + + + + damageTile(tileID: *, damageAmount: *, player: *, room: *, socket: *): boolean + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    tileID*
    damageAmount*
    player*
    room*
    socket*
    +
    +
    + +
    +

    Return:

    + + + + + + + +
    boolean
    +
    +
    +
    + + + + + + + + + + + + + + +

    @@ -2818,11 +2942,11 @@

    - source + source

    -
    import {distanceBetween} from 'atomblast.io/src/client/js/global.js'
    +
    import {distanceBetween} from 'atomblast.io/src/client/js/global.js'
    @@ -3163,11 +3287,11 @@

    - source + source

    -
    import {getCurrTile} from 'atomblast.io/src/client/js/global.js'
    +
    import {getCurrTile} from 'atomblast.io/src/client/js/global.js'

    Gets the tile directly underneath any object.

    @@ -3309,15 +3433,15 @@

    - getGlobalLocation(obj: *): {"globalX": *, "globalY": *} + getGlobalLocation(obj: *): {"globalY": *, "globalX": *} - source + source

    -
    import {getGlobalLocation} from 'atomblast.io/src/client/js/global.js'
    +
    import {getGlobalLocation} from 'atomblast.io/src/client/js/global.js'

    Gets the coordinates of the tile directly underneath the object.

    @@ -3350,7 +3474,7 @@

    Return:

    - + @@ -4058,11 +4182,11 @@

    - source + source

    -
    import {isInBounds} from 'atomblast.io/src/client/js/global.js'
    +
    import {isInBounds} from 'atomblast.io/src/client/js/global.js'

    Returns true if the object parameter is within the map boundaries.

    @@ -5159,11 +5283,11 @@

    - source + source

    - +

    TODO

    diff --git a/docs/identifiers.html b/docs/identifiers.html index 090af84..d6c2348 100644 --- a/docs/identifiers.html +++ b/docs/identifiers.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • @@ -447,7 +448,7 @@

    client/js

    F - getGlobalLocation(obj: *): {"globalX": *, "globalY": *} + getGlobalLocation(obj: *): {"globalY": *, "globalX": *}

    @@ -991,7 +992,7 @@

    client/js

    V - GLOBAL: {"DEBUG": boolean, "VERBOSE_SOCKET": *, "KEY_ESC": number, "KEY_ENTER": number, "KEY_W": number, "KEY_A": number, "KEY_S": number, "KEY_D": number, "KEY_1": number, "KEY_2": number, "KEY_3": number, "KEY_4": number, "KEY_SPACE": number, "BP_SELECT": string, "BP_MAX": number, "BP_TOOLTIP_BLACKLIST": *, "INPUT_COUNT": number, "PLACEHOLDER_NAME": string, "MAX_CHATS": number, "SERVER_IP": string, "LOCAL_HOST": string, "TEST_IP": string, "NO_ROOM_IDENTIFIER": string, "NO_TEAM_IDENTIFIER": string, "ROOM_DELETE_DELAY": number, "COOKIES": *, "COOKIE_DAYS": number, "MAX_SPEED": number, "PLAYER_RADIUS": number, "VELOCITY_STEP": number, "LERP_VALUE": number, "DEADZONE": number, "MAX_HEALTH": number, "ATOM_RADIUS": number, "MIN_POWERUPS": number, "MAX_POWERUPS": number, "ATTRACTION_RADIUS": number, "ATTRACTION_COEFFICIENT": number, "ATOM_SPAWN_SPEED": number, "ATOM_SPAWN_DELAY": number, "ATOM_COLLECT_THRESHOLD": number, "MAP_SIZE": number, "SPAWN_POINTS": *, "MAX_SPAWNER_HEALTH": number, "MAX_STRONGHOLD_HEALTH": number, "DRAW_RADIUS": number, "GRID_SPACING": number, "GRID_LINE_STROKE": number, "FRAME_RATE": number, "TEAM_COLORS": *, "PLAYER_SPRITES": *, "IGNITE_SPRITE": string, "ATOM_IDS": *, "ATOM_SPRITES": *, "SPRITESHEET_DIR": string, "COMPOUND_DIR": string, "EXPERIENCE_VALUES": *, "EXPERIENCE_LEVELS": *, "MAINMENU_MUSICLIST": *, "LOBBY_MUSICLIST": *, "INGAME_MUSICLIST": *, "KILL_SCORE": number, "ASSIST_SCORE": number, "WINNING_SCORE": number, "MAX_DEATH_ATOMS": number} + GLOBAL: {"DEBUG": boolean, "VERBOSE_SOCKET": *, "KEY_ESC": number, "KEY_ENTER": number, "KEY_W": number, "KEY_A": number, "KEY_S": number, "KEY_D": number, "KEY_1": number, "KEY_2": number, "KEY_3": number, "KEY_4": number, "KEY_SPACE": number, "BP_SELECT": string, "BP_MAX": number, "BP_TOOLTIP_BLACKLIST": *, "INPUT_COUNT": number, "PLACEHOLDER_NAME": string, "MAX_CHATS": number, "SERVER_IP": string, "LOCAL_HOST": string, "TEST_IP": string, "NO_ROOM_IDENTIFIER": string, "NO_TEAM_IDENTIFIER": string, "ROOM_DELETE_DELAY": number, "COOKIES": *, "COOKIE_DAYS": number, "MAX_SPEED": number, "PLAYER_RADIUS": number, "VELOCITY_STEP": number, "LERP_VALUE": number, "DEADZONE": number, "MAX_HEALTH": number, "ATOM_RADIUS": number, "MIN_POWERUPS": number, "MAX_POWERUPS": number, "ATTRACTION_RADIUS": number, "ATTRACTION_COEFFICIENT": number, "ATOM_SPAWN_SPEED": number, "ATOM_SPAWN_DELAY": number, "ATOM_COLLECT_THRESHOLD": number, "MAP_SIZE": number, "SPAWN_POINTS": *, "MAX_SPAWNER_HEALTH": number, "MAX_STRONGHOLD_HEALTH": number, "STRONGHOLD_RADIUS": number, "DRAW_RADIUS": number, "GRID_SPACING": number, "GRID_LINE_STROKE": number, "FRAME_RATE": number, "TEAM_COLORS": *, "PLAYER_SPRITES": *, "IGNITE_SPRITE": string, "ATOM_IDS": *, "ATOM_SPRITES": *, "SPRITESHEET_DIR": string, "COMPOUND_DIR": string, "EXPERIENCE_VALUES": *, "EXPERIENCE_LEVELS": *, "MAINMENU_MUSICLIST": *, "LOBBY_MUSICLIST": *, "INGAME_MUSICLIST": *, "KILL_SCORE": number, "ASSIST_SCORE": number, "WINNING_SCORE": number, "CAPTURE_SCORE": number, "MAX_DEATH_ATOMS": number}

    @@ -2026,6 +2027,34 @@

    server/utils

    + + +
    + + + +
    {"globalX": *, "globalY": *}{"globalY": *, "globalX": *}
    +
    +

    + F + + + damageTile(tileID: *, damageAmount: *, player: *, room: *, socket: *): boolean +

    +
    +
    + + + +
    +
    + + +
    + public + + + diff --git a/docs/index.html b/docs/index.html index 73a0f38..adf4cfb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • diff --git a/docs/index.json b/docs/index.json index 2a17a50..573753a 100644 --- a/docs/index.json +++ b/docs/index.json @@ -1213,7 +1213,7 @@ "__docId__": 73, "kind": "file", "name": "src/client/js/global.js", - "content": "import { MAP_LAYOUT } from './obj/tiles'\n\n// Contains all global constants and functions for both the client and server.\nexport const GLOBAL = {\n\n\tDEBUG: true, // REMEMBER to toggle this lmao if you dont want your entire pc crashing\n\tVERBOSE_SOCKET: false, // true = debug clientside socket -> log if any socket method has been called\n\t// Keys and other mathematical constants\n\tKEY_ESC: 27,\n\tKEY_ENTER: 13,\n\tKEY_W: 87,\n\tKEY_A: 65,\n\tKEY_S: 83,\n\tKEY_D: 68,\n\tKEY_1: 49,\n\tKEY_2: 50,\n\tKEY_3: 51,\n\tKEY_4: 52,\n\tKEY_SPACE: 32,\n\n\t// Blueprints\n\tBP_SELECT: 'Blueprint Select - Slot ', // Text for blueprint select header\n\tBP_MAX: 4, // Maximum number of blueprints a player can have in one game at a time\n\t// Params that will not display on tooltip\n\tBP_TOOLTIP_BLACKLIST: [\n\t\t'evaporate',\n\t\t'splashImage'\n\t],\n\n\t// Main menu\n\tINPUT_COUNT: 3, // Number of input boxes on main menu\n\n\t// Chat\n\tPLACEHOLDER_NAME: 'Unnamed Player',\n\tMAX_CHATS: 50, // Max number of chats to be displayed before deleting\n\n\t// Server\n\tSERVER_IP: 'atomblast.bananiumlabs.com:12002', // Change during production!!!!!\n\tLOCAL_HOST: 'localhost:12002',\n\tTEST_IP: 'https://iogame-test.herokuapp.com/',\n\tNO_ROOM_IDENTIFIER: '$_NOROOM', // Pass to server if matchmaking is required\n\tNO_TEAM_IDENTIFIER: '$_NOTEAM', // Pass to server if matchmaking is required\n\tROOM_DELETE_DELAY: 30000, // Time, in ms, between winning and room closing\n\n\t// Cookies\n\tCOOKIES: [\n\t\t'name', // 0\n\t\t'room', // 1\n\t\t'team', // 2\n\t\t'bp-slot-1', // 3\n\t\t'bp-slot-2', // 4\n\t\t'bp-slot-3', // 5\n\t\t'bp-slot-4', // 6\n\t\t'room-type', // 7\n\t\t'server' // 8\n\t],\n\tCOOKIE_DAYS: 14, // Cookie lifetime\n\n\t// Player Movement\n\tMAX_SPEED: 6,\n\tPLAYER_RADIUS: 100,\n\tVELOCITY_STEP: 0.85, // speed multiplier when player is gliding to a stop\n\tLERP_VALUE: 0.2,\n\tDEADZONE: 0.1,\n\tMAX_HEALTH: 100, // Starting health of players\n\n\t// Atoms\n\tATOM_RADIUS: 30, // size of spawned atoms\n\tMIN_POWERUPS: 150, // minimum number of powerups to be spawned (TEMPORARY)\n\tMAX_POWERUPS: 300, // maximum number of powerups to be spawned (TEMPORARY)\n\tATTRACTION_RADIUS: 150, // Max distance for powerup to be attracted to player\n\tATTRACTION_COEFFICIENT: 100, // Multiplier for attraction strength\n\tATOM_SPAWN_SPEED: 15, // Speed that atom travels away from spawner\n\tATOM_SPAWN_DELAY: 5000, // Atom spawn delay, in milliseconds\n\tATOM_COLLECT_THRESHOLD: 100, // Distance away from center of player that the atom must be before being collected\n\n\t// Map\n\tMAP_SIZE: 2000,\n\tSPAWN_POINTS: [\n\t\t{ x: 0, y: 0 },\n\t\t{ x: 6, y: 6 },\n\t\t{ x: 0, y: 6 },\n\t\t{ x: 6, y: 0 }\n\t], // Spawn points for different teams\n\tMAX_SPAWNER_HEALTH: 100,\n\tMAX_STRONGHOLD_HEALTH: 200,\n\n\t// Drawing\n\tDRAW_RADIUS: 1000, // Radius around player in which to draw other objects\n\tGRID_SPACING: 200, // space between each line on the grid\n\tGRID_LINE_STROKE: 1,\n\tFRAME_RATE: 60,\n\n\t// Colors\n\tTEAM_COLORS: [ // Purple, Green, Orange, Red. No prefixes\n\t\t'673ab7',\n\t\t'2e7d32',\n\t\t'ff8f00',\n\t\t'f44336'\n\t],\n\n\t// Sprites and textures\n\tPLAYER_SPRITES: [\n\t\t'testplayer.png'\n\t],\n\tIGNITE_SPRITE: 'placeholder_ignited.png',\n\n\t// Atoms: ID's and Sprites. ATOM_SPRITES[id] returns the texture location of atom of that id.\n\tATOM_IDS: [\n\t\t'h',\n\t\t'he',\n\t\t'c',\n\t\t'cl',\n\t\t'n',\n\t\t'o'\n\t],\n\tATOM_SPRITES: [\n\t\t'atom_hydrogen.png',\n\t\t'atom_helium.png',\n\t\t'atom_carbon.png',\n\t\t'testplayer2.png',\n\t\t'atom_nitrogen.png',\n\t\t'atom_oxygen.png'\n\t],\n\n\t// Location of spritesheet relative to pixigame\n\tSPRITESHEET_DIR: '../assets/spritesheet.json',\n\n\t// Used for main menu textures\n\tCOMPOUND_DIR: '../assets/spritesheet/compounds/',\n\n\t// Each Value corresponds with the above event\n\tEXPERIENCE_VALUES: {\n\t\tCRAFT: 10,\n\t\tKILL: 124\n\t},\n\n\t// The cutoffs for each level. Index 0 = level 1, 1 = level 2, etc\n\tEXPERIENCE_LEVELS: [\n\t\t0,\n\t\t10,\n\t\t20,\n\t\t40,\n\t\t100,\n\t\t140,\n\t\t160\n\t],\n\tMAINMENU_MUSICLIST: [\n\t\t'assets/sfx/mainmenu/placeholder1.mp3',\n\t\t'assets/sfx/mainmenu/placeholder2.mp3',\n\t\t'assets/sfx/mainmenu/placeholder3.mp3',\n\t\t'assets/sfx/mainmenu/placeholder4.mp3'\n\t],\n\tLOBBY_MUSICLIST: [\n\n\t],\n\tINGAME_MUSICLIST: [\n\n\t],\n\n\t// Deaths\n\tKILL_SCORE: 6, // How many points are awarded to the player/team who dealt the most damage to the player\n\tASSIST_SCORE: 2, // How many points are awarded to all players who assist in killing the player\n\tWINNING_SCORE: 20, // How many points are required to win the game per team. TODO increase\n\tMAX_DEATH_ATOMS: 100 // How many atoms of each type can be ejected on death at maximum. Prevents testers from ejecting thousands of atoms at a time.\n}\n\n/**\n * Returns the distance between two objects.\n * Both objects must be GameObjects\n * @param {GameObject} obj1 First object\n * @param {GameObject} obj2 Second object\n */\nexport function distanceBetween (obj1, obj2) {\n\treturn Math.sqrt(Math.pow(obj1.posX - obj2.posX, 2) + Math.pow(obj1.posY - obj2.posY, 2))\n}\n\n/**\n * Returns true if the object parameter is within the map boundaries.\n * @param {GameObject} obj The object to test\n * @return true if the object parameter is within the map boundaries\n */\nexport function isInBounds (obj) {\n\treturn obj.posX > 0 && obj.posY > -GLOBAL.GRID_SPACING * 2 && obj.posX < MAP_LAYOUT[0].length * GLOBAL.GRID_SPACING * 2 && obj.posY < (MAP_LAYOUT.length - 1) * GLOBAL.GRID_SPACING * 2\n}\n\n/**\n * Gets the tile directly underneath any object.\n * @param {*} obj Any valid GameObject.\n * @returns {string} one-letter ID of current tile.\n */\nexport function getCurrTile (obj) {\n\tlet pos = getGlobalLocation(obj)\n\n\ttry {\n\t\treturn MAP_LAYOUT[MAP_LAYOUT.length - pos.globalY - 2][pos.globalX]\n\t}\n\tcatch (error) {\n\t\treturn 'E'\n\t}\n}\n\n/**\n * Gets the coordinates of the tile directly underneath the object.\n * @param {*} obj Any valid GameObject.\n */\nexport function getGlobalLocation (obj) {\n\treturn {\n\t\tglobalX: Math.floor(obj.posX / (GLOBAL.GRID_SPACING * 2)),\n\t\tglobalY: Math.floor(obj.posY / (GLOBAL.GRID_SPACING * 2))\n\t}\n}\n", + "content": "import { MAP_LAYOUT } from './obj/tiles'\n\n// Contains all global constants and functions for both the client and server.\nexport const GLOBAL = {\n\n\tDEBUG: true, // REMEMBER to toggle this lmao if you dont want your entire pc crashing\n\tVERBOSE_SOCKET: false, // true = debug clientside socket -> log if any socket method has been called\n\t// Keys and other mathematical constants\n\tKEY_ESC: 27,\n\tKEY_ENTER: 13,\n\tKEY_W: 87,\n\tKEY_A: 65,\n\tKEY_S: 83,\n\tKEY_D: 68,\n\tKEY_1: 49,\n\tKEY_2: 50,\n\tKEY_3: 51,\n\tKEY_4: 52,\n\tKEY_SPACE: 32,\n\n\t// Blueprints\n\tBP_SELECT: 'Blueprint Select - Slot ', // Text for blueprint select header\n\tBP_MAX: 4, // Maximum number of blueprints a player can have in one game at a time\n\t// Params that will not display on tooltip\n\tBP_TOOLTIP_BLACKLIST: [\n\t\t'evaporate',\n\t\t'splashImage'\n\t],\n\n\t// Main menu\n\tINPUT_COUNT: 3, // Number of input boxes on main menu\n\n\t// Chat\n\tPLACEHOLDER_NAME: 'Unnamed Player',\n\tMAX_CHATS: 50, // Max number of chats to be displayed before deleting\n\n\t// Server\n\tSERVER_IP: 'atomblast.bananiumlabs.com:12002', // Change during production!!!!!\n\tLOCAL_HOST: 'localhost:12002',\n\tTEST_IP: 'https://iogame-test.herokuapp.com/',\n\tNO_ROOM_IDENTIFIER: '$_NOROOM', // Pass to server if matchmaking is required\n\tNO_TEAM_IDENTIFIER: '$_NOTEAM', // Pass to server if matchmaking is required\n\tROOM_DELETE_DELAY: 30000, // Time, in ms, between winning and room closing\n\n\t// Cookies\n\tCOOKIES: [\n\t\t'name', // 0\n\t\t'room', // 1\n\t\t'team', // 2\n\t\t'bp-slot-1', // 3\n\t\t'bp-slot-2', // 4\n\t\t'bp-slot-3', // 5\n\t\t'bp-slot-4', // 6\n\t\t'room-type', // 7\n\t\t'server' // 8\n\t],\n\tCOOKIE_DAYS: 14, // Cookie lifetime\n\n\t// Player Movement\n\tMAX_SPEED: 6,\n\tPLAYER_RADIUS: 100,\n\tVELOCITY_STEP: 0.85, // speed multiplier when player is gliding to a stop\n\tLERP_VALUE: 0.2,\n\tDEADZONE: 0.1,\n\tMAX_HEALTH: 100, // Starting health of players\n\n\t// Atoms\n\tATOM_RADIUS: 30, // size of spawned atoms\n\tMIN_POWERUPS: 150, // minimum number of powerups to be spawned (TEMPORARY)\n\tMAX_POWERUPS: 300, // maximum number of powerups to be spawned (TEMPORARY)\n\tATTRACTION_RADIUS: 150, // Max distance for powerup to be attracted to player\n\tATTRACTION_COEFFICIENT: 100, // Multiplier for attraction strength\n\tATOM_SPAWN_SPEED: 15, // Speed that atom travels away from spawner\n\tATOM_SPAWN_DELAY: 5000, // Atom spawn delay, in milliseconds\n\tATOM_COLLECT_THRESHOLD: 100, // Distance away from center of player that the atom must be before being collected\n\n\t// Map and Tiles\n\tMAP_SIZE: 2000,\n\tSPAWN_POINTS: [\n\t\t{ x: 0, y: 0 },\n\t\t{ x: 6, y: 6 },\n\t\t{ x: 0, y: 6 },\n\t\t{ x: 6, y: 0 }\n\t], // Spawn points for different teams\n\tMAX_SPAWNER_HEALTH: 100,\n\tMAX_STRONGHOLD_HEALTH: 200,\n\tSTRONGHOLD_RADIUS: 100,\n\n\t// Drawing\n\tDRAW_RADIUS: 1000, // Radius around player in which to draw other objects\n\tGRID_SPACING: 200, // space between each line on the grid\n\tGRID_LINE_STROKE: 1,\n\tFRAME_RATE: 60,\n\n\t// Colors\n\tTEAM_COLORS: [ // Purple, Green, Orange, Red. No prefixes\n\t\t'673ab7',\n\t\t'2e7d32',\n\t\t'ff8f00',\n\t\t'f44336'\n\t],\n\n\t// Sprites and textures\n\tPLAYER_SPRITES: [\n\t\t'testplayer.png'\n\t],\n\tIGNITE_SPRITE: 'placeholder_ignited.png',\n\n\t// Atoms: ID's and Sprites. ATOM_SPRITES[id] returns the texture location of atom of that id.\n\tATOM_IDS: [\n\t\t'h',\n\t\t'he',\n\t\t'c',\n\t\t'cl',\n\t\t'n',\n\t\t'o'\n\t],\n\tATOM_SPRITES: [\n\t\t'atom_hydrogen.png',\n\t\t'atom_helium.png',\n\t\t'atom_carbon.png',\n\t\t'testplayer2.png',\n\t\t'atom_nitrogen.png',\n\t\t'atom_oxygen.png'\n\t],\n\n\t// Location of spritesheet relative to pixigame\n\tSPRITESHEET_DIR: '../assets/spritesheet.json',\n\n\t// Used for main menu textures\n\tCOMPOUND_DIR: '../assets/spritesheet/compounds/',\n\n\t// Each Value corresponds with the above event\n\tEXPERIENCE_VALUES: {\n\t\tCRAFT: 10,\n\t\tKILL: 124\n\t},\n\n\t// The cutoffs for each level. Index 0 = level 1, 1 = level 2, etc\n\tEXPERIENCE_LEVELS: [\n\t\t0,\n\t\t10,\n\t\t20,\n\t\t40,\n\t\t100,\n\t\t140,\n\t\t160\n\t],\n\tMAINMENU_MUSICLIST: [\n\t\t'assets/sfx/mainmenu/placeholder1.mp3',\n\t\t'assets/sfx/mainmenu/placeholder2.mp3',\n\t\t'assets/sfx/mainmenu/placeholder3.mp3',\n\t\t'assets/sfx/mainmenu/placeholder4.mp3'\n\t],\n\tLOBBY_MUSICLIST: [\n\n\t],\n\tINGAME_MUSICLIST: [\n\n\t],\n\n\t// Deaths\n\tKILL_SCORE: 6, // How many points are awarded to the player/team who dealt the most damage to the player\n\tASSIST_SCORE: 2, // How many points are awarded to all players who assist in killing the player\n\tWINNING_SCORE: 20, // How many points are required to win the game per team. TODO increase\n\tCAPTURE_SCORE: 5, // How many points are awarded to the team who captured a stronghold/vent\n\tMAX_DEATH_ATOMS: 100 // How many atoms of each type can be ejected on death at maximum. Prevents testers from ejecting thousands of atoms at a time.\n}\n\n/**\n * Returns the distance between two objects.\n * Both objects must be GameObjects\n * @param {GameObject} obj1 First object\n * @param {GameObject} obj2 Second object\n */\nexport function distanceBetween (obj1, obj2) {\n\treturn Math.sqrt(Math.pow(obj1.posX - obj2.posX, 2) + Math.pow(obj1.posY - obj2.posY, 2))\n}\n\n/**\n * Returns true if the object parameter is within the map boundaries.\n * @param {GameObject} obj The object to test\n * @return true if the object parameter is within the map boundaries\n */\nexport function isInBounds (obj) {\n\treturn obj.posX > 0 && obj.posY > -GLOBAL.GRID_SPACING * 2 && obj.posX < MAP_LAYOUT[0].length * GLOBAL.GRID_SPACING * 2 && obj.posY < (MAP_LAYOUT.length - 1) * GLOBAL.GRID_SPACING * 2\n}\n\n/**\n * Gets the tile directly underneath any object.\n * @param {*} obj Any valid GameObject.\n * @returns {string} one-letter ID of current tile.\n */\nexport function getCurrTile (obj) {\n\tlet pos = getGlobalLocation(obj)\n\n\ttry {\n\t\treturn MAP_LAYOUT[pos.globalY][pos.globalX]\n\t}\n\tcatch (error) {\n\t\treturn 'E'\n\t}\n}\n\n/**\n * Gets the coordinates of the tile directly underneath the object.\n * @param {*} obj Any valid GameObject.\n */\nexport function getGlobalLocation (obj) {\n\treturn {\n\t\tglobalY: Math.floor(obj.posY / (GLOBAL.GRID_SPACING * 2)) + 1,\n\t\tglobalX: Math.floor(obj.posX / (GLOBAL.GRID_SPACING * 2))\n\t}\n}\n", "static": true, "longname": "/home/dbqeo/Documents/AtomBlast.io/src/client/js/global.js", "access": "public", @@ -1236,7 +1236,7 @@ "undocument": true, "type": { "types": [ - "{\"DEBUG\": boolean, \"VERBOSE_SOCKET\": *, \"KEY_ESC\": number, \"KEY_ENTER\": number, \"KEY_W\": number, \"KEY_A\": number, \"KEY_S\": number, \"KEY_D\": number, \"KEY_1\": number, \"KEY_2\": number, \"KEY_3\": number, \"KEY_4\": number, \"KEY_SPACE\": number, \"BP_SELECT\": string, \"BP_MAX\": number, \"BP_TOOLTIP_BLACKLIST\": *, \"INPUT_COUNT\": number, \"PLACEHOLDER_NAME\": string, \"MAX_CHATS\": number, \"SERVER_IP\": string, \"LOCAL_HOST\": string, \"TEST_IP\": string, \"NO_ROOM_IDENTIFIER\": string, \"NO_TEAM_IDENTIFIER\": string, \"ROOM_DELETE_DELAY\": number, \"COOKIES\": *, \"COOKIE_DAYS\": number, \"MAX_SPEED\": number, \"PLAYER_RADIUS\": number, \"VELOCITY_STEP\": number, \"LERP_VALUE\": number, \"DEADZONE\": number, \"MAX_HEALTH\": number, \"ATOM_RADIUS\": number, \"MIN_POWERUPS\": number, \"MAX_POWERUPS\": number, \"ATTRACTION_RADIUS\": number, \"ATTRACTION_COEFFICIENT\": number, \"ATOM_SPAWN_SPEED\": number, \"ATOM_SPAWN_DELAY\": number, \"ATOM_COLLECT_THRESHOLD\": number, \"MAP_SIZE\": number, \"SPAWN_POINTS\": *, \"MAX_SPAWNER_HEALTH\": number, \"MAX_STRONGHOLD_HEALTH\": number, \"DRAW_RADIUS\": number, \"GRID_SPACING\": number, \"GRID_LINE_STROKE\": number, \"FRAME_RATE\": number, \"TEAM_COLORS\": *, \"PLAYER_SPRITES\": *, \"IGNITE_SPRITE\": string, \"ATOM_IDS\": *, \"ATOM_SPRITES\": *, \"SPRITESHEET_DIR\": string, \"COMPOUND_DIR\": string, \"EXPERIENCE_VALUES\": *, \"EXPERIENCE_LEVELS\": *, \"MAINMENU_MUSICLIST\": *, \"LOBBY_MUSICLIST\": *, \"INGAME_MUSICLIST\": *, \"KILL_SCORE\": number, \"ASSIST_SCORE\": number, \"WINNING_SCORE\": number, \"MAX_DEATH_ATOMS\": number}" + "{\"DEBUG\": boolean, \"VERBOSE_SOCKET\": *, \"KEY_ESC\": number, \"KEY_ENTER\": number, \"KEY_W\": number, \"KEY_A\": number, \"KEY_S\": number, \"KEY_D\": number, \"KEY_1\": number, \"KEY_2\": number, \"KEY_3\": number, \"KEY_4\": number, \"KEY_SPACE\": number, \"BP_SELECT\": string, \"BP_MAX\": number, \"BP_TOOLTIP_BLACKLIST\": *, \"INPUT_COUNT\": number, \"PLACEHOLDER_NAME\": string, \"MAX_CHATS\": number, \"SERVER_IP\": string, \"LOCAL_HOST\": string, \"TEST_IP\": string, \"NO_ROOM_IDENTIFIER\": string, \"NO_TEAM_IDENTIFIER\": string, \"ROOM_DELETE_DELAY\": number, \"COOKIES\": *, \"COOKIE_DAYS\": number, \"MAX_SPEED\": number, \"PLAYER_RADIUS\": number, \"VELOCITY_STEP\": number, \"LERP_VALUE\": number, \"DEADZONE\": number, \"MAX_HEALTH\": number, \"ATOM_RADIUS\": number, \"MIN_POWERUPS\": number, \"MAX_POWERUPS\": number, \"ATTRACTION_RADIUS\": number, \"ATTRACTION_COEFFICIENT\": number, \"ATOM_SPAWN_SPEED\": number, \"ATOM_SPAWN_DELAY\": number, \"ATOM_COLLECT_THRESHOLD\": number, \"MAP_SIZE\": number, \"SPAWN_POINTS\": *, \"MAX_SPAWNER_HEALTH\": number, \"MAX_STRONGHOLD_HEALTH\": number, \"STRONGHOLD_RADIUS\": number, \"DRAW_RADIUS\": number, \"GRID_SPACING\": number, \"GRID_LINE_STROKE\": number, \"FRAME_RATE\": number, \"TEAM_COLORS\": *, \"PLAYER_SPRITES\": *, \"IGNITE_SPRITE\": string, \"ATOM_IDS\": *, \"ATOM_SPRITES\": *, \"SPRITESHEET_DIR\": string, \"COMPOUND_DIR\": string, \"EXPERIENCE_VALUES\": *, \"EXPERIENCE_LEVELS\": *, \"MAINMENU_MUSICLIST\": *, \"LOBBY_MUSICLIST\": *, \"INGAME_MUSICLIST\": *, \"KILL_SCORE\": number, \"ASSIST_SCORE\": number, \"WINNING_SCORE\": number, \"CAPTURE_SCORE\": number, \"MAX_DEATH_ATOMS\": number}" ] } }, @@ -1254,7 +1254,7 @@ "importPath": "atomblast.io/src/client/js/global.js", "importStyle": "{distanceBetween}", "description": null, - "lineNumber": 174, + "lineNumber": 176, "undocument": true, "params": [ { @@ -1290,7 +1290,7 @@ "importPath": "atomblast.io/src/client/js/global.js", "importStyle": "{isInBounds}", "description": "Returns true if the object parameter is within the map boundaries.", - "lineNumber": 183, + "lineNumber": 185, "params": [ { "nullable": null, @@ -1326,7 +1326,7 @@ "importPath": "atomblast.io/src/client/js/global.js", "importStyle": "{getCurrTile}", "description": "Gets the tile directly underneath any object.", - "lineNumber": 192, + "lineNumber": 194, "unknown": [ { "tagName": "@returns", @@ -1368,7 +1368,7 @@ "importPath": "atomblast.io/src/client/js/global.js", "importStyle": "{getGlobalLocation}", "description": "Gets the coordinates of the tile directly underneath the object.", - "lineNumber": 207, + "lineNumber": 209, "params": [ { "nullable": null, @@ -1383,7 +1383,7 @@ ], "return": { "types": [ - "{\"globalX\": *, \"globalY\": *}" + "{\"globalY\": *, \"globalX\": *}" ] } }, @@ -3258,7 +3258,7 @@ "__docId__": 172, "kind": "file", "name": "src/client/js/obj/tiles.js", - "content": "/**\n * This constant contains all data on how to draw and manage tiles.\n *\n * Fields required:\n * type: Choose one: spawner, teamBase, wall\n * params: Different for each type. For example, spawner will require the `atomToSpawn` param, and teamBase will require the `teamName` param.\n * texture: String path of the texture file for this texture, starting in the `map` folder. (ex. 'foo.png' corresponds to '../../assets/map/Tiles/foo.png')\n */\nexport const TILES = {\n\tempty: {\n\t\ttexture: 'SolidTile.png',\n\t\ttype: 'none'\n\t},\n\tflame: {\n\t\ttexture: 'FlameTile.png',\n\t\ttype: 'flame'\n\t},\n\ttopLeft: {\n\t\ttexture: 'InteriorCorner BR.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['bottom', 'right']\n\t\t}\n\t},\n\ttopRight: {\n\t\ttexture: 'InteriorCorner BL.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['bottom', 'left']\n\t\t}\n\t},\n\tbottomLeft: {\n\t\ttexture: 'InteriorCorner TR.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['top', 'right']\n\t\t}\n\t},\n\tbottomRight: {\n\t\ttexture: 'InteriorCorner TL.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['top', 'left']\n\t\t}\n\t},\n\tedgeTop: {\n\t\ttexture: 'EdgeTile B.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['bottom']\n\t\t}\n\t},\n\tedgeBottom: {\n\t\ttexture: 'EdgeTile T.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['top']\n\t\t}\n\t},\n\tedgeLeft: {\n\t\ttexture: 'EdgeTile R.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['right']\n\t\t}\n\t},\n\tedgeRight: {\n\t\ttexture: 'EdgeTile L.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['left']\n\t\t}\n\t},\n\thydrogenVent: {\n\t\ttexture: 'HydrogenVent.png',\n\t\ttype: 'spawner',\n\t\tparams: {\n\t\t\tatomsToSpawn: ['h']\n\t\t}\n\t},\n\toxygenVent: {\n\t\ttexture: 'OxygenVent.png',\n\t\ttype: 'spawner',\n\t\tparams: {\n\t\t\tatomsToSpawn: ['o']\n\t\t}\n\t},\n\tnitrogenVent: {\n\t\ttexture: 'NitrogenVent.png',\n\t\ttype: 'spawner',\n\t\tparams: {\n\t\t\tatomsToSpawn: ['n']\n\t\t}\n\t},\n\tcarbonVent: {\n\t\ttexture: 'CarbonVent.png',\n\t\ttype: 'spawner',\n\t\tparams: {\n\t\t\tatomsToSpawn: ['c']\n\t\t}\n\t},\n\tstronghold: {\n\t\ttexture: 'StrongholdNeutral.png',\n\t\ttype: 'stronghold'\n\t}\n}\n\n/**\n * 2D array containing the entire map tile layout. Top left is (0,0), furthest right is (n, 0) and furthest bottom is (0, n).\n * Shortcuts:\n * E = Empty\n * O = Oxygen\n * N = Nitrogen\n * C = Carbon\n */\nexport const MAP_LAYOUT = [\n\t['H', 'E', 'E', 'E', 'E', 'E', 'H'],\n\t['E', 'O', 'E', 'S', 'E', 'O', 'E'],\n\t['E', 'E', 'F', 'N', 'F', 'E', 'E'],\n\t['E', 'S', 'F', 'C', 'F', 'S', 'E'],\n\t['E', 'E', 'F', 'N', 'F', 'E', 'E'],\n\t['E', 'O', 'E', 'S', 'E', 'O', 'E'],\n\t['H', 'E', 'E', 'E', 'E', 'E', 'H']\n]\n\nexport const TILE_NAMES = {\n\tE: 'empty',\n\tO: 'oxygenVent',\n\tN: 'nitrogenVent',\n\tC: 'carbonVent',\n\tH: 'hydrogenVent',\n\tF: 'flame',\n\tS: 'stronghold',\n\tq: 'topLeft',\n\tw: 'edgeTop',\n\te: 'topRight',\n\ta: 'edgeLeft',\n\td: 'edgeRight',\n\tz: 'bottomLeft',\n\tx: 'edgeBottom',\n\tc: 'bottomRight'\n}\n", + "content": "/**\n * This constant contains all data on how to draw and manage tiles.\n *\n * Fields required:\n * type: Choose one: spawner, teamBase, wall\n * params: Different for each type. For example, spawner will require the `atomToSpawn` param, and teamBase will require the `teamName` param.\n * texture: String path of the texture file for this texture, starting in the `map` folder. (ex. 'foo.png' corresponds to '../../assets/map/Tiles/foo.png')\n */\nexport const TILES = {\n\tempty: {\n\t\ttexture: 'SolidTile.png',\n\t\ttype: 'none'\n\t},\n\tflame: {\n\t\ttexture: 'FlameTile.png',\n\t\ttype: 'flame'\n\t},\n\ttopLeft: {\n\t\ttexture: 'InteriorCorner BR.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['bottom', 'right']\n\t\t}\n\t},\n\ttopRight: {\n\t\ttexture: 'InteriorCorner BL.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['bottom', 'left']\n\t\t}\n\t},\n\tbottomLeft: {\n\t\ttexture: 'InteriorCorner TR.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['top', 'right']\n\t\t}\n\t},\n\tbottomRight: {\n\t\ttexture: 'InteriorCorner TL.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['top', 'left']\n\t\t}\n\t},\n\tedgeTop: {\n\t\ttexture: 'EdgeTile B.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['bottom']\n\t\t}\n\t},\n\tedgeBottom: {\n\t\ttexture: 'EdgeTile T.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['top']\n\t\t}\n\t},\n\tedgeLeft: {\n\t\ttexture: 'EdgeTile R.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['right']\n\t\t}\n\t},\n\tedgeRight: {\n\t\ttexture: 'EdgeTile L.png',\n\t\ttype: 'wall',\n\t\tparams: {\n\t\t\tborder: ['left']\n\t\t}\n\t},\n\thydrogenVent: {\n\t\ttexture: 'HydrogenVent.png',\n\t\ttype: 'spawner',\n\t\tparams: {\n\t\t\tatomsToSpawn: ['h']\n\t\t}\n\t},\n\toxygenVent: {\n\t\ttexture: 'OxygenVent.png',\n\t\ttype: 'spawner',\n\t\tparams: {\n\t\t\tatomsToSpawn: ['o']\n\t\t}\n\t},\n\tnitrogenVent: {\n\t\ttexture: 'NitrogenVent.png',\n\t\ttype: 'spawner',\n\t\tparams: {\n\t\t\tatomsToSpawn: ['n']\n\t\t}\n\t},\n\tcarbonVent: {\n\t\ttexture: 'CarbonVent.png',\n\t\ttype: 'spawner',\n\t\tparams: {\n\t\t\tatomsToSpawn: ['c']\n\t\t}\n\t},\n\tstronghold: {\n\t\ttexture: 'stronghold.png',\n\t\ttype: 'stronghold'\n\t}\n}\n\n/**\n * 2D array containing the entire map tile layout. Top left is (0,0), furthest right is (n, 0) and furthest bottom is (0, n).\n * Shortcuts:\n * E = Empty\n * O = Oxygen\n * N = Nitrogen\n * C = Carbon\n */\nexport const MAP_LAYOUT = [\n\t['H', 'E', 'E', 'E', 'E', 'E', 'H'],\n\t['E', 'O', 'E', 'S', 'E', 'O', 'E'],\n\t['E', 'E', 'F', 'N', 'F', 'E', 'E'],\n\t['E', 'S', 'F', 'C', 'F', 'S', 'E'],\n\t['E', 'E', 'F', 'N', 'F', 'E', 'E'],\n\t['E', 'O', 'E', 'S', 'E', 'O', 'E'],\n\t['H', 'E', 'E', 'E', 'E', 'E', 'H']\n]\n\nexport const TILE_NAMES = {\n\tE: 'empty',\n\tO: 'oxygenVent',\n\tN: 'nitrogenVent',\n\tC: 'carbonVent',\n\tH: 'hydrogenVent',\n\tF: 'flame',\n\tS: 'stronghold',\n\tq: 'topLeft',\n\tw: 'edgeTop',\n\te: 'topRight',\n\ta: 'edgeLeft',\n\td: 'edgeRight',\n\tz: 'bottomLeft',\n\tx: 'edgeBottom',\n\tc: 'bottomRight'\n}\n", "static": true, "longname": "/home/dbqeo/Documents/AtomBlast.io/src/client/js/obj/tiles.js", "access": "public", @@ -3328,7 +3328,7 @@ "__docId__": 176, "kind": "file", "name": "src/client/js/pixigame.js", - "content": "import * as PIXI from 'pixi.js'\nimport { keyboard } from './lib/keyboard'\nimport { GLOBAL } from './global'\nimport { Player } from './obj/player'\nimport { hideElement, showElement, selectedBlueprints, updateCompoundButtons, selectedCompound, cookieInputs, mouseX, mouseY } from './app'\nimport { socket, objects, teamColors } from './socket'\nimport { BLUEPRINTS } from './obj/blueprints'\nimport { TILES, MAP_LAYOUT, TILE_NAMES } from './obj/tiles'\nimport { requestCreateCompound } from './obj/create'\nimport { MapTile } from './obj/maptile'\nimport { joystick } from './app'\n\nexport var isSetup // True after the stage is fully set up\nexport var player // The player being controlled by this client\nexport var screenCenterX // X-coordinate of the center of the screen\nexport var screenCenterY // Y-coordinate of the center of the screen\nexport var app // Pixi app\nexport var spritesheet // Spritesheet containing all sprites that need to be loaded\n\nlet inGame = false // True after game has begun\nlet mouseDown = false // True if mouse is pressed down\nlet esc, space, blueprintKeys, moveKeys // Key handlers\nlet streamID = 0 // Current stream compound number. Resets when mouse/space is released; otherwise increments by one every time a compound is created.\n\nexport function loadTextures () {\n\tif (!isSetup) {\n\t\t// Initialization\n\t\tlet type = (PIXI.utils.isWebGLSupported()) ? 'WebGL' : 'canvas'\n\t\tPIXI.utils.sayHello(type)\n\n\t\t// Create a Pixi Application\n\t\tapp = new PIXI.Application(0, 0, {\n\t\t\tview: document.getElementById('gameView')\n\t\t})\n\t\t// Add the canvas that Pixi automatically created for you to the HTML document\n\t\t// document.body.appendChild(app.view);\n\n\t\t// Renderer settings\n\t\tapp.renderer.autoResize = true\n\t\tapp.renderer.resize(window.innerWidth, window.innerHeight)\n\t\tscreenCenterX = window.innerWidth / 2 - GLOBAL.PLAYER_RADIUS\n\t\tscreenCenterY = window.innerHeight / 2 - GLOBAL.PLAYER_RADIUS\n\n\t\t// Load resources if not already loaded\n\t\t// let TEXTURES = []\n\t\t// TEXTURES.push(GLOBAL.IGNITE_SPRITE)\n\t\t// for (let bp in BLUEPRINTS) {\n\t\t// \t// Prevent duplicate textures from being loaded\n\t\t// \tif (TEXTURES.indexOf(BLUEPRINTS[bp].texture) < 0) {\n\t\t// \t\tTEXTURES.push(BLUEPRINTS[bp].texture)\n\t\t// \t}\n\t\t// \tif (BLUEPRINTS[bp].params.splashImage !== undefined && TEXTURES.indexOf(BLUEPRINTS[bp].params.splashImage) < 0) {\n\t\t// \t\tTEXTURES.push(BLUEPRINTS[bp].params.splashImage)\n\t\t// \t}\n\t\t// }\n\t\t// for (let atom of GLOBAL.ATOM_SPRITES) {\n\t\t// \tif (TEXTURES.indexOf(atom) < 0) {\n\t\t// \t\tTEXTURES.push(atom)\n\t\t// \t}\n\t\t// }\n\t\t// for (let tile in TILES) {\n\t\t// \tif (TEXTURES.indexOf(GLOBAL.TILE_TEXTURE_DIR + TILES[tile].texture) < 0) {\n\t\t// \t\tTEXTURES.push(GLOBAL.TILE_TEXTURE_DIR + TILES[tile].texture)\n\t\t// \t}\n\t\t// }\n\t\t// console.log(TEXTURES)\n\n\t\t// Initiate resource loading\n\t\tif (Object.keys(PIXI.loader.resources).length < 1) {\n\t\t\tPIXI.loader\n\t\t\t\t.add(GLOBAL.SPRITESHEET_DIR)\n\t\t\t\t.load(registerCallbacks)\n\t\t}\n\t}\n\n\t// If already initialized, use existing app variable\n\tif (isSetup) {\n\t\tconsole.info('Stage already initialized!')\n\t\tclearStage()\n\t\tregisterCallbacks()\n\t}\n}\n\n/**\n * Sets up the stage. Call after init(), and begins the draw() loop once complete.\n */\nfunction registerCallbacks () {\n\tif (!isSetup) {\n\t\t// Set up key listeners\n\t\tesc = keyboard(GLOBAL.KEY_ESC)\n\t\tspace = keyboard(GLOBAL.KEY_SPACE)\n\n\t\t// All the movement keys for easy access\n\t\tmoveKeys = [\n\t\t\tkeyboard(GLOBAL.KEY_A), // Left\n\t\t\tkeyboard(GLOBAL.KEY_D), // Right\n\t\t\tkeyboard(GLOBAL.KEY_W), // Up\n\t\t\tkeyboard(GLOBAL.KEY_S) // Down\n\t\t]\n\n\t\t// Set up the blueprint key listeners\n\t\tblueprintKeys = [\n\t\t\tkeyboard(GLOBAL.KEY_1),\n\t\t\tkeyboard(GLOBAL.KEY_2),\n\t\t\tkeyboard(GLOBAL.KEY_3),\n\t\t\tkeyboard(GLOBAL.KEY_4)\n\t\t]\n\n\t\t// Escape key setup\n\t\tesc.press = () => {\n\t\t\tif (isFocused()) {\n\t\t\t\tif (document.activeElement !== document.getElementById('chatInput')) {\n\t\t\t\t\ttoggleMenu()\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdocument.getElementById('chatInput').blur()\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Chat box styling on select\n\t\tdocument.getElementById('chatInput').onfocus = () => {\n\t\t\tdocument.getElementById('chatbox').style.boxShadow = '0px 0px 1rem 0px #311B92'\n\t\t}\n\n\t\tdocument.getElementById('chatInput').onblur = () => {\n\t\t\tdocument.getElementById('chatbox').style.boxShadow = '0px 0px 1rem 0px rgba(180,180,180)'\n\t\t}\n\n\t\t// Bind each blueprint key\n\t\tfor (let key in blueprintKeys) {\n\t\t\tblueprintKeys[key].press = () => {\n\t\t\t\tif (isFocused() && inGame) {\n\t\t\t\t\tupdateCompoundButtons(key)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Background\n\t\tapp.renderer.backgroundColor = 0xFFFFFF\n\n\t\t// Resize\n\t\tdocument.getElementsByTagName('body')[0].onresize = () => {\n\t\t\tapp.renderer.resize(window.innerWidth, window.innerHeight)\n\t\t\tscreenCenterX = window.innerWidth / 2 - GLOBAL.PLAYER_RADIUS\n\t\t\tscreenCenterY = window.innerHeight / 2 - GLOBAL.PLAYER_RADIUS\n\t\t\tplayer.x = screenCenterX\n\t\t\tplayer.y = screenCenterY\n\t\t}\n\n\t\t// Assign spritesheet object\n\t\tspritesheet = PIXI.loader.resources[GLOBAL.SPRITESHEET_DIR].spritesheet\n\t\tconsole.log(spritesheet)\n\n\t\t// Begin game loop\n\t\tapp.ticker.add(delta => draw(delta))\n\t}\n\n\tisSetup = true\n\n\t// Draw map\n\tfor (let row = 0; row < MAP_LAYOUT.length; row++) {\n\t\tfor (let col = 0; col < MAP_LAYOUT[0].length; col++) {\n\t\t\tlet tileName = 'tile_' + col + '_' + row\n\t\t\tif (objects.tiles[tileName] === undefined || objects.tiles[tileName] === null) {\n\t\t\t\tif (TILE_NAMES[MAP_LAYOUT[row][col]] !== undefined) {\n\t\t\t\t\tobjects.tiles[tileName] = new MapTile(TILE_NAMES[MAP_LAYOUT[row][col]], col, MAP_LAYOUT.length - row - 1)\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthrow new Error('Tile ' + MAP_LAYOUT[row][col] + ' could not be resolved to a name.')\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tshowGameUI()\n}\n\n/**\n * Called once per frame. Updates all moving sprites on the stage.\n * Also checks key inputs.\n * @param {number} delta Time value from Pixi\n */\nfunction draw (delta) {\n\t// Handle this player and movement\n\tif (player !== undefined) {\n\t\t// Make sure player is not in chat before checking move\n\t\tif (isFocused() && inGame) {\n\t\t\t// Keyboard based controls\n\n\t\t\tif ((moveKeys[0].isDown || joystick.mobileKey.leftDown === true) && player.vx > -GLOBAL.MAX_SPEED * player.speedMult) { // Left\n\t\t\t\tmobileMovement('left')\n\t\t\t}\n\t\t\tif ((moveKeys[1].isDown || joystick.mobileKey.rightDown === true) && player.vx < GLOBAL.MAX_SPEED * player.speedMult) { // Right\n\t\t\t\tmobileMovement('right')\n\t\t\t}\n\t\t\tif ((moveKeys[2].isDown || joystick.mobileKey.upDown === true) && player.vy < GLOBAL.MAX_SPEED * player.speedMult) { // Up\n\t\t\t\tmobileMovement('up')\n\t\t\t}\n\t\t\tif ((moveKeys[3].isDown || joystick.mobileKey.downDown === true) && player.vy > -GLOBAL.MAX_SPEED * player.speedMult) { // Down\n\t\t\t\tmobileMovement('down')\n\t\t\t}\n\t\t\tplayer.isMoving = false\n\t\t\tfor (let key of moveKeys) {\n\t\t\t\tif (key.isDown) {\n\t\t\t\t\tplayer.isMoving = true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tplayer.isMoving = false\n\n\t\t\t// Because the document is not focused disable all keys(Stops moving!)\n\t\t\tfor (let key in moveKeys) {\n\t\t\t\tmoveKeys[key].isDown = false\n\t\t\t\tmoveKeys[key].isUp = true\n\t\t\t}\n\t\t}\n\n\t\t// Slow down gradually - unaffected by chat input\n\t\tif (!moveKeys[2].isDown && !moveKeys[3].isDown) {\n\t\t\tplayer.vy *= GLOBAL.VELOCITY_STEP\n\t\t}\n\t\tif (!moveKeys[0].isDown && !moveKeys[1].isDown) {\n\t\t\tplayer.vx *= GLOBAL.VELOCITY_STEP\n\t\t}\n\n\t\t// Shooting\n\t\tspace.press = () => {\n\t\t\tif (selectedBlueprints[selectedCompound].type !== 'stream') {\n\t\t\t\tshootHandler({ clientX: mouseX, clientY: mouseY }, false)\n\t\t\t}\n\t\t}\n\n\t\t// Streams\n\t\tif ((space.isDown || mouseDown) && selectedBlueprints[selectedCompound].type === 'stream') {\n\t\t\tshootHandler({ clientX: mouseX, clientY: mouseY }, true)\n\t\t}\n\n\t\t// Reset stream count when space key is released\n\t\tspace.release = () => {\n\t\t\tstreamID = 0\n\t\t}\n\n\t\t// Move player\n\t\tplayer.tick()\n\n\t\t// Send coordinates\n\t\tsocket.emit('move', {\n\t\t\ttype: 'players',\n\t\t\tid: player.id,\n\t\t\tposX: player.posX,\n\t\t\tposY: player.posY,\n\t\t\tvx: player.vx,\n\t\t\tvy: player.vy\n\t\t})\n\t}\n\n\t// Handle objects except for this player\n\tfor (let objType in objects) {\n\t\tfor (let obj in objects[objType]) {\n\t\t\tif (objType !== 'players' || player !== objects[objType][obj]) {\n\t\t\t\tobjects[objType][obj].tick()\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Shows or hides the in-game menu box\n */\nfunction toggleMenu () {\n\tif (document.getElementById('menubox').offsetParent === null) {\n\t\tshowElement('menubox')\n\t}\n\telse {\n\t\thideElement('menubox')\n\t}\n}\n\n/**\n * Remove all elements pre-rendered on stage.\n */\nfunction clearStage () {\n\tfor (var i = app.stage.children.length - 1; i >= 0; i--) {\n\t\tapp.stage.removeChild(app.stage.children[i])\n\t}\n}\n\n/**\n * Destroy everything in PIXI. DANGEROUS avoid!\n */\nexport function destroyPIXI () {\n\tapp.destroy(true, {\n\t\tchildren: true,\n\t\ttexture: true,\n\t\tbaseTexture: true\n\t})\n\tPIXI.loader.reset()\n\tisSetup = false\n\tapp = undefined\n}\n\n/**\n * Call this function to hide loading div and show UI\n */\nexport function showGameUI () {\n\t// Hide loading screen\n\thideElement('loading')\n\tif (!inGame) {\n\t\tshowElement('lobby')\n\t}\n}\n\n/**\n * Creates a Player instance once the stage is fully set up and ready.\n * @param {*} data Starting values to assign to the player. Generated from server\n * @returns {Player} The Player object that was created\n */\nexport function createPlayer (data) {\n\tif (isSetup) {\n\t\tconsole.log('create player ' + data.id)\n\t\tconsole.log(data)\n\t\tlet newPlayer = new Player(spritesheet.textures[GLOBAL.PLAYER_SPRITES[0]], data.id, data.name, data.room, data.team, data.health, data.posX, data.posY, data.vx, data.vy)\n\t\tif (data.id === socket.id) {\n\t\t\tplayer = newPlayer\n\t\t}\n\n\t\treturn newPlayer\n\t}\n}\n\n/**\n * If the document is Focused return true otherwise false\n **/\nexport function isFocused () {\n\treturn document.hasFocus() && document.activeElement !== document.getElementById('chatInput')\n}\n\n/**\n * Starts the game after lobby closes.\n * @param {boolean} emit True if this client should emit the event to the server.\n * @param {*} teams Array of teams on the scoreboard.\n */\nexport function startGame (emit, teams) {\n\tsetIngame(true)\n\thideElement('lobby')\n\tshowElement('hud')\n\tif (emit) {\n\t\tsocket.emit('startGame', {\n\t\t\tstart: true\n\t\t})\n\t}\n\n\t// Init scoreboard\n\tif (teams !== undefined) {\n\t\t// Reset scoreboard from previous rounds\n\t\tdocument.getElementById('score').innerHTML = ''\n\n\t\tfor (let i = 0; i < teams.length; i++) {\n\t\t\tdocument.getElementById('score').innerHTML += '-0'\n\t\t\tdocument.getElementById('team-score-' + i).style.color = '#' + GLOBAL.TEAM_COLORS[i]\n\t\t}\n\t\tdocument.getElementById('score').style.fontSize = '3vw'\n\t\tdocument.getElementById('score').innerHTML += '-'\n\t}\n}\n\n/**\n * Sets the value of inGame\n * @param {boolean} newValue Value to set inGame to\n */\nexport function setIngame (newValue) {\n\tinGame = newValue\n}\n\n/**\n * @returns {boolean} Returns inGame variable\n */\nexport function getIngame () {\n\treturn inGame\n}\n\n/**\n * Called on mouse up from app.js\n * @param {*} e Click event\n */\nexport function mouseUpHandler (e) {\n\tmouseDown = true\n\tif (selectedBlueprints[selectedCompound] && selectedBlueprints[selectedCompound].type !== 'stream') {\n\t\tshootHandler(e, false)\n\t}\n}\n/**\n * Called on mouse down from app.js\n * @param {*} e Click event\n */\nexport function mouseDownHandler (e) {\n\tmouseDown = false\n\tstreamID = 0\n}\n\n/**\n * Handles shooting mechanics on mouse/spacebar click/hold.\n * @param {*} e Click event\n * @param {boolean} stream True if sending a stream (such as water); false otherwise.\n */\nfunction shootHandler (e, stream) {\n\tif (isFocused() && inGame) {\n\t\tif (stream) {\n\t\t\tstreamID++\n\t\t}\n\t\trequestCreateCompound(selectedBlueprints[selectedCompound], e.clientX, e.clientY, streamID)\n\t}\n}\n\n// actually name this better bro\nexport function mobileMovement (direction) {\n\tif (direction === 'up') {\n\t\tplayer.vy += GLOBAL.VELOCITY_STEP * player.speedMult\n\t}\n\tif (direction === 'down') {\n\t\tplayer.vy += -GLOBAL.VELOCITY_STEP * player.speedMult\n\t}\n\tif (direction === 'right') {\n\t\tplayer.vx += GLOBAL.VELOCITY_STEP * player.speedMult\n\t}\n\tif (direction === 'left') {\n\t\tplayer.vx += -GLOBAL.VELOCITY_STEP * player.speedMult\n\t}\n}\n", + "content": "import * as PIXI from 'pixi.js'\nimport { keyboard } from './lib/keyboard'\nimport { GLOBAL } from './global'\nimport { Player } from './obj/player'\nimport { hideElement, showElement, selectedBlueprints, updateCompoundButtons, selectedCompound, cookieInputs, mouseX, mouseY } from './app'\nimport { socket, objects, teamColors } from './socket'\nimport { BLUEPRINTS } from './obj/blueprints'\nimport { TILES, MAP_LAYOUT, TILE_NAMES } from './obj/tiles'\nimport { requestCreateCompound } from './obj/create'\nimport { MapTile } from './obj/maptile'\nimport { joystick } from './app'\n\nexport var isSetup // True after the stage is fully set up\nexport var player // The player being controlled by this client\nexport var screenCenterX // X-coordinate of the center of the screen\nexport var screenCenterY // Y-coordinate of the center of the screen\nexport var app // Pixi app\nexport var spritesheet // Spritesheet containing all sprites that need to be loaded\n\nlet inGame = false // True after game has begun\nlet mouseDown = false // True if mouse is pressed down\nlet esc, space, blueprintKeys, moveKeys // Key handlers\nlet streamID = 0 // Current stream compound number. Resets when mouse/space is released; otherwise increments by one every time a compound is created.\n\nexport function loadTextures () {\n\tif (!isSetup) {\n\t\t// Initialization\n\t\tlet type = (PIXI.utils.isWebGLSupported()) ? 'WebGL' : 'canvas'\n\t\tPIXI.utils.sayHello(type)\n\n\t\t// Create a Pixi Application\n\t\tapp = new PIXI.Application(0, 0, {\n\t\t\tview: document.getElementById('gameView')\n\t\t})\n\t\t// Add the canvas that Pixi automatically created for you to the HTML document\n\t\t// document.body.appendChild(app.view);\n\n\t\t// Renderer settings\n\t\tapp.renderer.autoResize = true\n\t\tapp.renderer.resize(window.innerWidth, window.innerHeight)\n\t\tscreenCenterX = window.innerWidth / 2 - GLOBAL.PLAYER_RADIUS\n\t\tscreenCenterY = window.innerHeight / 2 - GLOBAL.PLAYER_RADIUS\n\n\t\t// Load resources if not already loaded\n\t\t// let TEXTURES = []\n\t\t// TEXTURES.push(GLOBAL.IGNITE_SPRITE)\n\t\t// for (let bp in BLUEPRINTS) {\n\t\t// \t// Prevent duplicate textures from being loaded\n\t\t// \tif (TEXTURES.indexOf(BLUEPRINTS[bp].texture) < 0) {\n\t\t// \t\tTEXTURES.push(BLUEPRINTS[bp].texture)\n\t\t// \t}\n\t\t// \tif (BLUEPRINTS[bp].params.splashImage !== undefined && TEXTURES.indexOf(BLUEPRINTS[bp].params.splashImage) < 0) {\n\t\t// \t\tTEXTURES.push(BLUEPRINTS[bp].params.splashImage)\n\t\t// \t}\n\t\t// }\n\t\t// for (let atom of GLOBAL.ATOM_SPRITES) {\n\t\t// \tif (TEXTURES.indexOf(atom) < 0) {\n\t\t// \t\tTEXTURES.push(atom)\n\t\t// \t}\n\t\t// }\n\t\t// for (let tile in TILES) {\n\t\t// \tif (TEXTURES.indexOf(GLOBAL.TILE_TEXTURE_DIR + TILES[tile].texture) < 0) {\n\t\t// \t\tTEXTURES.push(GLOBAL.TILE_TEXTURE_DIR + TILES[tile].texture)\n\t\t// \t}\n\t\t// }\n\t\t// console.log(TEXTURES)\n\n\t\t// Initiate resource loading\n\t\tif (Object.keys(PIXI.loader.resources).length < 1) {\n\t\t\tPIXI.loader\n\t\t\t\t.add(GLOBAL.SPRITESHEET_DIR)\n\t\t\t\t.load(registerCallbacks)\n\t\t}\n\t}\n\n\t// If already initialized, use existing app variable\n\tif (isSetup) {\n\t\tconsole.info('Stage already initialized!')\n\t\tclearStage()\n\t\tregisterCallbacks()\n\t}\n}\n\n/**\n * Sets up the stage. Call after init(), and begins the draw() loop once complete.\n */\nfunction registerCallbacks () {\n\tif (!isSetup) {\n\t\t// Set up key listeners\n\t\tesc = keyboard(GLOBAL.KEY_ESC)\n\t\tspace = keyboard(GLOBAL.KEY_SPACE)\n\n\t\t// All the movement keys for easy access\n\t\tmoveKeys = [\n\t\t\tkeyboard(GLOBAL.KEY_A), // Left\n\t\t\tkeyboard(GLOBAL.KEY_D), // Right\n\t\t\tkeyboard(GLOBAL.KEY_W), // Up\n\t\t\tkeyboard(GLOBAL.KEY_S) // Down\n\t\t]\n\n\t\t// Set up the blueprint key listeners\n\t\tblueprintKeys = [\n\t\t\tkeyboard(GLOBAL.KEY_1),\n\t\t\tkeyboard(GLOBAL.KEY_2),\n\t\t\tkeyboard(GLOBAL.KEY_3),\n\t\t\tkeyboard(GLOBAL.KEY_4)\n\t\t]\n\n\t\t// Escape key setup\n\t\tesc.press = () => {\n\t\t\tif (isFocused()) {\n\t\t\t\tif (document.activeElement !== document.getElementById('chatInput')) {\n\t\t\t\t\ttoggleMenu()\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdocument.getElementById('chatInput').blur()\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Chat box styling on select\n\t\tdocument.getElementById('chatInput').onfocus = () => {\n\t\t\tdocument.getElementById('chatbox').style.boxShadow = '0px 0px 1rem 0px #311B92'\n\t\t}\n\n\t\tdocument.getElementById('chatInput').onblur = () => {\n\t\t\tdocument.getElementById('chatbox').style.boxShadow = '0px 0px 1rem 0px rgba(180,180,180)'\n\t\t}\n\n\t\t// Bind each blueprint key\n\t\tfor (let key in blueprintKeys) {\n\t\t\tblueprintKeys[key].press = () => {\n\t\t\t\tif (isFocused() && inGame) {\n\t\t\t\t\tupdateCompoundButtons(key)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Background\n\t\tapp.renderer.backgroundColor = 0xFFFFFF\n\n\t\t// Resize\n\t\tdocument.getElementsByTagName('body')[0].onresize = () => {\n\t\t\tapp.renderer.resize(window.innerWidth, window.innerHeight)\n\t\t\tscreenCenterX = window.innerWidth / 2 - GLOBAL.PLAYER_RADIUS\n\t\t\tscreenCenterY = window.innerHeight / 2 - GLOBAL.PLAYER_RADIUS\n\t\t\tplayer.x = screenCenterX\n\t\t\tplayer.y = screenCenterY\n\t\t}\n\n\t\t// Assign spritesheet object\n\t\tspritesheet = PIXI.loader.resources[GLOBAL.SPRITESHEET_DIR].spritesheet\n\t\tconsole.log(spritesheet)\n\n\t\t// Begin game loop\n\t\tapp.ticker.add(delta => draw(delta))\n\t}\n\n\tisSetup = true\n\n\t// Draw map\n\tfor (let row = 0; row < MAP_LAYOUT.length; row++) {\n\t\tfor (let col = 0; col < MAP_LAYOUT[0].length; col++) {\n\t\t\tlet tileName = 'tile_' + col + '_' + (MAP_LAYOUT.length - row - 1)\n\t\t\tif (objects.tiles[tileName] === undefined || objects.tiles[tileName] === null) {\n\t\t\t\tif (TILE_NAMES[MAP_LAYOUT[row][col]] !== undefined) {\n\t\t\t\t\tobjects.tiles[tileName] = new MapTile(TILE_NAMES[MAP_LAYOUT[row][col]], col, MAP_LAYOUT.length - row - 1)\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthrow new Error('Tile ' + MAP_LAYOUT[row][col] + ' could not be resolved to a name.')\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tshowGameUI()\n}\n\n/**\n * Called once per frame. Updates all moving sprites on the stage.\n * Also checks key inputs.\n * @param {number} delta Time value from Pixi\n */\nfunction draw (delta) {\n\t// Handle this player and movement\n\tif (player !== undefined) {\n\t\t// Make sure player is not in chat before checking move\n\t\tif (isFocused() && inGame) {\n\t\t\t// Keyboard based controls\n\n\t\t\tif ((moveKeys[0].isDown || joystick.mobileKey.leftDown === true) && player.vx > -GLOBAL.MAX_SPEED * player.speedMult) { // Left\n\t\t\t\tmobileMovement('left')\n\t\t\t}\n\t\t\tif ((moveKeys[1].isDown || joystick.mobileKey.rightDown === true) && player.vx < GLOBAL.MAX_SPEED * player.speedMult) { // Right\n\t\t\t\tmobileMovement('right')\n\t\t\t}\n\t\t\tif ((moveKeys[2].isDown || joystick.mobileKey.upDown === true) && player.vy < GLOBAL.MAX_SPEED * player.speedMult) { // Up\n\t\t\t\tmobileMovement('up')\n\t\t\t}\n\t\t\tif ((moveKeys[3].isDown || joystick.mobileKey.downDown === true) && player.vy > -GLOBAL.MAX_SPEED * player.speedMult) { // Down\n\t\t\t\tmobileMovement('down')\n\t\t\t}\n\t\t\tplayer.isMoving = false\n\t\t\tfor (let key of moveKeys) {\n\t\t\t\tif (key.isDown) {\n\t\t\t\t\tplayer.isMoving = true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tplayer.isMoving = false\n\n\t\t\t// Because the document is not focused disable all keys(Stops moving!)\n\t\t\tfor (let key in moveKeys) {\n\t\t\t\tmoveKeys[key].isDown = false\n\t\t\t\tmoveKeys[key].isUp = true\n\t\t\t}\n\t\t}\n\n\t\t// Slow down gradually - unaffected by chat input\n\t\tif (!moveKeys[2].isDown && !moveKeys[3].isDown) {\n\t\t\tplayer.vy *= GLOBAL.VELOCITY_STEP\n\t\t}\n\t\tif (!moveKeys[0].isDown && !moveKeys[1].isDown) {\n\t\t\tplayer.vx *= GLOBAL.VELOCITY_STEP\n\t\t}\n\n\t\t// Shooting\n\t\tspace.press = () => {\n\t\t\tif (selectedBlueprints[selectedCompound].type !== 'stream') {\n\t\t\t\tshootHandler({ clientX: mouseX, clientY: mouseY }, false)\n\t\t\t}\n\t\t}\n\n\t\t// Streams\n\t\tif ((space.isDown || mouseDown) && selectedBlueprints[selectedCompound].type === 'stream') {\n\t\t\tshootHandler({ clientX: mouseX, clientY: mouseY }, true)\n\t\t}\n\n\t\t// Reset stream count when space key is released\n\t\tspace.release = () => {\n\t\t\tstreamID = 0\n\t\t}\n\n\t\t// Move player\n\t\tplayer.tick()\n\n\t\t// Send coordinates\n\t\tsocket.emit('move', {\n\t\t\ttype: 'players',\n\t\t\tid: player.id,\n\t\t\tposX: player.posX,\n\t\t\tposY: player.posY,\n\t\t\tvx: player.vx,\n\t\t\tvy: player.vy\n\t\t})\n\t}\n\n\t// Handle objects except for this player\n\tfor (let objType in objects) {\n\t\tfor (let obj in objects[objType]) {\n\t\t\tif (objType !== 'players' || player !== objects[objType][obj]) {\n\t\t\t\tobjects[objType][obj].tick()\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Shows or hides the in-game menu box\n */\nfunction toggleMenu () {\n\tif (document.getElementById('menubox').offsetParent === null) {\n\t\tshowElement('menubox')\n\t}\n\telse {\n\t\thideElement('menubox')\n\t}\n}\n\n/**\n * Remove all elements pre-rendered on stage.\n */\nfunction clearStage () {\n\tfor (var i = app.stage.children.length - 1; i >= 0; i--) {\n\t\tapp.stage.removeChild(app.stage.children[i])\n\t}\n}\n\n/**\n * Destroy everything in PIXI. DANGEROUS avoid!\n */\nexport function destroyPIXI () {\n\tapp.destroy(true, {\n\t\tchildren: true,\n\t\ttexture: true,\n\t\tbaseTexture: true\n\t})\n\tPIXI.loader.reset()\n\tisSetup = false\n\tapp = undefined\n}\n\n/**\n * Call this function to hide loading div and show UI\n */\nexport function showGameUI () {\n\t// Hide loading screen\n\thideElement('loading')\n\tif (!inGame) {\n\t\tshowElement('lobby')\n\t}\n}\n\n/**\n * Creates a Player instance once the stage is fully set up and ready.\n * @param {*} data Starting values to assign to the player. Generated from server\n * @returns {Player} The Player object that was created\n */\nexport function createPlayer (data) {\n\tif (isSetup) {\n\t\tconsole.log('create player ' + data.id)\n\t\tconsole.log(data)\n\t\tlet newPlayer = new Player(spritesheet.textures[GLOBAL.PLAYER_SPRITES[0]], data.id, data.name, data.room, data.team, data.health, data.posX, data.posY, data.vx, data.vy)\n\t\tif (data.id === socket.id) {\n\t\t\tplayer = newPlayer\n\t\t}\n\n\t\treturn newPlayer\n\t}\n}\n\n/**\n * If the document is Focused return true otherwise false\n **/\nexport function isFocused () {\n\treturn document.hasFocus() && document.activeElement !== document.getElementById('chatInput')\n}\n\n/**\n * Starts the game after lobby closes.\n * @param {boolean} emit True if this client should emit the event to the server.\n * @param {*} teams Array of teams on the scoreboard.\n */\nexport function startGame (emit, teams) {\n\tsetIngame(true)\n\thideElement('lobby')\n\tshowElement('hud')\n\tif (emit) {\n\t\tsocket.emit('startGame', {\n\t\t\tstart: true\n\t\t})\n\t}\n\n\t// Init scoreboard\n\tif (teams !== undefined) {\n\t\t// Reset scoreboard from previous rounds\n\t\tdocument.getElementById('score').innerHTML = ''\n\n\t\tfor (let i = 0; i < teams.length; i++) {\n\t\t\tdocument.getElementById('score').innerHTML += '-0'\n\t\t\tdocument.getElementById('team-score-' + i).style.color = '#' + GLOBAL.TEAM_COLORS[i]\n\t\t}\n\t\tdocument.getElementById('score').style.fontSize = '3vw'\n\t\tdocument.getElementById('score').innerHTML += '-'\n\t}\n}\n\n/**\n * Sets the value of inGame\n * @param {boolean} newValue Value to set inGame to\n */\nexport function setIngame (newValue) {\n\tinGame = newValue\n}\n\n/**\n * @returns {boolean} Returns inGame variable\n */\nexport function getIngame () {\n\treturn inGame\n}\n\n/**\n * Called on mouse up from app.js\n * @param {*} e Click event\n */\nexport function mouseUpHandler (e) {\n\tmouseDown = true\n\tif (selectedBlueprints[selectedCompound] && selectedBlueprints[selectedCompound].type !== 'stream') {\n\t\tshootHandler(e, false)\n\t}\n}\n/**\n * Called on mouse down from app.js\n * @param {*} e Click event\n */\nexport function mouseDownHandler (e) {\n\tmouseDown = false\n\tstreamID = 0\n}\n\n/**\n * Handles shooting mechanics on mouse/spacebar click/hold.\n * @param {*} e Click event\n * @param {boolean} stream True if sending a stream (such as water); false otherwise.\n */\nfunction shootHandler (e, stream) {\n\tif (isFocused() && inGame) {\n\t\tif (stream) {\n\t\t\tstreamID++\n\t\t}\n\t\trequestCreateCompound(selectedBlueprints[selectedCompound], e.clientX, e.clientY, streamID)\n\t}\n}\n\n// actually name this better bro\nexport function mobileMovement (direction) {\n\tif (direction === 'up') {\n\t\tplayer.vy += GLOBAL.VELOCITY_STEP * player.speedMult\n\t}\n\tif (direction === 'down') {\n\t\tplayer.vy += -GLOBAL.VELOCITY_STEP * player.speedMult\n\t}\n\tif (direction === 'right') {\n\t\tplayer.vx += GLOBAL.VELOCITY_STEP * player.speedMult\n\t}\n\tif (direction === 'left') {\n\t\tplayer.vx += -GLOBAL.VELOCITY_STEP * player.speedMult\n\t}\n}\n", "static": true, "longname": "/home/dbqeo/Documents/AtomBlast.io/src/client/js/pixigame.js", "access": "public", @@ -3831,7 +3831,7 @@ "__docId__": 196, "kind": "file", "name": "src/client/js/socket.js", - "content": "import { GLOBAL } from './global'\nimport { cookieInputs, quitGame, updateLobby, updateScores, hideElement, displayWinner, updateAtomList } from './app'\nimport ChatClient from './lib/chat-client'\nimport { loadTextures, app, createPlayer, isSetup, startGame, setIngame } from './pixigame'\nimport { createRenderAtom, createRenderCompound } from './obj/create'\n\n/**\n * Socket.js contains all of the clientside networking interface.\n * It contains all variables which are synced between client and server.\n */\n\n// Socket.io instance\nexport var socket\n\n/* Object containing all synced objects. Contains nested objects, which correspond to different types\n * (for example, objects[atoms], objects[players], objects[compounds])\n */\nexport var objects = {\n\tplayers: {},\n\tatoms: {},\n\tcompounds: {},\n\ttiles: {}\n}\n\n/**\n * Team colors object. Number corresponds to index at GLOBAL.TEAM_COLORS.\n * Format: {\n * \tteamname1: 0,\n * \tteamname: color,\n * \t...\n * }\n */\nexport var teamColors = {}\n\n/**\n * Attempts to connect to the server. Run on 'start game' press.\n * - Manages connecting to main server vs. devserver\n * - Sets up socket listeners\n * - Loads textures\n * - Loads pixi\n */\nexport function beginConnection () {\n\t// Joins debug server if conditions are met\n\tlet room = (cookieInputs[7].value === 'private' ? cookieInputs[1].value : GLOBAL.NO_ROOM_IDENTIFIER)\n\tlet teamInput = (document.querySelector('input[name=\"queue-type\"]:checked').id === 'team-option') ? cookieInputs[2].value : GLOBAL.NO_TEAM_IDENTIFIER\n\n\tif (cookieInputs[1].value === 'test') {\n\t\tconsole.info('Connecting to: ' + GLOBAL.TEST_IP)\n\t\t// DEVELOPMENT server - auto deploy from pixi branch\n\t\tsocket = io.connect(GLOBAL.TEST_IP, {\n\t\t\tquery: `room=${room}&name=${cookieInputs[0].value}&team=${teamInput}&roomType=${cookieInputs[7].value}`,\n\t\t\treconnectionAttempts: 3\n\t\t})\n\t}\n\telse if (cookieInputs[1].value === 'jurassicexp') {\n\t\tconsole.log('Dev Backdoor Initiated! Connecting to devserver')\n\t\t// Local server\n\t\tsocket = io.connect(GLOBAL.LOCAL_HOST, {\n\t\t\tquery: `room=${room}&name=${cookieInputs[0].value}&team=${teamInput}&roomType=${cookieInputs[7].value}`,\n\t\t\treconnectionAttempts: 3\n\t\t})\n\t}\n\telse {\n\t\t// Production server\n\t\tconsole.log('connecting to main server')\n\t\tsocket = io.connect(GLOBAL.SERVER_IP, {\n\t\t\tquery: `room=${room}&name=${cookieInputs[0].value}&team=${teamInput}&roomType=${cookieInputs[7].value}`,\n\t\t\treconnectionAttempts: 3\n\t\t})\n\t}\n\n\tsocket.on('connect', () => {\n\t\tsetupSocket()\n\t\t// Init pixi\n\t\tloadTextures()\n\t\tif (typeof app !== 'undefined') {\n\t\t\tapp.start()\n\t\t}\n\t})\n}\n\n/**\n * Run on disconnect to reset all server-based variables and connections\n */\nexport function disconnect () {\n\tapp.stop()\n\tsocket.disconnect()\n\n\t// Wipe objects list\n\tfor (let objType in objects) {\n\t\tobjects[objType] = {}\n\t}\n}\n\n/**\n * First time setup when connection starts. Run on connect event to ensure that the socket is connected first.\n */\nfunction setupSocket () {\n\t// Debug\n\tconsole.log('Socket:', socket)\n\n\t// Instantiate Chat System\n\tlet chat = new ChatClient({ player: cookieInputs[0].value, room: cookieInputs[1].value, team: cookieInputs[2].value })\n\tchat.addLoginMessage(cookieInputs[0].value, true)\n\tchat.registerFunctions()\n\n\t// Setup listeners\n\tsetupSocketConnection()\n\tsetupSocketInfo(chat)\n\tsetupSocketObjectRetrieval()\n\n\t// Emit join message,\n\tsocket.emit('playerJoin', { sender: chat.player, team: chat.team })\n}\n\n/**\n * Sets up socket object syncing.\n * Run in setupSocket().\n */\nfunction setupSocketObjectRetrieval () {\n\t// Syncs all objects from server once a frame\n\tsocket.on('objectSync', (data) => {\n\t\tfor (let objType in data) {\n\t\t\tif (objType !== 'tiles') {\n\t\t\t\tfor (let obj in data[objType]) {\n\t\t\t\t\tif (data[objType][obj] !== null) {\n\t\t\t\t\t\tlet objRef = data[objType][obj]\n\t\t\t\t\t\tlet clientObj = objects[objType][obj]\n\t\t\t\t\t\t// Already exists in database\n\t\t\t\t\t\tif (clientObj !== undefined && clientObj !== null) {\n\t\t\t\t\t\t\tif (objRef.id !== socket.id) {\n\t\t\t\t\t\t\t\tobjects[objType][obj].setData(objRef.posX, objRef.posY, objRef.vx, objRef.vy)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (objType === 'players') {\n\t\t\t\t\t\t\t\tobjects[objType][obj].health = objRef.health\n\t\t\t\t\t\t\t\tobjects[objType][obj].damagedBy = objRef.damagedBy\n\t\t\t\t\t\t\t\tobjects[objType][obj].atomList = objRef.atomList\n\t\t\t\t\t\t\t\tobjects[objType][obj].speedMult = objRef.speedMult\n\t\t\t\t\t\t\t\tobjects[objType][obj].hasShield = objRef.hasShield\n\t\t\t\t\t\t\t\tfor (let atom in objRef.atomList) {\n\t\t\t\t\t\t\t\t\tupdateAtomList(atom)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (objType === 'compounds' && objRef.ignited) {\n\t\t\t\t\t\t\t\tobjects[objType][obj].ignited = objRef.ignited\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Does not exist - need to clone to clientside\n\t\t\t\t\t\telse if (isSetup) {\n\t\t\t\t\t\t\tswitch (objType) {\n\t\t\t\t\t\t\t\tcase 'players':\n\t\t\t\t\t\t\t\t\tobjects[objType][obj] = createPlayer(objRef)\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase 'atoms':\n\t\t\t\t\t\t\t\t\tobjects[objType][obj] = createRenderAtom(objRef)\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase 'compounds':\n\t\t\t\t\t\t\t\t\tobjects[objType][obj] = createRenderCompound(objRef)\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// else { //Tile drawing\n\t\t\t// for (let tile of data.tiles) {\n\n\t\t\t// let tileName = 'tile_' + tile.col + '_' + tile.row;\n\t\t\t// if (objects.tiles[tileName] === undefined) {\n\t\t\t// // console.log(tileName);\n\t\t\t// objects.tiles[tileName] = new MapTile(MAP_LAYOUT[tile.row][tile.col], tile.col, tile.row);\n\t\t\t// }\n\n\t\t\t// }\n\t\t\t// }\n\t\t}\n\t})\n\n\t// Sync objects when they are deleted or move out of view. ONLY call after objectSync to avoid issue\n\tsocket.on('serverSendObjectRemoval', (data) => {\n\t\tif (GLOBAL.VERBOSE_SOCKET) {\n\t\t\tconsole.info('serverSendObjectRemoval() called on: ')\n\t\t\tconsole.info(data)\n\t\t\tconsole.info(objects[data.type][data.id])\n\t\t\tconsole.info(objects)\n\t\t}\n\t\tif (objects[data.type][data.id] === undefined || objects[data.type][data.id] === null) {\n\t\t\tif (GLOBAL.VERBOSE_SOCKET) {\n\t\t\t\tconsole.warn('serverSendObjectRemoval() called on invalid object. Retry.', data)\n\t\t\t}\n\t\t\tsetTimeout(() => {\n\t\t\t\ttry {\n\t\t\t\t\tif (removeObject(data)) {\n\t\t\t\t\t\tif (GLOBAL.VERBOSE_SOCKET) {\n\t\t\t\t\t\t\tconsole.info('Retry successfully removed object. While this worked, it should not happen. Please fix root cause of issue. ')\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn 0\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (err) {\n\t\t\t\t\tif (GLOBAL.VERBOSE_SOCKET) {\n\t\t\t\t\t\tconsole.error('Retry failed. Object removal failed. Abandoning request. ')\n\t\t\t\t\t}\n\t\t\t\t\treturn 1\n\t\t\t\t}\n\t\t\t\t// removeObject(data);\n\t\t\t}, 1000 / 60)\n\t\t\t// return 1\n\t\t}\n\t\telse {\n\t\t\t// console.log(objects[data.type][data.id].destroyed);\n\t\t// An object was removed\n\t\t\tif (!objects[data.type][data.id].destroyed) { // Only remove if not already\n\t\t\t\tremoveObject(data)\n\t\t\t}\n\t\t\telse {\n\t\t\t\tconsole.warn('serverSendObjectRemoval() called despite object has already been destroyed.') // Sanity check\n\t\t\t\treturn 1\n\t\t\t}\n\t\t}\n\n\t\t// Must keep checking if the object was not created at time of destruction.\n\t\t// One example of this needing to be run is when a player instantly collects an atom on spawn.\n\t\t// if (objects[data.type][data.id] === undefined) {\n\t\t// \tlet thisInterval = setTimeout(() => {\n\t\t// \t\tif (objects[data.type][data.id].destroyed) {\n\t\t// \t\t\tclearInterval(thisInterval)\n\t\t// \t\t}\n\t\t// \t\telse {\n\t\t// \t\t\tremoveObject(data)\n\t\t// \t\t}\n\t\t// \t}, 200)\n\t\t// }\n\t})\n}\n\n/**\n * Sets up socket connection listeners.\n * Run in setupSocket().\n */\nfunction setupSocketConnection () {\n\t// On Connection Failure\n\tsocket.on('reconnect_failed', () => {\n\t\talert('You have lost connection to the server!')\n\t})\n\n\tsocket.on('reconnecting', (attempt) => {\n\t\tconsole.log('Lost connection. Reconnecting on attempt: ' + attempt)\n\t\tquitGame('Lost connection to server')\n\t})\n\n\tsocket.on('reconnect_error', (err) => {\n\t\tconsole.log('CRITICAL: Reconnect failed! ' + err)\n\t})\n\n\tsocket.on('pong', (ping) => {\n\t\tconsole.log('Your Ping Is: ' + ping)\n\t})\n\n\tsocket.on('disconnectedPlayer', (data) => {\n\t\tconsole.log('Player ' + data.id + ' has disconnected')\n\t\tchat.addSystemLine('Player ' + objects.players[data.id].name + ' has disconnected')\n\t\tif (objects.players[data.id] !== undefined) {\n\t\t\tobjects.players[data.id].hide()\n\t\t\tdelete objects.players[data.id]\n\t\t}\n\t})\n\n\tsocket.on('serverSendDisconnect', () => {\n\t\tquitGame('The game has ended.', false)\n\t\thideElement('winner-panel')\n\t})\n\n\t// Errors on join\n\tsocket.on('connectionError', (data) => {\n\t\tsocket.disconnect()\n\t\tquitGame(data.msg, true)\n\t})\n}\n\n/**\n * Sets up socket information transfer listeners.\n * Run in setupSocket().\n * @param {*} chat The chat client instance to be used for notifications\n */\nfunction setupSocketInfo (chat) {\n\t// Chat system receiver\n\tsocket.on('serverMSG', data => {\n\t\tchat.addSystemLine(data)\n\t})\n\n\tsocket.on('serverSendPlayerChat', data => {\n\t\tchat.addChatLine(data.sender, data.message, false)\n\t})\n\n\tsocket.on('serverSendLoginMessage', data => {\n\t\tchat.addLoginMessage(data.sender, false)\n\t})\n\n\t// Receive information about room players\n\tsocket.on('roomInfo', (data) => {\n\t\t// Update lobby info. Pass to app.js\n\t\tupdateLobby(data)\n\n\t\t// if(GLOBAL.DEBUG) {\n\t\t// console.log(\"rcvd: \",data);\n\t\t// }\n\t})\n\n\tsocket.on('serverSendStartGame', (data) => {\n\t\tconsole.log('game has started')\n\t\tstartGame(false, data.teams)\n\t})\n\n\tsocket.on('levelUp', (data) => {\n\t\tconsole.log('You LEVELED UP! Level: ' + data.newLevel)\n\t})\n\n\t// Respawn\n\tsocket.on('serverSendPlayerDeath', (data) => {\n\t\tconsole.log('You Died!')\n\t\tobjects.players[socket.id].setData(data.posX, data.posY, data.vx, data.vy)\n\t\tsocket.emit('verifyPlayerDeath', { id: socket.id })\n\t\tconsole.log(objects.players[socket.id])\n\t\tupdateAtomList()\n\t})\n\n\t// Another player died\n\tsocket.on('serverSendNotifyPlayerDeath', (data) => {\n\t\t// Append to chat TODO\n\t})\n\n\t// Update timer\n\tsocket.on('time', (data) => {\n\t\tdocument.getElementById('timer').innerHTML = '

    ' + data.time + '

    '\n\t})\n\n\t// Update scores\n\tsocket.on('serverSendScoreUpdate', (data) => {\n\t\tupdateScores(data.teamSlot, data.increment)\n\t})\n\n\t// A player has won\n\tsocket.on('serverSendWinner', (data) => {\n\t\tsetIngame(false) // Disable keyboard controls and rendering\n\t\tdisplayWinner(data)\n\t})\n\n\t// Team colors\n\tsocket.on('serverSendTeamColors', (data) => {\n\t\tteamColors = data\n\t\tconsole.log(teamColors)\n\t})\n}\n\n/*\n ********************\n * Helper Functions *\n ********************\n */\n\n// Helper function for serverSendObjectRemoval\nfunction removeObject (data) {\n\tif (objects[data.type][data.id] !== undefined && objects[data.type][data.id] !== null) {\n\t\tobjects[data.type][data.id].hide()\n\t\tobjects[data.type][data.id].destroy()\n\t\t// delete objects[data.type][data.id];\n\t\treturn true\n\t}\n\telse {\n\t\treturn false\n\t}\n}\n", + "content": "import { GLOBAL } from './global'\nimport { cookieInputs, quitGame, updateLobby, updateScores, hideElement, displayWinner, updateAtomList } from './app'\nimport ChatClient from './lib/chat-client'\nimport { loadTextures, app, createPlayer, isSetup, startGame, setIngame, spritesheet } from './pixigame'\nimport { createRenderAtom, createRenderCompound } from './obj/create'\n\n/**\n * Socket.js contains all of the clientside networking interface.\n * It contains all variables which are synced between client and server.\n */\n\n// Socket.io instance\nexport var socket\n\n/* Object containing all synced objects. Contains nested objects, which correspond to different types\n * (for example, objects[atoms], objects[players], objects[compounds])\n */\nexport var objects = {\n\tplayers: {},\n\tatoms: {},\n\tcompounds: {},\n\ttiles: {}\n}\n\n/**\n * Team colors object. Number corresponds to index at GLOBAL.TEAM_COLORS.\n * Format: {\n * \tteamname1: 0,\n * \tteamname: color,\n * \t...\n * }\n */\nexport var teamColors = {}\n\n/**\n * Attempts to connect to the server. Run on 'start game' press.\n * - Manages connecting to main server vs. devserver\n * - Sets up socket listeners\n * - Loads textures\n * - Loads pixi\n */\nexport function beginConnection () {\n\t// Joins debug server if conditions are met\n\tlet room = (cookieInputs[7].value === 'private' ? cookieInputs[1].value : GLOBAL.NO_ROOM_IDENTIFIER)\n\tlet teamInput = (document.querySelector('input[name=\"queue-type\"]:checked').id === 'team-option') ? cookieInputs[2].value : GLOBAL.NO_TEAM_IDENTIFIER\n\n\tif (cookieInputs[1].value === 'test') {\n\t\tconsole.info('Connecting to: ' + GLOBAL.TEST_IP)\n\t\t// DEVELOPMENT server - auto deploy from pixi branch\n\t\tsocket = io.connect(GLOBAL.TEST_IP, {\n\t\t\tquery: `room=${room}&name=${cookieInputs[0].value}&team=${teamInput}&roomType=${cookieInputs[7].value}`,\n\t\t\treconnectionAttempts: 3\n\t\t})\n\t}\n\telse if (cookieInputs[1].value === 'jurassicexp') {\n\t\tconsole.log('Dev Backdoor Initiated! Connecting to devserver')\n\t\t// Local server\n\t\tsocket = io.connect(GLOBAL.LOCAL_HOST, {\n\t\t\tquery: `room=${room}&name=${cookieInputs[0].value}&team=${teamInput}&roomType=${cookieInputs[7].value}`,\n\t\t\treconnectionAttempts: 3\n\t\t})\n\t}\n\telse {\n\t\t// Production server\n\t\tconsole.log('connecting to main server')\n\t\tsocket = io.connect(GLOBAL.SERVER_IP, {\n\t\t\tquery: `room=${room}&name=${cookieInputs[0].value}&team=${teamInput}&roomType=${cookieInputs[7].value}`,\n\t\t\treconnectionAttempts: 3\n\t\t})\n\t}\n\n\tsocket.on('connect', () => {\n\t\tsetupSocket()\n\t\t// Init pixi\n\t\tloadTextures()\n\t\tif (typeof app !== 'undefined') {\n\t\t\tapp.start()\n\t\t}\n\t})\n}\n\n/**\n * Run on disconnect to reset all server-based variables and connections\n */\nexport function disconnect () {\n\tapp.stop()\n\tsocket.disconnect()\n\n\t// Wipe objects list\n\tfor (let objType in objects) {\n\t\tobjects[objType] = {}\n\t}\n}\n\n/**\n * First time setup when connection starts. Run on connect event to ensure that the socket is connected first.\n */\nfunction setupSocket () {\n\t// Debug\n\tconsole.log('Socket:', socket)\n\n\t// Instantiate Chat System\n\tlet chat = new ChatClient({ player: cookieInputs[0].value, room: cookieInputs[1].value, team: cookieInputs[2].value })\n\tchat.addLoginMessage(cookieInputs[0].value, true)\n\tchat.registerFunctions()\n\n\t// Setup listeners\n\tsetupSocketConnection()\n\tsetupSocketInfo(chat)\n\tsetupSocketObjectRetrieval()\n\n\t// Emit join message,\n\tsocket.emit('playerJoin', { sender: chat.player, team: chat.team })\n}\n\n/**\n * Sets up socket object syncing.\n * Run in setupSocket().\n */\nfunction setupSocketObjectRetrieval () {\n\t// Syncs all objects from server once a frame\n\tsocket.on('objectSync', (data) => {\n\t\tfor (let objType in data) {\n\t\t\tif (objType !== 'tiles') {\n\t\t\t\tfor (let obj in data[objType]) {\n\t\t\t\t\tif (data[objType][obj] !== null) {\n\t\t\t\t\t\tlet objRef = data[objType][obj]\n\t\t\t\t\t\tlet clientObj = objects[objType][obj]\n\t\t\t\t\t\t// Already exists in database\n\t\t\t\t\t\tif (clientObj !== undefined && clientObj !== null) {\n\t\t\t\t\t\t\tif (objRef.id !== socket.id) {\n\t\t\t\t\t\t\t\tobjects[objType][obj].setData(objRef.posX, objRef.posY, objRef.vx, objRef.vy)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (objType === 'players') {\n\t\t\t\t\t\t\t\tobjects[objType][obj].health = objRef.health\n\t\t\t\t\t\t\t\tobjects[objType][obj].damagedBy = objRef.damagedBy\n\t\t\t\t\t\t\t\tobjects[objType][obj].atomList = objRef.atomList\n\t\t\t\t\t\t\t\tobjects[objType][obj].speedMult = objRef.speedMult\n\t\t\t\t\t\t\t\tobjects[objType][obj].hasShield = objRef.hasShield\n\t\t\t\t\t\t\t\tfor (let atom in objRef.atomList) {\n\t\t\t\t\t\t\t\t\tupdateAtomList(atom)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (objType === 'compounds' && objRef.ignited) {\n\t\t\t\t\t\t\t\tobjects[objType][obj].ignited = objRef.ignited\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Does not exist - need to clone to clientside\n\t\t\t\t\t\telse if (isSetup) {\n\t\t\t\t\t\t\tswitch (objType) {\n\t\t\t\t\t\t\t\tcase 'players':\n\t\t\t\t\t\t\t\t\tobjects[objType][obj] = createPlayer(objRef)\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase 'atoms':\n\t\t\t\t\t\t\t\t\tobjects[objType][obj] = createRenderAtom(objRef)\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase 'compounds':\n\t\t\t\t\t\t\t\t\tobjects[objType][obj] = createRenderCompound(objRef)\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// else { //Tile drawing\n\t\t\t// for (let tile of data.tiles) {\n\n\t\t\t// let tileName = 'tile_' + tile.col + '_' + tile.row;\n\t\t\t// if (objects.tiles[tileName] === undefined) {\n\t\t\t// // console.log(tileName);\n\t\t\t// objects.tiles[tileName] = new MapTile(MAP_LAYOUT[tile.row][tile.col], tile.col, tile.row);\n\t\t\t// }\n\n\t\t\t// }\n\t\t\t// }\n\t\t}\n\t})\n\n\t// Sync objects when they are deleted or move out of view. ONLY call after objectSync to avoid issue\n\tsocket.on('serverSendObjectRemoval', (data) => {\n\t\tif (GLOBAL.VERBOSE_SOCKET) {\n\t\t\tconsole.info('serverSendObjectRemoval() called on: ')\n\t\t\tconsole.info(data)\n\t\t\tconsole.info(objects[data.type][data.id])\n\t\t\tconsole.info(objects)\n\t\t}\n\t\tif (objects[data.type][data.id] === undefined || objects[data.type][data.id] === null) {\n\t\t\tif (GLOBAL.VERBOSE_SOCKET) {\n\t\t\t\tconsole.warn('serverSendObjectRemoval() called on invalid object. Retry.', data)\n\t\t\t}\n\t\t\tsetTimeout(() => {\n\t\t\t\ttry {\n\t\t\t\t\tif (removeObject(data)) {\n\t\t\t\t\t\tif (GLOBAL.VERBOSE_SOCKET) {\n\t\t\t\t\t\t\tconsole.info('Retry successfully removed object. While this worked, it should not happen. Please fix root cause of issue. ')\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn 0\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (err) {\n\t\t\t\t\tif (GLOBAL.VERBOSE_SOCKET) {\n\t\t\t\t\t\tconsole.error('Retry failed. Object removal failed. Abandoning request. ')\n\t\t\t\t\t}\n\t\t\t\t\treturn 1\n\t\t\t\t}\n\t\t\t\t// removeObject(data);\n\t\t\t}, 1000 / 60)\n\t\t\t// return 1\n\t\t}\n\t\telse {\n\t\t\t// console.log(objects[data.type][data.id].destroyed);\n\t\t// An object was removed\n\t\t\tif (!objects[data.type][data.id].destroyed) { // Only remove if not already\n\t\t\t\tremoveObject(data)\n\t\t\t}\n\t\t\telse {\n\t\t\t\tconsole.warn('serverSendObjectRemoval() called despite object has already been destroyed.') // Sanity check\n\t\t\t\treturn 1\n\t\t\t}\n\t\t}\n\n\t\t// Must keep checking if the object was not created at time of destruction.\n\t\t// One example of this needing to be run is when a player instantly collects an atom on spawn.\n\t\t// if (objects[data.type][data.id] === undefined) {\n\t\t// \tlet thisInterval = setTimeout(() => {\n\t\t// \t\tif (objects[data.type][data.id].destroyed) {\n\t\t// \t\t\tclearInterval(thisInterval)\n\t\t// \t\t}\n\t\t// \t\telse {\n\t\t// \t\t\tremoveObject(data)\n\t\t// \t\t}\n\t\t// \t}, 200)\n\t\t// }\n\t})\n}\n\n/**\n * Sets up socket connection listeners.\n * Run in setupSocket().\n */\nfunction setupSocketConnection () {\n\t// On Connection Failure\n\tsocket.on('reconnect_failed', () => {\n\t\talert('You have lost connection to the server!')\n\t})\n\n\tsocket.on('reconnecting', (attempt) => {\n\t\tconsole.log('Lost connection. Reconnecting on attempt: ' + attempt)\n\t\tquitGame('Lost connection to server')\n\t})\n\n\tsocket.on('reconnect_error', (err) => {\n\t\tconsole.log('CRITICAL: Reconnect failed! ' + err)\n\t})\n\n\tsocket.on('pong', (ping) => {\n\t\tconsole.log('Your Ping Is: ' + ping)\n\t})\n\n\tsocket.on('disconnectedPlayer', (data) => {\n\t\tconsole.log('Player ' + data.id + ' has disconnected')\n\t\tchat.addSystemLine('Player ' + objects.players[data.id].name + ' has disconnected')\n\t\tif (objects.players[data.id] !== undefined) {\n\t\t\tobjects.players[data.id].hide()\n\t\t\tdelete objects.players[data.id]\n\t\t}\n\t})\n\n\tsocket.on('serverSendDisconnect', () => {\n\t\tquitGame('The game has ended.', false)\n\t\thideElement('winner-panel')\n\t})\n\n\t// Errors on join\n\tsocket.on('connectionError', (data) => {\n\t\tsocket.disconnect()\n\t\tquitGame(data.msg, true)\n\t})\n}\n\n/**\n * Sets up socket information transfer listeners.\n * Run in setupSocket().\n * @param {*} chat The chat client instance to be used for notifications\n */\nfunction setupSocketInfo (chat) {\n\t// Chat system receiver\n\tsocket.on('serverMSG', data => {\n\t\tchat.addSystemLine(data)\n\t})\n\n\tsocket.on('serverSendPlayerChat', data => {\n\t\tchat.addChatLine(data.sender, data.message, false)\n\t})\n\n\tsocket.on('serverSendLoginMessage', data => {\n\t\tchat.addLoginMessage(data.sender, false)\n\t})\n\n\t// Receive information about room players\n\tsocket.on('roomInfo', (data) => {\n\t\t// Update lobby info. Pass to app.js\n\t\tupdateLobby(data)\n\n\t\t// if(GLOBAL.DEBUG) {\n\t\t// console.log(\"rcvd: \",data);\n\t\t// }\n\t})\n\n\tsocket.on('serverSendStartGame', (data) => {\n\t\tconsole.log('game has started')\n\t\tstartGame(false, data.teams)\n\t})\n\n\tsocket.on('levelUp', (data) => {\n\t\tconsole.log('You LEVELED UP! Level: ' + data.newLevel)\n\t})\n\n\t// Respawn\n\tsocket.on('serverSendPlayerDeath', (data) => {\n\t\tconsole.log('You Died!')\n\t\tobjects.players[socket.id].setData(data.posX, data.posY, data.vx, data.vy)\n\t\tsocket.emit('verifyPlayerDeath', { id: socket.id })\n\t\tconsole.log(objects.players[socket.id])\n\t\tupdateAtomList()\n\t})\n\n\t// Another player died\n\tsocket.on('serverSendNotifyPlayerDeath', (data) => {\n\t\t// Append to chat TODO\n\t})\n\n\t// Update timer\n\tsocket.on('time', (data) => {\n\t\tdocument.getElementById('timer').innerHTML = '

    ' + data.time + '

    '\n\t})\n\n\t// Update scores\n\tsocket.on('serverSendScoreUpdate', (data) => {\n\t\tupdateScores(data.teamSlot, data.increment)\n\t})\n\n\t// A player has won\n\tsocket.on('serverSendWinner', (data) => {\n\t\tsetIngame(false) // Disable keyboard controls and rendering\n\t\tdisplayWinner(data)\n\t})\n\n\t// Sync team colors\n\tsocket.on('serverSendTeamColors', (data) => {\n\t\tteamColors = data\n\t\tconsole.log(teamColors)\n\t})\n\n\t// Change texture when a tile has been captured\n\tsocket.on('serverSendTileCapture', (data) => {\n\t\tobjects.tiles['tile_' + data.tileY + '_' + data.tileX].texture = (spritesheet.textures[data.teamNumber + objects.tiles['tile_' + data.tileY + '_' + data.tileX].tile.texture])\n\t\t// console.log(objects.tiles['tile_' + data.tileY + '_' + data.tileX].texture)\n\t})\n}\n\n/*\n ********************\n * Helper Functions *\n ********************\n */\n\n// Helper function for serverSendObjectRemoval\nfunction removeObject (data) {\n\tif (objects[data.type][data.id] !== undefined && objects[data.type][data.id] !== null) {\n\t\tobjects[data.type][data.id].hide()\n\t\tobjects[data.type][data.id].destroy()\n\t\t// delete objects[data.type][data.id];\n\t\treturn true\n\t}\n\telse {\n\t\treturn false\n\t}\n}\n", "static": true, "longname": "/home/dbqeo/Documents/AtomBlast.io/src/client/js/socket.js", "access": "public", @@ -4015,7 +4015,7 @@ "importPath": "atomblast.io/src/client/js/socket.js", "importStyle": null, "description": null, - "lineNumber": 363, + "lineNumber": 369, "undocument": true, "params": [ { @@ -4047,7 +4047,7 @@ "__docId__": 207, "kind": "file", "name": "src/server/server.js", - "content": "const express = require('express')\nconst app = express()\nconst http = require('http').Server(app)\nconst io = require('socket.io')(http)\nimport colors from 'colors' // Console colors :D\nimport { GLOBAL } from '../client/js/global'\nimport { roomMatchmaker } from './utils/matchmaker'\nimport { initGlobal, initPlayer } from './utils/serverinit'\nimport { frameSync } from './utils/framesync'\nimport { damage } from './utils/ondamage'\nimport { createCompound } from './utils/compound'\nimport { spawnAtomAtVent } from './utils/atoms'\nimport { getTeamColors } from './utils/serverutils'\nvar config = require('./config.json')\n\nconst DEBUG = true\n\napp.use(express.static(`${__dirname}/../client`))\n\n/* Contains all game data, including which rooms and players are active.\n *\n * Structure of Rooms object:\n *\n// rooms = {\n// roomName: {\n// joinable: true,\n// type: '4v4',\n// teams: [\n// name: 'teamname',\n// players: ['id1', 'id2'...]\n// ],\n// players: { id, name, room, team, health, posX, posY, vx, vy, dead, experience, damagedBy },\n// atoms: { typeID, id, posX, posY, vx, vy },\n// compounds: {\tid, posX, posY, vx, vy, blueprint, sendingTeam, sender },\n//\t\t tiles: { id, type, globalX, globalY, captured, owner, health }\n// time: {\n// minutes: 0,\n// seconds: 0,\n// formattedTime: '0:00'\n// }\n// }\n// }\n*/\nlet rooms = {}\n\n/**\n * Teams object containing all the currently playing teams.\n * Structure:\n * teamName: {\n * room: 'roomName',\n * players: ['playerSocketId', 'player2SocketId', ...],\n * joinable: false/true\n * }\n *\n * -> Create a Team when the first player joins any lobby. Populate room when this occurs.\n * -> Change joinable to false when a Team is either full or the game has begun.\n * -> Delete the room from the database when the last player leaves.\n * -> There cannot be two teams with the same name. Throw an error if this occurs.\n */\nlet teams = {}\n\n// Initializize Server. Includes atom spawning and timer mechanics\ninitGlobal()\n\n// Initialize all socket listeners when a request is established\nio.on('connection', socket => {\n\t// Local variable declaration\n\tlet room = socket.handshake.query.room\n\tlet team = socket.handshake.query.team\n\n\t// Run matchmaker\n\tlet matchData = roomMatchmaker(socket, room, team)\n\troom = matchData.room\n\tteam = matchData.team\n\n\t// Init player\n\tinitPlayer(socket, room, team)\n\tlet thisPlayer = rooms[room].players[socket.id]\n\tthisPlayer.team = team\n\tthisPlayer.atomList = {}\n\tthisPlayer.speedMult = 1\n\tfor (let atom of GLOBAL.ATOM_IDS) {\n\t\tthisPlayer.atomList[atom] = 0\n\t}\n\n\t// Announce colors\n\tsocket.emit('serverSendTeamColors', getTeamColors(room))\n\tsocket.to(room).emit('serverSendTeamColors', getTeamColors(room))\n\n\t// Setup player array sync- once a frame\n\tsetInterval(() => {\n\t\tframeSync(socket, room, thisPlayer)\n\t}, 1000 / 60)\n\n\t// Receives a chat from a player, then broadcasts it to other players\n\tsocket.to(room).on('playerChat', data => {\n\t\t// console.log('sender: ' + data.sender);\n\t\tconst _sender = data.sender.replace(/(<([^>]+)>)/ig, '')\n\t\tconst _message = data.message.replace(/(<([^>]+)>)/ig, '')\n\n\t\tconsole.log('[CHAT] '.bold.blue + `${(new Date()).getHours()}:${(new Date()).getMinutes()} ${_sender}: ${_message}`.magenta)\n\n\t\tsocket.to(room).broadcast.emit('serverSendPlayerChat', { sender: _sender, message: _message.substring(0, 35) })\n\t})\n\n\t// Other player joins the socket.to(room)\n\tsocket.to(room).on('playerJoin', data => {\n\t\t// console.log('sender: ' + data.sender);\n\t\tconst _sender = data.sender.replace(/(<([^>]+)>)/ig, '')\n\t\tsocket.to(room).broadcast.emit('serverSendLoginMessage', { sender: _sender, team: data.team })\n\t\tif (DEBUG) {\n\t\t\tsocket.to(room).broadcast.emit('serverMSG', 'You are connected to a DEBUG enabled server. ')\n\t\t}\n\t})\n\n\t// Broadcasts player join message\n\n\tsocket.to(room).broadcast.emit('serverSendLoginMessage', {\n\t\tsender: socket.id\n\t})\n\tif (DEBUG) {\n\t\tsocket.to(room).broadcast.emit('serverMSG', 'You are connected to a DEBUG enabled server. ')\n\t}\n\n\t// Hides the lobby screen if the game has already started\n\tif (rooms[room].started) {\n\t\tsocket.emit('serverSendStartGame', { teams: rooms[room].teams })\n\t}\n\n\t/**\n * On player movement:\n * data is in format\n * - id: index of player that moved\n * - type: atoms, players, or compounds\n * - posX: new x position\n * - posY: new y position\n * - vx: x-velocity\n * - vy: y-velocity\n */\n\tsocket.to(room).on('move', data => {\n\t\t// Player exists in database already because it was created serverside - no need for extra checking\n\t\tif (rooms[room][data.type][data.id] !== undefined && !rooms[room][data.type][data.id].dead) {\n\t\t\trooms[room][data.type][data.id].posX = data.posX\n\t\t\trooms[room][data.type][data.id].posY = data.posY\n\t\t\trooms[room][data.type][data.id].vx = data.vx\n\t\t\trooms[room][data.type][data.id].vy = data.vy\n\t\t}\n\t})\n\n\tsocket.to(room).on('damage', data => {\n\t\tdamage(data, room, socket)\n\t})\n\n\tsocket.on('verifyPlayerDeath', data => {\n\t\trooms[room].players[data.id].dead = false\n\t})\n\n\t// A player spawned a Compound\n\tsocket.to(room).on('requestCreateCompound', data => {\n\t\tlet newCompound = createCompound(data, room, thisPlayer, socket)\n\t\tif (newCompound) {\n\t\t\trooms[room].compounds[newCompound.id] = newCompound\n\t\t}\n\t})\n\n\tsocket.on('startGame', data => {\n\t\tconsole.log('Game has started in room ' + room)\n\t\t// Make the room and teams unjoinable\n\t\tfor (let tm of rooms[room].teams) {\n\t\t\tteams[tm.name].joinable = false\n\t\t}\n\t\trooms[room].joinable = false\n\n\t\tsocket.broadcast.to(room).emit('serverSendStartGame', { start: data.start, teams: rooms[room].teams })\n\t\tsocket.emit('serverSendStartGame', { start: data.start, teams: rooms[room].teams })\n\t\trooms[room].started = true\n\t})\n\n\tsocket.on('spawnAtom', (data) => {\n\t\tspawnAtomAtVent(data.row, data.col, room, true)\n\t})\n\n\t// Testing purposes- give yourself 5000 of each atom\n\tsocket.on('testCommand', (data) => {\n\t\tif (GLOBAL.DEBUG) {\n\t\t\tconsole.log(rooms[room].players[data.player].atomList)\n\t\t\tfor (let i in rooms[room].players[data.player].atomList) {\n\t\t\t\trooms[room].players[data.player].atomList[i] += 5000\n\t\t\t}\n\t\t}\n\t})\n\n\tsocket.on('disconnect', data => {\n\t\tconsole.log('[Server]'.bold.blue + ' Disconnect Received: '.red + ('' + socket.id).yellow + ('' + rooms[room].players[socket.id]).green + ': ' + data)\n\n\t\tsocket.to(room).broadcast.emit('disconnectedPlayer', { id: socket.id }) // Broadcast to everyone in the room to delete the player\n\n\t\tdelete rooms[room].players[socket.id] // Remove the server side player\n\n\t\t// Delete room if there is nobody inside\n\t\tif (Object.keys(rooms[room].players).length === 0) {\n\t\t\tconsole.log('[Server] '.bold.blue + 'Closing room '.red + (room + '').bold.red)\n\t\t\tdelete io.sockets.adapter.rooms[socket.id]\n\t\t\tdelete rooms[room]\n\n\t\t\tif (room !== GLOBAL.NO_ROOM_IDENTIFIER) {\n\t\t\t\t// Remove from teams array\n\t\t\t\tteams[team].players.splice(teams[team].players.indexOf(socket.id), 1)\n\t\t\t\t// rooms[room].teams[team].players.splice(rooms[room].teams[team].players.indexOf(socket.id), 1);\n\n\t\t\t\t// Delete team if all players have left\n\t\t\t\tif (teams[team].players.length === 0) {\n\t\t\t\t\tdelete teams[team]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t})\n})\n\n// Notify on console when server has started\nconst serverPort = process.env.PORT || config.port\nhttp.listen(serverPort, () => {\n\trooms = {}\n\tconsole.log('[Server] '.bold.blue + `started on port: ${serverPort}`.blue)\n})\n\n/**\n * Sets a new value for a protected server field.\n * Adopted from https://stackoverflow.com/questions/18936915/dynamically-set-property-of-nested-object\n * @param {*} value The value to set\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n */\nexport function setField (value, path) {\n\tif (path === undefined || path.length === 0) {\n\t\tthrow new Error('Error in setField: path cannot be empty')\n\t}\n\n\tlet schema = (path[0] === 'rooms') ? rooms : (path[0] === 'teams') ? teams : undefined\n\tif (schema === undefined) {\n\t\tthrow new Error('Base object ' + path[0] + ' does not exist!')\n\t}\n\n\tlet len = path.length\n\tfor (let i = 1; i < len - 1; i++) {\n\t\tlet elem = path[i]\n\t\tif (!schema[elem]) schema[elem] = {}\n\t\tschema = schema[elem]\n\t}\n\n\tschema[path[len - 1]] = value\n}\n\n/**\n * Shorthand to add or concatenate an amount to a field.\n * Best used with numbers or strings.\n * @param {*} amount Amount to increment the field by.\n * @param {*} path Path to the field.\n */\nexport function incrementField (amount, path) {\n\tsetField(getField(path) + amount, path)\n}\n\n/**\n * Returns the value given a path to that value.\n * Adopted from https://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n * @returns The value for the given field.\n */\nexport function getField (path) {\n\tif (path === undefined || path.length === 0) {\n\t\tthrow new Error('Error in setField: path cannot be empty')\n\t}\n\tif (path.length === undefined) {\n\t\tthrow new Error('Error in setField: path must be an array')\n\t}\n\n\tlet obj = (path[0] === 'rooms') ? rooms : (path[0] === 'teams') ? teams : undefined\n\tif (obj === undefined) {\n\t\tthrow new Error('Error in setField: Base object ' + path[0] + ' does not exist!')\n\t}\n\n\tfor (let i = 1; i < path.length; i++) {\n\t\tobj = obj[path[i]]\n\t}\n\t// console.log(path, obj);\n\treturn obj\n}\n\n/**\n * Deletes one of the three types of gameObjects synced to the server\n * @param {string} type Either players, atoms, compounds\n * @param {*} id ID of the object to delete\n * @param {string} room Room name to delete in\n * @param {*} socket socket.io instance\n */\nexport function deleteObject (type, id, room, socket) {\n\tdelete rooms[room][type][id]\n\n\t// Send clientside message\n\tsocket.to(room).broadcast.emit('serverSendObjectRemoval', { id: id, type: type })\n\tsocket.emit('serverSendObjectRemoval', { id: id, type: type })\n}\n", + "content": "const express = require('express')\nconst app = express()\nconst http = require('http').Server(app)\nconst io = require('socket.io')(http)\nimport colors from 'colors' // Console colors :D\nimport { GLOBAL } from '../client/js/global'\nimport { roomMatchmaker } from './utils/matchmaker'\nimport { initGlobal, initPlayer } from './utils/serverinit'\nimport { frameSync } from './utils/framesync'\nimport { damage } from './utils/ondamage'\nimport { createCompound } from './utils/compound'\nimport { spawnAtomAtVent } from './utils/atoms'\nimport { getTeamColors } from './utils/serverutils'\nvar config = require('./config.json')\n\nconst DEBUG = true\n\napp.use(express.static(`${__dirname}/../client`))\n\n/* Contains all game data, including which rooms and players are active.\n *\n * Structure of Rooms object:\n *\n// rooms = {\n// roomName: {\n// joinable: true,\n// type: '4v4',\n// teams: [\n// name: 'teamname',\n// players: ['id1', 'id2'...]\n// ],\n// players: { id, name, room, team, health, posX, posY, vx, vy, dead, experience, damagedBy },\n// atoms: { typeID, id, posX, posY, vx, vy },\n// compounds: {\tid, posX, posY, vx, vy, blueprint, sendingTeam, sender },\n//\t\t tiles: { id, type, globalX, globalY, captured, owner, health }\n// time: {\n// minutes: 0,\n// seconds: 0,\n// formattedTime: '0:00'\n// }\n// }\n// }\n*/\nlet rooms = {}\n\n/**\n * Teams object containing all the currently playing teams.\n * Structure:\n * teamName: {\n * room: 'roomName',\n * players: ['playerSocketId', 'player2SocketId', ...],\n * joinable: false/true\n * }\n *\n * -> Create a Team when the first player joins any lobby. Populate room when this occurs.\n * -> Change joinable to false when a Team is either full or the game has begun.\n * -> Delete the room from the database when the last player leaves.\n * -> There cannot be two teams with the same name. Throw an error if this occurs.\n */\nlet teams = {}\n\n// Initializize Server. Includes atom spawning and timer mechanics\ninitGlobal()\n\n// Initialize all socket listeners when a request is established\nio.on('connection', socket => {\n\t// Local variable declaration\n\tlet room = socket.handshake.query.room\n\tlet team = socket.handshake.query.team\n\n\t// Run matchmaker\n\tlet matchData = roomMatchmaker(socket, room, team)\n\troom = matchData.room\n\tteam = matchData.team\n\n\t// Init player\n\tinitPlayer(socket, room, team)\n\tlet thisPlayer = rooms[room].players[socket.id]\n\tthisPlayer.team = team\n\tthisPlayer.atomList = {}\n\tthisPlayer.speedMult = 1\n\tfor (let atom of GLOBAL.ATOM_IDS) {\n\t\tthisPlayer.atomList[atom] = 0\n\t}\n\n\t// Announce colors\n\tsocket.emit('serverSendTeamColors', getTeamColors(room))\n\tsocket.to(room).emit('serverSendTeamColors', getTeamColors(room))\n\n\t// Setup player array sync- once a frame\n\tsetInterval(() => {\n\t\tframeSync(socket, room, thisPlayer)\n\t}, 1000 / 60)\n\n\t// Receives a chat from a player, then broadcasts it to other players\n\tsocket.to(room).on('playerChat', data => {\n\t\t// console.log('sender: ' + data.sender);\n\t\tconst _sender = data.sender.replace(/(<([^>]+)>)/ig, '')\n\t\tconst _message = data.message.replace(/(<([^>]+)>)/ig, '')\n\n\t\tconsole.log('[CHAT] '.bold.blue + `${(new Date()).getHours()}:${(new Date()).getMinutes()} ${_sender}: ${_message}`.magenta)\n\n\t\tsocket.to(room).broadcast.emit('serverSendPlayerChat', { sender: _sender, message: _message.substring(0, 35) })\n\t})\n\n\t// Other player joins the socket.to(room)\n\tsocket.to(room).on('playerJoin', data => {\n\t\t// console.log('sender: ' + data.sender);\n\t\tconst _sender = data.sender.replace(/(<([^>]+)>)/ig, '')\n\t\tsocket.to(room).broadcast.emit('serverSendLoginMessage', { sender: _sender, team: data.team })\n\t\tif (DEBUG) {\n\t\t\tsocket.to(room).broadcast.emit('serverMSG', 'You are connected to a DEBUG enabled server. ')\n\t\t}\n\t})\n\n\t// Broadcasts player join message\n\n\tsocket.to(room).broadcast.emit('serverSendLoginMessage', {\n\t\tsender: socket.id\n\t})\n\tif (DEBUG) {\n\t\tsocket.to(room).broadcast.emit('serverMSG', 'You are connected to a DEBUG enabled server. ')\n\t}\n\n\t// Hides the lobby screen if the game has already started\n\tif (rooms[room].started) {\n\t\tsocket.emit('serverSendStartGame', { teams: rooms[room].teams })\n\t}\n\n\t/**\n * On player movement:\n * data is in format\n * - id: index of player that moved\n * - type: atoms, players, or compounds\n * - posX: new x position\n * - posY: new y position\n * - vx: x-velocity\n * - vy: y-velocity\n */\n\tsocket.to(room).on('move', data => {\n\t\t// Player exists in database already because it was created serverside - no need for extra checking\n\t\tif (rooms[room][data.type][data.id] !== undefined && !rooms[room][data.type][data.id].dead) {\n\t\t\trooms[room][data.type][data.id].posX = data.posX\n\t\t\trooms[room][data.type][data.id].posY = data.posY\n\t\t\trooms[room][data.type][data.id].vx = data.vx\n\t\t\trooms[room][data.type][data.id].vy = data.vy\n\t\t}\n\t})\n\n\tsocket.to(room).on('damage', data => {\n\t\tdamage(data, room, socket)\n\t})\n\n\tsocket.on('verifyPlayerDeath', data => {\n\t\trooms[room].players[data.id].dead = false\n\t})\n\n\t// A player spawned a Compound\n\tsocket.to(room).on('requestCreateCompound', data => {\n\t\tlet newCompound = createCompound(data, room, thisPlayer, socket)\n\t\tif (newCompound) {\n\t\t\trooms[room].compounds[newCompound.id] = newCompound\n\t\t}\n\t})\n\n\tsocket.on('startGame', data => {\n\t\tconsole.log('Game has started in room ' + room)\n\t\t// Make the room and teams unjoinable\n\t\tfor (let tm of rooms[room].teams) {\n\t\t\tteams[tm.name].joinable = false\n\t\t}\n\t\trooms[room].joinable = false\n\n\t\tsocket.broadcast.to(room).emit('serverSendStartGame', { start: data.start, teams: rooms[room].teams })\n\t\tsocket.emit('serverSendStartGame', { start: data.start, teams: rooms[room].teams })\n\t\trooms[room].started = true\n\t})\n\n\tsocket.on('spawnAtom', (data) => {\n\t\tspawnAtomAtVent(data.row, data.col, room, true)\n\t})\n\n\t// Testing purposes- give yourself 5000 of each atom\n\tsocket.on('testCommand', (data) => {\n\t\tif (GLOBAL.DEBUG) {\n\t\t\t// console.log(rooms[room].players[data.player].atomList)\n\t\t\tfor (let i in rooms[room].players[data.player].atomList) {\n\t\t\t\trooms[room].players[data.player].atomList[i] += 5000\n\t\t\t}\n\t\t}\n\t})\n\n\tsocket.on('disconnect', data => {\n\t\tconsole.log('[Server]'.bold.blue + ' Disconnect Received: '.red + ('' + socket.id).yellow + ('' + rooms[room].players[socket.id]).green + ': ' + data)\n\n\t\tsocket.to(room).broadcast.emit('disconnectedPlayer', { id: socket.id }) // Broadcast to everyone in the room to delete the player\n\n\t\tdelete rooms[room].players[socket.id] // Remove the server side player\n\n\t\t// Delete room if there is nobody inside\n\t\tif (Object.keys(rooms[room].players).length === 0) {\n\t\t\tconsole.log('[Server] '.bold.blue + 'Closing room '.red + (room + '').bold.red)\n\t\t\tdelete io.sockets.adapter.rooms[socket.id]\n\t\t\tdelete rooms[room]\n\n\t\t\tif (room !== GLOBAL.NO_ROOM_IDENTIFIER) {\n\t\t\t\t// Remove from teams array\n\t\t\t\tteams[team].players.splice(teams[team].players.indexOf(socket.id), 1)\n\t\t\t\t// rooms[room].teams[team].players.splice(rooms[room].teams[team].players.indexOf(socket.id), 1);\n\n\t\t\t\t// Delete team if all players have left\n\t\t\t\tif (teams[team].players.length === 0) {\n\t\t\t\t\tdelete teams[team]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t})\n})\n\n// Notify on console when server has started\nconst serverPort = process.env.PORT || config.port\nhttp.listen(serverPort, () => {\n\trooms = {}\n\tconsole.log('[Server] '.bold.blue + `started on port: ${serverPort}`.blue)\n})\n\n/**\n * Sets a new value for a protected server field.\n * Adopted from https://stackoverflow.com/questions/18936915/dynamically-set-property-of-nested-object\n * @param {*} value The value to set\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n */\nexport function setField (value, path) {\n\tif (path === undefined || path.length === 0) {\n\t\tthrow new Error('Error in setField: path cannot be empty')\n\t}\n\n\tlet schema = (path[0] === 'rooms') ? rooms : (path[0] === 'teams') ? teams : undefined\n\tif (schema === undefined) {\n\t\tthrow new Error('Base object ' + path[0] + ' does not exist!')\n\t}\n\n\tlet len = path.length\n\tfor (let i = 1; i < len - 1; i++) {\n\t\tlet elem = path[i]\n\t\tif (!schema[elem]) schema[elem] = {}\n\t\tschema = schema[elem]\n\t}\n\n\tschema[path[len - 1]] = value\n}\n\n/**\n * Shorthand to add or concatenate an amount to a field.\n * Best used with numbers or strings.\n * @param {*} amount Amount to increment the field by.\n * @param {*} path Path to the field.\n */\nexport function incrementField (amount, path) {\n\tsetField(getField(path) + amount, path)\n}\n\n/**\n * Returns the value given a path to that value.\n * Adopted from https://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key\n * @param {*} path Array containing all of the subobject identifiers, with the 0th index being the lowest level.\n * Example: rooms.myRoom.players could be accessed through a path value of ['rooms', 'myRoom', 'players']\n * @returns The value for the given field.\n */\nexport function getField (path) {\n\tif (path === undefined || path.length === 0) {\n\t\tthrow new Error('Error in setField: path cannot be empty')\n\t}\n\tif (path.length === undefined) {\n\t\tthrow new Error('Error in setField: path must be an array')\n\t}\n\n\tlet obj = (path[0] === 'rooms') ? rooms : (path[0] === 'teams') ? teams : undefined\n\tif (obj === undefined) {\n\t\tthrow new Error('Error in setField: Base object ' + path[0] + ' does not exist!')\n\t}\n\n\tfor (let i = 1; i < path.length; i++) {\n\t\tobj = obj[path[i]]\n\t}\n\t// console.log(path, obj);\n\treturn obj\n}\n\n/**\n * Deletes one of the three types of gameObjects synced to the server\n * @param {string} type Either players, atoms, compounds\n * @param {*} id ID of the object to delete\n * @param {string} room Room name to delete in\n * @param {*} socket socket.io instance\n */\nexport function deleteObject (type, id, room, socket) {\n\tdelete rooms[room][type][id]\n\n\t// Send clientside message\n\tsocket.to(room).broadcast.emit('serverSendObjectRemoval', { id: id, type: type })\n\tsocket.emit('serverSendObjectRemoval', { id: id, type: type })\n}\n", "static": true, "longname": "/home/dbqeo/Documents/AtomBlast.io/src/server/server.js", "access": "public", @@ -4650,7 +4650,7 @@ "__docId__": 226, "kind": "file", "name": "src/server/utils/collision.js", - "content": "import { distanceBetween, GLOBAL, getCurrTile, getGlobalLocation } from '../../client/js/global'\nimport { deleteObject } from '../server'\nimport { damage } from './ondamage'\nimport { incrementAtom } from './atoms'\nimport { TILE_NAMES, TILES } from '../../client/js/obj/tiles'\nimport { getTileID } from './serverutils'\n\n/**\n * Runs once a frame, checks for collisions between objects and handles them accordingly.\n * Run using\n * @param {*} socket The socket.io instance\n * @param {string} room The name of the room\n * @param {*} thisPlayer The player object\n * @param {*} tempObjects The list of objects to tick. Should only be the objects rendered on the screen of thisPlayer. Contains compounds, atoms, players\n */\nexport function collisionDetect (socket, room, thisPlayer, tempObjects) {\n\t// Check for collected atoms\n\tfor (let atom in tempObjects.atoms) {\n\t\tlet distance = distanceBetween(\n\t\t\t{ posX: tempObjects.atoms[atom].posX + GLOBAL.ATOM_RADIUS, posY: tempObjects.atoms[atom].posY - GLOBAL.ATOM_RADIUS },\n\t\t\t{ posX: thisPlayer.posX + GLOBAL.PLAYER_RADIUS, posY: thisPlayer.posY - GLOBAL.PLAYER_RADIUS })\n\n\t\tif (distance < GLOBAL.ATOM_COLLECT_THRESHOLD) {\n\t\t\t// console.log(atom);\n\t\t\tincrementAtom(thisPlayer.id, room, tempObjects.atoms[atom].typeID, 1)\n\t\t\tsocket.to(room).broadcast.emit('serverSendObjectRemoval', { id: atom, type: 'atoms' })\n\n\t\t\tdeleteObject('atoms', atom, room, socket)\n\t\t}\n\t}\n\n\t// Check for compound collisions\n\tfor (let compound in tempObjects.compounds) {\n\t\tlet cmp = tempObjects.compounds[compound]\n\n\t\tif (cmp.sendingTeam !== thisPlayer.team) {\n\t\t\tlet distance = distanceBetween(\n\t\t\t\t{ posX: cmp.posX + cmp.blueprint.params.size / 2, posY: cmp.posY - cmp.blueprint.params.size / 2 },\n\t\t\t\t{ posX: thisPlayer.posX + GLOBAL.PLAYER_RADIUS, posY: thisPlayer.posY - GLOBAL.PLAYER_RADIUS })\n\n\t\t\t// Hit player\n\t\t\tif (distance < cmp.blueprint.params.size + GLOBAL.PLAYER_RADIUS) {\n\t\t\t\tlet dmg = cmp.blueprint.params.damage\n\n\t\t\t\t// Deal splash damage if it is a toxic compound or on fire\n\t\t\t\tif (cmp.blueprint.type === 'toxic' || cmp.ignited) {\n\t\t\t\t\tdmg = cmp.blueprint.params.splashDamage\n\t\t\t\t}\n\n\t\t\t\tdamage({\n\t\t\t\t\tdamage: dmg,\n\t\t\t\t\tplayer: socket.id,\n\t\t\t\t\tsentBy: cmp.sender,\n\t\t\t\t\tid: compound\n\t\t\t\t}, room, socket)\n\n\t\t\t\tif (cmp.blueprint.type !== 'toxic' && !cmp.ignited) {\n\t\t\t\t\tdeleteObject('compounds', compound, room, socket)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse { // check for tile collisions\n\t\t\tlet tileID = getTileID(getGlobalLocation(cmp), room)\n\t\t\tif (tileID) {\n\t\t\t\tconsole.log('hit ' + tileID + ' at ' + JSON.stringify(getGlobalLocation(cmp)))\n\t\t\t}\n\t\t}\n\t}\n}\n", + "content": "import { distanceBetween, GLOBAL, getCurrTile, getGlobalLocation } from '../../client/js/global'\nimport { deleteObject } from '../server'\nimport { damage, damageTile } from './ondamage'\nimport { incrementAtom } from './atoms'\nimport { TILE_NAMES, TILES } from '../../client/js/obj/tiles'\nimport { getTileID } from './serverutils'\n\n/**\n * Runs once a frame, checks for collisions between objects and handles them accordingly.\n * Run using\n * @param {*} socket The socket.io instance\n * @param {string} room The name of the room\n * @param {*} thisPlayer The player object\n * @param {*} tempObjects The list of objects to tick. Should only be the objects rendered on the screen of thisPlayer. Contains compounds, atoms, players\n */\nexport function collisionDetect (socket, room, thisPlayer, tempObjects) {\n\t// Check for collected atoms\n\tfor (let atom in tempObjects.atoms) {\n\t\tlet distance = distanceBetween(\n\t\t\t{ posX: tempObjects.atoms[atom].posX + GLOBAL.ATOM_RADIUS, posY: tempObjects.atoms[atom].posY - GLOBAL.ATOM_RADIUS },\n\t\t\t{ posX: thisPlayer.posX + GLOBAL.PLAYER_RADIUS, posY: thisPlayer.posY - GLOBAL.PLAYER_RADIUS })\n\n\t\tif (distance < GLOBAL.ATOM_COLLECT_THRESHOLD) {\n\t\t\t// console.log(atom);\n\t\t\tincrementAtom(thisPlayer.id, room, tempObjects.atoms[atom].typeID, 1)\n\t\t\tsocket.to(room).broadcast.emit('serverSendObjectRemoval', { id: atom, type: 'atoms' })\n\n\t\t\tdeleteObject('atoms', atom, room, socket)\n\t\t}\n\t}\n\n\t// Check for compound collisions\n\tfor (let compound in tempObjects.compounds) {\n\t\tlet cmp = tempObjects.compounds[compound]\n\n\t\tif (cmp.sendingTeam !== thisPlayer.team) {\n\t\t\tlet distance = distanceBetween(\n\t\t\t\t{ posX: cmp.posX + cmp.blueprint.params.size / 2, posY: cmp.posY - cmp.blueprint.params.size / 2 },\n\t\t\t\t{ posX: thisPlayer.posX + GLOBAL.PLAYER_RADIUS, posY: thisPlayer.posY - GLOBAL.PLAYER_RADIUS })\n\n\t\t\t// Hit player\n\t\t\tif (distance < cmp.blueprint.params.size + GLOBAL.PLAYER_RADIUS) {\n\t\t\t\tlet dmg = cmp.blueprint.params.damage\n\n\t\t\t\t// Deal splash damage if it is a toxic compound or on fire\n\t\t\t\tif (cmp.blueprint.type === 'toxic' || cmp.ignited) {\n\t\t\t\t\tdmg = cmp.blueprint.params.splashDamage\n\t\t\t\t}\n\n\t\t\t\tdamage({\n\t\t\t\t\tdamage: dmg,\n\t\t\t\t\tplayer: socket.id,\n\t\t\t\t\tsentBy: cmp.sender,\n\t\t\t\t\tid: compound\n\t\t\t\t}, room, socket)\n\n\t\t\t\tif (cmp.blueprint.type !== 'toxic' && !cmp.ignited) {\n\t\t\t\t\tdeleteObject('compounds', compound, room, socket)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse { // check for tile collisions\n\t\t\tlet tileID = getTileID(getGlobalLocation(cmp), room)\n\t\t\tif (tileID) {\n\t\t\t\tif (distanceBetween(cmp, {\n\t\t\t\t\tposX: getGlobalLocation(cmp).globalX * GLOBAL.GRID_SPACING * 2 + GLOBAL.GRID_SPACING,\n\t\t\t\t\tposY: getGlobalLocation(cmp).globalY * GLOBAL.GRID_SPACING * 2 - GLOBAL.GRID_SPACING\n\t\t\t\t}) < GLOBAL.STRONGHOLD_RADIUS) {\n\t\t\t\t\tdeleteObject('compounds', compound, room, socket)\n\t\t\t\t\tdamageTile(tileID, cmp.blueprint.params.damage, socket.id, room, socket)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n", "static": true, "longname": "/home/dbqeo/Documents/AtomBlast.io/src/server/utils/collision.js", "access": "public", @@ -5046,7 +5046,7 @@ "__docId__": 237, "kind": "file", "name": "src/server/utils/ondamage.js", - "content": "import { GLOBAL } from '../../client/js/global'\nimport { getField, setField } from '../server'\nimport { getTeamNumber } from './serverutils'\nimport { tmpdir } from 'os'\nimport { spawnAtom } from './atoms'\n\n/**\n * ondamage.js\n * Contains functions:\n * - damage() Runs when a player gets damaged. Updates scores and checks if a player has been killed.\n * - splash() Runs when a collision needs to cause splash damage. Creates explosion effect and deals extra damage.\n */\n\n/**\n * Changes the health of the player by the amount given.\n * @param {*} data The data sent by the client. Contains:\n * - damage (number)\n * - player (id string of player that was hit)\n * - id (id string of compound)\n * - sentBy (id string of player that sent compound)\n * @param {string} room This room.\n * @param {*} socket This socket.\n * Must include the player id and amount to damage.\n * Amount may be negative (for health boost).\n */\nexport function damage (data, room, socket) {\n\tlet thisRoom = getField(['rooms', room])\n\tlet thisPlayer = thisRoom.players[data.player]\n\n\tif (thisPlayer !== undefined) {\n\t\t// thisPlayer.health -= data.damage;\n\t\tsetField(thisPlayer.health - data.damage, ['rooms', room, 'players', data.player, 'health'])\n\n\t\t// Add damage to database\n\t\tif (thisPlayer.damagedBy[data.sentBy] === undefined) {\n\t\t\tsetField(0, ['rooms', room, 'players', data.player, 'damagedBy', data.sentBy])\n\t\t}\n\t\t// thisPlayer.damagedBy[data.sentBy] += data.damage;\n\t\tsetField(thisPlayer.damagedBy[data.sentBy] + data.damage, ['rooms', room, 'players', data.player, 'damagedBy', data.sentBy])\n\n\t\t// Check if the player has died.\n\t\tif (thisPlayer.health <= 0) {\n\t\t\t// console.log(thisRoom.teams.indexOf(socket.handshake.query.team));\n\n\t\t\t// Releases atoms and deletes the entire atoms array in player\n\t\t\tfor (let at in thisPlayer.atomList) {\n\t\t\t\tfor (let i = 0; i < GLOBAL.MAX_DEATH_ATOMS && i < thisPlayer.atomList[at]; i++) {\n\t\t\t\t\tspawnAtom(thisPlayer.posX, thisPlayer.posY, at, room, false)\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (let at in thisPlayer.atomList) {\n\t\t\t\tsetField(0, ['rooms', room, 'players', thisPlayer, 'atomList', at])\n\t\t\t}\n\n\t\t\t// Reset position to spawnpoint\n\t\t\tsetField(GLOBAL.SPAWN_POINTS[getTeamNumber(room, thisPlayer.team)].x * GLOBAL.GRID_SPACING * 2, ['rooms', room, 'players', data.player, 'posX'])\n\t\t\tsetField(GLOBAL.SPAWN_POINTS[getTeamNumber(room, thisPlayer.team)].y * GLOBAL.GRID_SPACING * 2, ['rooms', room, 'players', data.player, 'posY'])\n\t\t\tsetField(GLOBAL.MAX_HEALTH, ['rooms', room, 'players', data.player, 'health'])\n\t\t\tsetField(true, ['rooms', room, 'players', data.player, 'dead']) // This will be reset when it has been verified that the player has been placed at the proper spawnpoint\n\n\t\t\tif (socket.id === data.player) {\n\t\t\t\tlet pl = getField(['rooms', room, 'players', data.player])\n\t\t\t\tsocket.emit('serverSendPlayerDeath', { posX: pl.posX, posY: pl.posY, vx: pl.vx, vy: pl.vy })\n\t\t\t}\n\n\t\t\tif (data.id !== undefined) {\n\t\t\t\t// Read damagedBy to award points, clear in the process\n\t\t\t\tlet max = null\n\t\t\t\tlet dataToSend\n\t\t\t\tfor (let pl in thisPlayer.damagedBy) {\n\t\t\t\t\tdataToSend = {\n\t\t\t\t\t\tplayer: pl,\n\t\t\t\t\t\tteamSlot: getTeamNumber(room, thisRoom.compounds[data.id].sendingTeam),\n\t\t\t\t\t\tincrement: GLOBAL.ASSIST_SCORE,\n\t\t\t\t\t\tkill: false\n\t\t\t\t\t}\n\n\t\t\t\t\t// Add to team score, checking if team score is initialized\n\t\t\t\t\tsetField((thisRoom.teams[dataToSend.teamSlot].score === undefined) ? dataToSend.increment : thisRoom.teams[dataToSend.teamSlot].score + dataToSend.increment, ['rooms', room, 'teams', dataToSend.teamSlot, 'score'])\n\n\t\t\t\t\tsocket.to(room).broadcast.emit('serverSendScoreUpdate', dataToSend)\n\t\t\t\t\tsocket.emit('serverSendScoreUpdate', dataToSend)\n\t\t\t\t\tif (max === null || thisPlayer.damagedBy[pl] > thisPlayer.damagedBy[max]) {\n\t\t\t\t\t\tmax = pl\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Add to score of person who dealt the most damage\n\t\t\t\tdataToSend.player = max\n\t\t\t\tdataToSend.increment = GLOBAL.KILL_SCORE - GLOBAL.ASSIST_SCORE\n\t\t\t\tdataToSend.kill = true\n\t\t\t\tsocket.to(room).broadcast.emit('serverSendScoreUpdate', dataToSend)\n\t\t\t\tsocket.emit('serverSendScoreUpdate', dataToSend)\n\n\t\t\t\t// Add to team score\n\t\t\t\tsetField(thisRoom.teams[dataToSend.teamSlot].score + dataToSend.increment, ['rooms', room, 'teams', dataToSend.teamSlot, 'score'])\n\n\t\t\t\t// Clear damagedBy values\n\t\t\t\tfor (let pl in thisPlayer.damagedBy) {\n\t\t\t\t\tsetField(0, ['rooms', room, 'players', data.player, 'damagedBy', pl])\n\t\t\t\t}\n\n\t\t\t\t// Check if a team won\n\t\t\t\tlet highScores = [] // Possible winning teams\n\t\t\t\tlet maxScore = 0\n\t\t\t\tfor (let tm of thisRoom.teams) {\n\t\t\t\t\tif (tm.score >= GLOBAL.WINNING_SCORE) {\n\t\t\t\t\t\thighScores.push(tm)\n\t\t\t\t\t\tif (maxScore < tm.score) {\n\t\t\t\t\t\t\tmaxScore = tm.score\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (let winningTm of highScores) {\n\t\t\t\t\tif (winningTm.score === maxScore) {\n\t\t\t\t\t\tlet dataToSend = {\n\t\t\t\t\t\t\twinner: winningTm\n\t\t\t\t\t\t\t// teamScore: thisRoom.teams[dataToSend.teamSlot].score\n\t\t\t\t\t\t\t// other data here TODO post ranking\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsocket.to(room).broadcast.emit('serverSendWinner', dataToSend)\n\t\t\t\t\t\tsocket.emit('serverSendWinner', dataToSend)\n\n\t\t\t\t\t\t// Close room after delay (kick all players)\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\tsocket.emit('serverSendDisconnect', {})\n\t\t\t\t\t\t\tsocket.to(room).broadcast.emit('serverSendDisconnect', {})\n\t\t\t\t\t\t}, GLOBAL.ROOM_DELETE_DELAY)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t\tconsole.warn('Player of ID ' + data.player + ' couldn\\'t be damaged because they don\\'t exist!')\n\t}\n}\n\n/**\n * TODO\n */\nexport function splash () {\n\n}\n", + "content": "import { GLOBAL } from '../../client/js/global'\nimport { getField, setField, incrementField } from '../server'\nimport { getTeamNumber } from './serverutils'\nimport { tmpdir } from 'os'\nimport { spawnAtom } from './atoms'\n\n/**\n * ondamage.js\n * Contains functions:\n * - damage() Runs when a player gets damaged. Updates scores and checks if a player has been killed.\n * - splash() Runs when a collision needs to cause splash damage. Creates explosion effect and deals extra damage.\n */\n\n/**\n * Changes the health of the player by the amount given.\n * @param {*} data The data sent by the client. Contains:\n * - damage (number)\n * - player (id string of player that was hit)\n * - id (id string of compound)\n * - sentBy (id string of player that sent compound)\n * @param {string} room This room.\n * @param {*} socket This socket.\n * Must include the player id and amount to damage.\n * Amount may be negative (for health boost).\n */\nexport function damage (data, room, socket) {\n\tlet thisRoom = getField(['rooms', room])\n\tlet thisPlayer = thisRoom.players[data.player]\n\n\tif (thisPlayer !== undefined) {\n\t\t// thisPlayer.health -= data.damage;\n\t\tsetField(thisPlayer.health - data.damage, ['rooms', room, 'players', data.player, 'health'])\n\n\t\t// Add damage to database\n\t\tif (thisPlayer.damagedBy[data.sentBy] === undefined) {\n\t\t\tsetField(0, ['rooms', room, 'players', data.player, 'damagedBy', data.sentBy])\n\t\t}\n\t\t// thisPlayer.damagedBy[data.sentBy] += data.damage;\n\t\tsetField(thisPlayer.damagedBy[data.sentBy] + data.damage, ['rooms', room, 'players', data.player, 'damagedBy', data.sentBy])\n\n\t\t// Check if the player has died.\n\t\tif (thisPlayer.health <= 0) {\n\t\t\t// console.log(thisRoom.teams.indexOf(socket.handshake.query.team));\n\n\t\t\t// Releases atoms and deletes the entire atoms array in player\n\t\t\tfor (let at in thisPlayer.atomList) {\n\t\t\t\tfor (let i = 0; i < GLOBAL.MAX_DEATH_ATOMS && i < thisPlayer.atomList[at]; i++) {\n\t\t\t\t\tspawnAtom(thisPlayer.posX, thisPlayer.posY, at, room, false)\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (let at in thisPlayer.atomList) {\n\t\t\t\tsetField(0, ['rooms', room, 'players', thisPlayer, 'atomList', at])\n\t\t\t}\n\n\t\t\t// Reset position to spawnpoint\n\t\t\tsetField(GLOBAL.SPAWN_POINTS[getTeamNumber(room, thisPlayer.team)].x * GLOBAL.GRID_SPACING * 2, ['rooms', room, 'players', data.player, 'posX'])\n\t\t\tsetField(GLOBAL.SPAWN_POINTS[getTeamNumber(room, thisPlayer.team)].y * GLOBAL.GRID_SPACING * 2, ['rooms', room, 'players', data.player, 'posY'])\n\t\t\tsetField(GLOBAL.MAX_HEALTH, ['rooms', room, 'players', data.player, 'health'])\n\t\t\tsetField(true, ['rooms', room, 'players', data.player, 'dead']) // This will be reset when it has been verified that the player has been placed at the proper spawnpoint\n\n\t\t\tif (socket.id === data.player) {\n\t\t\t\tlet pl = getField(['rooms', room, 'players', data.player])\n\t\t\t\tsocket.emit('serverSendPlayerDeath', { posX: pl.posX, posY: pl.posY, vx: pl.vx, vy: pl.vy })\n\t\t\t}\n\n\t\t\tif (data.id !== undefined) {\n\t\t\t\t// Read damagedBy to award points, clear in the process\n\t\t\t\tlet max = null\n\t\t\t\tlet dataToSend\n\t\t\t\tfor (let pl in thisPlayer.damagedBy) {\n\t\t\t\t\tdataToSend = {\n\t\t\t\t\t\tplayer: pl,\n\t\t\t\t\t\tteamSlot: getTeamNumber(room, thisRoom.compounds[data.id].sendingTeam),\n\t\t\t\t\t\tincrement: GLOBAL.ASSIST_SCORE,\n\t\t\t\t\t\tkill: false\n\t\t\t\t\t}\n\n\t\t\t\t\t// Add to team score, checking if team score is initialized\n\t\t\t\t\tsetField((thisRoom.teams[dataToSend.teamSlot].score === undefined) ? dataToSend.increment : thisRoom.teams[dataToSend.teamSlot].score + dataToSend.increment, ['rooms', room, 'teams', dataToSend.teamSlot, 'score'])\n\n\t\t\t\t\tsocket.to(room).broadcast.emit('serverSendScoreUpdate', dataToSend)\n\t\t\t\t\tsocket.emit('serverSendScoreUpdate', dataToSend)\n\t\t\t\t\tif (max === null || thisPlayer.damagedBy[pl] > thisPlayer.damagedBy[max]) {\n\t\t\t\t\t\tmax = pl\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Add to score of person who dealt the most damage\n\t\t\t\tdataToSend.player = max\n\t\t\t\tdataToSend.increment = GLOBAL.KILL_SCORE - GLOBAL.ASSIST_SCORE\n\t\t\t\tdataToSend.kill = true\n\t\t\t\tsocket.to(room).broadcast.emit('serverSendScoreUpdate', dataToSend)\n\t\t\t\tsocket.emit('serverSendScoreUpdate', dataToSend)\n\n\t\t\t\t// Add to team score\n\t\t\t\tincrementField(dataToSend.increment, ['rooms', room, 'teams', dataToSend.teamSlot, 'score'])\n\n\t\t\t\t// Clear damagedBy values\n\t\t\t\tfor (let pl in thisPlayer.damagedBy) {\n\t\t\t\t\tsetField(0, ['rooms', room, 'players', data.player, 'damagedBy', pl])\n\t\t\t\t}\n\n\t\t\t\t// Check if a team won\n\t\t\t\tlet highScores = [] // Possible winning teams\n\t\t\t\tlet maxScore = 0\n\t\t\t\tfor (let tm of thisRoom.teams) {\n\t\t\t\t\tif (tm.score >= GLOBAL.WINNING_SCORE) {\n\t\t\t\t\t\thighScores.push(tm)\n\t\t\t\t\t\tif (maxScore < tm.score) {\n\t\t\t\t\t\t\tmaxScore = tm.score\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (let winningTm of highScores) {\n\t\t\t\t\tif (winningTm.score === maxScore) {\n\t\t\t\t\t\tlet dataToSend = {\n\t\t\t\t\t\t\twinner: winningTm\n\t\t\t\t\t\t\t// teamScore: thisRoom.teams[dataToSend.teamSlot].score\n\t\t\t\t\t\t\t// other data here TODO post ranking\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsocket.to(room).broadcast.emit('serverSendWinner', dataToSend)\n\t\t\t\t\t\tsocket.emit('serverSendWinner', dataToSend)\n\n\t\t\t\t\t\t// Close room after delay (kick all players)\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\tsocket.emit('serverSendDisconnect', {})\n\t\t\t\t\t\t\tsocket.to(room).broadcast.emit('serverSendDisconnect', {})\n\t\t\t\t\t\t}, GLOBAL.ROOM_DELETE_DELAY)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t\tconsole.warn('Player of ID ' + data.player + ' couldn\\'t be damaged because they don\\'t exist!')\n\t}\n}\n\nexport function damageTile (tileID, damageAmount, player, room, socket) {\n\tincrementField(-damageAmount, ['rooms', room, 'tiles', tileID, 'health'])\n\n\tconsole.log('tile ' + tileID + ' is now at ' + getField(['rooms', room, 'tiles', tileID, 'health']))\n\n\t// Check if tile is fully captured\n\tif (getField(['rooms', room, 'tiles', tileID, 'health']) <= 0) {\n\t\tfor (let i = 0; i < 3; i++) {\n\t\t\tif (getField(['rooms', room, 'teams', i]).name === getField(['rooms', room, 'players', player, 'team'])) {\n\t\t\t\t// Notify clients of texture change\n\t\t\t\tlet data = {\n\t\t\t\t\tteamNumber: i,\n\t\t\t\t\ttileX: getField(['rooms', room, 'tiles', tileID, 'globalX']),\n\t\t\t\t\ttileY: getField(['rooms', room, 'tiles', tileID, 'globalY'])\n\t\t\t\t}\n\t\t\t\tsocket.to(room).emit('serverSendTileCapture', data)\n\t\t\t\tsocket.emit('serverSendTileCapture', data)\n\n\t\t\t\t// Distribute points\n\t\t\t\tincrementField(GLOBAL.CAPTURE_SCORE, ['rooms', room, 'teams', i, 'score'])\n\n\t\t\t\t// Reset health\n\t\t\t\tsetField(GLOBAL[('MAX_' + getField(['rooms', room, 'tiles', tileID, 'type']) + '_HEALTH').toUpperCase()], ['rooms', room, 'tiles', tileID, 'health'])\n\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * TODO\n */\nexport function splash () {\n\n}\n", "static": true, "longname": "/home/dbqeo/Documents/AtomBlast.io/src/server/utils/ondamage.js", "access": "public", @@ -5105,6 +5105,60 @@ { "__docId__": 239, "kind": "function", + "name": "damageTile", + "memberof": "src/server/utils/ondamage.js", + "generator": false, + "async": false, + "static": true, + "longname": "src/server/utils/ondamage.js~damageTile", + "access": "public", + "export": true, + "importPath": "atomblast.io/src/server/utils/ondamage.js", + "importStyle": "{damageTile}", + "description": null, + "lineNumber": 139, + "undocument": true, + "params": [ + { + "name": "tileID", + "types": [ + "*" + ] + }, + { + "name": "damageAmount", + "types": [ + "*" + ] + }, + { + "name": "player", + "types": [ + "*" + ] + }, + { + "name": "room", + "types": [ + "*" + ] + }, + { + "name": "socket", + "types": [ + "*" + ] + } + ], + "return": { + "types": [ + "boolean" + ] + } + }, + { + "__docId__": 240, + "kind": "function", "name": "splash", "memberof": "src/server/utils/ondamage.js", "generator": false, @@ -5116,15 +5170,15 @@ "importPath": "atomblast.io/src/server/utils/ondamage.js", "importStyle": "{splash}", "description": "TODO", - "lineNumber": 142, + "lineNumber": 172, "params": [], "return": null }, { - "__docId__": 240, + "__docId__": 241, "kind": "file", "name": "src/server/utils/serverinit.js", - "content": "import { getField, setField } from '../server'\nimport { MAP_LAYOUT, TILES, TILE_NAMES } from '../../client/js/obj/tiles'\nimport { GLOBAL } from '../../client/js/global'\nimport { spawnAtomAtVent } from './atoms'\nimport colors from 'colors' // Console colors :D\nimport { generateID } from './serverutils'\n\n/**\n * Methods to run on server initialization and player connect initialization.\n */\n\n/**\n * Global initialiation. Run once on server start.\n */\nexport function initGlobal () {\n\t// Set up atom spawning three times a second. This is processed outside of the player specific behavior because more players joining !== more resources spawn.\n\tsetInterval(() => {\n\t\tfor (let room in getField(['rooms'])) {\n\t\t\tfor (let row = 0; row < MAP_LAYOUT.length; row++) {\n\t\t\t\tfor (let col = 0; col < MAP_LAYOUT[0].length; col++) {\n\t\t\t\t\tif (TILES[TILE_NAMES[MAP_LAYOUT[row][col]]].type === 'spawner') {\n\t\t\t\t\t\tspawnAtomAtVent(row, col, room, false)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}, GLOBAL.ATOM_SPAWN_DELAY)\n\n\t// Timer\n\tsetInterval(() => {\n\t\tfor (let room in getField(['rooms'])) {\n\t\t\tif (getField(['rooms', room, 'started'])) {\n\t\t\t\tlet seconds = getField(['rooms', room, 'time', 'seconds'])\n\n\t\t\t\tlet minutes = getField(['rooms', room, 'time', 'minutes'])\n\n\t\t\t\t// Equivalent to rooms[room].time.seconds++;\n\t\t\t\tsetField(seconds + 1, ['rooms', room, 'time', 'seconds'])\n\n\t\t\t\tif (seconds >= 60) {\n\t\t\t\t\tsetField(0, ['rooms', room, 'time', 'seconds'])\n\t\t\t\t\tsetField(minutes + 1, ['rooms', room, 'time', 'minutes'])\n\t\t\t\t}\n\n\t\t\t\t// Set formatted Time\n\t\t\t\tsetField(minutes + ':' + ((seconds < 10) ? '0' : '') + seconds, ['rooms', room, 'time', 'formattedTime'])\n\t\t\t}\n\t\t}\n\t}, 1000)\n}\n\n/**\n * Run on every player join.\n * @param {*} socket The socket.io instance\n * @param {string} room The name of the room that the player belongs to\n * @param {string} team The name of the team that the player belongs to\n */\nexport function initPlayer (socket, room, team) {\n\t// Initialize room array and spawn atoms on first player join\n\tlet thisRoom = getField(['rooms', room])\n\n\t// Set up room if it does not exist\n\tif (thisRoom === undefined || thisRoom === null) {\n\t\tconsole.log('[Server] '.bold.blue + 'Setting up room '.yellow + ('' + room).bold.red + ' as type ' + socket.handshake.query.roomType)\n\t\tsetField({\n\t\t\tjoinable: true,\n\t\t\tteams: [],\n\t\t\tatoms: {},\n\t\t\tcompounds: {},\n\t\t\ttype: socket.handshake.query.roomType,\n\t\t\ttime: {\n\t\t\t\tminutes: 0,\n\t\t\t\tseconds: 0,\n\t\t\t\tformattedTime: '0:00'\n\t\t\t}\n\t\t}, ['rooms', room])\n\n\t\t// Set up capturable tiles\n\t\tsetField({}, ['rooms', room, 'tiles'])\n\t\t// TODO support multiple map layouts\n\t\tfor (let row = 0; row < MAP_LAYOUT.length; row++) {\n\t\t\tfor (let col = 0; col < MAP_LAYOUT[row].length; col++) {\n\t\t\t\tlet currTile = TILES[TILE_NAMES[MAP_LAYOUT[row][col]]]\n\t\t\t\tif (currTile.type === 'spawner' || currTile.type === 'stronghold') {\n\t\t\t\t\tlet tileID = generateID()\n\t\t\t\t\tsetField({\n\t\t\t\t\t\tid: tileID,\n\t\t\t\t\t\ttype: currTile.type,\n\t\t\t\t\t\tglobalX: col,\n\t\t\t\t\t\tglobalY: row,\n\t\t\t\t\t\tcaptured: false,\n\t\t\t\t\t\towner: 'none',\n\t\t\t\t\t\thealth: GLOBAL[('MAX_' + currTile.type + '_HEALTH').toUpperCase()]\n\t\t\t\t\t}, ['rooms', room, 'tiles', tileID])\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tconsole.log(getField(['rooms', room, 'tiles']))\n\t}\n\tthisRoom = getField(['rooms', room])\n\n\t// Add team to database\n\n\t// Equivalent to rooms[room].teams.push({ name: team });\n\tsetField({ name: team }, ['rooms', room, 'teams', getField(['rooms', room, 'teams']).length])\n\n\t// Check if room is full\n\tif (((thisRoom.type === '4v4' || thisRoom.type === '2v2') && thisRoom.teams.length === 2) || thisRoom.teams.length === 4) {\n\t\tsetField(false, ['rooms', room, 'joinable'])\n\t}\n\n\t// Create new player in rooms object\n\tsetField({\n\t\tid: socket.id,\n\t\tname: socket.handshake.query.name,\n\t\troom: socket.handshake.query.room,\n\t\tteam: team,\n\t\thealth: GLOBAL.MAX_HEALTH,\n\t\tposX: GLOBAL.SPAWN_POINTS[thisRoom.teams.length - 1].x * GLOBAL.GRID_SPACING * 2,\n\t\tposY: GLOBAL.SPAWN_POINTS[thisRoom.teams.length - 1].y * GLOBAL.GRID_SPACING * 2,\n\t\tvx: 0,\n\t\tvy: 0,\n\t\texperience: 0,\n\t\tdamagedBy: {}\n\t}, ['rooms', room, 'players', socket.id])\n}\n", + "content": "import { getField, setField } from '../server'\nimport { MAP_LAYOUT, TILES, TILE_NAMES } from '../../client/js/obj/tiles'\nimport { GLOBAL } from '../../client/js/global'\nimport { spawnAtomAtVent } from './atoms'\nimport colors from 'colors' // Console colors :D\nimport { generateID } from './serverutils'\n\n/**\n * Methods to run on server initialization and player connect initialization.\n */\n\n/**\n * Global initialiation. Run once on server start.\n */\nexport function initGlobal () {\n\t// Set up atom spawning three times a second. This is processed outside of the player specific behavior because more players joining !== more resources spawn.\n\tsetInterval(() => {\n\t\tfor (let room in getField(['rooms'])) {\n\t\t\tfor (let row = 0; row < MAP_LAYOUT.length; row++) {\n\t\t\t\tfor (let col = 0; col < MAP_LAYOUT[0].length; col++) {\n\t\t\t\t\tif (TILES[TILE_NAMES[MAP_LAYOUT[row][col]]].type === 'spawner') {\n\t\t\t\t\t\tspawnAtomAtVent(row, col, room, false)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}, GLOBAL.ATOM_SPAWN_DELAY)\n\n\t// Timer\n\tsetInterval(() => {\n\t\tfor (let room in getField(['rooms'])) {\n\t\t\tif (getField(['rooms', room, 'started'])) {\n\t\t\t\tlet seconds = getField(['rooms', room, 'time', 'seconds'])\n\n\t\t\t\tlet minutes = getField(['rooms', room, 'time', 'minutes'])\n\n\t\t\t\t// Equivalent to rooms[room].time.seconds++;\n\t\t\t\tsetField(seconds + 1, ['rooms', room, 'time', 'seconds'])\n\n\t\t\t\tif (seconds >= 60) {\n\t\t\t\t\tsetField(0, ['rooms', room, 'time', 'seconds'])\n\t\t\t\t\tsetField(minutes + 1, ['rooms', room, 'time', 'minutes'])\n\t\t\t\t}\n\n\t\t\t\t// Set formatted Time\n\t\t\t\tsetField(minutes + ':' + ((seconds < 10) ? '0' : '') + seconds, ['rooms', room, 'time', 'formattedTime'])\n\t\t\t}\n\t\t}\n\t}, 1000)\n}\n\n/**\n * Run on every player join.\n * @param {*} socket The socket.io instance\n * @param {string} room The name of the room that the player belongs to\n * @param {string} team The name of the team that the player belongs to\n */\nexport function initPlayer (socket, room, team) {\n\t// Initialize room array and spawn atoms on first player join\n\tlet thisRoom = getField(['rooms', room])\n\n\t// Set up room if it does not exist\n\tif (thisRoom === undefined || thisRoom === null) {\n\t\tconsole.log('[Server] '.bold.blue + 'Setting up room '.yellow + ('' + room).bold.red + ' as type ' + socket.handshake.query.roomType)\n\t\tsetField({\n\t\t\tjoinable: true,\n\t\t\tteams: [],\n\t\t\tatoms: {},\n\t\t\tcompounds: {},\n\t\t\ttype: socket.handshake.query.roomType,\n\t\t\ttime: {\n\t\t\t\tminutes: 0,\n\t\t\t\tseconds: 0,\n\t\t\t\tformattedTime: '0:00'\n\t\t\t}\n\t\t}, ['rooms', room])\n\n\t\t// Set up capturable tiles\n\t\tsetField({}, ['rooms', room, 'tiles'])\n\t\t// TODO support multiple map layouts\n\t\tfor (let row = 0; row < MAP_LAYOUT.length; row++) {\n\t\t\tfor (let col = 0; col < MAP_LAYOUT[row].length; col++) {\n\t\t\t\tlet currTile = TILES[TILE_NAMES[MAP_LAYOUT[row][col]]]\n\t\t\t\tif (currTile.type === 'spawner' || currTile.type === 'stronghold') {\n\t\t\t\t\tlet tileID = generateID()\n\t\t\t\t\tsetField({\n\t\t\t\t\t\tid: tileID,\n\t\t\t\t\t\ttype: currTile.type,\n\t\t\t\t\t\tglobalX: col,\n\t\t\t\t\t\tglobalY: row,\n\t\t\t\t\t\tcaptured: false,\n\t\t\t\t\t\towner: 'none',\n\t\t\t\t\t\thealth: GLOBAL[('MAX_' + currTile.type + '_HEALTH').toUpperCase()]\n\t\t\t\t\t}, ['rooms', room, 'tiles', tileID])\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tthisRoom = getField(['rooms', room])\n\n\t// Add team to database\n\n\t// Equivalent to rooms[room].teams.push({ name: team });\n\tsetField({ name: team }, ['rooms', room, 'teams', getField(['rooms', room, 'teams']).length])\n\n\t// Check if room is full\n\tif (((thisRoom.type === '4v4' || thisRoom.type === '2v2') && thisRoom.teams.length === 2) || thisRoom.teams.length === 4) {\n\t\tsetField(false, ['rooms', room, 'joinable'])\n\t}\n\n\t// Create new player in rooms object\n\tsetField({\n\t\tid: socket.id,\n\t\tname: socket.handshake.query.name,\n\t\troom: socket.handshake.query.room,\n\t\tteam: team,\n\t\thealth: GLOBAL.MAX_HEALTH,\n\t\tposX: GLOBAL.SPAWN_POINTS[thisRoom.teams.length - 1].x * GLOBAL.GRID_SPACING * 2,\n\t\tposY: GLOBAL.SPAWN_POINTS[thisRoom.teams.length - 1].y * GLOBAL.GRID_SPACING * 2,\n\t\tvx: 0,\n\t\tvy: 0,\n\t\texperience: 0,\n\t\tdamagedBy: {}\n\t}, ['rooms', room, 'players', socket.id])\n}\n", "static": true, "longname": "/home/dbqeo/Documents/AtomBlast.io/src/server/utils/serverinit.js", "access": "public", @@ -5132,7 +5186,7 @@ "lineNumber": 1 }, { - "__docId__": 241, + "__docId__": 242, "kind": "function", "name": "initGlobal", "memberof": "src/server/utils/serverinit.js", @@ -5150,7 +5204,7 @@ "return": null }, { - "__docId__": 242, + "__docId__": 243, "kind": "function", "name": "initPlayer", "memberof": "src/server/utils/serverinit.js", @@ -5199,7 +5253,7 @@ "return": null }, { - "__docId__": 243, + "__docId__": 244, "kind": "file", "name": "src/server/utils/serverutils.js", "content": "import { getField } from '../server'\nimport { GLOBAL } from '../../client/js/global'\n\n/**\n * Misc. standalone utilities for the server.\n */\n\n/**\n* Returns a random number between between 10000000 and 99999999, inclusive.\n* TODO Make every ID guaranteed unique\n* @returns random id between 10000000 and 99999999\n*/\nexport function generateID () {\n\treturn Math.floor(Math.random() * 90000000) + 10000000\n}\n\n/**\n * Returns the index of the given team within the team array of the given room.\n * @param {string} room The room name to check\n * @param {string} teamName The team name to return the number of\n */\nexport function getTeamNumber (room, teamName) {\n\tfor (let i = 0; i < getField(['rooms', room, 'teams']).length; i++) {\n\t\tif (getField(['rooms', room, 'teams'])[i].name === teamName) {\n\t\t\treturn i\n\t\t}\n\t}\n\n\treturn -1 // Team not found\n}\n\n/**\n * Returns the team colors object (see client socket.js for more information on the format)\n * @param {string} room The room name to check\n */\nexport function getTeamColors (room) {\n\tlet teamObj = getField(['rooms', room, 'teams'])\n\tlet result = {}\n\tfor (let i = 0; i < 4; i++) {\n\t\tif (teamObj[i]) {\n\t\t\tresult[teamObj[i].name] = i\n\t\t}\n\t}\n\treturn result\n}\n\n/**\n * Returns the serverside ID of the tile at this location.\n * If the tile is not capturable, then returns false.\n * @param {*} globalLocation Contains globalX and globalY. Location on the map\n * @param {string} room The room name to check\n */\nexport function getTileID (globalLocation, room) {\n\tfor (let tileID in getField(['rooms', room, 'tiles'])) {\n\t\tlet tile = getField(['rooms', room, 'tiles', tileID])\n\t\tif (tile.globalX === globalLocation.globalX && tile.globalY === globalLocation.globalY) {\n\t\t\treturn tileID\n\t\t}\n\t}\n\n\treturn false\n}\n", @@ -5210,7 +5264,7 @@ "lineNumber": 1 }, { - "__docId__": 244, + "__docId__": 245, "kind": "function", "name": "generateID", "memberof": "src/server/utils/serverutils.js", @@ -5241,7 +5295,7 @@ "params": [] }, { - "__docId__": 245, + "__docId__": 246, "kind": "function", "name": "getTeamNumber", "memberof": "src/server/utils/serverutils.js", @@ -5284,7 +5338,7 @@ } }, { - "__docId__": 246, + "__docId__": 247, "kind": "function", "name": "getTeamColors", "memberof": "src/server/utils/serverutils.js", @@ -5317,7 +5371,7 @@ } }, { - "__docId__": 247, + "__docId__": 248, "kind": "function", "name": "getTileID", "memberof": "src/server/utils/serverutils.js", diff --git a/docs/script/search_index.js b/docs/script/search_index.js index b644161..bb0dca8 100644 --- a/docs/script/search_index.js +++ b/docs/script/search_index.js @@ -131,6 +131,12 @@ window.esdocSearchIndex = [ "damage atomblast.io/src/server/utils/ondamage.js", "function" ], + [ + "atomblast.io/src/server/utils/ondamage.js~damagetile", + "function/index.html#static-function-damageTile", + "damageTile atomblast.io/src/server/utils/ondamage.js", + "function" + ], [ "atomblast.io/src/server/server.js~deleteobject", "function/index.html#static-function-deleteObject", diff --git a/docs/source.html b/docs/source.html index 1112ce3..8ab6887 100644 --- a/docs/source.html +++ b/docs/source.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • @@ -105,7 +106,7 @@ -

    Source 85/163

    +

    Source 85/164

    @@ -149,16 +150,16 @@ - + - - - + + + @@ -227,7 +228,7 @@ - + @@ -243,9 +244,9 @@ TILESTILE_NAMES - + - + @@ -261,20 +262,20 @@ showGameUIstartGame - + - + - + - - - + + + @@ -291,9 +292,9 @@ incrementFieldsetField - + - + @@ -310,9 +311,9 @@ - - - + + + @@ -348,22 +349,23 @@ - + - - - - + + + + - - - + + + diff --git a/docs/variable/index.html b/docs/variable/index.html index bbe47d2..f1cb3e8 100644 --- a/docs/variable/index.html +++ b/docs/variable/index.html @@ -94,6 +94,7 @@
  • FframeSync
  • FroomMatchmaker
  • Fdamage
  • +
  • FdamageTile
  • Fsplash
  • FinitGlobal
  • FinitPlayer
  • @@ -154,7 +155,7 @@ - GLOBAL: {"DEBUG": boolean, "VERBOSE_SOCKET": *, "KEY_ESC": number, "KEY_ENTER": number, "KEY_W": number, "KEY_A": number, "KEY_S": number, "KEY_D": number, "KEY_1": number, "KEY_2": number, "KEY_3": number, "KEY_4": number, "KEY_SPACE": number, "BP_SELECT": string, "BP_MAX": number, "BP_TOOLTIP_BLACKLIST": *, "INPUT_COUNT": number, "PLACEHOLDER_NAME": string, "MAX_CHATS": number, "SERVER_IP": string, "LOCAL_HOST": string, "TEST_IP": string, "NO_ROOM_IDENTIFIER": string, "NO_TEAM_IDENTIFIER": string, "ROOM_DELETE_DELAY": number, "COOKIES": *, "COOKIE_DAYS": number, "MAX_SPEED": number, "PLAYER_RADIUS": number, "VELOCITY_STEP": number, "LERP_VALUE": number, "DEADZONE": number, "MAX_HEALTH": number, "ATOM_RADIUS": number, "MIN_POWERUPS": number, "MAX_POWERUPS": number, "ATTRACTION_RADIUS": number, "ATTRACTION_COEFFICIENT": number, "ATOM_SPAWN_SPEED": number, "ATOM_SPAWN_DELAY": number, "ATOM_COLLECT_THRESHOLD": number, "MAP_SIZE": number, "SPAWN_POINTS": *, "MAX_SPAWNER_HEALTH": number, "MAX_STRONGHOLD_HEALTH": number, "DRAW_RADIUS": number, "GRID_SPACING": number, "GRID_LINE_STROKE": number, "FRAME_RATE": number, "TEAM_COLORS": *, "PLAYER_SPRITES": *, "IGNITE_SPRITE": string, "ATOM_IDS": *, "ATOM_SPRITES": *, "SPRITESHEET_DIR": string, "COMPOUND_DIR": string, "EXPERIENCE_VALUES": *, "EXPERIENCE_LEVELS": *, "MAINMENU_MUSICLIST": *, "LOBBY_MUSICLIST": *, "INGAME_MUSICLIST": *, "KILL_SCORE": number, "ASSIST_SCORE": number, "WINNING_SCORE": number, "MAX_DEATH_ATOMS": number} + GLOBAL: {"DEBUG": boolean, "VERBOSE_SOCKET": *, "KEY_ESC": number, "KEY_ENTER": number, "KEY_W": number, "KEY_A": number, "KEY_S": number, "KEY_D": number, "KEY_1": number, "KEY_2": number, "KEY_3": number, "KEY_4": number, "KEY_SPACE": number, "BP_SELECT": string, "BP_MAX": number, "BP_TOOLTIP_BLACKLIST": *, "INPUT_COUNT": number, "PLACEHOLDER_NAME": string, "MAX_CHATS": number, "SERVER_IP": string, "LOCAL_HOST": string, "TEST_IP": string, "NO_ROOM_IDENTIFIER": string, "NO_TEAM_IDENTIFIER": string, "ROOM_DELETE_DELAY": number, "COOKIES": *, "COOKIE_DAYS": number, "MAX_SPEED": number, "PLAYER_RADIUS": number, "VELOCITY_STEP": number, "LERP_VALUE": number, "DEADZONE": number, "MAX_HEALTH": number, "ATOM_RADIUS": number, "MIN_POWERUPS": number, "MAX_POWERUPS": number, "ATTRACTION_RADIUS": number, "ATTRACTION_COEFFICIENT": number, "ATOM_SPAWN_SPEED": number, "ATOM_SPAWN_DELAY": number, "ATOM_COLLECT_THRESHOLD": number, "MAP_SIZE": number, "SPAWN_POINTS": *, "MAX_SPAWNER_HEALTH": number, "MAX_STRONGHOLD_HEALTH": number, "STRONGHOLD_RADIUS": number, "DRAW_RADIUS": number, "GRID_SPACING": number, "GRID_LINE_STROKE": number, "FRAME_RATE": number, "TEAM_COLORS": *, "PLAYER_SPRITES": *, "IGNITE_SPRITE": string, "ATOM_IDS": *, "ATOM_SPRITES": *, "SPRITESHEET_DIR": string, "COMPOUND_DIR": string, "EXPERIENCE_VALUES": *, "EXPERIENCE_LEVELS": *, "MAINMENU_MUSICLIST": *, "LOBBY_MUSICLIST": *, "INGAME_MUSICLIST": *, "KILL_SCORE": number, "ASSIST_SCORE": number, "WINNING_SCORE": number, "CAPTURE_SCORE": number, "MAX_DEATH_ATOMS": number}

    @@ -487,7 +488,7 @@

    - GLOBAL: {"DEBUG": boolean, "VERBOSE_SOCKET": *, "KEY_ESC": number, "KEY_ENTER": number, "KEY_W": number, "KEY_A": number, "KEY_S": number, "KEY_D": number, "KEY_1": number, "KEY_2": number, "KEY_3": number, "KEY_4": number, "KEY_SPACE": number, "BP_SELECT": string, "BP_MAX": number, "BP_TOOLTIP_BLACKLIST": *, "INPUT_COUNT": number, "PLACEHOLDER_NAME": string, "MAX_CHATS": number, "SERVER_IP": string, "LOCAL_HOST": string, "TEST_IP": string, "NO_ROOM_IDENTIFIER": string, "NO_TEAM_IDENTIFIER": string, "ROOM_DELETE_DELAY": number, "COOKIES": *, "COOKIE_DAYS": number, "MAX_SPEED": number, "PLAYER_RADIUS": number, "VELOCITY_STEP": number, "LERP_VALUE": number, "DEADZONE": number, "MAX_HEALTH": number, "ATOM_RADIUS": number, "MIN_POWERUPS": number, "MAX_POWERUPS": number, "ATTRACTION_RADIUS": number, "ATTRACTION_COEFFICIENT": number, "ATOM_SPAWN_SPEED": number, "ATOM_SPAWN_DELAY": number, "ATOM_COLLECT_THRESHOLD": number, "MAP_SIZE": number, "SPAWN_POINTS": *, "MAX_SPAWNER_HEALTH": number, "MAX_STRONGHOLD_HEALTH": number, "DRAW_RADIUS": number, "GRID_SPACING": number, "GRID_LINE_STROKE": number, "FRAME_RATE": number, "TEAM_COLORS": *, "PLAYER_SPRITES": *, "IGNITE_SPRITE": string, "ATOM_IDS": *, "ATOM_SPRITES": *, "SPRITESHEET_DIR": string, "COMPOUND_DIR": string, "EXPERIENCE_VALUES": *, "EXPERIENCE_LEVELS": *, "MAINMENU_MUSICLIST": *, "LOBBY_MUSICLIST": *, "INGAME_MUSICLIST": *, "KILL_SCORE": number, "ASSIST_SCORE": number, "WINNING_SCORE": number, "MAX_DEATH_ATOMS": number} + GLOBAL: {"DEBUG": boolean, "VERBOSE_SOCKET": *, "KEY_ESC": number, "KEY_ENTER": number, "KEY_W": number, "KEY_A": number, "KEY_S": number, "KEY_D": number, "KEY_1": number, "KEY_2": number, "KEY_3": number, "KEY_4": number, "KEY_SPACE": number, "BP_SELECT": string, "BP_MAX": number, "BP_TOOLTIP_BLACKLIST": *, "INPUT_COUNT": number, "PLACEHOLDER_NAME": string, "MAX_CHATS": number, "SERVER_IP": string, "LOCAL_HOST": string, "TEST_IP": string, "NO_ROOM_IDENTIFIER": string, "NO_TEAM_IDENTIFIER": string, "ROOM_DELETE_DELAY": number, "COOKIES": *, "COOKIE_DAYS": number, "MAX_SPEED": number, "PLAYER_RADIUS": number, "VELOCITY_STEP": number, "LERP_VALUE": number, "DEADZONE": number, "MAX_HEALTH": number, "ATOM_RADIUS": number, "MIN_POWERUPS": number, "MAX_POWERUPS": number, "ATTRACTION_RADIUS": number, "ATTRACTION_COEFFICIENT": number, "ATOM_SPAWN_SPEED": number, "ATOM_SPAWN_DELAY": number, "ATOM_COLLECT_THRESHOLD": number, "MAP_SIZE": number, "SPAWN_POINTS": *, "MAX_SPAWNER_HEALTH": number, "MAX_STRONGHOLD_HEALTH": number, "STRONGHOLD_RADIUS": number, "DRAW_RADIUS": number, "GRID_SPACING": number, "GRID_LINE_STROKE": number, "FRAME_RATE": number, "TEAM_COLORS": *, "PLAYER_SPRITES": *, "IGNITE_SPRITE": string, "ATOM_IDS": *, "ATOM_SPRITES": *, "SPRITESHEET_DIR": string, "COMPOUND_DIR": string, "EXPERIENCE_VALUES": *, "EXPERIENCE_LEVELS": *, "MAINMENU_MUSICLIST": *, "LOBBY_MUSICLIST": *, "INGAME_MUSICLIST": *, "KILL_SCORE": number, "ASSIST_SCORE": number, "WINNING_SCORE": number, "CAPTURE_SCORE": number, "MAX_DEATH_ATOMS": number} diff --git a/src/server/utils/collision.js b/src/server/utils/collision.js index 9a41709..61581dc 100644 --- a/src/server/utils/collision.js +++ b/src/server/utils/collision.js @@ -62,9 +62,9 @@ export function collisionDetect (socket, room, thisPlayer, tempObjects) { else { // check for tile collisions let tileID = getTileID(getGlobalLocation(cmp), room) if (tileID) { - if(distanceBetween(cmp, { + if (distanceBetween(cmp, { posX: getGlobalLocation(cmp).globalX * GLOBAL.GRID_SPACING * 2 + GLOBAL.GRID_SPACING, - posY: getGlobalLocation(cmp).globalY * GLOBAL.GRID_SPACING * 2 - GLOBAL.GRID_SPACING, + posY: getGlobalLocation(cmp).globalY * GLOBAL.GRID_SPACING * 2 - GLOBAL.GRID_SPACING }) < GLOBAL.STRONGHOLD_RADIUS) { deleteObject('compounds', compound, room, socket) damageTile(tileID, cmp.blueprint.params.damage, socket.id, room, socket) diff --git a/src/server/utils/ondamage.js b/src/server/utils/ondamage.js index f298488..5e87978 100644 --- a/src/server/utils/ondamage.js +++ b/src/server/utils/ondamage.js @@ -141,15 +141,15 @@ export function damageTile (tileID, damageAmount, player, room, socket) { console.log('tile ' + tileID + ' is now at ' + getField(['rooms', room, 'tiles', tileID, 'health'])) - //Check if tile is fully captured + // Check if tile is fully captured if (getField(['rooms', room, 'tiles', tileID, 'health']) <= 0) { for (let i = 0; i < 3; i++) { if (getField(['rooms', room, 'teams', i]).name === getField(['rooms', room, 'players', player, 'team'])) { // Notify clients of texture change let data = { - teamNumber: i, + teamNumber: i, tileX: getField(['rooms', room, 'tiles', tileID, 'globalX']), - tileY: getField(['rooms', room, 'tiles', tileID, 'globalY']), + tileY: getField(['rooms', room, 'tiles', tileID, 'globalY']) } socket.to(room).emit('serverSendTileCapture', data) socket.emit('serverSendTileCapture', data)

    2019-01-07 00:38:29 (UTC)
    src/client/js/global.jssrc/client/js/global.js GLOBAL distanceBetween getCurrTile getGlobalLocation isInBounds 60 %3/55848 byte2122019-02-01 11:59:33 (UTC)5956 byte2142019-02-04 05:48:18 (UTC)
    src/client/js/lib/chat-client.js30 %3/10 1308 byte 432019-02-06 17:38:17 (UTC)2019-02-04 06:23:19 (UTC)
    src/client/js/obj/player.js 33 %1/32731 byte2724 byte 1422019-02-01 18:17:28 (UTC)2019-02-04 06:25:49 (UTC)
    src/client/js/pixigame.js 73 %14/1911973 byte11999 byte 4312019-02-01 11:59:33 (UTC)2019-02-04 06:42:06 (UTC)
    src/client/js/socket.jssrc/client/js/socket.js beginConnection disconnect objects teamColors 66 %6/910565 byte3732019-02-07 01:17:05 (UTC)10943 byte3792019-02-04 06:37:53 (UTC)
    src/server/entry.js 38 %5/1310228 byte10231 byte 3042019-02-01 10:50:18 (UTC)2019-02-04 06:08:40 (UTC)
    src/server/utils/atoms.jssrc/server/utils/collision.js collisionDetect 100 %1/12576 byte692019-02-01 11:59:33 (UTC)2893 byte752019-02-04 06:44:32 (UTC)
    src/server/utils/compound.js2019-02-07 01:17:05 (UTC)
    src/server/utils/ondamage.jssrc/server/utils/ondamage.js damage +damageTile splash100 %2/25452 byte1442019-02-07 01:17:05 (UTC)66 %2/36558 byte1742019-02-04 06:44:32 (UTC)
    src/server/utils/serverinit.js initGlobal initPlayer 100 %2/24059 byte1262019-02-01 11:06:49 (UTC)4009 byte1252019-02-04 06:11:14 (UTC)
    src/server/utils/serverutils.js