react-simple-game-engine 0.2.90 → 0.2.91

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.
@@ -4,7 +4,6 @@ export declare class Sound {
4
4
  readonly type: SoundType;
5
5
  static Management: SoundManagement;
6
6
  readonly native: HTMLAudioElement;
7
- private _volume;
8
7
  constructor(type?: SoundType);
9
8
  get volumn(): number;
10
9
  set volumn(vol: number);
@@ -1 +1 @@
1
- {"version":3,"file":"sound.d.ts","sourceRoot":"","sources":["../../src/classes/sound.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,qBAAa,KAAK;aAYY,IAAI,EAAE,SAAS;IAX3C,MAAM,CAAC,UAAU,EAAE,eAAe,CAOhC;IACF,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAe;IAChD,OAAO,CAAC,OAAO,CAAS;gBAEI,IAAI,GAAE,SAA0B;IAE5D,IAAI,MAAM,IAIM,MAAM,CAFrB;IAED,IAAI,MAAM,CAAC,GAAG,EAAE,MAAM,EAGrB;IAED,IAAI,SAAS,YAEZ;IAEK,OAAO;IAQP,KAAK;IAIL,MAAM;IAQN,IAAI;IAQJ,IAAI;CAcX"}
1
+ {"version":3,"file":"sound.d.ts","sourceRoot":"","sources":["../../src/classes/sound.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,qBAAa,KAAK;aAWY,IAAI,EAAE,SAAS;IAV3C,MAAM,CAAC,UAAU,EAAE,eAAe,CAOhC;IACF,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAe;gBAEpB,IAAI,GAAE,SAA0B;IAE5D,IAAI,MAAM,IAIM,MAAM,CAFrB;IAED,IAAI,MAAM,CAAC,GAAG,EAAE,MAAM,EAErB;IAED,IAAI,SAAS,YAEZ;IAEK,OAAO;IAQP,KAAK;IAIL,MAAM;IAQN,IAAI;IAQJ,IAAI;CAYX"}
@@ -48,7 +48,6 @@ var Sound = /** @class */ (function () {
48
48
  return this.native.volume;
49
49
  },
50
50
  set: function (vol) {
51
- this._volume = vol;
52
51
  this.native.volume = vol;
53
52
  },
54
53
  enumerable: false,
@@ -121,7 +120,7 @@ var Sound = /** @class */ (function () {
121
120
  };
122
121
  Sound.prototype.play = function () {
123
122
  return __awaiter(this, void 0, void 0, function () {
124
- var canPlay, loop, exec;
123
+ var canPlay, loop;
125
124
  return __generator(this, function (_a) {
126
125
  switch (_a.label) {
127
126
  case 0:
@@ -134,9 +133,7 @@ var Sound = /** @class */ (function () {
134
133
  else {
135
134
  this.native.loop = false;
136
135
  }
137
- exec = this.native.play();
138
- this.native.volume = this._volume;
139
- return [4 /*yield*/, exec];
136
+ return [4 /*yield*/, this.native.play()];
140
137
  case 1:
141
138
  _a.sent();
142
139
  _a.label = 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-simple-game-engine",
3
- "version": "0.2.90",
3
+ "version": "0.2.91",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib",