refactor: Simplify and optimize event handling and listener management

This commit is contained in:
子沐呀
2024-12-16 17:44:06 +08:00
Unverified
parent e88362e96a
commit 4494e7986c
4 changed files with 76 additions and 47 deletions
+2 -5
View File
@@ -636,10 +636,7 @@ export namespace Event {
/** 回调 */
callback: (event: {
/** 事件参数 */
params: {
/** 末影龙复活后的uniqueId */
0: number
},
params: {},
/** 拦截事件 */
cancel: () => void,
/** 设置拦截状态 */
@@ -668,7 +665,7 @@ export namespace Event {
callback: (event: {
/** 事件参数 */
params: {
/** 末影实体 */
/** 末影实体 */
0: Entity
},
/** 获取事件ID */