public static Pasture GetPasture(string Name) { return(AllPastures.Find(x => x.Name == Name)); }
public static Zone GetZone(ushort ID) { return((new List <Zone> { AllMines.Find(x => x.ID == ID), AllPastures.Find(x => x.ID == ID), AllStorages.Find(x => x.ID == ID), AllFields.Find(x => x.ID == ID) }).Find(x => x != null)); }
public static Pasture GetPasture(ushort ID) { return(AllPastures.Find(x => x.ID == ID)); }