Files
pixelheros/assets/script/game/hero/Aheros/ModuleBll.ts
walkpan bffbb9077e dd
2025-02-01 00:14:25 +08:00

24 lines
619 B
TypeScript

import { ecs } from "../../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
/** 业务层对象 */
@ecs.register('ModuleBll')
export class ModuleBllComp extends ecs.Comp {
/** 业务层组件移除时,重置所有数据为默认值 */
reset() {
}
}
/** 业务层业务逻辑处理对象 */
export class ModuleBllSystem extends ecs.ComblockSystem implements ecs.IEntityEnterSystem {
filter(): ecs.IMatcher {
return ecs.allOf(ModuleBllComp);
}
entityEnter(e: ecs.Entity): void {
// 注:自定义业务逻辑
e.remove(ModuleBllComp);
}
}