mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 00:44:49 +01:00
19 lines
594 B
C#
19 lines
594 B
C#
namespace MoleMole.Config
|
|
{
|
|
[GeneratePartialHash(CombineGeneratedFile = true)]
|
|
public class ByTargetEntityClass : ConfigAbilityPredicate, IHashable
|
|
{
|
|
public EntityClass TargetClass;
|
|
|
|
public void ObjectContentHashOnto(ref int lastHash)
|
|
{
|
|
HashUtils.ContentHashOnto((int)TargetClass, ref lastHash);
|
|
}
|
|
|
|
public override bool Call(ActorAbilityPlugin abilityPlugin, ActorAbility instancedAbility, ActorModifier instancedModifier, BaseAbilityActor target, BaseEvent evt)
|
|
{
|
|
return abilityPlugin.ByTargetClassHandler(this, instancedAbility, instancedModifier, target, evt);
|
|
}
|
|
}
|
|
}
|