using System.Linq;
namespace ColdMint.scripts.levelGraphEditor;
public class RoomNodeData
{
public string? Id { get; set; }
public string? Title { get; set; }
public string? Description { get; set; }
public string[]? RoomTemplateSet { get; set; }
public string[]? Tags { get; set; }
///
/// Whether a tag is held
/// 是否持有某个标签
///
///
///
public bool HasTag(string tag)
{
return Tags != null && Tags.Any(t => t == tag);
}
}