ComSkill.ts 850 B

12345678910111213141516171819202122232425262728293031
  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. skillIndex: number
  12. //施放技能对象的词条
  13. fightData: IFightData
  14. //技能创建时需要赋值,保证当技能创建时敌人死亡,无法确定group
  15. group: number
  16. //技能碰撞体
  17. cObject: cObject
  18. //技能展示中
  19. dirty: boolean
  20. //技能结束倒计时
  21. countDown: number
  22. //技能伤害帧完成
  23. hurtFrameCompleted: boolean
  24. //技能指向的角色
  25. role: EntityIndex
  26. //特效ID
  27. ani: EntityIndex
  28. }