Пример #1
0
 // Token: 0x06000459 RID: 1113 RVA: 0x0001F6A7 File Offset: 0x0001DAA7
 public NodeItemDataFormat(NodeItemDataFormat original)
 {
     this.id           = original.id;
     this.collectionId = original.collectionId;
     this.specialtyId  = original.specialtyId;
     this.specialtyPer = original.specialtyPer;
 }
Пример #2
0
    // 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);
    }