コード例 #1
0
 public override bool TryMerge(ScenPart other)
 {
     ScenPart_StartingAnimal scenPart_StartingAnimal = other as ScenPart_StartingAnimal;
     if (scenPart_StartingAnimal != null && scenPart_StartingAnimal.animalKind == this.animalKind)
     {
         this.count += scenPart_StartingAnimal.count;
         return true;
     }
     return false;
 }
コード例 #2
0
        public override bool TryMerge(ScenPart other)
        {
            ScenPart_StartingAnimal scenPart_StartingAnimal = other as ScenPart_StartingAnimal;
            bool result;

            if (scenPart_StartingAnimal != null && scenPart_StartingAnimal.animalKind == this.animalKind)
            {
                this.count += scenPart_StartingAnimal.count;
                result      = true;
            }
            else
            {
                result = false;
            }
            return(result);
        }
コード例 #3
0
 public static IEnumerable <PawnKindDef> RandomPets(RimWorld.ScenPart_StartingAnimal scenPart)
 {
     return((IEnumerable <PawnKindDef>)ReflectionCache.Instance.ScenPart_StartingAnimal_RandomPets.Invoke(scenPart, null));
 }