diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-23 06:42:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 06:42:17 +0800 |
commit | 5ac9d3860d1cb78c220fb9f5012c7e10d1654d35 (patch) | |
tree | 1fdb6e2fd0824f4ea01cddb5fbc6df31db71d546 /featureClass | |
parent | 391cbc4bbd3504e4a56ed4f3dc8ae9950a3dc263 (diff) | |
parent | 9978834cecf950dddec16de3b1c701bf4da1d783 (diff) | |
download | SoopyV2-5ac9d3860d1cb78c220fb9f5012c7e10d1654d35.tar.gz SoopyV2-5ac9d3860d1cb78c220fb9f5012c7e10d1654d35.tar.bz2 SoopyV2-5ac9d3860d1cb78c220fb9f5012c7e10d1654d35.zip |
Merge pull request #16 from EmeraldMerchant/patch-13
added register soundplay
Diffstat (limited to 'featureClass')
-rw-r--r-- | featureClass/class.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/featureClass/class.js b/featureClass/class.js index b8a17d9..3471652 100644 --- a/featureClass/class.js +++ b/featureClass/class.js @@ -106,6 +106,13 @@ class Feature { return new CustomEvent(theEvent, theEvent.trigger, [criteria, func], this) } + registerSoundPlay(criteria, func) { + let theEvent = this.FeatureManager.registerSoundPlay(criteria, func, this) + + this.customEvents[theEvent.id] = theEvent + + return new CustomEvent(theEvent, theEvent.trigger, [criteria, func], this) + } registerActionBar(criteria, func) { let theEvent = this.FeatureManager.registerActionBar(criteria, func, this) @@ -274,4 +281,4 @@ class CustomEvent extends Event { actuallyUnregister() { this.trigger.unregister() } -}
\ No newline at end of file +} |