aboutsummaryrefslogtreecommitdiff
path: root/src/featureClass/class.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/featureClass/class.js')
-rw-r--r--src/featureClass/class.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/featureClass/class.js b/src/featureClass/class.js
index 987b460..fc4f7ff 100644
--- a/src/featureClass/class.js
+++ b/src/featureClass/class.js
@@ -176,6 +176,8 @@ class Event {
this.registerArgs = registerArgs
this.parent = parent
+ this.data.eventT = this
+
this.enabled = true
this.when = undefined
@@ -280,14 +282,17 @@ class ForgeEvent extends Event {
}
class CustomEvent extends Event {
+ //theEvent, theEvent.trigger, [isFps, interval, func], this
constructor(...args) {
super(...args)
}
actuallyRegister() {
+ if (this.data.type === "step") return
this.trigger.register()
}
actuallyUnregister() {
+ if (this.data.type === "step") return
this.trigger.unregister()
}
}