Example #1
0
 public EzGetQuestGroupResult(
     GetQuestGroupModelResult result
     )
 {
     if (result.item != null)
     {
         Item = new EzQuestGroupModel(result.item);
     }
 }
Example #2
0
        public bool SelectQuestGroup(EzQuestGroupModel questGroup)
        {
            if (_state == State.SelectQuestGroup)
            {
                selectQuestGroup = questGroup;
                _animator.SetTrigger(Trigger.SelectQuestGroup.ToString());
                return(true);
            }

            return(false);
        }
 public EzGetProgressResult(
     GetProgressResult result
     )
 {
     if (result.item != null)
     {
         Item = new EzProgress(result.item);
     }
     if (result.questGroup != null)
     {
         QuestGroup = new EzQuestGroupModel(result.questGroup);
     }
     if (result.quest != null)
     {
         Quest = new EzQuestModel(result.quest);
     }
 }
Example #4
0
        public void OnGetQuestList(EzQuestGroupModel questGroupModel, EzCompletedQuestList completedQuestList)
        {
            for (var i = 0; i < verticalLayoutGroup.transform.childCount; i++)
            {
                Destroy(verticalLayoutGroup.transform.GetChild(i).gameObject);
            }

            foreach (var quest in questGroupModel.Quests)
            {
                if (quest.PremiseQuestNames.Intersect(_watcher.CompletedQuestList.CompleteQuestNames).Count() ==
                    quest.PremiseQuestNames.Count)
                {
                    var item = Instantiate(questListRowPrefab, verticalLayoutGroup.transform);
                    item.Initialize(
                        quest
                        );
                    item.onChoiceQuest.AddListener(OnClickChoiceQuestButton);
                }
            }
        }
Example #5
0
 public QuestGroupInformation(EzQuestGroupModel model)
 {
     Name       = model.Name;
     ScreenName = model.Metadata;
 }
 /// <summary>
 /// 選択する
 /// </summary>
 public void ClickToSelect(EzQuestGroupModel questGroup)
 {
     _stateMachine.SelectQuestGroup(questGroup);
 }
 private void OnStartQuest(EzQuestGroupModel questGroup, EzQuestModel quest)
 {
     GameObject.Find("Gs2QuestInternalSetting").GetComponent <Gs2QuestInternalSetting>().onCloseSelectQuest.Invoke(
         this
         );
 }