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; } /// /// Room injector data /// 房间注入器数据 /// public string? RoomInjectionProcessorData { get; set; } public string? EnterRoomEventHandlerId { get; set; } public string? ExitRoomEventHandlerId { get; set; } /// /// Whether a tag is held /// 是否持有某个标签 /// /// /// public bool HasTag(string tag) { return Tags != null && Tags.Any(t => t == tag); } }