コード例 #1
0
ファイル: PVEBehaviorCombat.cs プロジェクト: civicacid/myevo
 public override void BotStarted()
 {
     if (File.Exists(OurDirectory + "\\Behaviors\\" + PveBehaviorSettings.LoadedBeharvior + ".xml"))
     {
         Behavior = new BehaviorController();
         Behavior.Load(OurDirectory + "\\Behaviors\\" + PveBehaviorSettings.LoadedBeharvior + ".xml");
     }
     CheckBuffAndKeys(Behavior.PullController.GetRules);
     CheckBuffAndKeys(Behavior.CombatController.GetRules);
     CheckBuffAndKeys(Behavior.BuffController.GetRules);
     CheckBuffAndKeys(Behavior.RestController.GetRules);
     Behavior.CombatController.GetRules.Sort();
     Behavior.BuffController.GetRules.Sort();
     Behavior.BuffController.GetRules.Sort();
     Behavior.PrePullController.GetRules.Sort();
     Behavior.PullController.GetRules.Sort();
 }
コード例 #2
0
ファイル: BehaviorForm.cs プロジェクト: civicacid/myevo
 private void LoadBehavior()
 {
     _behavior = new BehaviorController();
     ClearTree(BeComRules);
     ClearTree(BePullRules);
     ClearTree(BeRestRules);
     ClearTree(BeBuffRules);
     ClearTree(BePrePullRules);
     _behavior.Load(_ourDirectory + "\\Behaviors\\" + BeTBSelectBehavior.SelectedItem + ".xml");
     _behavior.CombatController.GetRules.Sort();
     _behavior.RestController.GetRules.Sort();
     _behavior.PullController.GetRules.Sort();
     _behavior.BuffController.GetRules.Sort();
     _behavior.PrePullController.GetRules.Sort();
     BeCombatDistance.Value = _behavior.CombatDistance;
     BePullDistance.Value = _behavior.PullDistance;
     BePrePullDistance.Value = _behavior.PrePullDistance;
     BeEnableAutoAttack.Checked = _behavior.UseAutoAttack;
     BeSendPet.Checked = _behavior.SendPet;
     BeGlobalCooldown.Value = _behavior.GlobalCooldown;
     foreach (Rule rule in _behavior.CombatController.GetRules)
     {
         AddCondition(rule, BeComRules);
     }
     foreach (Rule rule in _behavior.PullController.GetRules)
     {
         AddCondition(rule, BePullRules);
     }
     foreach (Rule rule in _behavior.RestController.GetRules)
     {
         AddCondition(rule, BeRestRules);
     }
     foreach (Rule rule in _behavior.BuffController.GetRules)
     {
         AddCondition(rule, BeBuffRules);
     }
     foreach (Rule rule in _behavior.PrePullController.GetRules)
     {
         AddCondition(rule, BePrePullRules);
     }
     BeTabs.Enabled = true;
     BeBarRuleModifier.Enabled = true;
     BeGMisc.Enabled = true;
     PveBehaviorSettings.LoadedBeharvior = BeTBSelectBehavior.SelectedItem.ToString();
     PveBehaviorSettings.SaveSettings();
 }