Start() public method

public Start ( ) : void
return void
Ejemplo n.º 1
0
 /// <summary>
 ///     Start the bot up
 /// </summary>
 public bool Start()
 {
     IsWorking = true;
     _stateMachine.Start();
     _playerMonitor.Start();
     //_chatMonitor.Watch();
     return(true);
 }
Ejemplo n.º 2
0
        /// <summary>
        ///     Start the bot up
        /// </summary>
        public bool Start()
        {
            var route           = Config.Instance.Route;
            var isPathReachable = !route.IsPathSet || route.IsPathUnreachable(_stateMachine._context);

            if (isPathReachable)
            {
                IsWorking = true;
                _stateMachine.Start();
                _playerMonitor.Start();
                return(true);
            }

            AppServices.InformUser("The route is not reachable");
            return(false);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Start the bot up
 /// </summary>
 public void Start()
 {
     IsWorking = true;
     _stateMachine.Start();
 }