2025-03-07 23:32:42 -05:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
2025-04-18 15:54:50 -04:00
|
|
|
using UnityEngine;
|
|
|
|
|
using Game;
|
|
|
|
|
using Music;
|
|
|
|
|
using Player;
|
2025-03-07 23:32:42 -05:00
|
|
|
using UnityEngine.Audio;
|
2025-04-18 15:54:50 -04:00
|
|
|
|
2025-04-16 19:57:54 -04:00
|
|
|
namespace Music
|
|
|
|
|
{
|
2025-04-18 15:54:50 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a playlist of music tracks.
|
|
|
|
|
/// Contains information about the tracks, their associated scenes, and playback settings.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[System.Serializable]
|
|
|
|
|
public class Playlist
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The name of the playlist.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string trackName;
|
2025-03-07 23:32:42 -05:00
|
|
|
|
2025-04-18 15:54:50 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// A list of scenes where this playlist is used.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<string> trackScenes;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A list of audio clips included in this playlist.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<AudioClip> songs;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The time interval (in seconds) between shuffling tracks in the playlist.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float shuffleTime;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The volume level for the playlist.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float volume;
|
|
|
|
|
}
|
2025-04-16 19:57:54 -04:00
|
|
|
}
|