/** @format */ import {ECSComponent} from '../lib/ECSComponent' import {ComType, EntityIndex} from '../lib/Const' import {cObject} from '../../collision/Object' import {ISkillConfig} from '../../config/SkillConfig' import {IFightData} from '../core/GameInterface' @ECSComponent(ComType.ComSkill) export class ComSkill { skillCfg: ISkillConfig //技能槽位索引 skillIndex: number //施放技能对象的词条 fightData: IFightData //技能创建时需要赋值,保证当技能创建时敌人死亡,无法确定group group: number //技能碰撞体 cObject: cObject //技能展示中 dirty: boolean //技能结束倒计时 countDown: number //技能伤害帧完成 hurtFrameCompleted: boolean //技能指向的角色 role: EntityIndex //特效ID ani: EntityIndex }