Exemplo n.º 1
0
 public void AddPointLimitTable(PointLimitTable info)
 {
     if (!this.m_kPointLimitTable.ContainsKey(info.m_nLevel))
     {
         this.m_kPointLimitTable.Add(info.m_nLevel, info);
     }
 }
Exemplo n.º 2
0
 public override bool ParseDataFromNDT(TsDataReader dr)
 {
     foreach (TsDataReader.Row data in dr)
     {
         PointLimitTable pointLimitTable = new PointLimitTable();
         pointLimitTable.SetData(data);
         NrTSingleton <PointManager> .Instance.AddPointLimitTable(pointLimitTable);
     }
     return(true);
 }
Exemplo n.º 3
0
    private void SetPoint()
    {
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        if (myCharInfo == null)
        {
            return;
        }
        string empty = string.Empty;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1041"),
            "count",
            ANNUALIZED.Convert(myCharInfo.GetHeroPoint())
        });

        this.m_kHeroPoint.Text = empty;
        empty = string.Empty;
        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1041"),
            "count",
            ANNUALIZED.Convert(myCharInfo.GetEquipPoint())
        });

        this.m_kEquipPoint.Text = empty;
        if (this.m_eType == ExchangeItemDlg.TYPE.TYPE_EXCHANGE_TICKET)
        {
            this.m_kName.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2260");

            PointLimitTable pointLimitTable = NrTSingleton <PointManager> .Instance.GetPointLimitTable(myCharInfo.GetLevel());

            if (pointLimitTable == null)
            {
                return;
            }
            PointTable pointTable = (PointTable)this.m_kSelectItem.Data;
            if (pointTable == null)
            {
                return;
            }
            if (pointTable.m_nItemUnique == PointManager.HERO_TICKET)
            {
                this.m_nHeroLimitTicketNum = pointLimitTable.m_nHeroTicketNum - (int)myCharInfo.GetCharDetail(6);
                empty = string.Empty;
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2261"),
                    "count",
                    this.m_nHeroLimitTicketNum
                });

                this.m_kLimitTicketNum.Text = empty;
            }
            else
            {
                this.m_nEquipLimitTicketNum = pointLimitTable.m_nEquipTicketNum - (int)myCharInfo.GetCharDetail(7);
                empty = string.Empty;
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2261"),
                    "count",
                    this.m_nEquipLimitTicketNum
                });

                this.m_kLimitTicketNum.Text = empty;
            }
            this.m_kHelp.Visible = true;
        }
        else
        {
            PointTable pointTable2 = (PointTable)this.m_kSelectItem.Data;
            if (pointTable2 == null)
            {
                return;
            }
            this.m_kName2.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromItem(pointTable2.m_nNeedItemUnique.ToString());
        }
    }