using System;
using System.Collections.Generic;
using Terraria;
namespace SoulHarvest.Common;
/// <summary>
/// Stable node metadata used by persistence, services and UI adapters. A node is
/// either a branch skill (<see cref="Form"/> plus <see cref="SkillIndex"/>) or a
/// character-wide node (<see cref="CommonNode"/>).
/// </summary>
public sealed record ReaperNodeDefinition(
ReaperNodeId Id,
ReaperFormId Form,
int SkillIndex,
ReaperCommonNode? CommonNode,
ReaperStage RequiredStage)
{
public bool IsCommon => CommonNode.HasValue;
}
using System;
using System.Collections.Generic;
using Terraria;
namespace SoulHarvest.Common;
/// <summary>
/// Stable node metadata used by persistence, services and UI adapters. A node is
/// either a branch skill (<see cref="Form"/> plus <see cref="SkillIndex"/>) or a
/// character-wide node (<see cref="CommonNode"/>).
/// </summary>
public sealed record ReaperNodeDefinition(
ReaperNodeId Id,
ReaperFormId Form,
int SkillIndex,
ReaperCommonNode? CommonNode,
ReaperStage RequiredStage)
{
public bool IsCommon => CommonNode.HasValue;
}