namespace EvilEngine.Formats.Records; public static class AlbumRecords { public const string Set = "records/albums"; } public sealed record AlbumTrack(ContentId Music) { public string? Title { get; init; } public int? Number { get; init; } } public sealed record AlbumRecord(ContentId Id, string Title, string Game) { public ContentId? Cover { get; init; } public string? Store { get; init; } public IReadOnlyList Tracks { get; init; } = []; public bool Equals(AlbumRecord? other) { return other is not null && Id == other.Id && Title == other.Title && Game == other.Game && Cover == other.Cover && Store == other.Store && Tracks.SequenceEqual(other.Tracks); } public override int GetHashCode() { return HashCode.Combine(Id, Title, Game, Cover, Tracks.Count); } }