PlaySoundAction

This defines an action helpful to play a defined sound on a triggered action.

Hierarchy

Index

Constructors

constructor

Find examples in Playground
  • Instantiate the action

    Parameters

    • triggerOptions: any

      defines the trigger options

    • sound: Sound

      defines the sound to play

    • Optional condition: Condition

      defines the trigger related conditions

    Returns PlaySoundAction

Properties

onBeforeExecuteObservable

Find examples in Playground
onBeforeExecuteObservable: Observable<Action>

An event triggered prior to action being executed.

trigger

Find examples in Playground
trigger: number

Trigger for the action

triggerOptions

Find examples in Playground
triggerOptions: any

the trigger, with or without parameters, for the action

Methods

execute

Find examples in Playground
  • execute(): void
  • Execute the action and play the sound.

    Returns void

getTriggerParameter

Find examples in Playground
  • getTriggerParameter(): any

serialize

Find examples in Playground
  • serialize(parent: any): any
  • Serializes the actions and its related information.

    Parameters

    • parent: any

      defines the object to serialize in

    Returns any

    the serialized object

skipToNextActiveAction

Find examples in Playground
  • skipToNextActiveAction(): void

then

Find examples in Playground

Generated using TypeDoc