import { HitObject } from '../physics/hit-object'; import { Ball } from '../vpt/ball/ball'; import { Event } from './event'; import { IPlayable } from './iplayable'; export declare class EventProxy { /** * while playing and the ball hits the mesh the hit threshold is updated here */ currentHitThreshold: number; singleEvents: boolean; readonly eventCollection: EventProxy[]; readonly eventCollectionItemPos: number[]; private readonly playable; /** * Logic executed on collision. * * This replaces the dreaded object casts in VP where the hit logic must * be aware of the underlying object. */ onCollision?: (obj: HitObject, ball: Ball, dot: number) => void; /** * If implemented and false is returned, the hit test is skipped. */ abortHitTest?: () => boolean; constructor(playable: IPlayable); fireVoidEvent(e: Event): void; fireVoidEventParm(e: Event, ...params: any[]): void; fireGroupEvent(e: Event): void; private fireDispID; }