コード例 #1
0
        private static SavedTargets GetCurrentTargets()
        {
            SavedTargets currentTargets = new SavedTargets();

            currentTargets.TargetedCreatures = GetTargets().Select(x => x.taleSpireId).ToList();
            return(currentTargets);
        }
コード例 #2
0
 private static void LoadTargets(SavedTargets targets)
 {
     TaleSpireClient.CleanUpTargets();
     TaleSpireClient.RemoveTargetingUI();
     TargetCreaturesByTaleSpireId(targets);
     CreatureManager.UpdateInGameStats();
     foreach (string taleSpireId in targets.TargetedCreatures)
     {
         TaleSpireClient.SetTargeted(taleSpireId, true);
     }
 }
コード例 #3
0
 static void TargetCreaturesByTaleSpireId(SavedTargets savedTargets)
 {
     TargetCreaturesByTaleSpireId(savedTargets.TargetedCreatures);
 }