Files
BH3/Assets/Scripts/Assembly-CSharp/MoleMole/Config/OnStartSwitchModifierMixin.cs
2025-08-13 09:26:42 +08:00

49 lines
1.5 KiB
C#

namespace MoleMole.Config
{
[GeneratePartialHash(CombineGeneratedFile = true)]
public class OnStartSwitchModifierMixin : ConfigAbilityMixin, IHashable
{
public string OnModifierName;
public string OffModifierName;
public bool UseLowSPForceOff;
public bool UseLowHPForceOff = true;
public bool AlwaysSwitchOn;
public float MaxDuration = -1f;
public string SkillButtonID;
public string OnModifierReplaceIconPath;
public int OnModifierReplaceCostSP;
public bool OnModifierSwitchToInstantTrigger;
public string OnModifierInstantTriggerEvent;
public void ObjectContentHashOnto(ref int lastHash)
{
HashUtils.ContentHashOnto(OnModifierName, ref lastHash);
HashUtils.ContentHashOnto(OffModifierName, ref lastHash);
HashUtils.ContentHashOnto(UseLowSPForceOff, ref lastHash);
HashUtils.ContentHashOnto(UseLowHPForceOff, ref lastHash);
HashUtils.ContentHashOnto(AlwaysSwitchOn, ref lastHash);
HashUtils.ContentHashOnto(MaxDuration, ref lastHash);
HashUtils.ContentHashOnto(SkillButtonID, ref lastHash);
HashUtils.ContentHashOnto(OnModifierReplaceIconPath, ref lastHash);
HashUtils.ContentHashOnto(OnModifierReplaceCostSP, ref lastHash);
HashUtils.ContentHashOnto(OnModifierSwitchToInstantTrigger, ref lastHash);
HashUtils.ContentHashOnto(OnModifierInstantTriggerEvent, ref lastHash);
}
public override BaseAbilityMixin CreateInstancedMixin(ActorAbility instancedAbility, ActorModifier instancedModifier)
{
return new AbilityStartSwitchModifierMixin(instancedAbility, instancedModifier, this);
}
}
}