コード例 #1
0
 public override void OnStart()
 {
     //AdvDia.Update(true);
     if (!ValidActs.Contains(Act))
     {
         Logger.Error("[RunActBounties] Invalid act, valid acts are {0}", string.Join(", ", ValidActs));
         _isDone = true;
     }
     _bounties = BountyCoroutineFactory.GetActBounties(Act).OrderBy(a => a.QuestData.Act).ThenBy(a => a.QuestData.InternalName).ToList();
     _completeActBountiesCoroutine = new CompleteActBountiesCoroutine(Act);
 }
コード例 #2
0
 private async Task <bool> TurningInTheActQuest()
 {
     if (!await _completeActBountiesCoroutine.GetCoroutine())
     {
         return(false);
     }
     if (BountyHelpers.IsActTurninCompleted(Act))
     {
         State = States.Completed;
     }
     else
     {
         _completeActBountiesCoroutine = new CompleteActBountiesCoroutine(Act);
     }
     return(false);
 }
コード例 #3
0
 public ActBountiesCoroutine(Act act)
 {
     Act = act;
     _completeActBountiesCoroutine = new CompleteActBountiesCoroutine(act);
     _bountyCoroutines = BountyCoroutineFactory.GetActBounties(act);
 }
コード例 #4
0
 private async Task<bool> TurningInTheActQuest()
 {
     if (!await _completeActBountiesCoroutine.GetCoroutine()) return false;
     if (BountyHelpers.IsActTurninCompleted(Act))
     {
         State = States.Completed;
     }
     else
     {
         _completeActBountiesCoroutine = new CompleteActBountiesCoroutine(Act);
     }
     return false;
 }
コード例 #5
0
 public ActBountiesCoroutine(Act act)
 {
     Act = act;
     _completeActBountiesCoroutine = new CompleteActBountiesCoroutine(act);
     _bountyCoroutines             = BountyCoroutineFactory.GetActBounties(act);
 }