protected override void OnItemSelect(GameObject go) { CharacterQuestData dataOfClass = DataSource.FindDataOfClass <CharacterQuestData>(go, (CharacterQuestData)null); if (dataOfClass == null) { return; } if (dataOfClass.questType == CharacterQuestData.EType.Chara) { if (!dataOfClass.HasUnit || dataOfClass.IsLock) { return; } GlobalVars.SelectedUnitUniqueID.Set(dataOfClass.unitData1.UniqueID); FlowNode_GameObject.ActivateOutputLinks((Component)this, 11); } else { if (!dataOfClass.HasPairUnit || dataOfClass.IsLock) { return; } GlobalVars.SelectedCollaboSkillPair = dataOfClass.GetPairUnit(); FlowNode_GameObject.ActivateOutputLinks((Component)this, 12); } }
private bool OnFilter_Complete(CharacterQuestData questData) { if (questData == null) { return(false); } return(questData.Status == CharacterQuestData.EStatus.Complete); }
private bool OnFilter_Lock(CharacterQuestData questData) { if (questData == null) { return(false); } return(questData.Status == CharacterQuestData.EStatus.Lock); }
private bool OnFilter_Unlock(CharacterQuestData questData) { if (questData == null) { return(false); } if (questData.Status != CharacterQuestData.EStatus.New) { return(questData.Status == CharacterQuestData.EStatus.Challenged); } return(true); }
public void RefreshCollaboData() { GameManager instanceDirect = MonoSingleton <GameManager> .GetInstanceDirect(); if (Object.op_Equality((Object)instanceDirect, (Object)null)) { return; } List <CharacterQuestData> characterQuestDataList = new List <CharacterQuestData>(); List <CollaboSkillParam.Pair> pairLists = CollaboSkillParam.GetPairLists(); if (pairLists != null) { for (int index = 0; index < pairLists.Count; ++index) { UnitData dataByUniqueParam1 = instanceDirect.Player.FindUnitDataByUniqueParam(pairLists[index].UnitParam1); UnitData dataByUniqueParam2 = instanceDirect.Player.FindUnitDataByUniqueParam(pairLists[index].UnitParam2); CharacterQuestData characterQuestData = new CharacterQuestData(); characterQuestData.questType = CharacterQuestData.EType.Collabo; if (dataByUniqueParam1 == null) { characterQuestData.unitParam1 = pairLists[index].UnitParam1; } else { characterQuestData.unitData1 = dataByUniqueParam1; } if (dataByUniqueParam2 == null) { characterQuestData.unitParam2 = pairLists[index].UnitParam2; } else { characterQuestData.unitData2 = dataByUniqueParam2; } characterQuestData.UpdateStatus(); characterQuestDataList.Add(characterQuestData); } } if (this.mFilterMethod == null) { Debug.Log((object)"mFilterMethod == null"); } else { characterQuestDataList = characterQuestDataList.FindAll((Predicate <CharacterQuestData>)(quest => this.mFilterMethod(quest))); } this.SetData((object[])characterQuestDataList.ToArray(), typeof(CharacterQuestData)); }
public void RefreshCharaData() { GameManager instanceDirect = MonoSingleton <GameManager> .GetInstanceDirect(); if (Object.op_Equality((Object)instanceDirect, (Object)null)) { return; } List <CharacterQuestData> characterQuestDataList = new List <CharacterQuestData>(); List <CharacterQuestDataChunk> characterQuestList = this.GetCharacterQuestList(); characterQuestList.Reverse(); for (int index = 0; index < characterQuestList.Count; ++index) { CharacterQuestDataChunk characterQuestDataChunk = characterQuestList[index]; if (characterQuestDataChunk.unitParam != null) { CharacterQuestData characterQuestData = new CharacterQuestData(); characterQuestData.questType = CharacterQuestData.EType.Chara; UnitData dataByUniqueParam = instanceDirect.Player.FindUnitDataByUniqueParam(characterQuestDataChunk.unitParam); if (dataByUniqueParam == null) { characterQuestData.unitParam1 = characterQuestDataChunk.unitParam; } else { characterQuestData.unitData1 = dataByUniqueParam; } characterQuestData.UpdateStatus(); characterQuestDataList.Add(characterQuestData); } } if (this.mFilterMethod == null) { Debug.Log((object)"mFilterMethod == null"); } else { characterQuestDataList = characterQuestDataList.FindAll((Predicate <CharacterQuestData>)(quest => this.mFilterMethod(quest))); } this.SetData((object[])characterQuestDataList.ToArray(), typeof(CharacterQuestData)); }
public void UpdateValue() { if (!((Component)this).get_gameObject().get_activeInHierarchy()) { return; } CharacterQuestData dataOfClass = DataSource.FindDataOfClass <CharacterQuestData>(((Component)this).get_gameObject(), (CharacterQuestData)null); if (dataOfClass == null) { return; } if (dataOfClass.questType == CharacterQuestData.EType.Chara) { this.DataBind(dataOfClass.unitData1, dataOfClass.unitParam1, this.UnitIcon1); } else if (dataOfClass.questType == CharacterQuestData.EType.Collabo) { this.DataBind(dataOfClass.unitData1, dataOfClass.unitParam1, this.UnitIcon1); this.DataBind(dataOfClass.unitData2, dataOfClass.unitParam2, this.UnitIcon2); } this.ChangeStatusIcon(dataOfClass.Status); }
private bool OnFilter_ALL(CharacterQuestData questData) { return(questData != null); }