ProjectDDD/Assets/_DDD/_Scripts/GenerateGoogleSheet/AutoCreated/Classes/CookwareDataSo.cs

23 lines
695 B
C#
Raw Normal View History

// <auto-generated> File: CookwareDataSo.cs
using System.Collections.Generic;
2025-08-26 18:06:44 +00:00
using System.Linq;
using UnityEngine;
namespace DDD
{
[CreateAssetMenu(fileName = "CookwareDataSo", menuName = "GoogleSheet/CookwareDataSo")]
2025-08-26 18:06:44 +00:00
public class CookwareDataSo : DataSo<CookwareData>
{
public bool TryGetValueByCookwareType(CookwareType cookwareType, out CookwareData cookwareData)
{
if (_datas == null)
{
cookwareData = null;
return false;
}
cookwareData = _datas.FirstOrDefault(data => data != null && data.CookwareType == cookwareType);
return cookwareData != null;
}
}
}