ComFindEnemy.ts 667 B

1234567891011121314151617181920212223
  1. /** @format */
  2. import {ComType, EntityIndex} from '../lib/Const'
  3. import {ECSComponent} from '../lib/ECSComponent'
  4. import {EventGraphicsDraw} from '../core/NodeEvent'
  5. import {cObject} from '../../collision/Object'
  6. @ECSComponent(ComType.ComFindEnemy)
  7. export class ComFindEnemy {
  8. public enemy: EntityIndex
  9. public debugInfo: EventGraphicsDraw
  10. //近战锁定碰撞体
  11. public cObject: cObject
  12. //近战横向锁定碰撞体
  13. public cObjectMeleeX: cObject
  14. //攻击范围碰撞体
  15. public attackCObject: cObject
  16. //即将被近战打的敌军
  17. willBeAttackMelee: EntityIndex
  18. //即将击打的敌军
  19. willAttackMelee: EntityIndex
  20. }