示例#1
0
 public void AddItemResult(TutorialIdResultEvent e, Node any, [JoinAll] SingleNode <ResetFreeEnergyStepHandler> stepHandler, [JoinAll] ICollection <TutorialStepNode> steps, [JoinAll] SingleNode <ClientSessionComponent> session)
 {
     if (stepHandler.component.stepId == e.Id)
     {
         TutorialStepNode stepById = this.GetStepById(stepHandler.component.stepId, steps);
         this.AddItemResultHandler(e, stepHandler.component, stepById, session);
     }
 }
 public void StepComplete(NodeAddedEvent e, TutorialStepNode stepNode, [JoinByTutorial] TutorialNode tutorialNode, [JoinAll] SingleNode <Dialogs60Component> dialogs)
 {
     if (tutorialActive && (tutorialNode.tutorialData.TutorialId.Equals((long)(-1229949270L)) && stepNode.tutorialStepData.StepId.Equals((long)0x5aeb2e04L)))
     {
         Debug.Log("Bingo");
         dialogs.component.Get <NewModulesScreenUIComponent>().Show(TankPartModuleType.WEAPON);
     }
 }
示例#3
0
 public void AddItemResult(TutorialIdResultEvent e, Node any, [JoinAll] ICollection <SingleNode <AddItemStepHandler> > stepHandlers, [JoinAll] ICollection <TutorialStepNode> steps, [JoinAll] SingleNode <ClientSessionComponent> session)
 {
     foreach (SingleNode <AddItemStepHandler> node in stepHandlers)
     {
         if (node.component.stepId == e.Id)
         {
             TutorialStepNode stepById = this.GetStepById(node.component.stepId, steps);
             this.AddItemResultHandler(e, node.component, stepById, session);
         }
     }
 }
示例#4
0
 private void AddItemResultHandler(TutorialIdResultEvent e, AddItemStepHandler stepHandler, TutorialStepNode step, SingleNode <ClientSessionComponent> session)
 {
     if (!e.ActionExecuted)
     {
         stepHandler.Fail(e.Id);
     }
     else
     {
         if (step != null)
         {
             IList <TutorialNode> source = base.Select <TutorialNode>(step.Entity, typeof(TutorialGroupComponent));
             if (source.Count > 0)
             {
                 TutorialNode node = source.Single <TutorialNode>();
                 base.ScheduleEvent(new ApplyTutorialIdEvent(node.tutorialData.TutorialId), session);
             }
         }
         stepHandler.Success(e.Id);
     }
 }