Traveller/scripts/levelGraphEditor/RoomNodeData.cs
Cold-Mint f07b073dc6
Refactoring map generator, updating readme.
重构地图生成器,更新readme。
2024-05-18 23:35:12 +08:00

26 lines
605 B
C#

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; }
/// <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);
}
}