mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2026-06-18 19:35:58 +00:00
30 lines
565 B
C#
30 lines
565 B
C#
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;
|
|
|
|
}
|
|
}
|
|
}
|