mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 00:44:49 +01:00
27 lines
838 B
C#
27 lines
838 B
C#
namespace MoleMole.Config
|
|
{
|
|
[GeneratePartialHash(CombineGeneratedFile = true)]
|
|
public class BrokenEnemyDraggedByHitBoxMixin : ConfigAbilityMixin, IHashable
|
|
{
|
|
public string ColliderEntryName;
|
|
|
|
public DynamicFloat PullVelocity;
|
|
|
|
public void ObjectContentHashOnto(ref int lastHash)
|
|
{
|
|
HashUtils.ContentHashOnto(ColliderEntryName, ref lastHash);
|
|
if (PullVelocity != null)
|
|
{
|
|
HashUtils.ContentHashOnto(PullVelocity.isDynamic, ref lastHash);
|
|
HashUtils.ContentHashOnto(PullVelocity.fixedValue, ref lastHash);
|
|
HashUtils.ContentHashOnto(PullVelocity.dynamicKey, ref lastHash);
|
|
}
|
|
}
|
|
|
|
public override BaseAbilityMixin CreateInstancedMixin(ActorAbility instancedAbility, ActorModifier instancedModifier)
|
|
{
|
|
return new AbilityBrokenEnemyDraggedByHitBoxMixin(instancedAbility, instancedModifier, this);
|
|
}
|
|
}
|
|
}
|