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; } // ReSharper disable UnusedAutoPropertyAccessor.Global public string? EnterRoomEventHandlerId { get; set; } // ReSharper restore UnusedAutoPropertyAccessor.Global // ReSharper disable UnusedAutoPropertyAccessor.Global public string? ExitRoomEventHandlerId { get; set; } // ReSharper restore UnusedAutoPropertyAccessor.Global /// /// Whether a tag is held /// 是否持有某个标签 /// /// /// public bool HasTag(string tag) { return Tags != null && Tags.Any(t => t == tag); } }