pxt-common-packages 10.3.6 → 10.3.8

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.
Files changed (34) hide show
  1. package/libs/azureiot/built/debug/binary.js +461 -461
  2. package/libs/color/built/debug/binary.js +8 -8
  3. package/libs/color-sensor/built/debug/binary.js +8 -8
  4. package/libs/controller/built/debug/binary.js +6978 -6978
  5. package/libs/controller---none/built/debug/binary.js +6962 -6962
  6. package/libs/datalogger/built/debug/binary.js +63 -63
  7. package/libs/edge-connector/built/debug/binary.js +8 -8
  8. package/libs/esp32/built/debug/binary.js +462 -462
  9. package/libs/game/_locales/game-strings.json +1 -0
  10. package/libs/game/built/debug/binary.js +6901 -6901
  11. package/libs/game/controller.ts +0 -6
  12. package/libs/game/info.ts +0 -9
  13. package/libs/game/multiplayer.ts +9 -8
  14. package/libs/lcd/built/debug/binary.js +8 -8
  15. package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
  16. package/libs/lora/built/debug/binary.js +8 -8
  17. package/libs/matrix-keypad/built/debug/binary.js +8 -8
  18. package/libs/mqtt/built/debug/binary.js +176 -176
  19. package/libs/multiplayer/player.ts +7 -7
  20. package/libs/multiplayer/stateKind.ts +2 -2
  21. package/libs/net/built/debug/binary.js +176 -176
  22. package/libs/net-game/built/debug/binary.js +8490 -8490
  23. package/libs/palette/built/debug/binary.js +6900 -6900
  24. package/libs/pixel/built/debug/binary.js +8 -8
  25. package/libs/power/built/debug/binary.js +8 -8
  26. package/libs/proximity/built/debug/binary.js +8 -8
  27. package/libs/radio/built/debug/binary.js +8 -8
  28. package/libs/radio-broadcast/built/debug/binary.js +8 -8
  29. package/libs/rotary-encoder/built/debug/binary.js +8 -8
  30. package/libs/screen/built/debug/binary.js +50 -50
  31. package/libs/servo/built/debug/binary.js +8 -8
  32. package/libs/sprite-scaling/built/debug/binary.js +6900 -6900
  33. package/libs/storyboard/built/debug/binary.js +6900 -6900
  34. package/package.json +1 -1
@@ -98,7 +98,7 @@ namespace mp {
98
98
  if (sprite && sprite.image) {
99
99
  // Passing 'implicit' flag so we don't override icons that
100
100
  // user has explicitly defined.
101
- multiplayer.postPresenceIcon(
101
+ mp.postPresenceIcon(
102
102
  this.number,
103
103
  sprite.image,
104
104
  /** implicit **/ true
@@ -106,12 +106,12 @@ namespace mp {
106
106
  } else {
107
107
  // Passing 'implicit' flag so we don't override icons that
108
108
  // user has explicitly defined.
109
- multiplayer.postPresenceIcon(
109
+ mp.postPresenceIcon(
110
110
  this.number,
111
111
  undefined,
112
112
  /** implicit **/ true
113
113
  );
114
-
114
+
115
115
  }
116
116
  this._sprite = sprite;
117
117
  }
@@ -121,20 +121,20 @@ namespace mp {
121
121
  }
122
122
 
123
123
  getState(key: number): number {
124
- if (key === MultiplayerState.Score) {
124
+ if (key === MultiplayerState.score) {
125
125
  return this._getInfo().score();
126
126
  }
127
- if (key === MultiplayerState.Life) {
127
+ if (key === MultiplayerState.life) {
128
128
  return this._getInfo().life();
129
129
  }
130
130
  return this._getState(key);
131
131
  }
132
132
 
133
133
  setState(key: number, val: number) {
134
- if (key === MultiplayerState.Score) {
134
+ if (key === MultiplayerState.score) {
135
135
  this._getInfo().setScore(val);
136
136
  }
137
- if (key === MultiplayerState.Life) {
137
+ if (key === MultiplayerState.life) {
138
138
  this._getInfo().setLife(val);
139
139
  }
140
140
  this._setState(key, val);
@@ -7,8 +7,8 @@ namespace MultiplayerState {
7
7
  }
8
8
 
9
9
  //% isKind
10
- export const Score = create();
10
+ export const score = create();
11
11
 
12
12
  //% isKind
13
- export const Life = create();
13
+ export const life = create();
14
14
  }