ComMovable.ts 386 B

123456789101112131415
  1. /** @format */
  2. import {ComType, EntityIndex} from '../lib/Const'
  3. import {ECSComponent} from '../lib/ECSComponent'
  4. @ECSComponent(ComType.ComMovable)
  5. export class ComMovable {
  6. public speed = 0
  7. public points: cc.Vec2[] = []
  8. public pointIdx = 0
  9. public closeTarget: EntityIndex
  10. public leftMeleeEnemiesPosDirty: number[]
  11. public rightMeleeEnemiesPosDirty: number[]
  12. }