Skip to content

Commit ad8d84e

Browse files
committed
fixed some documentation
1 parent cd0a828 commit ad8d84e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build/anvil.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14678,7 +14678,7 @@ var Sound = /** @class */ (function () {
1467814678
* const soundEmitter = new ANVIL.SoundEmitterPolygon({
1467914679
* points: [[0,0],[100,0],[100,100],[0,100]],
1468014680
* backgroundColor: "red",
14681-
* soundOptions: {
14681+
* }, {
1468214682
* listener: playerObject,
1468314683
* source: "path/to/sound.mp3",
1468414684
* loop: true,
@@ -14739,14 +14739,14 @@ var SoundEmitterPolygon = /** @class */ (function (_super) {
1473914739
* Plays the sound
1474014740
* @returns {void}
1474114741
*/
14742-
SoundEmitterPolygon.prototype.playSound = function () {
14742+
SoundEmitterPolygon.prototype.play = function () {
1474314743
this.sound.play();
1474414744
};
1474514745
/**
1474614746
* Stops the sound
1474714747
* @returns {void}
1474814748
*/
14749-
SoundEmitterPolygon.prototype.stopSound = function () {
14749+
SoundEmitterPolygon.prototype.stop = function () {
1475014750
this.sound.stop();
1475114751
};
1475214752
return SoundEmitterPolygon;

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3681,7 +3681,7 @@ exports.Sound = Sound;
36813681
* const soundEmitter = new ANVIL.SoundEmitterPolygon({
36823682
* points: [[0,0],[100,0],[100,100],[0,100]],
36833683
* backgroundColor: "red",
3684-
* soundOptions: {
3684+
* }, {
36853685
* listener: playerObject,
36863686
* source: "path/to/sound.mp3",
36873687
* loop: true,
@@ -3742,14 +3742,14 @@ var SoundEmitterPolygon = /** @class */ (function (_super) {
37423742
* Plays the sound
37433743
* @returns {void}
37443744
*/
3745-
SoundEmitterPolygon.prototype.playSound = function () {
3745+
SoundEmitterPolygon.prototype.play = function () {
37463746
this.sound.play();
37473747
};
37483748
/**
37493749
* Stops the sound
37503750
* @returns {void}
37513751
*/
3752-
SoundEmitterPolygon.prototype.stopSound = function () {
3752+
SoundEmitterPolygon.prototype.stop = function () {
37533753
this.sound.stop();
37543754
};
37553755
return SoundEmitterPolygon;

0 commit comments

Comments
 (0)