﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;

namespace Rimworld_Animations
{
    public class PawnTest_Race : BasePawnTest
    {

        public List<ThingDef> races = new List<ThingDef>();

        public override bool PawnTest(Pawn pawn)
        {

            foreach (ThingDef race in races)
            {
                if (pawn.def == race)
                {
                    return true;
                }
            }

            return false;

        }
    }
}

1.5/Source/Animations/PawnTests/PawnTest_Race.cs