mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	Added more pawn tests, job def, prisoner/slave checks
This commit is contained in:
		
							parent
							
								
									c35cd55d25
								
							
						
					
					
						commit
						2a6a9366d3
					
				
					 5 changed files with 60 additions and 0 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										23
									
								
								1.5/Source/Animations/PawnTests/PawnTest_JobDef.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								1.5/Source/Animations/PawnTests/PawnTest_JobDef.cs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -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;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										17
									
								
								1.5/Source/Animations/PawnTests/PawnTest_PrisonerOfColony.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								1.5/Source/Animations/PawnTests/PawnTest_PrisonerOfColony.cs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -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;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										17
									
								
								1.5/Source/Animations/PawnTests/PawnTest_SlaveOfColony.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								1.5/Source/Animations/PawnTests/PawnTest_SlaveOfColony.cs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue