- 将HeroSkillsComp中的技能数组改为以s_uuid为键的对象存储 - 修改CSRequestComp使用s_uuid替代skillIndex - 优化SkillCastSystem和SACastSystem的施放逻辑 - 为SMoveDataComp添加rePos方法处理技能位置计算 - 移除未使用的SDataComSystem代码
33 lines
912 B
TypeScript
33 lines
912 B
TypeScript
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
|
import { BoxSet } from "../common/config/BoxSet";
|
|
import { HeroViewComp } from "../hero/HeroViewComp";
|
|
|
|
/** 业务层对象 */
|
|
@ecs.register('SDataCom')
|
|
export class SDataCom extends ecs.Comp {
|
|
/** 业务层组件移除时,重置所有数据为默认值 */
|
|
attrs:any=null
|
|
caster:HeroViewComp=null
|
|
group:BoxSet=BoxSet.HERO
|
|
s_uuid:number=0
|
|
reset() {
|
|
this.attrs=null
|
|
this.group=0
|
|
this.s_uuid=0
|
|
this.caster=null
|
|
}
|
|
}
|
|
|
|
// /** 业务层业务逻辑处理对象 */
|
|
// export class SDataComSystem extends ecs.ComblockSystem implements ecs.IEntityEnterSystem {
|
|
// filter(): ecs.IMatcher {
|
|
// return ecs.allOf(SDataCom);
|
|
// }
|
|
|
|
// entityEnter(e: ecs.Entity): void {
|
|
// // 注:自定义业务逻辑
|
|
|
|
|
|
// e.remove(SDataCom);
|
|
// }
|
|
// }
|