aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>2022-06-22 23:56:21 +0800
committerGitHub <noreply@github.com>2022-06-22 23:56:21 +0800
commit9978834cecf950dddec16de3b1c701bf4da1d783 (patch)
tree7a5db075fe15e5767b8e04cc0535a6fbf395e020
parentc184757736e0f293ad70c923f57de368646e721a (diff)
downloadSoopyV2-9978834cecf950dddec16de3b1c701bf4da1d783.tar.gz
SoopyV2-9978834cecf950dddec16de3b1c701bf4da1d783.tar.bz2
SoopyV2-9978834cecf950dddec16de3b1c701bf4da1d783.zip
added register soundplay
as title
-rw-r--r--featureClass/class.js9
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
+}