Added more pawn tests, job def, prisoner/slave checks
This commit is contained in:
parent
c35cd55d25
commit
2a6a9366d3
Binary file not shown.
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace Rimworld_Animations
|
||||
{
|
||||
public class PawnTest_JobDef : BasePawnTest
|
||||
{
|
||||
public JobDef jobDef;
|
||||
|
||||
public override bool PawnTest(Pawn pawn)
|
||||
{
|
||||
if (pawn.CurJobDef == jobDef)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace Rimworld_Animations
|
||||
{
|
||||
class PawnTest_PrisonerOfColony : BasePawnTest
|
||||
{
|
||||
public override bool PawnTest(Pawn pawn)
|
||||
{
|
||||
return pawn.IsPrisonerOfColony;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace Rimworld_Animations
|
||||
{
|
||||
class PawnTest_SlaveOfColony : BasePawnTest
|
||||
{
|
||||
public override bool PawnTest(Pawn pawn)
|
||||
{
|
||||
return pawn.IsSlaveOfColony;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -85,7 +85,10 @@
|
|||
<Compile Include="1.5\Source\Animations\AnimationProps\AnimationPropDef.cs" />
|
||||
<Compile Include="1.5\Source\Animations\AnimationWorkers\AnimationWorker_KeyframesExtended.cs" />
|
||||
<Compile Include="1.5\Source\Animations\PawnTests\BasePawnTest.cs" />
|
||||
<Compile Include="1.5\Source\Animations\PawnTests\PawnTest_PrisonerOfColony.cs" />
|
||||
<Compile Include="1.5\Source\Animations\PawnTests\PawnTest_SlaveOfColony.cs" />
|
||||
<Compile Include="1.5\Source\Animations\PawnTests\PawnTest_Always.cs" />
|
||||
<Compile Include="1.5\Source\Animations\PawnTests\PawnTest_JobDef.cs" />
|
||||
<Compile Include="1.5\Source\Animations\PawnTests\PawnTest_Multi.cs" />
|
||||
<Compile Include="1.5\Source\Animations\PawnTests\PawnTest_Race.cs" />
|
||||
<Compile Include="1.5\Source\Animations\PawnTests\PawnTest_RJWCanBeFucked.cs" />
|
||||
|
|
Loading…
Reference in New Issue