public static Field GetField(string Name) { return(AllFields.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 Field GetField(ushort ID) { return(AllFields.Find(x => x.ID == ID)); }