pxt-common-packages 10.3.6 → 10.3.7

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.
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-common-packages",
3
- "version": "10.3.6",
3
+ "version": "10.3.7",
4
4
  "description": "Microsoft MakeCode (PXT) common packages",
5
5
  "keywords": [
6
6
  "MakeCode",