1
0
mirror of synced 2025-02-20 04:31:01 +01:00
TaikoSoundEditor/Data/WordList.cs

20 lines
627 B
C#
Raw Normal View History

2023-07-17 11:20:00 +03:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace TaikoSoundEditor.Data
{
2023-07-28 22:28:05 +03:00
public class WordList
2023-07-17 11:20:00 +03:00
{
[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}");
}
}