public void SetSolGradeInfo(ref BASE_SOLGRADEINFO pkInfo)
 {
     if (pkInfo.SolGrade < 0 || pkInfo.SolGrade >= 15)
     {
         return;
     }
     this.kBaseGradeInfo[pkInfo.SolGrade].SetGradeInfo(ref pkInfo);
 }
    public void SetSolGradeInfo(int charkind, ref BASE_SOLGRADEINFO gradeinfo)
    {
        NrCharKindInfo charKindInfo = this.GetCharKindInfo(charkind);

        if (charKindInfo != null)
        {
            charKindInfo.SetSolGradeInfo(ref gradeinfo);
        }
    }
Esempio n. 3
0
    public int GetSeason(byte bGrade)
    {
        BASE_SOLGRADEINFO cHARKIND_SOLGRADEINFO = this.GetCHARKIND_SOLGRADEINFO((int)bGrade);

        if (cHARKIND_SOLGRADEINFO == null)
        {
            return(0);
        }
        return(cHARKIND_SOLGRADEINFO.SolSeason);
    }
Esempio n. 4
0
 public void SetSolGradeInfo(ref BASE_SOLGRADEINFO gradeinfo)
 {
     if (gradeinfo == null)
     {
         return;
     }
     if (gradeinfo.SolGrade < 0 || gradeinfo.SolGrade >= 15)
     {
         return;
     }
     this.m_pkCHARKIND_SOLGRADEINFO.SetSolGradeInfo(ref gradeinfo);
     if (gradeinfo.SolGrade > (int)this.m_nMaxSolGrade)
     {
         this.m_nMaxSolGrade = (short)gradeinfo.SolGrade;
     }
 }
Esempio n. 5
0
 public void SetGradeInfo(ref BASE_SOLGRADEINFO pkInfo)
 {
     this.CharCode   = pkInfo.CharCode;
     this.SolGrade   = pkInfo.SolGrade;
     this.SolSeason  = pkInfo.SolSeason;
     this.LegendType = pkInfo.LegendType;
     this.MaxLevel   = pkInfo.MaxLevel;
     this.kSolStatInfo.Set(ref pkInfo.kSolStatInfo);
     this.kSolIncStatInfo.Set(ref pkInfo.kSolIncStatInfo);
     for (int i = 0; i < 23; i++)
     {
         this.nGainRate[i] = pkInfo.nGainRate[i];
     }
     this.ComposeExp          = pkInfo.ComposeExp;
     this.EvolutionExp        = pkInfo.EvolutionExp;
     this.ComposeCost         = pkInfo.ComposeCost;
     this.EvolutionCost       = pkInfo.EvolutionCost;
     this.SellPrice           = pkInfo.SellPrice;
     this.TradeRank           = pkInfo.TradeRank;
     this.ComposeLimit        = pkInfo.ComposeLimit;
     this.EvolutionNeedExp    = pkInfo.EvolutionNeedExp;
     this.MaxLv_Evolution_Exp = pkInfo.MaxLv_Evolution_Exp;
 }
