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.
- package/libs/azureiot/built/debug/binary.js +461 -461
- package/libs/color/built/debug/binary.js +8 -8
- package/libs/color-sensor/built/debug/binary.js +8 -8
- package/libs/controller/built/debug/binary.js +6978 -6978
- package/libs/controller---none/built/debug/binary.js +6962 -6962
- package/libs/datalogger/built/debug/binary.js +63 -63
- package/libs/edge-connector/built/debug/binary.js +8 -8
- package/libs/esp32/built/debug/binary.js +462 -462
- package/libs/game/_locales/game-strings.json +1 -0
- package/libs/game/built/debug/binary.js +6901 -6901
- package/libs/game/controller.ts +0 -6
- package/libs/game/info.ts +0 -9
- package/libs/game/multiplayer.ts +9 -8
- package/libs/lcd/built/debug/binary.js +8 -8
- package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
- package/libs/lora/built/debug/binary.js +8 -8
- package/libs/matrix-keypad/built/debug/binary.js +8 -8
- package/libs/mqtt/built/debug/binary.js +176 -176
- package/libs/multiplayer/player.ts +7 -7
- package/libs/multiplayer/stateKind.ts +2 -2
- package/libs/net/built/debug/binary.js +176 -176
- package/libs/net-game/built/debug/binary.js +8490 -8490
- package/libs/palette/built/debug/binary.js +6900 -6900
- package/libs/pixel/built/debug/binary.js +8 -8
- package/libs/power/built/debug/binary.js +8 -8
- package/libs/proximity/built/debug/binary.js +8 -8
- package/libs/radio/built/debug/binary.js +8 -8
- package/libs/radio-broadcast/built/debug/binary.js +8 -8
- package/libs/rotary-encoder/built/debug/binary.js +8 -8
- package/libs/screen/built/debug/binary.js +50 -50
- package/libs/servo/built/debug/binary.js +8 -8
- package/libs/sprite-scaling/built/debug/binary.js +6900 -6900
- package/libs/storyboard/built/debug/binary.js +6900 -6900
- 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
|
-
|
|
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
|
-
|
|
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.
|
|
124
|
+
if (key === MultiplayerState.score) {
|
|
125
125
|
return this._getInfo().score();
|
|
126
126
|
}
|
|
127
|
-
if (key === MultiplayerState.
|
|
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.
|
|
134
|
+
if (key === MultiplayerState.score) {
|
|
135
135
|
this._getInfo().setScore(val);
|
|
136
136
|
}
|
|
137
|
-
if (key === MultiplayerState.
|
|
137
|
+
if (key === MultiplayerState.life) {
|
|
138
138
|
this._getInfo().setLife(val);
|
|
139
139
|
}
|
|
140
140
|
this._setState(key, val);
|