Matches() публичный Метод

public Matches ( StatChange, changes, string reactableTypes ) : bool
changes StatChange,
reactableTypes string
Результат bool
Пример #1
0
 protected virtual bool ReactionTypesMatch(StatEffectRecord se)
 {
     string[] reactionTypes =
         se.effect.target == StatEffectTarget.Applied ?
         reactionTypesApplied :
         reactionTypesApplier;
     StatChange[] reactionStatChanges =
         se.effect.target == StatEffectTarget.Applied ?
         reactionStatChangesApplied :
         reactionStatChangesApplier;
     return(se.Matches(reactionStatChanges, reactionTypes));
 }
Пример #2
0
 protected virtual bool ReactionTypesMatch(StatEffectRecord se)
 {
     string[] reactionTypes =
         se.effect.target == StatEffectTarget.Applied ?
             reactionTypesApplied :
             reactionTypesApplier;
     StatChange[] reactionStatChanges =
         se.effect.target == StatEffectTarget.Applied ?
             reactionStatChangesApplied :
             reactionStatChangesApplier;
     return se.Matches(reactionStatChanges, reactionTypes);
 }