Files
ArachnaeSwarm/Source/ArachnaeSwarm/Hediffs/ARA_ConfigurableMutant/HediffComp_NecroticTransformation.cs
2025-09-17 12:54:07 +08:00

31 lines
997 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Verse;
using RimWorld;
namespace ArachnaeSwarm
{
/// <summary>
/// XML配置类用于在HediffDef的comp中指定转化后的MutantDef
/// </summary>
public class HediffCompProperties_NecroticTransformation : HediffCompProperties
{
// 在XML中需要指定的MutantDef的defName
public MutantDef mutantDef;
// 在XML中配置触发转变所需的严重性阈值
public float triggerSeverity = 0.7f;
public HediffCompProperties_NecroticTransformation()
{
compClass = typeof(HediffComp_NecroticTransformation);
}
}
/// <summary>
/// HediffComp用于在运行时存储和提供由XML定义的MutantDef
/// </summary>
public class HediffComp_NecroticTransformation : HediffComp
{
// 属性用于方便地从Comp中获取配置
public HediffCompProperties_NecroticTransformation Props => (HediffCompProperties_NecroticTransformation)props;
}
}