namespace Darkmatter.Core.Data.Dynamic.Services.Audio
{
    public readonly struct AudioHandle
    {
        public static readonly AudioHandle Invalid = new(0, 0);

        public readonly int Id;
        public readonly ushort Generation;
        public bool IsValid => Id > 0;

        public AudioHandle(int id, ushort generation)
        {
            Id = id;
            Generation = generation;
        }
    }
}