mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 00:44:49 +01:00
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
namespace MoleMole.Config
|
|
{
|
|
[GeneratePartialHash(CombineGeneratedFile = true)]
|
|
public class AvatarComboBeyondMixin : ConfigAbilityMixin, IHashable
|
|
{
|
|
public string[] ModifierNames;
|
|
|
|
public DynamicInt[] ComboSteps;
|
|
|
|
public void ObjectContentHashOnto(ref int lastHash)
|
|
{
|
|
if (ModifierNames != null)
|
|
{
|
|
string[] modifierNames = ModifierNames;
|
|
foreach (string value in modifierNames)
|
|
{
|
|
HashUtils.ContentHashOnto(value, ref lastHash);
|
|
}
|
|
}
|
|
if (ComboSteps != null)
|
|
{
|
|
DynamicInt[] comboSteps = ComboSteps;
|
|
foreach (DynamicInt dynamicInt in comboSteps)
|
|
{
|
|
HashUtils.ContentHashOnto(dynamicInt.isDynamic, ref lastHash);
|
|
HashUtils.ContentHashOnto(dynamicInt.fixedValue, ref lastHash);
|
|
HashUtils.ContentHashOnto(dynamicInt.dynamicKey, ref lastHash);
|
|
}
|
|
}
|
|
}
|
|
|
|
public override BaseAbilityMixin CreateInstancedMixin(ActorAbility instancedAbility, ActorModifier instancedModifier)
|
|
{
|
|
return new AbilityAvatarComboBeyondMixin(instancedAbility, instancedModifier, this);
|
|
}
|
|
}
|
|
}
|