示例#1
0
        /// <summary>
        /// Begins the Bot process (trigger).
        /// </summary>
        public void Start()
        {
            if (!this._targetsSet)
            {
                this.DefaultTargets();
            }
            if (!this._locationsSet)
            {
                this.DefaultLocations();
            }

            LogProxy.Info("Bot has been triggered to start");
            this.StartCallback();
            this._active = true;

            this._brain.Start(this._character.GetCurrentLocation());

            IAction action = this._brain.GetNextAction();

            LogProxy.Trace($"{action.ToString()}");
        }
示例#2
0
 /// <summary>
 /// Run at the end of the process, optional override
 /// </summary>
 protected virtual void FinishCallback()
 {
     LogProxy.Trace("Bot.FinishCallback called with no override");
 }
示例#3
0
 /// <summary>
 /// Run at the end of the process, optional override
 /// </summary>
 protected virtual void InterruptedCallback()
 {
     LogProxy.Trace("Bot.InterruptedCallback called with no override");
 }
示例#4
0
 /// <summary>
 /// Run at the start of the process, optional override
 /// </summary>
 protected virtual void StartCallback()
 {
     LogProxy.Trace("Bot.StartCallback called with no override");
 }