Skip to content

Instantly share code, notes, and snippets.

View confessore's full-sized avatar
🧙‍♂️
#netcsharp:matrix.org

steven confessore confessore

🧙‍♂️
#netcsharp:matrix.org
View GitHub Profile
// Copyright (c) Steven Confessore - Balanced Solutions Software. All Rights Reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
using System;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading.Tasks;
using backend.Contexts;
using backend.Models.Abstractions;
using backend.Models.Enums;
using backend.Models.Observations;
public WoWGameObject ClosestNode()
{
List<WoWGameObject> herbNodes = ObjectManager.GameObjects
.Where(x => x.GatherInfo.Type == Enums.GatherType.Herbalism).ToList();
List<WoWGameObject> mineNodes = ObjectManager.GameObjects
.Where(x => x.GatherInfo.Type == Enums.GatherType.Mining).ToList();
List<string> herbCheckedBoxes = CMD.herbCheckedBoxes;
List<string> mineCheckedBoxes = CMD.mineCheckedBoxes;