/// <summary> /// Builds a gathering item with the specified details. /// </summary> private static GatheringItem Build( string name, string zone, float xAxis, float yAxis, uint?start, uint?end, bool amAndPm, Enums.NodeType nodeType, Enums.Aethersand sandType, Enums.ClusterType clusterType, Enums.Gatherer gatherer, Enums.ScripType scripType) => new GatheringItem { Name = name, Zone = zone, Location = new Location(xAxis, yAxis), NodeAvailability = start == null && end == null ? new NodeAvailability() : new NodeAvailability(start.Value, end.Value, amAndPm), NodeType = nodeType, ReducesTo = sandType, ClusterType = clusterType, Gatherer = gatherer, ScripType = scripType };
/// <summary> /// Gets a scrip rotation based on the type of scrip selected. /// </summary> public static List <GatheringItem> GetScripRotation(Enums.ScripType scripType) => GatheringRepository.GatheringItems .Where(x => x.ScripType == scripType) .OrderBy(x => x.NodeAvailability.StartTime) .ToList();