示例#1
0
 /// <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);
 }
示例#2
0
 public FailureTolerantPathingMgr([NotNull] IPathingMgr pathingMgr)
 {
     this.pathingMgr = Condition.Requires(pathingMgr).IsNotNull().Value;
 }
 public FailureTolerantPathingMgr(IPathingMgr pathingMgr)
 {
     this.pathingMgr = pathingMgr ?? throw new Exception("");
 }