/// <summary> /// Changes the active pathing mgr /// </summary> /// <param name="mgr"></param> public static void SetPathingMgr(IPathingMgr mgr) { log.Info($"Setting PathingMgr to {mgr}"); Instance = (mgr == null) ? NullPathingMgr : new FailureTolerantPathingMgr(mgr); }
public FailureTolerantPathingMgr([NotNull] IPathingMgr pathingMgr) { this.pathingMgr = Condition.Requires(pathingMgr).IsNotNull().Value; }
public FailureTolerantPathingMgr(IPathingMgr pathingMgr) { this.pathingMgr = pathingMgr ?? throw new Exception(""); }