pxt-common-packages 10.3.16 → 10.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7478,7 +7478,7 @@ switch (step) {
7478
7478
  return leave(s, r0)
7479
7479
  default: oops()
7480
7480
  } } }
7481
- game_onShade__P66705.info = {"start":15386,"length":145,"line":462,"column":4,"endLine":466,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
7481
+ game_onShade__P66705.info = {"start":15517,"length":145,"line":464,"column":4,"endLine":468,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
7482
7482
 
7483
7483
  function game_onShade__P66705_mk(s) {
7484
7484
  checkStack(s.depth);
@@ -27182,7 +27182,7 @@ switch (step) {
27182
27182
  return leave(s, r0)
27183
27183
  default: oops()
27184
27184
  } } }
27185
- game_addScenePushHandler__P65839.info = {"start":15913,"length":242,"line":477,"column":4,"endLine":481,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
27185
+ game_addScenePushHandler__P65839.info = {"start":16044,"length":242,"line":479,"column":4,"endLine":483,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
27186
27186
 
27187
27187
  function game_addScenePushHandler__P65839_mk(s) {
27188
27188
  checkStack(s.depth);
@@ -27338,7 +27338,7 @@ switch (step) {
27338
27338
  return leave(s, r0)
27339
27339
  default: oops()
27340
27340
  } } }
27341
- game_addScenePopHandler__P65784.info = {"start":16914,"length":237,"line":501,"column":4,"endLine":505,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
27341
+ game_addScenePopHandler__P65784.info = {"start":17045,"length":237,"line":503,"column":4,"endLine":507,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
27342
27342
 
27343
27343
  function game_addScenePopHandler__P65784_mk(s) {
27344
27344
  checkStack(s.depth);
@@ -7369,7 +7369,7 @@ switch (step) {
7369
7369
  return leave(s, r0)
7370
7370
  default: oops()
7371
7371
  } } }
7372
- game_onShade__P82951.info = {"start":15386,"length":145,"line":462,"column":4,"endLine":466,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
7372
+ game_onShade__P82951.info = {"start":15517,"length":145,"line":464,"column":4,"endLine":468,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
7373
7373
 
7374
7374
  function game_onShade__P82951_mk(s) {
7375
7375
  checkStack(s.depth);
@@ -27073,7 +27073,7 @@ switch (step) {
27073
27073
  return leave(s, r0)
27074
27074
  default: oops()
27075
27075
  } } }
27076
- game_addScenePushHandler__P82085.info = {"start":15913,"length":242,"line":477,"column":4,"endLine":481,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
27076
+ game_addScenePushHandler__P82085.info = {"start":16044,"length":242,"line":479,"column":4,"endLine":483,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
27077
27077
 
27078
27078
  function game_addScenePushHandler__P82085_mk(s) {
27079
27079
  checkStack(s.depth);
@@ -27229,7 +27229,7 @@ switch (step) {
27229
27229
  return leave(s, r0)
27230
27230
  default: oops()
27231
27231
  } } }
27232
- game_addScenePopHandler__P82030.info = {"start":16914,"length":237,"line":501,"column":4,"endLine":505,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
27232
+ game_addScenePopHandler__P82030.info = {"start":17045,"length":237,"line":503,"column":4,"endLine":507,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
27233
27233
 
27234
27234
  function game_addScenePopHandler__P82030_mk(s) {
27235
27235
  checkStack(s.depth);
@@ -5552,7 +5552,7 @@ switch (step) {
5552
5552
  return leave(s, r0)
5553
5553
  default: oops()
5554
5554
  } } }
5555
- game_onShade__P142017.info = {"start":15386,"length":145,"line":462,"column":4,"endLine":466,"endColumn":5,"fileName":"game.ts","functionName":"onShade","argumentNames":["a"]}
5555
+ game_onShade__P142017.info = {"start":15517,"length":145,"line":464,"column":4,"endLine":468,"endColumn":5,"fileName":"game.ts","functionName":"onShade","argumentNames":["a"]}
5556
5556
 
5557
5557
  function game_onShade__P142017_mk(s) {
5558
5558
  checkStack(s.depth);
@@ -26568,7 +26568,7 @@ switch (step) {
26568
26568
  return leave(s, r0)
26569
26569
  default: oops()
26570
26570
  } } }
26571
- game_addScenePushHandler__P141151.info = {"start":15913,"length":242,"line":477,"column":4,"endLine":481,"endColumn":5,"fileName":"game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
26571
+ game_addScenePushHandler__P141151.info = {"start":16044,"length":242,"line":479,"column":4,"endLine":483,"endColumn":5,"fileName":"game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
26572
26572
 
26573
26573
  function game_addScenePushHandler__P141151_mk(s) {
26574
26574
  checkStack(s.depth);
@@ -26724,7 +26724,7 @@ switch (step) {
26724
26724
  return leave(s, r0)
26725
26725
  default: oops()
26726
26726
  } } }
26727
- game_addScenePopHandler__P141096.info = {"start":16914,"length":237,"line":501,"column":4,"endLine":505,"endColumn":5,"fileName":"game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
26727
+ game_addScenePopHandler__P141096.info = {"start":17045,"length":237,"line":503,"column":4,"endLine":507,"endColumn":5,"fileName":"game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
26728
26728
 
26729
26729
  function game_addScenePopHandler__P141096_mk(s) {
26730
26730
  checkStack(s.depth);
package/libs/game/game.ts CHANGED
@@ -364,9 +364,11 @@ namespace game {
364
364
  const winner = judged && win && info.winningPlayer();
365
365
  const scores = playersWithScores.map(player => new GameOverPlayerScore(player.number, player.impl.score(), player === winner));
366
366
 
367
- // Save scores if this was a judged game and there was a winner (don't save in the LOSE case).
367
+ // Save all scores. Dependency Note: this action triggers Kiosk to exit the simulator and show the high score screen.
368
+ info.saveAllScores();
369
+
370
+ // Save high score if this was a judged game and there was a winner (don't save in the LOSE case).
368
371
  if (judged && winner) {
369
- info.saveAllScores();
370
372
  info.saveHighScore();
371
373
  }
372
374
 
@@ -28559,7 +28559,7 @@ switch (step) {
28559
28559
  return leave(s, r0)
28560
28560
  default: oops()
28561
28561
  } } }
28562
- game_onShade__P114626.info = {"start":15386,"length":145,"line":462,"column":4,"endLine":466,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
28562
+ game_onShade__P114626.info = {"start":15517,"length":145,"line":464,"column":4,"endLine":468,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
28563
28563
 
28564
28564
  function game_onShade__P114626_mk(s) {
28565
28565
  checkStack(s.depth);
@@ -35451,7 +35451,7 @@ switch (step) {
35451
35451
  return leave(s, r0)
35452
35452
  default: oops()
35453
35453
  } } }
35454
- game_addScenePushHandler__P113760.info = {"start":15913,"length":242,"line":477,"column":4,"endLine":481,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
35454
+ game_addScenePushHandler__P113760.info = {"start":16044,"length":242,"line":479,"column":4,"endLine":483,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
35455
35455
 
35456
35456
  function game_addScenePushHandler__P113760_mk(s) {
35457
35457
  checkStack(s.depth);
@@ -35607,7 +35607,7 @@ switch (step) {
35607
35607
  return leave(s, r0)
35608
35608
  default: oops()
35609
35609
  } } }
35610
- game_addScenePopHandler__P113705.info = {"start":16914,"length":237,"line":501,"column":4,"endLine":505,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
35610
+ game_addScenePopHandler__P113705.info = {"start":17045,"length":237,"line":503,"column":4,"endLine":507,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
35611
35611
 
35612
35612
  function game_addScenePopHandler__P113705_mk(s) {
35613
35613
  checkStack(s.depth);
@@ -5552,7 +5552,7 @@ switch (step) {
5552
5552
  return leave(s, r0)
5553
5553
  default: oops()
5554
5554
  } } }
5555
- game_onShade__P174856.info = {"start":15386,"length":145,"line":462,"column":4,"endLine":466,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
5555
+ game_onShade__P174856.info = {"start":15517,"length":145,"line":464,"column":4,"endLine":468,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
5556
5556
 
5557
5557
  function game_onShade__P174856_mk(s) {
5558
5558
  checkStack(s.depth);
@@ -26568,7 +26568,7 @@ switch (step) {
26568
26568
  return leave(s, r0)
26569
26569
  default: oops()
26570
26570
  } } }
26571
- game_addScenePushHandler__P173990.info = {"start":15913,"length":242,"line":477,"column":4,"endLine":481,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
26571
+ game_addScenePushHandler__P173990.info = {"start":16044,"length":242,"line":479,"column":4,"endLine":483,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
26572
26572
 
26573
26573
  function game_addScenePushHandler__P173990_mk(s) {
26574
26574
  checkStack(s.depth);
@@ -26724,7 +26724,7 @@ switch (step) {
26724
26724
  return leave(s, r0)
26725
26725
  default: oops()
26726
26726
  } } }
26727
- game_addScenePopHandler__P173935.info = {"start":16914,"length":237,"line":501,"column":4,"endLine":505,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
26727
+ game_addScenePopHandler__P173935.info = {"start":17045,"length":237,"line":503,"column":4,"endLine":507,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
26728
26728
 
26729
26729
  function game_addScenePopHandler__P173935_mk(s) {
26730
26730
  checkStack(s.depth);
@@ -5552,7 +5552,7 @@ switch (step) {
5552
5552
  return leave(s, r0)
5553
5553
  default: oops()
5554
5554
  } } }
5555
- game_onShade__P196101.info = {"start":15386,"length":145,"line":462,"column":4,"endLine":466,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
5555
+ game_onShade__P196101.info = {"start":15517,"length":145,"line":464,"column":4,"endLine":468,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
5556
5556
 
5557
5557
  function game_onShade__P196101_mk(s) {
5558
5558
  checkStack(s.depth);
@@ -26568,7 +26568,7 @@ switch (step) {
26568
26568
  return leave(s, r0)
26569
26569
  default: oops()
26570
26570
  } } }
26571
- game_addScenePushHandler__P195235.info = {"start":15913,"length":242,"line":477,"column":4,"endLine":481,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
26571
+ game_addScenePushHandler__P195235.info = {"start":16044,"length":242,"line":479,"column":4,"endLine":483,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
26572
26572
 
26573
26573
  function game_addScenePushHandler__P195235_mk(s) {
26574
26574
  checkStack(s.depth);
@@ -26724,7 +26724,7 @@ switch (step) {
26724
26724
  return leave(s, r0)
26725
26725
  default: oops()
26726
26726
  } } }
26727
- game_addScenePopHandler__P195180.info = {"start":16914,"length":237,"line":501,"column":4,"endLine":505,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
26727
+ game_addScenePopHandler__P195180.info = {"start":17045,"length":237,"line":503,"column":4,"endLine":507,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
26728
26728
 
26729
26729
  function game_addScenePopHandler__P195180_mk(s) {
26730
26730
  checkStack(s.depth);
@@ -5552,7 +5552,7 @@ switch (step) {
5552
5552
  return leave(s, r0)
5553
5553
  default: oops()
5554
5554
  } } }
5555
- game_onShade__P157499.info = {"start":15386,"length":145,"line":462,"column":4,"endLine":466,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
5555
+ game_onShade__P157499.info = {"start":15517,"length":145,"line":464,"column":4,"endLine":468,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
5556
5556
 
5557
5557
  function game_onShade__P157499_mk(s) {
5558
5558
  checkStack(s.depth);
@@ -26568,7 +26568,7 @@ switch (step) {
26568
26568
  return leave(s, r0)
26569
26569
  default: oops()
26570
26570
  } } }
26571
- game_addScenePushHandler__P156633.info = {"start":15913,"length":242,"line":477,"column":4,"endLine":481,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
26571
+ game_addScenePushHandler__P156633.info = {"start":16044,"length":242,"line":479,"column":4,"endLine":483,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
26572
26572
 
26573
26573
  function game_addScenePushHandler__P156633_mk(s) {
26574
26574
  checkStack(s.depth);
@@ -26724,7 +26724,7 @@ switch (step) {
26724
26724
  return leave(s, r0)
26725
26725
  default: oops()
26726
26726
  } } }
26727
- game_addScenePopHandler__P156578.info = {"start":16914,"length":237,"line":501,"column":4,"endLine":505,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
26727
+ game_addScenePopHandler__P156578.info = {"start":17045,"length":237,"line":503,"column":4,"endLine":507,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
26728
26728
 
26729
26729
  function game_addScenePopHandler__P156578_mk(s) {
26730
26730
  checkStack(s.depth);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-common-packages",
3
- "version": "10.3.16",
3
+ "version": "10.3.17",
4
4
  "description": "Microsoft MakeCode (PXT) common packages",
5
5
  "keywords": [
6
6
  "MakeCode",