1
0
mirror of synced 2024-11-30 14:14:29 +01:00
TaikoSoundEditor/Data/WordList.cs
2023-07-28 22:28:05 +03:00

20 lines
627 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace TaikoSoundEditor.Data
{
public class WordList
{
[JsonPropertyName("items")]
public List<Word> Items { get; set; } = new List<Word>();
public Word GetBySong(string song) => Items.Find(i => i.Key == $"song_{song}");
public Word GetBySongSub(string song) => Items.Find(i => i.Key == $"song_sub_{song}");
public Word GetBySongDetail(string song) => Items.Find(i => i.Key == $"song_detail_{song}");
}
}