ComSkillAbel.ts 929 B

123456789101112131415161718192021222324252627282930313233
  1. /** @format */
  2. import {ECSComponent} from '../lib/ECSComponent'
  3. import {ComType, EntityIndex} from '../lib/Const'
  4. import {ISkillConfig} from '../../config/SkillConfig'
  5. @ECSComponent(ComType.ComSkillAbel)
  6. export class ComSkillAbel {
  7. dirty: boolean //处于技能动作的entity
  8. skillDirty: boolean //技能放完了
  9. startDirty: boolean //技能动作开始
  10. castSkillTime: number //施放技能时间
  11. // 技能施放对象
  12. public roles: EntityIndex[] = []
  13. // 技能施放配置
  14. public skillConfig: ISkillConfig
  15. countDown: number
  16. //在顶盾技能状态中
  17. isInShield: boolean
  18. //区域技能子弹坐标
  19. skillBulletPos: cc.Vec2
  20. //多段子弹时间
  21. skillBulletTime: number
  22. //多段子弹创建数量
  23. skillBulletNum: number
  24. //群体技能施放位置
  25. skillPos: cc.Vec2
  26. //特效ID
  27. ani: EntityIndex
  28. //技能子弹ID
  29. bullets: EntityIndex[]
  30. }