mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 00:44:49 +01:00
28 lines
780 B
C#
28 lines
780 B
C#
namespace MoleMole.Config
|
|
{
|
|
[GeneratePartialHash(CombineGeneratedFile = true)]
|
|
public class AnimatorAttachSwitchLayerMixin : ConfigAbilityMixin, IHashable
|
|
{
|
|
public int FromLayer;
|
|
|
|
public int ToLayer;
|
|
|
|
public float Duration = 0.3f;
|
|
|
|
public bool NoEndResume;
|
|
|
|
public void ObjectContentHashOnto(ref int lastHash)
|
|
{
|
|
HashUtils.ContentHashOnto(FromLayer, ref lastHash);
|
|
HashUtils.ContentHashOnto(ToLayer, ref lastHash);
|
|
HashUtils.ContentHashOnto(Duration, ref lastHash);
|
|
HashUtils.ContentHashOnto(NoEndResume, ref lastHash);
|
|
}
|
|
|
|
public override BaseAbilityMixin CreateInstancedMixin(ActorAbility instancedAbility, ActorModifier instancedModifier)
|
|
{
|
|
return new AbilityAnimatorAttachSwitchLayerMixin(instancedAbility, instancedModifier, this);
|
|
}
|
|
}
|
|
}
|