/// <summary>
        /// Compiles a <see cref="PlaySoundEffectTriggerAction"/> from the specified syntax node.
        /// </summary>
        private static PlaySoundEffectTriggerAction CompilePlaySfxTriggerAction(UvssPlaySfxTriggerActionSyntax node, CultureInfo culture)
        {
            var sfxAssetID =
                SourcedAssetID.Parse(node.Value.Value);

            return(new PlaySoundEffectTriggerAction(sfxAssetID));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="PlaySoundEffectTriggerAction"/> class.
 /// </summary>
 /// <param name="sfxAssetID">The asset identifier of the sound effect to play.</param>
 public PlaySoundEffectTriggerAction(SourcedAssetID sfxAssetID)
 {
     this.sfxAssetID = sfxAssetID;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlaySoundEffectTriggerAction"/> class.
 /// </summary>
 /// <param name="sfxAssetID">The asset identifier of the sound effect to play.</param>
 public PlaySoundEffectTriggerAction(SourcedAssetID sfxAssetID)
 {
     this.sfxAssetID = sfxAssetID;
 }