using System.Collections.Generic; using Sirenix.OdinInspector; using UnityEngine; namespace Continentis.MainGame { [CreateAssetMenu(menuName = "Continentis/KeywordsCollection", fileName = "KeywordsCollection")] public class KeywordCollection : SerializedScriptableObject { public Dictionary keywords = new Dictionary(); public Dictionary interpretedKeywords = new Dictionary(); public string GetKeywordDescription(string keyword) { if (keywords.TryGetValue(keyword, out var description)) { return description; } if (interpretedKeywords.TryGetValue(keyword, out var interpretedKeyword)) { return interpretedKeyword.description; } Debug.LogWarning($"Keyword '{keyword}' not found in the collection."); return string.Empty; } } public struct InterpretedKeyword { public string name; public string description; public InterpretedKeyword(string name, string description) { this.name = name; this.description = description; } } }