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; }
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); }
public static IEnumerable <PawnKindDef> RandomPets(RimWorld.ScenPart_StartingAnimal scenPart) { return((IEnumerable <PawnKindDef>)ReflectionCache.Instance.ScenPart_StartingAnimal_RandomPets.Invoke(scenPart, null)); }