using RimWorld;
using RJWSexperience.Ideology.Filters;
using System.Diagnostics.CodeAnalysis;
using Verse;
namespace RJWSexperience.Ideology.HistoryEvents
{
///
/// Type to associate single HistoryEventDef with a TwoPawnFilter
///
[SuppressMessage("Minor Code Smell", "S1104:Fields should not have public accessibility", Justification = "Def loader")]
public class TwoPawnEventRule
{
public HistoryEventDef historyEventDef;
public TwoPawnFilter filter;
///
/// Check if the pair of pawns fits filter conditions
///
public bool Applies(Pawn pawn, Pawn partner) => filter?.Applies(pawn, partner) == true;
}
}