mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Start on Jobdriver, WIP
This commit is contained in:
parent
05770a834e
commit
1e667e2730
7 changed files with 190 additions and 2 deletions
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class HediffsCompProperties_ProcessCumbucketMTB : HediffCompProperties
|
||||
{
|
||||
public HediffsCompProperties_ProcessCumbucketMTB()
|
||||
{
|
||||
this.compClass = typeof(HediffsCompProperties_ProcessCumbucketMTB);
|
||||
}
|
||||
|
||||
public override IEnumerable<string> ConfigErrors(HediffDef parentDef)
|
||||
{
|
||||
foreach (string text in base.ConfigErrors(parentDef))
|
||||
{
|
||||
yield return text;
|
||||
}
|
||||
if (this.mtbDaysPerStage == null)
|
||||
{
|
||||
yield return "mtbDaysPerStage is not defined";
|
||||
}
|
||||
else if (this.mtbDaysPerStage.Count != parentDef.stages.Count)
|
||||
{
|
||||
yield return "mtbDaysPerStage count doesn't match Hediffs number of stages";
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
|
||||
public List<float> mtbDaysPerStage;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue