Exemplo n.º 1
0
    public eTIMESHOP_TYPE GetType_ByIDX(long _i64IDX)
    {
        if (_i64IDX < 0L)
        {
            return(eTIMESHOP_TYPE.eTIMESHOP_TYPE_NORMAL);
        }
        if (NrTSingleton <ContentsLimitManager> .Instance.IsVipExp())
        {
            return(eTIMESHOP_TYPE.eTIMESHOP_TYPE_NORMAL);
        }
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        if (kMyCharInfo == null)
        {
            return(eTIMESHOP_TYPE.eTIMESHOP_TYPE_NORMAL);
        }
        int num;

        if (NrTSingleton <ContentsLimitManager> .Instance.IsVipExp())
        {
            num = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_TIMESHOP_MIN_SLOTCOUNT);
        }
        else
        {
            num = (int)NrTSingleton <NrTableVipManager> .Instance.GetTimeShopCountByVipLevel(0);
        }
        int index_byTimeShopIDX = kMyCharInfo.GetIndex_byTimeShopIDX(_i64IDX);

        if (index_byTimeShopIDX < 0)
        {
            return(eTIMESHOP_TYPE.eTIMESHOP_TYPE_NORMAL);
        }
        if (index_byTimeShopIDX < num)
        {
            return(eTIMESHOP_TYPE.eTIMESHOP_TYPE_NORMAL);
        }
        return(eTIMESHOP_TYPE.eTIMESHOP_TYPE_VIP);
    }