mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 17:04:45 +01:00
22 lines
654 B
C#
22 lines
654 B
C#
namespace MoleMole.Config
|
|
{
|
|
[GeneratePartialHash(CombineGeneratedFile = true)]
|
|
public class ByHitDirection : ConfigAbilityPredicate, IHashable
|
|
{
|
|
public float Angle;
|
|
|
|
public bool ReverseAngle;
|
|
|
|
public void ObjectContentHashOnto(ref int lastHash)
|
|
{
|
|
HashUtils.ContentHashOnto(Angle, ref lastHash);
|
|
HashUtils.ContentHashOnto(ReverseAngle, ref lastHash);
|
|
}
|
|
|
|
public override bool Call(ActorAbilityPlugin abilityPlugin, ActorAbility instancedAbility, ActorModifier instancedModifier, BaseAbilityActor target, BaseEvent evt)
|
|
{
|
|
return abilityPlugin.ByHitDirectionHandler(this, instancedAbility, instancedModifier, target, evt);
|
|
}
|
|
}
|
|
}
|