コード例 #1
0
ファイル: SongAction.cs プロジェクト: stephen-karpinskyj/flip
    public void Execute(SongPlayer player)
    {
        switch (this.type)
        {
        case SongActionType.StartTrack: player.StartTrack(this.track, true); break;

        case SongActionType.StopTrack: player.StartTrack(this.track, false); break;

        case SongActionType.FocusTrack: player.FocusTrack(this.track); break;

        case SongActionType.EndSection: player.EndSection(); break;

        default: throw new NotImplementedException();
        }
    }