Пример #1
0
 public static PlaylistLevelPackSO CreatePackFromPlaylist(Playlist playlist)
 {
     return(new PlaylistLevelPackSO($"Playlist_{playlist.playlistTitle}_{playlist.playlistAuthor}", playlist.playlistTitle, playlist.icon, new SongCoreCustomLevelCollection(playlist.songs.Where(x => x.level != null).Select(x => x.level).ToArray())));
 }