public override void Visit(MusicStmt musicStmt, object[] args)
        {
            if (musicStmt.Source != null && !StrVarRefProcessor.IsVariableIncluded(musicStmt.Source))
            {
                CheckContent(musicStmt.Source, ContentType.Music, musicStmt.Location);
            }

            if (musicStmt.Asset != null)
            {
                CheckAsset(musicStmt.Asset, typeof(MusicAsset), musicStmt.Location);
            }

            base.Visit(musicStmt, args);
        }
 public virtual void Visit(MusicStmt musicStmt, object[] args)
 {
 }
Esempio n. 3
0
 public virtual void Visit(MusicStmt musicStmt, object[] args)
 {
 }
 public void Visit(MusicStmt musicStmt, object[] args)
 {
     kernel.Behave(kernel.FuncCaller.Music(
         varRefProcessor.Replace(musicStmt.Source),
         musicStmt.Asset,
         musicStmt.Loop,
         musicStmt.FadeIn));
 }