private static SavedTargets GetCurrentTargets() { SavedTargets currentTargets = new SavedTargets(); currentTargets.TargetedCreatures = GetTargets().Select(x => x.taleSpireId).ToList(); return(currentTargets); }
private static void LoadTargets(SavedTargets targets) { TaleSpireClient.CleanUpTargets(); TaleSpireClient.RemoveTargetingUI(); TargetCreaturesByTaleSpireId(targets); CreatureManager.UpdateInGameStats(); foreach (string taleSpireId in targets.TargetedCreatures) { TaleSpireClient.SetTargeted(taleSpireId, true); } }
static void TargetCreaturesByTaleSpireId(SavedTargets savedTargets) { TargetCreaturesByTaleSpireId(savedTargets.TargetedCreatures); }