1
0
mirror of synced 2024-11-27 21:10:48 +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}");
}
}