aboutsummaryrefslogtreecommitdiff
path: root/featureClass/featureManager.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-15 17:17:57 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-15 17:17:57 +0800
commitb0a76fb4e93be9356d947e1b29a08804de76b870 (patch)
treeaa59502e4dc9616b589e903e936c28f5d98aecbf /featureClass/featureManager.js
parenteadcb388106517adc994152cd4c35ed47c93a4f2 (diff)
downloadSoopyV2-b0a76fb4e93be9356d947e1b29a08804de76b870.tar.gz
SoopyV2-b0a76fb4e93be9356d947e1b29a08804de76b870.tar.bz2
SoopyV2-b0a76fb4e93be9356d947e1b29a08804de76b870.zip
- Fix for lag in build battle
- dragon wings rbg support - anti hub spam - cosmetics live updating - connection to socket
Diffstat (limited to 'featureClass/featureManager.js')
-rw-r--r--featureClass/featureManager.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/featureClass/featureManager.js b/featureClass/featureManager.js
index cd44d6f..5287a6f 100644
--- a/featureClass/featureManager.js
+++ b/featureClass/featureManager.js
@@ -148,7 +148,9 @@ class FeatureManager {
// })
// }else{
this.eventObjects[event] = register(event, (...args)=>{
+ // let start = Date.now()
this.triggerEvent(event, args)
+ // this.eventTimingData[event] = (this.eventTimingData[event] || 0)+(Date.now()-start)
})
//}
@@ -218,7 +220,6 @@ class FeatureManager {
}
registerChat(criteria, func, context){
-
let event = this.registerCustom("chat", func, context)
event.trigger.setChatCriteria(criteria)
@@ -243,7 +244,6 @@ class FeatureManager {
return event
}
registerStep(isFps, interval, func, context){
-
let event = this.registerCustom("step", func, context)
event.trigger[isFps?"setFps":"setDelay"](interval) //TODO: make this group events similar to registerEvent()
@@ -252,7 +252,6 @@ class FeatureManager {
}
registerCustom(type, func, context){
-
let id = this.lastChatEventId++
this.customEvents[id] = {