{"version":3,"file":"Event.mjs","sources":["../../src/core/Event.ts"],"sourcesContent":["import type { EventData } from './EventData';\nimport type { IEvent } from '@pixi-spine/base';\n\n/** Stores the current pose values for an {@link Event}.\n *\n * See Timeline {@link Timeline#apply()},\n * AnimationStateListener {@link AnimationStateListener#event()}, and\n * [Events](http://esotericsoftware.com/spine-events) in the Spine User Guide.\n * @public\n * */\nexport class Event implements IEvent {\n    data: EventData;\n    intValue = 0;\n    floatValue = 0;\n    stringValue: string | null = null;\n    time = 0;\n    volume = 0;\n    balance = 0;\n\n    constructor(time: number, data: EventData) {\n        if (!data) throw new Error('data cannot be null.');\n        this.time = time;\n        this.data = data;\n    }\n}\n"],"names":[],"mappings":"AAUO,MAAM,KAAwB,CAAA;AAAA,EASjC,WAAA,CAAY,MAAc,IAAiB,EAAA;AAP3C,IAAW,IAAA,CAAA,QAAA,GAAA,CAAA,CAAA;AACX,IAAa,IAAA,CAAA,UAAA,GAAA,CAAA,CAAA;AACb,IAA6B,IAAA,CAAA,WAAA,GAAA,IAAA,CAAA;AAC7B,IAAO,IAAA,CAAA,IAAA,GAAA,CAAA,CAAA;AACP,IAAS,IAAA,CAAA,MAAA,GAAA,CAAA,CAAA;AACT,IAAU,IAAA,CAAA,OAAA,GAAA,CAAA,CAAA;AAGN,IAAA,IAAI,CAAC,IAAA;AAAM,MAAM,MAAA,IAAI,MAAM,sBAAsB,CAAA,CAAA;AACjD,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA,CAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA,CAAA;AAAA,GAChB;AACJ;;;;"}