Esempio n. 6
0
    public bool SetData(NrTableData kData)
    {
        NrTableData.eResourceType typeIndex = kData.GetTypeIndex();
        int    num      = (int)typeIndex;
        string kDataKey = string.Empty;

        switch (typeIndex)
        {
        case NrTableData.eResourceType.eRT_WEAPONTYPE_INFO:
        {
            WEAPONTYPE_INFO wEAPONTYPE_INFO = kData as WEAPONTYPE_INFO;
            int             weaponType      = NrTSingleton <NkWeaponTypeInfoManager> .Instance.GetWeaponType(wEAPONTYPE_INFO.WEAPONCODE);

            kDataKey = weaponType.ToString();
            NrTSingleton <NkWeaponTypeInfoManager> .Instance.SetWeaponTypeInfo(weaponType, ref wEAPONTYPE_INFO);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_ATTACKINFO:
        {
            CHARKIND_ATTACKINFO cHARKIND_ATTACKINFO = kData as CHARKIND_ATTACKINFO;
            cHARKIND_ATTACKINFO.nWeaponType = NrTSingleton <NkWeaponTypeInfoManager> .Instance.GetWeaponType(cHARKIND_ATTACKINFO.WEAPONCODE);

            kDataKey = cHARKIND_ATTACKINFO.ATTACKTYPE.ToString();
            NrTSingleton <NrCharKindInfoManager> .Instance.SetAttackTypeCodeInfo(cHARKIND_ATTACKINFO.ATTACKTYPE, cHARKIND_ATTACKINFO.ATTACKCODE);

            NrCharDataCodeInfo charDataCodeInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharDataCodeInfo();

            if (charDataCodeInfo != null)
            {
                cHARKIND_ATTACKINFO.nJobType = charDataCodeInfo.GetCharJobType(cHARKIND_ATTACKINFO.JOBTYPE);
            }
            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_CLASSINFO:
        {
            CHARKIND_CLASSINFO cHARKIND_CLASSINFO = kData as CHARKIND_CLASSINFO;
            long num2       = 1L;
            int  cLASSINDEX = cHARKIND_CLASSINFO.CLASSINDEX;
            cHARKIND_CLASSINFO.CLASSTYPE = num2 << cLASSINDEX - 1;
            kDataKey = cHARKIND_CLASSINFO.CLASSTYPE.ToString();
            NrTSingleton <NrCharKindInfoManager> .Instance.SetClassTypeCodeInfo(cHARKIND_CLASSINFO.CLASSCODE, cHARKIND_CLASSINFO.CLASSTYPE);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_INFO:
        {
            CHARKIND_INFO cHARKIND_INFO = kData as CHARKIND_INFO;
            kDataKey = cHARKIND_INFO.CHARKIND.ToString();
            cHARKIND_INFO.nClassType = NrTSingleton <NrCharKindInfoManager> .Instance.GetClassType(cHARKIND_INFO.CLASSTYPE);

            cHARKIND_INFO.nAttackType = NrTSingleton <NrCharKindInfoManager> .Instance.GetAttackType(cHARKIND_INFO.ATTACKTYPE);

            cHARKIND_INFO.nATB = NrTSingleton <NkATB_Manager> .Instance.ParseCharATB(cHARKIND_INFO.ATB);

            NrTSingleton <NrCharKindInfoManager> .Instance.SetCharKindInfo(ref cHARKIND_INFO);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_STATINFO:
        {
            CHARKIND_STATINFO cHARKIND_STATINFO = kData as CHARKIND_STATINFO;
            int charKindByCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_STATINFO.CharCode);

            kDataKey = charKindByCode.ToString();
            NrTSingleton <NrCharKindInfoManager> .Instance.SetStatInfo(charKindByCode, ref cHARKIND_STATINFO);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_MONSTERINFO:
        {
            CHARKIND_MONSTERINFO cHARKIND_MONSTERINFO = kData as CHARKIND_MONSTERINFO;
            int charKindByCode2 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_MONSTERINFO.CharCode);

            kDataKey = charKindByCode2.ToString();
            NrTSingleton <NrCharKindInfoManager> .Instance.SetMonsterInfo(charKindByCode2, ref cHARKIND_MONSTERINFO);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_MONSTATINFO:
        {
            CHARKIND_MONSTATINFO cHARKIND_MONSTATINFO = kData as CHARKIND_MONSTATINFO;
            kDataKey = NkUtil.MakeLong(cHARKIND_MONSTATINFO.MonType, (long)cHARKIND_MONSTATINFO.LEVEL).ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_NPCINFO:
        {
            CHARKIND_NPCINFO cHARKIND_NPCINFO = kData as CHARKIND_NPCINFO;
            int charKindByCode3 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_NPCINFO.CHARCODE);

            kDataKey = charKindByCode3.ToString();
            NrTSingleton <NrCharKindInfoManager> .Instance.SetNPCInfo(charKindByCode3, ref cHARKIND_NPCINFO);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_ANIINFO:
        {
            CHARKIND_ANIINFO cHARKIND_ANIINFO = kData as CHARKIND_ANIINFO;
            kDataKey = cHARKIND_ANIINFO.BUNDLENAME.ToString();
            NrTSingleton <NrCharAniInfoManager> .Instance.SetAniInfo(ref cHARKIND_ANIINFO);

            NrTSingleton <NrCharKindInfoManager> .Instance.SetAniInfo(ref cHARKIND_ANIINFO);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_LEGENDINFO:
        {
            CHARKIND_LEGENDINFO cHARKIND_LEGENDINFO = kData as CHARKIND_LEGENDINFO;
            int charKindByCode4 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_LEGENDINFO.CharCode);

            cHARKIND_LEGENDINFO.i32Element_LegendCharkind = charKindByCode4;
            for (int i = 0; i < 5; i++)
            {
                int charKindByCode5 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_LEGENDINFO.i32Base_LegendCharCode[i]);

                cHARKIND_LEGENDINFO.i32Base_CharKind[i] = charKindByCode4;
            }
            kDataKey = charKindByCode4.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_SOLDIERINFO:
        {
            CHARKIND_SOLDIERINFO cHARKIND_SOLDIERINFO = kData as CHARKIND_SOLDIERINFO;
            for (int j = 0; j < 5; j++)
            {
                int charKindByCode6 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_SOLDIERINFO.kElement_CharData[j].Element_CharCode);

                cHARKIND_SOLDIERINFO.kElement_CharData[j].SetChar(charKindByCode6);
            }
            int charKindByCode7 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_SOLDIERINFO.CharCode);

            cHARKIND_SOLDIERINFO.i32BaseCharKind = charKindByCode7;
            kDataKey = charKindByCode7.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_SOLGRADEINFO:
        {
            BASE_SOLGRADEINFO bASE_SOLGRADEINFO = kData as BASE_SOLGRADEINFO;
            int charKindByCode8 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(bASE_SOLGRADEINFO.CharCode);

            kDataKey = charKindByCode8.ToString();
            NrTSingleton <NrCharKindInfoManager> .Instance.SetSolGradeInfo(charKindByCode8, ref bASE_SOLGRADEINFO);

            break;
        }

        case NrTableData.eResourceType.eRT_ITEMTYPE_INFO:
        {
            ITEMTYPE_INFO iTEMTYPE_INFO = kData as ITEMTYPE_INFO;
            iTEMTYPE_INFO.OPTION1 = NrTSingleton <ItemManager> .Instance.GetItemOption(iTEMTYPE_INFO.szOption1);

            iTEMTYPE_INFO.OPTION2 = NrTSingleton <ItemManager> .Instance.GetItemOption(iTEMTYPE_INFO.szOption2);

            iTEMTYPE_INFO.ITEMPART = NrTSingleton <ItemManager> .Instance.GetItemPart(iTEMTYPE_INFO.szItemPart);

            iTEMTYPE_INFO.ITEMTYPE = NrTSingleton <ItemManager> .Instance.GetItemType(iTEMTYPE_INFO.ITEMTYPECODE);

            iTEMTYPE_INFO.ATB = NrTSingleton <NkATB_Manager> .Instance.ParseItemTypeATB(iTEMTYPE_INFO.szATB);

            iTEMTYPE_INFO.ATTACKTYPE = NrTSingleton <NrCharKindInfoManager> .Instance.GetAttackType(iTEMTYPE_INFO.szAttackTypeCode);

            CHARKIND_ATTACKINFO charAttackInfo = NrTSingleton <NrBaseTableManager> .Instance.GetCharAttackInfo(iTEMTYPE_INFO.ATTACKTYPE.ToString());

            if (charAttackInfo != null)
            {
                iTEMTYPE_INFO.WEAPONTYPE = charAttackInfo.nWeaponType;
            }
            else
            {
                iTEMTYPE_INFO.WEAPONTYPE = 0;
            }
            iTEMTYPE_INFO.EQUIPCLASSTYPE = NrTSingleton <NrCharKindInfoManager> .Instance.ParseClassTypeCode(iTEMTYPE_INFO.szClassTypeCode);

            kDataKey = iTEMTYPE_INFO.ITEMTYPE.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_QUEST_NPC_POS_INFO:
        {
            QUEST_NPC_POS_INFO qUEST_NPC_POS_INFO = kData as QUEST_NPC_POS_INFO;
            kDataKey = qUEST_NPC_POS_INFO.strUnique;
            break;
        }

        case NrTableData.eResourceType.eRT_ECO_TALK:
        {
            ECO_TALK eCO_TALK = kData as ECO_TALK;
            kDataKey = eCO_TALK.strCharCode;
            break;
        }

        case NrTableData.eResourceType.eRT_ECO:
        {
            ECO eCO = kData as ECO;
            kDataKey = eCO.GroupUnique.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_MAP_INFO:
        {
            MAP_INFO mAP_INFO = kData as MAP_INFO;
            mAP_INFO.MAP_ATB = NrTSingleton <NkATB_Manager> .Instance.ParseMapATB(mAP_INFO.strMapATB);

            ICollection gateInfo_Col = NrTSingleton <NrBaseTableManager> .Instance.GetGateInfo_Col();

            foreach (GATE_INFO gATE_INFO in gateInfo_Col)
            {
                if (mAP_INFO.MAP_INDEX == gATE_INFO.SRC_MAP_IDX)
                {
                    mAP_INFO.AddGateInfo(gATE_INFO);
                }
                if (mAP_INFO.MAP_INDEX == gATE_INFO.DST_MAP_IDX)
                {
                    mAP_INFO.AddDSTGateInfo(gATE_INFO);
                }
            }
            kDataKey = mAP_INFO.MAP_INDEX.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_MAP_UNIT:
        {
            MAP_UNIT mAP_UNIT = kData as MAP_UNIT;
            kDataKey = mAP_UNIT.MAP_UNIQUE.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_GATE_INFO:
        {
            GATE_INFO gATE_INFO2 = kData as GATE_INFO;
            kDataKey = gATE_INFO2.GATE_IDX.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_ITEM_ACCESSORY:
        {
            ITEM_ACCESSORY pkItem = kData as ITEM_ACCESSORY;
            NrTSingleton <ItemManager> .Instance.AddAccessory(pkItem);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_ARMOR:
        {
            ITEM_ARMOR iTEM_ARMOR = kData as ITEM_ARMOR;
            NrTSingleton <ItemManager> .Instance.AddArmor(iTEM_ARMOR);

            kDataKey = iTEM_ARMOR.ITEMUNIQUE.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_ITEM_BOX:
        {
            ITEM_BOX pkItem2 = kData as ITEM_BOX;
            NrTSingleton <ItemManager> .Instance.AddBox(pkItem2);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_MATERIAL:
        {
            ITEM_MATERIAL pkItem3 = kData as ITEM_MATERIAL;
            NrTSingleton <ItemManager> .Instance.AddMaterial(pkItem3);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_QUEST:
        {
            ITEM_QUEST pkItem4 = kData as ITEM_QUEST;
            NrTSingleton <ItemManager> .Instance.AddQuest(pkItem4);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_SECONDEQUIP:
        {
            ITEM_SECONDEQUIP pkItem5 = kData as ITEM_SECONDEQUIP;
            NrTSingleton <ItemManager> .Instance.AddSecondEquip(pkItem5);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_SUPPLIES:
        {
            ITEM_SUPPLIES pkItem6 = kData as ITEM_SUPPLIES;
            NrTSingleton <ItemManager> .Instance.AddSupply(pkItem6);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_WEAPON:
        {
            ITEM_WEAPON pkItem7 = kData as ITEM_WEAPON;
            NrTSingleton <ItemManager> .Instance.AddWeapon(pkItem7);

            return(true);
        }

        case NrTableData.eResourceType.eRT_INDUN_INFO:
        {
            INDUN_INFO iNDUN_INFO = kData as INDUN_INFO;
            iNDUN_INFO.m_eIndun_Type = INDUN_DEFINE.GetIndunType(iNDUN_INFO.strIndunType);
            iNDUN_INFO.m_nNpcCode    = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(iNDUN_INFO.strNpcCode);

            kDataKey = iNDUN_INFO.m_nIndunIDX.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_GAMEGUIDE:
        {
            TableData_GameGuideInfo tableData_GameGuideInfo = kData as TableData_GameGuideInfo;
            if (tableData_GameGuideInfo.gameGuideInfo.m_eType == GameGuideType.DEFAULT)
            {
                NrTSingleton <GameGuideManager> .Instance.AddDefaultGuid(tableData_GameGuideInfo.gameGuideInfo);
            }
            else
            {
                NrTSingleton <GameGuideManager> .Instance.AddGameGuide(tableData_GameGuideInfo.gameGuideInfo);
            }
            return(true);
        }

        case NrTableData.eResourceType.eRT_LOCALMAP_INFO:
        {
            LOCALMAP_INFO lOCALMAP_INFO = kData as LOCALMAP_INFO;
            kDataKey = lOCALMAP_INFO.LOCALMAP_IDX.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_WORLDMAP_INFO:
        {
            WORLDMAP_INFO wORLDMAP_INFO = kData as WORLDMAP_INFO;
            if (wORLDMAP_INFO.TEXTKEY != string.Empty)
            {
                wORLDMAP_INFO.WORLDMAP_NAME = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(wORLDMAP_INFO.TEXTKEY);
            }
            kDataKey = wORLDMAP_INFO.WORLDMAP_IDX.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_ADVENTURE:
        {
            TableData_AdventureInfo tableData_AdventureInfo = kData as TableData_AdventureInfo;
            NrTSingleton <NkAdventureManager> .Instance.AddAdventure(tableData_AdventureInfo.adventure);

            return(true);
        }

        case NrTableData.eResourceType.eRT_SOLDIER_EVOLUTIONEXP:
        {
            Evolution_EXP evolution_EXP = kData as Evolution_EXP;
            kDataKey = (evolution_EXP.Grade - 1).ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_SOLDIER_TICKETINFO:
        {
            Ticket_Info ticket_Info = kData as Ticket_Info;
            kDataKey = (ticket_Info.Grade - 1).ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_CHARSOL_GUIDE:
        {
            SOL_GUIDE sOL_GUIDE = kData as SOL_GUIDE;
            kDataKey = sOL_GUIDE.m_i32CharKind.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_ITEM_REDUCE:
        {
            ItemReduceInfo itemReduceInfo = kData as ItemReduceInfo;
            kDataKey = itemReduceInfo.iGroupUnique.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_RECOMMEND_REWARD:
        {
            RECOMMEND_REWARD rECOMMEND_REWARD = kData as RECOMMEND_REWARD;
            kDataKey = rECOMMEND_REWARD.i8RecommendCount.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_SUPPORTER_REWARD:
        {
            SUPPORTER_REWARD sUPPORTER_REWARD = kData as SUPPORTER_REWARD;
            kDataKey = sUPPORTER_REWARD.i8SupporterLevel.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_GMHELPINFO:
        {
            GMHELP_INFO gMHELP_INFO = kData as GMHELP_INFO;
            kDataKey = gMHELP_INFO.m_bGMKind.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_SOLWAREHOUSE:
        {
            SolWarehouseInfo solWarehouseInfo = kData as SolWarehouseInfo;
            kDataKey = solWarehouseInfo.iWarehouseNumber.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_CHARSPEND:
        {
            charSpend charSpend = kData as charSpend;
            kDataKey = charSpend.iLevel.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_REINCARNATIONINFO:
        {
            ReincarnationInfo reincarnationInfo = kData as ReincarnationInfo;
            for (int k = 0; k < 6; k++)
            {
                reincarnationInfo.iCharKind[k] = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(reincarnationInfo.strText[k]);
            }
            kDataKey = reincarnationInfo.iType.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_ITEM_BOX_GROUP:
        {
            ITEM_BOX_GROUP_DATA pkItemBoxGroupData = kData as ITEM_BOX_GROUP_DATA;
            NrTSingleton <ItemManager> .Instance.AddBoxGroup(pkItemBoxGroupData);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_TICKET:
        {
            ITEM_TICKET pkItem8 = kData as ITEM_TICKET;
            NrTSingleton <ItemManager> .Instance.AddTicket(pkItem8);

            return(true);
        }

        case NrTableData.eResourceType.eRT_AGIT_INFO:
        {
            AgitInfoData agitInfoData = kData as AgitInfoData;
            kDataKey = agitInfoData.i16Level.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_AGIT_NPC:
        {
            AgitNPCData agitNPCData = kData as AgitNPCData;
            kDataKey = agitNPCData.ui8NPCType.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_AGIT_MERCHNAT:
        {
            AgitMerchantData agitMerchantData = kData as AgitMerchantData;
            kDataKey = agitMerchantData.i16SellType.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_LEVELUPGUIDE:
        {
            LEVELUPGUIDE_INFO lEVELUPGUIDE_INFO = kData as LEVELUPGUIDE_INFO;
            for (int l = 0; l < lEVELUPGUIDE_INFO.explainList.Count; l++)
            {
                if (lEVELUPGUIDE_INFO.explainList[l] == "0")
                {
                    break;
                }
                AlarmManager.GetInstance().SetLevelupInfo(lEVELUPGUIDE_INFO.LEVEL, "1", lEVELUPGUIDE_INFO.explainList[l]);
            }
            break;
        }

        case NrTableData.eResourceType.eRT_MYTHRAIDINFO:
        {
            MYTHRAIDINFO_DATA mYTHRAIDINFO_DATA = kData as MYTHRAIDINFO_DATA;
            CHARKIND_INFO     baseCharKindInfo  = NrTSingleton <NrCharKindInfoManager> .Instance.GetBaseCharKindInfo(mYTHRAIDINFO_DATA.GetBossCode());

            if (baseCharKindInfo == null)
            {
                Debug.LogError("BossCode Wrong : " + mYTHRAIDINFO_DATA.GetBossCode());
            }
            else
            {
                mYTHRAIDINFO_DATA.nMainBossCharKind = baseCharKindInfo.CHARKIND;
                kDataKey = mYTHRAIDINFO_DATA.nRaidSeason.ToString() + mYTHRAIDINFO_DATA.nRaidType.ToString();
            }
            break;
        }

        case NrTableData.eResourceType.eRT_MYTHRAIDCLEARREWARD:
        {
            MYTHRAID_CLEAR_REWARD_INFO mYTHRAID_CLEAR_REWARD_INFO = kData as MYTHRAID_CLEAR_REWARD_INFO;
            kDataKey = MYTHRAID_CLEAR_REWARD_INFO.setDataKey(mYTHRAID_CLEAR_REWARD_INFO.CLEARMODE, mYTHRAID_CLEAR_REWARD_INFO.ROUND).ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_MYTHRAIDRANKREWARD:
            kDataKey = this.m_dicResourceInfo[num].Count.ToString();
            break;

        case NrTableData.eResourceType.eRT_MYTHRAIDGUARDIANANGEL:
        {
            MYTHRAID_GUARDIANANGEL_INFO mYTHRAID_GUARDIANANGEL_INFO = kData as MYTHRAID_GUARDIANANGEL_INFO;
            kDataKey = mYTHRAID_GUARDIANANGEL_INFO.UNIQUE.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_AUTOSELL:
        {
            AutoSell_info autoSell_info = kData as AutoSell_info;
            kDataKey = autoSell_info.i32SellNumber.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_ITEM_GROUP_SOL_TICKET:
        {
            GROUP_SOL_TICKET gROUP_SOL_TICKET = kData as GROUP_SOL_TICKET;
            if (kData != null)
            {
                NrTSingleton <ItemManager> .Instance.Add_GroupSolTicket(gROUP_SOL_TICKET.i64GroupUnique, gROUP_SOL_TICKET);
            }
            break;
        }

        case NrTableData.eResourceType.eRT_MYTH_EVOLUTION_SPEND:
        {
            MYTH_EVOLUTION mYTH_EVOLUTION = kData as MYTH_EVOLUTION;
            kDataKey = mYTH_EVOLUTION.m_bSeason.ToString();
            break;
        }
        }
        return(this.AddResourceInfo(num, kDataKey, kData));
    }
Esempio n. 7
0
    public void SetData(byte bPreGrade, long lPreLevel, long lGetExp, NkSoldierInfo kSolInfo)
    {
        string text     = string.Empty;
        string text2    = string.Empty;
        string text3    = string.Empty;
        int    charkind = 0;
        int    solgrade = 0;

        if (kSolInfo != null)
        {
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1731");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[]
            {
                text,
                "count",
                lGetExp
            });

            if (lPreLevel != (long)kSolInfo.GetLevel())
            {
                text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1732");

                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
                {
                    text2,
                    "count1",
                    lPreLevel,
                    "count2",
                    kSolInfo.GetLevel()
                });
            }
            BASE_SOLGRADEINFO    cHARKIND_SOLGRADEINFO  = kSolInfo.GetCharKindInfo().GetCHARKIND_SOLGRADEINFO((int)bPreGrade);
            CHARKIND_SOLSTATINFO kSolStatInfo           = cHARKIND_SOLGRADEINFO.kSolStatInfo;
            BASE_SOLGRADEINFO    cHARKIND_SOLGRADEINFO2 = kSolInfo.GetCharKindInfo().GetCHARKIND_SOLGRADEINFO((int)kSolInfo.GetGrade());
            CHARKIND_SOLSTATINFO kSolStatInfo2          = cHARKIND_SOLGRADEINFO2.kSolStatInfo;
            text3    = kSolInfo.GetName();
            charkind = kSolInfo.GetCharKind();
            solgrade = (int)kSolInfo.GetGrade();
            NrSound.ImmedatePlay("UI_SFX", "QUEST", "SOLDIERRECRUIT");
            short[] propertys = this.GetPropertys(kSolStatInfo, kSolStatInfo2);
            if (propertys.Length != this.arPerpertyKeys.Length)
            {
                Debug.LogError(string.Format("Property size V:{0} != S:{1}", propertys.Length, this.arPerpertyKeys.Length));
                return;
            }
            for (int i = 0; i < 4; i++)
            {
                this.lbPropertyText[i].Visible  = false;
                this.lbPropertyValue[i].Visible = false;
            }
            int num = 0;
            for (int j = 0; j < propertys.Length; j++)
            {
                string strTextKey = this.arPerpertyKeys[j];
                short  num2       = propertys[j];
                if (0 < num2)
                {
                    this.lbPropertyText[num].Visible = true;
                    this.lbPropertyText[num].SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(strTextKey));
                    this.lbPropertyValue[num].Visible = true;
                    this.lbPropertyValue[num].SetText(num2.ToString());
                    num++;
                    if (num > 4)
                    {
                        Debug.LogError(string.Format("VALID_PROPERTY_MAX {0}", j));
                        break;
                    }
                }
            }
        }
        this.itSoldier.SetSolImageTexure(eCharImageType.LARGE, charkind, solgrade);
        this.lbAddExp.SetText(text);
        this.lbAddLevel.SetText(text2);
        this.lbName.SetText(text3);
    }
Esempio n. 8
0
    public void SetData(byte bPreGrade, int lPreLevel, long lExp, NkSoldierInfo kSolInfo, long nAddEvolutionExp, long nMaxLvEvolution)
    {
        this.m_TargetSolInfo = kSolInfo;
        if (kSolInfo != null)
        {
            string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1731");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref textFromInterface, new object[]
            {
                textFromInterface,
                "count",
                lExp
            });

            this.lbExp.SetText(textFromInterface);
            this.lbName.SetText(kSolInfo.GetName());
            if (!NrTSingleton <ContentsLimitManager> .Instance.IsReincarnation())
            {
                if (kSolInfo.IsLeader())
                {
                    this.SolRank.Visible = false;
                }
                else
                {
                    UIBaseInfoLoader solLargeGradeImg = NrTSingleton <NrCharKindInfoManager> .Instance.GetSolLargeGradeImg(kSolInfo.GetCharKind(), (int)kSolInfo.GetGrade());

                    if (solLargeGradeImg != null)
                    {
                        if (0 < NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendType(kSolInfo.GetCharKind(), (int)kSolInfo.GetGrade()))
                        {
                            this.SolRank.SetSize(solLargeGradeImg.UVs.width, solLargeGradeImg.UVs.height);
                        }
                        this.SolRank.SetTexture(solLargeGradeImg);
                    }
                }
            }
            else
            {
                UIBaseInfoLoader solLargeGradeImg2 = NrTSingleton <NrCharKindInfoManager> .Instance.GetSolLargeGradeImg(kSolInfo.GetCharKind(), (int)kSolInfo.GetGrade());

                if (solLargeGradeImg2 != null)
                {
                    if (0 < NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendType(kSolInfo.GetCharKind(), (int)kSolInfo.GetGrade()))
                    {
                        this.SolRank.SetSize(solLargeGradeImg2.UVs.width, solLargeGradeImg2.UVs.height);
                    }
                    this.SolRank.SetTexture(solLargeGradeImg2);
                }
            }
            int costumeUnique = (int)kSolInfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_COSTUME);
            this.dtImg.SetTexture(eCharImageType.LARGE, kSolInfo.GetCharKind(), (int)kSolInfo.GetGrade(), NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(costumeUnique));
            long  num  = kSolInfo.GetNextExp() - kSolInfo.GetCurBaseExp();
            float num2 = ((float)num - (float)kSolInfo.GetRemainExp()) / (float)num;
            if (num2 > 1f)
            {
                num2 = 1f;
            }
            if (kSolInfo.IsMaxLevel())
            {
                string textFromInterface2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("286");

                this.lbExpRate.SetText(textFromInterface2);
                num2 = 1f;
            }
            else
            {
                this.lbExpRate.SetText(string.Format("{0:F2}%", num2 * 100f));
            }
            this.pbGage.Value = num2;
            BASE_SOLGRADEINFO cHARKIND_SOLGRADEINFO  = kSolInfo.GetCharKindInfo().GetCHARKIND_SOLGRADEINFO((int)kSolInfo.GetGrade());
            BASE_SOLGRADEINFO cHARKIND_SOLGRADEINFO2 = kSolInfo.GetCharKindInfo().GetCHARKIND_SOLGRADEINFO((int)bPreGrade);
            if (cHARKIND_SOLGRADEINFO != null && cHARKIND_SOLGRADEINFO2 != null)
            {
                int  level = (int)kSolInfo.GetLevel();
                bool flag  = lPreLevel != level;
                this.lbLevel[1].SetText(lPreLevel.ToString());
                this.lbLevel[2].Visible = flag;
                this.lbLevel[3].Visible = flag;
                this.lbLevel[3].SetText(level.ToString());
                this.m_bLevelUP = (lPreLevel != level);
                if (flag)
                {
                    base.SetShowLayer(2, true);
                }
                else
                {
                    base.SetShowLayer(2, false);
                }
                if (flag)
                {
                    int[] levelChangeValue = this.GetLevelChangeValue(kSolInfo, (short)lPreLevel, (short)level, (int)bPreGrade);
                    this.SetTextShowOrNot(ref this.m_lbLevelUpStat, levelChangeValue);
                }
            }
            if (nAddEvolutionExp > 0L)
            {
                textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1731");

                if (nMaxLvEvolution > 0L)
                {
                    textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2593");

                    NrTSingleton <CTextParser> .Instance.ReplaceParam(ref textFromInterface, new object[]
                    {
                        textFromInterface,
                        "count",
                        nAddEvolutionExp,
                        "count1",
                        nAddEvolutionExp - nMaxLvEvolution,
                        "count2",
                        nMaxLvEvolution
                    });
                }
                else
                {
                    NrTSingleton <CTextParser> .Instance.ReplaceParam(ref textFromInterface, new object[]
                    {
                        textFromInterface,
                        "count",
                        nAddEvolutionExp
                    });
                }
                if (!kSolInfo.IsMaxGrade())
                {
                    this.m_lbGetGradeExpText.SetText(textFromInterface);
                }
                else
                {
                    this.m_lbGetGradeExpText.SetText(string.Empty);
                }
                base.SetShowLayer(3, true);
                bool flag2 = kSolInfo.GetGrade() != bPreGrade;
                this.dtGradeUpImg.Visible = flag2;
                bool flag3 = false;
                if (COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_TRADECOUNT_USE) == 1 && flag2 && kSolInfo.IsMaxGrade())
                {
                    int num3 = (int)kSolInfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_TRADE_COUNT);
                    this.lbGradeUpText.Visible = true;
                    string empty = string.Empty;
                    NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                    {
                        NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2127"),
                        "count",
                        num3
                    });

                    this.lbGradeUpText.SetText(empty);
                    flag3 = true;
                }
                if (!flag3)
                {
                    this.lbGradeUpText.Visible = false;
                }
                if (flag2)
                {
                    short legendType = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendType(kSolInfo.GetCharKind(), (int)bPreGrade);

                    UIBaseInfoLoader solLargeGradeImg3 = NrTSingleton <NrCharKindInfoManager> .Instance.GetSolLargeGradeImg(kSolInfo.GetCharKind(), (int)bPreGrade);

                    if (0 < legendType)
                    {
                        this.m_txPreRank.SetSize(solLargeGradeImg3.UVs.width, solLargeGradeImg3.UVs.height);
                    }
                    this.m_txPreRank.SetTexture(solLargeGradeImg3);
                    legendType = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendType(kSolInfo.GetCharKind(), (int)(bPreGrade + 1));

                    solLargeGradeImg3 = NrTSingleton <NrCharKindInfoManager> .Instance.GetSolLargeGradeImg(kSolInfo.GetCharKind(), (int)(bPreGrade + 1));

                    if (0 < legendType)
                    {
                        this.m_txCurRank.SetSize(solLargeGradeImg3.UVs.width, solLargeGradeImg3.UVs.height);
                    }
                    this.m_txCurRank.SetTexture(solLargeGradeImg3);
                    base.SetShowLayer(4, true);
                    int[] gradeChangeValue = this.GetGradeChangeValue(kSolInfo, kSolInfo.GetLevel(), (int)bPreGrade, (int)kSolInfo.GetGrade());
                    this.SetTextShowOrNot(ref this.m_lbRankUpStat, gradeChangeValue);
                }
                else
                {
                    base.SetShowLayer(4, false);
                }
                this.GradeExpBG.Visible   = true;
                this.GradeExpGage.Visible = true;
                this.GradeExpText.Visible = true;
                long   num4 = kSolInfo.GetEvolutionExp() - kSolInfo.GetCurBaseEvolutionExp();
                long   num5 = kSolInfo.GetNextEvolutionExp() - kSolInfo.GetCurBaseEvolutionExp();
                float  evolutionExpPercent = kSolInfo.GetEvolutionExpPercent();
                string text = string.Empty;
                this.GradeExpGage.SetSize(228f * evolutionExpPercent, this.GradeExpGage.height);
                if (!kSolInfo.IsMaxGrade())
                {
                    NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[]
                    {
                        NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1871"),
                        "exp",
                        num4.ToString(),
                        "maxexp",
                        num5.ToString()
                    });
                }
                else
                {
                    text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("484");
                }
                this.GradeExpText.SetText(text);
            }
            else
            {
                base.SetShowLayer(3, false);
                base.SetShowLayer(4, false);
            }
        }
    }
Esempio n. 9
0
    public void ShowInfo()
    {
        NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1);

        if (charPersonInfo == null)
        {
            return;
        }
        NkSoldierInfo leaderSoldierInfo = charPersonInfo.GetLeaderSoldierInfo();

        if (leaderSoldierInfo == null)
        {
            return;
        }
        int num = (int)NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_REINCARNATION_COUNT);

        int num2 = num + 1;
        ReincarnationInfo reincarnation = NrTSingleton <NrBaseTableManager> .Instance.GetReincarnation(num.ToString());

        if (reincarnation == null)
        {
            return;
        }
        ReincarnationInfo reincarnation2 = NrTSingleton <NrBaseTableManager> .Instance.GetReincarnation(num2.ToString());

        if (reincarnation2 == null)
        {
            return;
        }
        UIBaseInfoLoader solGradeImg = NrTSingleton <NrCharKindInfoManager> .Instance.GetSolGradeImg(leaderSoldierInfo.GetCharKind(), (int)leaderSoldierInfo.GetGrade());

        if (solGradeImg != null)
        {
            this.m_dtCurRank.Visible = true;
            this.m_dtCurRank.SetTexture(solGradeImg);
        }
        else
        {
            this.m_dtCurRank.Visible = false;
        }
        this.m_dtCurPortrait.SetTexture(eCharImageType.LARGE, leaderSoldierInfo.GetCharKind(), (int)leaderSoldierInfo.GetGrade(), string.Empty);
        int num3 = leaderSoldierInfo.GetSeason() + 1;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1208"),
            "count",
            num3.ToString()
        });

        this.m_lbCurSeason.SetText(this.m_strText);
        solGradeImg = NrTSingleton <NrCharKindInfoManager> .Instance.GetSolGradeImg(leaderSoldierInfo.GetCharKind(), 0);

        if (solGradeImg != null)
        {
            this.m_dtAfterRank.Visible = true;
            this.m_dtAfterRank.SetTexture(solGradeImg);
        }
        else
        {
            this.m_dtAfterRank.Visible = false;
        }
        int reincarnationCharKind = reincarnation2.GetReincarnationCharKind(reincarnation, leaderSoldierInfo.GetCharKind());

        this.m_dtAfterPortrait.SetTexture(eCharImageType.LARGE, reincarnationCharKind, 0, string.Empty);
        num3 = 2;
        NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(reincarnationCharKind);

        if (charKindInfo != null)
        {
            BASE_SOLGRADEINFO cHARKIND_SOLGRADEINFO = charKindInfo.GetCHARKIND_SOLGRADEINFO(0);
            if (cHARKIND_SOLGRADEINFO != null)
            {
                num3 = cHARKIND_SOLGRADEINFO.SolSeason + 1;
            }
        }
        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1208"),
            "count",
            num3.ToString()
        });

        this.m_lbAfterSeason.SetText(this.m_strText);
        this.m_lNeedMoney = reincarnation2.lNeedMoney;
        this.m_lbNeedMoney.SetText(ANNUALIZED.Convert(reincarnation2.lNeedMoney));
        this.m_lbMyMoney.SetText(ANNUALIZED.Convert(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_Money));
    }
Esempio n. 10
0
    public void SetSolKind(SolSlotData SlotData)
    {
        if (SlotData == null)
        {
            return;
        }
        this.m_SelectSlotData = SlotData;
        NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.m_SelectSlotData.i32KindInfo);

        if (charKindInfo == null)
        {
            TsLog.LogOnlyEditor("!!!! SOL CHARKIND ERROR {0}" + this.m_SelectSlotData.i32KindInfo + " !!");
            return;
        }
        this.m_SolInterfaceTool.m_kSelectCharKindInfo = charKindInfo;
        this.m_SolInterfaceTool.SetCharImg(this.m_SelectSlotData.bSolGrade - 1, string.Empty);
        this.m_SolInterfaceTool.SetHeroEventLabel(this.m_SelectSlotData.bSolGrade);
        this.m_SolInterfaceTool.SetSkillIcon();
        this.m_SolInterfaceTool.m_Label_Rank2.Visible = false;
        if (!NrTSingleton <ContentsLimitManager> .Instance.IsReincarnation())
        {
            if (charKindInfo.IsATB(1L))
            {
                this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = false;
            }
            else
            {
                this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = true;
            }
        }
        else
        {
            this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = true;
        }
        this.m_Button_MovieBtn.data = this.m_SelectSlotData.i32KindInfo;
        bool visible = NrTSingleton <NrCharCostumeTableManager> .Instance.IsCostumeKind(charKindInfo.GetCharKind());

        if (NrTSingleton <ContentsLimitManager> .Instance.IsCostumeLimit())
        {
            visible = false;
        }
        this.m_Button_Costume.Visible = visible;
        this.m_Label_Costume.Visible  = visible;
        BASE_SOLGRADEINFO cHARKIND_SOLGRADEINFO = charKindInfo.GetCHARKIND_SOLGRADEINFO((int)(this.m_SelectSlotData.bSolGrade - 1));

        if (cHARKIND_SOLGRADEINFO != null)
        {
            int num  = charKindInfo.GetGradePlusSTR((int)(this.m_SelectSlotData.bSolGrade - 1));
            int num2 = charKindInfo.GetGradePlusDEX((int)(this.m_SelectSlotData.bSolGrade - 1));
            int num3 = charKindInfo.GetGradePlusINT((int)(this.m_SelectSlotData.bSolGrade - 1));
            int num4 = charKindInfo.GetGradePlusVIT((int)(this.m_SelectSlotData.bSolGrade - 1));
            num  += charKindInfo.GetIncSTR((int)(this.m_SelectSlotData.bSolGrade - 1), (int)charKindInfo.GetGradeMaxLevel((short)(this.m_SelectSlotData.bSolGrade - 1)));
            num2 += charKindInfo.GetIncDEX((int)(this.m_SelectSlotData.bSolGrade - 1), (int)charKindInfo.GetGradeMaxLevel((short)(this.m_SelectSlotData.bSolGrade - 1)));
            num3 += charKindInfo.GetIncINT((int)(this.m_SelectSlotData.bSolGrade - 1), (int)charKindInfo.GetGradeMaxLevel((short)(this.m_SelectSlotData.bSolGrade - 1)));
            num4 += charKindInfo.GetIncVIT((int)(this.m_SelectSlotData.bSolGrade - 1), (int)charKindInfo.GetGradeMaxLevel((short)(this.m_SelectSlotData.bSolGrade - 1)));
            this.m_Label_Stats_str2.SetText(num.ToString());
            this.m_Label_Stats_dex2.SetText(num2.ToString());
            this.m_Label_Stats_vit2.SetText(num4.ToString());
            this.m_Label_Stats_int2.SetText(num3.ToString());
        }
        else
        {
            this.m_Label_Stats_str2.SetText("0");
            this.m_Label_Stats_dex2.SetText("0");
            this.m_Label_Stats_vit2.SetText("0");
            this.m_Label_Stats_int2.SetText("0");
        }
        this.m_ScrollLabel_info.SetScrollLabel(charKindInfo.GetDesc());
        if (!NrTSingleton <ContentsLimitManager> .Instance.IsElementKind(charKindInfo.GetCharKind()))
        {
            if (!NrTSingleton <NrTableSolGuideManager> .Instance.GetCharKindAlchemy(charKindInfo.GetCharKind()))
            {
                this.m_Toolbar.Control_Tab[2].Visible = false;
            }
            else
            {
                this.m_Toolbar.Control_Tab[2].Visible = true;
                CHARKIND_SOLDIERINFO guide_Col = NrTSingleton <NrBaseTableManager> .Instance.GetGuide_Col(charKindInfo.GetCharKind());

                if (guide_Col != null)
                {
                    int[]  array  = new int[5];
                    byte[] array2 = new byte[5];
                    for (int i = 0; i < 5; i++)
                    {
                        array[i]  = guide_Col.kElement_CharData[i].GetCharCharKind();
                        array2[i] = guide_Col.kElement_CharData[i].GetCharCharRank();
                    }
                    SolDetail_Info_Dlg solDetail_Info_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLDETAIL_DLG) as SolDetail_Info_Dlg;

                    solDetail_Info_Dlg.SetElEmentMaterial(guide_Col.i32BaseCharKind, guide_Col.bBaseRank, array, array2, guide_Col.i64NeedMoney);
                }
            }
        }
        if (Scene.CurScene == Scene.Type.SOLDIER_BATCH)
        {
            this.m_Toolbar.Control_Tab[2].Visible = false;
            this.m_Toolbar.Control_Tab[1].Visible = false;
        }
        this.m_cMythSkillControl.ShowInfo(SlotData);
    }