ComSkill.ts 802 B

1234567891011121314151617181920212223242526272829
  1. /** @format */
  2. import {ECSComponent} from '../lib/ECSComponent'
  3. import {ComType, EntityIndex} from '../lib/Const'
  4. import {cObject} from '../../collision/Object'
  5. import {ISkillConfig} from '../../config/SkillConfig'
  6. import {IFightData} from '../core/GameInterface'
  7. @ECSComponent(ComType.ComSkill)
  8. export class ComSkill {
  9. skillCfg: ISkillConfig
  10. //施放技能对象的词条
  11. fightData: IFightData
  12. //技能创建时需要赋值,保证当技能创建时敌人死亡,无法确定group
  13. group: number
  14. //技能碰撞体
  15. cObject: cObject
  16. //技能展示中
  17. dirty: boolean
  18. //技能结束倒计时
  19. countDown: number
  20. //技能伤害帧完成
  21. hurtFrameCompleted: boolean
  22. //技能指向的角色
  23. role: EntityIndex
  24. //特效ID
  25. ani: EntityIndex
  26. }