FluffyManager.Utilities_Livestock.GetWild C# (CSharp) Method

GetWild() public static method

public static GetWild ( this pawnKind, Map map, AgeAndSex ageSex ) : List
pawnKind this
map Map
ageSex AgeAndSex
return List
        public static List<Pawn> GetWild( this PawnKindDef pawnKind, Map map, AgeAndSex ageSex )
        {
            #if DEBUG_LIFESTOCK_COUNTS
            foreach (Pawn p in GetAll( ageSex )) Log.Message(p.Faction?.GetCallLabel() ?? "NULL" );
            List<Pawn> wild = GetAll( ageSex ).Where( p => p.Faction == null ).ToList();
            Log.Message( "Wildcount " + ageSex + ": " + wild.Count );
            return wild;
            #else
            return pawnKind.GetAll( map, ageSex ).Where( p => p.Faction == null ).ToList();
            #endif
        }

Same methods

Utilities_Livestock::GetWild ( this pawnKind, Map map ) : List