12345678910111213141516171819 |
- /** @format */
- import {ComType, EntityIndex} from '../lib/Const'
- import {ECSComponent} from '../lib/ECSComponent'
- @ECSComponent(ComType.ComAttackable)
- export class ComAttackable {
- public countDown: number // 攻击剩余时间
- public dirty: boolean //处于攻击动作的entity
- public hurtFrame: number // 攻击
- public hurtFrameCompleted: boolean // 攻击完成
- public isMelee: boolean // 是否是近战
- public curAttack: EntityIndex //当前击打对象
- //近战包围数组
- public beAttacks: EntityIndex[] = [] //被击打数组
- }
|