1d677cd4-187d-4b47-a24b-6757b9d1f7bc.js.map 2.43 KB
{"version":3,"sources":["assets/script/avg/model/ActionModel.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAkB,UAUjB;AAVD,WAAkB,UAAU;IACxB,qBAAqB;IACrB,sBAAsB;IACtB,sBAAsB;IACtB,uBAAuB;IACvB,+DAAkB,CAAA;IAClB,qDAAa,CAAA;IACb,qDAAa,CAAA;IACb,qBAAqB;IACrB,gDAAW,CAAA;AACf,CAAC,EAViB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAU3B;AAED,IAAkB,WAKjB;AALD,WAAkB,WAAW;IACzB,+DAAa,CAAA;IACb,2DAAW,CAAA;IACX,+CAAK,CAAA;IACL,+CAAK,CAAA;AACT,CAAC,EALiB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAK5B;AAUD,IAAkB,gBAOjB;AAPD,WAAkB,gBAAgB;IAC9B,2DAAU,CAAA;IACV,uDAAQ,CAAA;IACR,yDAAS,CAAA;IACT,+DAAY,CAAA;IACZ,2DAAU,CAAA;IACV,2DAAU,CAAA;AACd,CAAC,EAPiB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAOjC;AAED,IAAkB,WAIjB;AAJD,WAAkB,WAAW;IACzB,qDAAY,CAAA;IACZ,+CAAS,CAAA;IACT,iDAAU,CAAA;AACd,CAAC,EAJiB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAI5B","file":"","sourceRoot":"/","sourcesContent":["export const enum ActionType {\n    // TransitionIn = -2,\n    // TransitionOut = -1,\n    // TweenAnimation = 0,\n    // EffectAnimation = 1,\n    ModifyVariable = 2,\n    PlayAudio = 3,\n    EmitEvent = 4,\n    // TextAnimation = 5,\n    Custom = 10\n}\n\nexport const enum TriggerType {\n    PreviousStart,\n    PreviousEnd,\n    Click,\n    Event\n}\n\nexport interface ActionBase {\n    name: string;\n    type: ActionType;\n    trigger: TriggerType;\n    triggerEvent?: string;\n    delay: number;\n}\n\nexport const enum VariableOperator {\n    Assign = 1,\n    Plus = 2,\n    Minus = 3,\n    Multiply = 4,\n    Divide = 5,\n    Modulo = 6\n}\n\nexport const enum OperandType {\n    Variable = 1,\n    Const = 2,\n    Random = 3\n}\n\nexport interface ModifyVariableAction extends ActionBase {\n    type: ActionType.ModifyVariable;\n    target: string;\n    operator: VariableOperator;\n    oprand: { type: OperandType, value: string }\n}\n\nexport interface PlayMusicAction extends ActionBase {\n    type: ActionType.PlayAudio;\n    audioType: \"music\";\n    filePath: string;\n}\n\nexport interface PlaySoundEffectAction extends ActionBase {\n    type: ActionType.PlayAudio\n    audioType: \"effect\";\n    loopCount: number;\n    stopPreviousSound: boolean;\n    volume: number;\n    filePath: string;\n}\n\nexport type PlayAudioAction = PlayMusicAction | PlaySoundEffectAction;\n\nexport interface EmitEventAction extends ActionBase {\n    type: ActionType.EmitEvent;\n    emitEvent: string;\n    param: string;\n}\n\nexport type Action = ModifyVariableAction | PlayAudioAction | EmitEventAction;\n\nexport interface Actions {\n    actions: Action[];\n}\n"]}