1234567891011121314151617181920212223 |
- /** @format */
- import {ComType, EntityIndex} from '../lib/Const'
- import {ECSComponent} from '../lib/ECSComponent'
- import {EventGraphicsDraw} from '../core/NodeEvent'
- import {cObject} from '../../collision/Object'
- @ECSComponent(ComType.ComFindEnemy)
- export class ComFindEnemy {
- public enemy: EntityIndex
- public debugInfo: EventGraphicsDraw
- //近战锁定碰撞体
- public cObject: cObject
- //近战横向锁定碰撞体
- public cObjectMeleeX: cObject
- //攻击范围碰撞体
- public attackCObject: cObject
- //即将被近战打的敌军
- willBeAttackMelee: EntityIndex
- //即将击打的敌军
- willAttackMelee: EntityIndex
- }
|