2025-08-28 09:11:13 +00:00
|
|
|
// <auto-generated> File: CookwareDataAsset.cs
|
2025-08-28 10:06:38 +00:00
|
|
|
|
|
|
|
using System;
|
2025-08-28 09:11:13 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace DDD
|
|
|
|
{
|
|
|
|
[CreateAssetMenu(fileName = "InteractionDataAsset", menuName = "GoogleSheet/InteractionDataAsset")]
|
|
|
|
public class InteractionDataAsset : DataAsset<InteractionDataEntry>
|
|
|
|
{
|
2025-08-28 10:06:38 +00:00
|
|
|
public bool TryGetValueByTypeName(string interactionTypeName, string subsystemTypeName, out InteractionDataEntry interactionDataEntry)
|
2025-08-28 09:11:13 +00:00
|
|
|
{
|
2025-08-28 10:06:38 +00:00
|
|
|
var targetString = $"{interactionTypeName}.{subsystemTypeName}";
|
|
|
|
interactionDataEntry = _datas.FirstOrDefault(entry =>
|
|
|
|
string.Equals(entry.UnparsedInteractionType, targetString, StringComparison.Ordinal));
|
|
|
|
|
|
|
|
return interactionDataEntry != null;
|
2025-08-28 09:11:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|