mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 00:44:49 +01:00
29 lines
834 B
C#
29 lines
834 B
C#
namespace MoleMole.Config
|
|
{
|
|
[GeneratePartialHash(CombineGeneratedFile = true)]
|
|
public class ByAttackAnimEventID : ConfigAbilityPredicate, IHashable
|
|
{
|
|
public string[] AnimEventIDs = Miscs.EMPTY_STRINGS;
|
|
|
|
public bool ByAnyEventID;
|
|
|
|
public void ObjectContentHashOnto(ref int lastHash)
|
|
{
|
|
if (AnimEventIDs != null)
|
|
{
|
|
string[] animEventIDs = AnimEventIDs;
|
|
foreach (string value in animEventIDs)
|
|
{
|
|
HashUtils.ContentHashOnto(value, ref lastHash);
|
|
}
|
|
}
|
|
HashUtils.ContentHashOnto(ByAnyEventID, ref lastHash);
|
|
}
|
|
|
|
public override bool Call(ActorAbilityPlugin abilityPlugin, ActorAbility instancedAbility, ActorModifier instancedModifier, BaseAbilityActor target, BaseEvent evt)
|
|
{
|
|
return abilityPlugin.ByAttackAnimEventIDHandler(this, instancedAbility, instancedModifier, target, evt);
|
|
}
|
|
}
|
|
}
|