示例#1
0
 public Challenge_Zoo(ChallengeDef def) : base(def)
 {
     if (allZooableAnimals.Count() == 0)
     {
         int cnt = 0;
         foreach (PawnKindDef pkdef in DefDatabase <PawnKindDef> .AllDefs.Where(x => x.RaceProps.Animal))
         {
             allZooableAnimals.Add(pkdef);
             cnt++;
         }
         Log.Message("Total animal kind count: " + allZooableAnimals.Count());
     }
 }
示例#2
0
 private static void ClampInCoordinateLimits(ChallengeDef rp)
 {
     if (rp.x < 0f)
     {
         rp.x = 0f;
     }
     if (rp.y < 0f)
     {
         rp.y = 0f;
     }
     if (rp.y > 6.5f)
     {
         rp.y = 6.5f;
     }
 }
示例#3
0
 public Challenge_MineOutResources(ChallengeDef def) : base(def)
 {
 }
示例#4
0
 public Challenge_KillAnimalsAll(ChallengeDef def) : base(def)
 {
 }
 public Challenge_SurviveRaids(ChallengeDef def) : base(def)
 {
 }
示例#6
0
 public ChallengeWorker(ChallengeDef def)
 {
     this.def = def;
 }
示例#7
0
 public ChallengeWorkerNone(ChallengeDef def) : base(def)
 {
 }
示例#8
0
 public Challenge_NColonists(ChallengeDef def) : base(def)
 {
 }
示例#9
0
 public Challenge_MineOutAll(ChallengeDef def) : base(def)
 {
 }
示例#10
0
 public Challenge_SkillLevel(ChallengeDef def) : base(def)
 {
 }
示例#11
0
 public Challenge_Masterpiece(ChallengeDef def) : base(def)
 {
 }