Systems/MusicTrack.cs

A simple data container representing a music track, holding a SoundEvent reference and display metadata Title and Artist. It is a plain struct with three properties, each marked with [Property] for the engine's serialization/inspection.

namespace Machines.Systems;

/// <summary>A music track: the sound plus display metadata.</summary>
public struct MusicTrack
{
	[Property] public SoundEvent Sound { get; set; }
	[Property] public string Title { get; set; }
	[Property] public string Artist { get; set; }
}