private void OnPushedItem() { int idx = base.IDX; List <EvolutionDiagramData.IconMonster> evolutionData = this.listComponent.GetEvolutionData(); EvolutionDiagramData.IconMonster iconMonster = evolutionData[idx]; if (iconMonster != null) { CMD_EvolutionDiagram dialogRoot = this.listComponent.GetDialogRoot(); CMD_EvolutionRouteMap.CreateDialog(dialogRoot.gameObject, iconMonster); } }
protected override void OnUpdatedParts(int listPartsIndex) { List <EvolutionDiagramData.IconMonster> evolutionData = this.listComponent.GetEvolutionData(); EvolutionDiagramData.IconMonster iconMonster = evolutionData[listPartsIndex]; if (iconMonster != null) { this.monsterIcon.SetMonsterImage(iconMonster.master); if (!MonsterPicturebookData.ExistPicturebook(iconMonster.master.Group.monsterCollectionId)) { this.monsterIcon.Message.SetSortText(StringMaster.GetString("EvolutionUnkown")); } else { this.monsterIcon.Message.ClearSortText(); } } }
public static void CreateMonsterDataList(EvolutionDiagramData diagramData) { List <string> list = new List <string>(); foreach (KeyValuePair <string, Dictionary <string, MonsterClientMaster> > keyValuePair in MonsterMaster.GetGroupMasterList()) { MonsterClientMaster monsterClientMaster; if (keyValuePair.Value.TryGetValue("1", out monsterClientMaster) && "0" != monsterClientMaster.Group.monsterCollectionId && !list.Contains(monsterClientMaster.Group.monsterCollectionId)) { list.Add(monsterClientMaster.Group.monsterCollectionId); EvolutionDiagramData.IconMonster monsterData = new EvolutionDiagramData.IconMonster { collectionId = monsterClientMaster.Group.monsterCollectionId.ToInt32(), master = monsterClientMaster }; diagramData.AddMonsterData(monsterData); } } }
public void AddMonsterData(EvolutionDiagramData.IconMonster monsterData) { switch (MonsterGrowStepData.ToGrowStep(monsterData.master.Group.growStep)) { case GrowStep.CHILD_1: case GrowStep.CHILD_2: this.monsterListChild.Add(monsterData); break; case GrowStep.GROWING: this.monsterListGrowing.Add(monsterData); break; case GrowStep.RIPE: this.monsterListPipe.Add(monsterData); break; case GrowStep.PERFECT: this.monsterListPerfect.Add(monsterData); break; case GrowStep.ULTIMATE: this.monsterListUltimate.Add(monsterData); break; case GrowStep.ARMOR_1: case GrowStep.ARMOR_2: this.monsterListArmor.Add(monsterData); break; case GrowStep.HYBRID_GROWING: case GrowStep.HYBRID_RIPE: case GrowStep.HYBRID_PERFECT: case GrowStep.HYBRID_ULTIMATE: this.monsterListHybrid.Add(monsterData); break; } }
public static int CompareByCollectionId(EvolutionDiagramData.IconMonster dataA, EvolutionDiagramData.IconMonster dataB) { return(dataA.collectionId - dataB.collectionId); }