// Token: 0x06000453 RID: 1107 RVA: 0x0001F586 File Offset: 0x0001D986 public NodeDataFormat(NodeDataFormat original) { this.id = original.id; this.type = original.type; this.pathId = original.pathId; this.picTag = original.picTag; }
// Token: 0x06000323 RID: 803 RVA: 0x0000F1E0 File Offset: 0x0000D5E0 public void CreateMap(AreaType createArea) { int id = SuperGameMaster.sDataBase.get_NodeDB_AreaIndex(createArea); int num = SuperGameMaster.sDataBase.get_NodeDB_AreaIndex(createArea + 1); int i = SuperGameMaster.sDataBase.search_NodeDBIndex_forId(id); int num2 = 960; int num3 = 0; while (i < SuperGameMaster.sDataBase.count_NodeDB()) { NodeDataFormat nodeDataFormat = SuperGameMaster.sDataBase.get_NodeDB(i); if (nodeDataFormat.id == num) { break; } GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.nodePrefab); gameObject.transform.SetParent(base.gameObject.transform, false); gameObject.transform.SetAsFirstSibling(); gameObject.GetComponent <MapNodeButton>().CngIdText(nodeDataFormat.id); gameObject.GetComponent <MapNodeButton>().CngColor(nodeDataFormat.type); NodeConnectDataFormat nodeConnectDataFormat = SuperGameMaster.sDataBase.get_NodeConnectDB_forId(nodeDataFormat.id); gameObject.transform.localPosition = nodeConnectDataFormat.pos; List <NodeEdgeDataFormat> list = new List <NodeEdgeDataFormat>(); foreach (int id2 in nodeConnectDataFormat.edge) { list.Add(SuperGameMaster.sDataBase.get_NodeEdgeDB_forId(id2)); } List <NodeConnectDataFormat> list2 = new List <NodeConnectDataFormat>(); foreach (NodeEdgeDataFormat nodeEdgeDataFormat in list) { if (nodeEdgeDataFormat.plug[0] != nodeDataFormat.id) { list2.Add(SuperGameMaster.sDataBase.get_NodeConnectDB_forId(nodeEdgeDataFormat.plug[0])); } if (nodeEdgeDataFormat.plug[1] != nodeDataFormat.id) { list2.Add(SuperGameMaster.sDataBase.get_NodeConnectDB_forId(nodeEdgeDataFormat.plug[1])); } } bool[] array = new bool[4]; foreach (NodeConnectDataFormat nodeConnectDataFormat2 in list2) { if (nodeConnectDataFormat.pos.x > nodeConnectDataFormat2.pos.x) { array[0] = true; } if (nodeConnectDataFormat.pos.y > nodeConnectDataFormat2.pos.y) { array[1] = true; } if (nodeConnectDataFormat.pos.x < nodeConnectDataFormat2.pos.x) { array[2] = true; } if (nodeConnectDataFormat.pos.y < nodeConnectDataFormat2.pos.y) { array[3] = true; } } gameObject.GetComponent <MapNodeButton>().ConnectMark(array[0], array[1], array[2], array[3]); if ((float)num2 > nodeConnectDataFormat.pos.y) { num2 = (int)nodeConnectDataFormat.pos.y; } if ((float)num3 < nodeConnectDataFormat.pos.y) { num3 = (int)nodeConnectDataFormat.pos.y; } i++; } if (num3 + num2 < 960) { num3 += num2; } Vector2 sizeDelta = base.transform.GetComponent <RectTransform>().sizeDelta; sizeDelta.y = (float)num3; base.transform.GetComponent <RectTransform>().sizeDelta = sizeDelta; IEnumerator enumerator3 = base.transform.GetEnumerator(); try { while (enumerator3.MoveNext()) { object obj = enumerator3.Current; Transform transform = (Transform)obj; if (transform.name.Equals("MapNodeButton(Clone)")) { Vector2 v = transform.transform.localPosition; v.x -= sizeDelta.x / 2f; v.y += sizeDelta.y / 2f; v.y = (float)num3 - v.y; transform.transform.localPosition = v; } } } finally { IDisposable disposable; if ((disposable = (enumerator3 as IDisposable)) != null) { disposable.Dispose(); } } for (i = SuperGameMaster.sDataBase.search_NodeEdgeDBIndex_forId(id); i < SuperGameMaster.sDataBase.count_NodeEdgeDB(); i++) { NodeEdgeDataFormat nodeEdgeDataFormat2 = SuperGameMaster.sDataBase.get_NodeEdgeDB(i); if (nodeEdgeDataFormat2.id == num) { break; } GameObject gameObject2 = UnityEngine.Object.Instantiate <GameObject>(this.edgePrefab); gameObject2.transform.SetParent(base.gameObject.transform, false); gameObject2.transform.SetAsFirstSibling(); gameObject2.GetComponent <MapEdgeButton>().CngIdText(nodeEdgeDataFormat2.id); gameObject2.GetComponent <MapEdgeButton>().CngColor(nodeEdgeDataFormat2.wayType); Vector2[] array2 = new Vector2[2]; IEnumerator enumerator4 = base.transform.GetEnumerator(); try { while (enumerator4.MoveNext()) { object obj2 = enumerator4.Current; Transform transform2 = (Transform)obj2; if (transform2.name.Equals("MapNodeButton(Clone)")) { for (int k = 0; k < 2; k++) { if (nodeEdgeDataFormat2.plug[k] == transform2.GetComponent <MapNodeButton>().getNodeId()) { array2[k] = transform2.transform.localPosition; } } } } } finally { IDisposable disposable2; if ((disposable2 = (enumerator4 as IDisposable)) != null) { disposable2.Dispose(); } } Vector2 sizeDelta2 = new Vector2(15f, 15f); Vector2 v2 = array2[0]; if (array2[0].x != array2[1].x) { sizeDelta2.x = Mathf.Abs(array2[1].x - array2[0].x); v2.x = array2[0].x + (array2[1].x - array2[0].x) / 2f; } if (array2[0].y != array2[1].y) { sizeDelta2.y = Mathf.Abs(array2[1].y - array2[0].y); v2.y = array2[0].y + (array2[1].y - array2[0].y) / 2f; } gameObject2.transform.localPosition = v2; gameObject2.GetComponent <RectTransform>().sizeDelta = sizeDelta2; } }
// Token: 0x06000334 RID: 820 RVA: 0x00011578 File Offset: 0x0000F978 public void getPrefTest() { if (this.pathNodeSelect) { return; } if (this.goalNodeId == -1) { this.setResultText("ノードが選択されていません"); return; } NodeDataFormat nodeDataFormat = SuperGameMaster.sDataBase.get_NodeDB_forId(this.goalNodeId); NodeItemDataFormat nodeItemDataFormat = SuperGameMaster.sDataBase.get_NodeItemDB_forId(this.goalNodeId); object[] array = new object[6]; array[0] = "ノード ["; array[1] = nodeDataFormat.id; array[2] = "] Type:"; int num = 3; NodeType type = nodeDataFormat.type; array[num] = type.ToString(); array[4] = " / Path:"; array[5] = nodeDataFormat.pathId; string text = string.Concat(array); text += " / "; text += "specialty:"; string text2 = string.Empty; string text3 = "["; string text4 = "("; for (int i = 0; i < nodeItemDataFormat.specialtyId.Length; i++) { ItemDataFormat itemDataFormat = SuperGameMaster.sDataBase.get_ItemDB_forId(nodeItemDataFormat.specialtyId[i]); text2 = text2 + itemDataFormat.id + ","; text3 = text3 + nodeItemDataFormat.specialtyPer[i] + "%,"; text4 = text4 + itemDataFormat.name + ","; } if (nodeItemDataFormat.specialtyId.Length != 0) { text2 = text2.Remove(text2.Length - 1, 1); text3 = text3.Remove(text3.Length - 1, 1); text4 = text4.Remove(text4.Length - 1, 1); } text2 += " "; text3 += "] "; text4 += ") "; string text5 = text; text = string.Concat(new string[] { text5, text2, text3, text4, "\n" }); NodePrefDataFormat nodePrefDataFormat = SuperGameMaster.sDataBase.get_NodePrefDB_forId(this.goalNodeId); if (nodePrefDataFormat != null) { text += "<color=orange>【県データ】"; text += "ノード ["; List <int> list_NodeDB_prefIds = SuperGameMaster.sDataBase.getList_NodeDB_prefIds(nodePrefDataFormat.id); foreach (int num2 in list_NodeDB_prefIds) { text = text + num2 + ","; } text = text.Remove(text.Length - 1, 1); text += "]"; text += " / "; if (nodePrefDataFormat.collectionId != -1) { CollectionDataFormat collectionDataFormat = SuperGameMaster.sDataBase.get_CollectDB_forId(nodePrefDataFormat.collectionId); text5 = text; text = string.Concat(new object[] { text5, "collect:", collectionDataFormat.id, " (", collectionDataFormat.name, ") / " }); } else { text += "collect:(なし) / "; } text += "specialty:"; text2 = string.Empty; text4 = "("; for (int j = 0; j < nodePrefDataFormat.specialtyId.Length; j++) { ItemDataFormat itemDataFormat2 = SuperGameMaster.sDataBase.get_ItemDB_forId(nodePrefDataFormat.specialtyId[j]); text2 = text2 + itemDataFormat2.id + ","; text4 = text4 + itemDataFormat2.name + ","; } if (nodeItemDataFormat.specialtyId.Length != 0) { text2 = text2.Remove(text2.Length - 1, 1); text4 = text4.Remove(text4.Length - 1, 1); } text2 += " "; text4 += ") "; text = text + text2 + text4 + "\n"; text += "</color>"; } this.setResultText(text); }
// Token: 0x060003B1 RID: 945 RVA: 0x00016228 File Offset: 0x00014628 public void CreateResult(bool success, int _evtId, List <int> itemList, int goalNodeId) { this.evtId = _evtId; this.numBase_Clover.createNumObj(itemList[0], this.numBase_Clover.GetComponent <NumObjCreater>().prefub.transform.localPosition, (int)this.numBase_Clover.GetComponent <NumObjCreater>().prefub.transform.GetComponent <RectTransform>().sizeDelta.x); this.numBase_Ticket.createNumObj(itemList[1], this.numBase_Ticket.GetComponent <NumObjCreater>().prefub.transform.localPosition, (int)this.numBase_Ticket.GetComponent <NumObjCreater>().prefub.transform.GetComponent <RectTransform>().sizeDelta.x); itemList.RemoveAt(0); itemList.RemoveAt(0); if (!success) { this.MainUI.SetActive(false); this.SubUI.SetActive(true); return; } this.MainUI.SetActive(true); this.SubUI.SetActive(false); int num = itemList.FindIndex((int val) => val > 10000); if (num != -1) { CollectionDataFormat collectionDataFormat = SuperGameMaster.sDataBase.get_CollectDB_forId(itemList[num] - 10000); if (collectionDataFormat != null) { this.CollectionImage.GetComponent <Image>().sprite = collectionDataFormat.img; } } else { NodeDataFormat nodeDataFormat = SuperGameMaster.sDataBase.get_NodeDB_forId(goalNodeId); NodePrefDataFormat nodePrefDataFormat = SuperGameMaster.sDataBase.get_NodePrefDB_forId(nodeDataFormat.pathId); if (nodePrefDataFormat.collectionId == -1) { this.CollectionResultPanel.SetActive(false); } else if (SuperGameMaster.FindCollection(nodePrefDataFormat.collectionId)) { CollectionDataFormat collectionDataFormat2 = SuperGameMaster.sDataBase.get_CollectDB_forId(nodePrefDataFormat.collectionId); if (collectionDataFormat2 != null) { this.CollectionImage.GetComponent <Image>().sprite = collectionDataFormat2.img; this.CompleteStampImage.SetActive(true); } } else { this.CollectionImage.GetComponent <Image>().sprite = this.QuestionImg; this.CollectionImage.GetComponent <RectTransform>().sizeDelta = new Vector2(this.QuestionImg.rect.width, this.QuestionImg.rect.height); } } for (int i = 0; i < this.SpecialtyMax * 2; i += 2) { if (i >= itemList.Count) { GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.itemPref); gameObject.transform.SetParent(this.SpecialtyImagePanel.GetComponent <RectTransform>(), false); } else { int num2 = itemList[i]; int num3 = itemList[i + 1]; if (num2 >= 10000) { itemList.RemoveAt(i); itemList.RemoveAt(i); i -= 2; } else { GameObject gameObject2 = UnityEngine.Object.Instantiate <GameObject>(this.itemPref); gameObject2.transform.SetParent(this.SpecialtyImagePanel.GetComponent <RectTransform>(), false); ItemDataFormat itemDataFormat = SuperGameMaster.sDataBase.get_ItemDB_forId(num2); if (itemDataFormat != null) { gameObject2.GetComponent <Image>().enabled = true; gameObject2.transform.GetChild(0).GetComponentInChildren <Image>().sprite = itemDataFormat.img; if (num3 > 1) { gameObject2.transform.GetChild(1).gameObject.SetActive(true); gameObject2.GetComponentInChildren <Text>().text = "x" + num3; if (SuperGameMaster.FindItemStock(num2) + num3 > 99) { gameObject2.GetComponentInChildren <Text>().color = new Color(1f, 0f, 0f); } } } } } } }