1
0
mirror of synced 2024-12-02 14:57:16 +01:00
TaikoSoundEditor/Data/MusicOrder.cs

29 lines
828 B
C#
Raw Normal View History

2023-07-17 10:20:00 +02:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace TaikoSoundEditor.Data
{
public class MusicOrder
{
[JsonPropertyName("genreNo")] public int GenreNo { get; set; } = 0;
[ReadOnly(true)]
[JsonPropertyName("id")] public string Id { get; set; } = "ABCDEF";
[ReadOnly(true)]
[JsonPropertyName("uniqueId")] public int UniqueId { get; set; } = 0;
[JsonPropertyName("closeDispType")] public int CloseDispType { get; set; } = 0;
2023-07-22 07:21:29 +02:00
[DefaultValue(Genre.Pop)]
[JsonIgnore] public Genre Genre
{
get => (Genre)GenreNo;
set => GenreNo = (int)value;
}
2023-07-17 10:20:00 +02:00
}
}