dd
This commit is contained in:
24
assets/script/game/hero/Aheros/ModuleBll.ts
Normal file
24
assets/script/game/hero/Aheros/ModuleBll.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user