2024-05-18 15:35:12 +00:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace ColdMint.scripts.levelGraphEditor;
|
2024-05-12 10:00:47 +00:00
|
|
|
|
|
2024-05-16 14:46:03 +00:00
|
|
|
|
public class RoomNodeData
|
2024-05-12 10:00:47 +00:00
|
|
|
|
{
|
2024-05-15 14:08:52 +00:00
|
|
|
|
public string? Id { get; set; }
|
|
|
|
|
public string? Title { get; set; }
|
|
|
|
|
public string? Description { get; set; }
|
2024-05-17 14:08:19 +00:00
|
|
|
|
|
|
|
|
|
public string[]? RoomTemplateSet { get; set; }
|
2024-05-18 15:35:12 +00:00
|
|
|
|
|
|
|
|
|
public string[]? Tags { get; set; }
|
|
|
|
|
|
2024-05-30 14:49:54 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Room injector data</para>
|
|
|
|
|
/// <para>房间注入器数据</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? RoomInjectionProcessorData { get; set; }
|
2024-05-18 15:35:12 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Whether a tag is held</para>
|
|
|
|
|
/// <para>是否持有某个标签</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="tag"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public bool HasTag(string tag)
|
|
|
|
|
{
|
|
|
|
|
return Tags != null && Tags.Any(t => t == tag);
|
|
|
|
|
}
|
2024-05-12 10:00:47 +00:00
|
|
|
|
}
|