コード例 #1
0
ファイル: SkipContent.cs プロジェクト: advdotnet/STACK-Engine
 public SkipContent SetInterfaceFromServiceProvider(IServiceProvider value)
 {
     if (null != value)
     {
         Interface = value.GetService(typeof(ISkipContent)) as ISkipContent;
     }
     PropagatePossibleStates(); return(this);
 }
コード例 #2
0
        public void Initialize(bool restore)
        {
            SkipContent = ((World)Parent).Get <SkipContent>();

            if (null != CurrentSongName)
            {
                LoadSong(CurrentSongName);
                if (MediaState.Playing == _lastMediaState)
                {
                    PlaySong(CurrentSongName);
                    RepeatSong = IsRepeating;

                    return;
                }
            }

            if (restore)
            {
                StopSong();
            }
        }
コード例 #3
0
ファイル: SkipContent.cs プロジェクト: advdotnet/STACK-Engine
 public SkipContent SetInterface(ISkipContent value)
 {
     Interface = value; PropagatePossibleStates(); return(this);
 }