public void Init()
 {
     this.m_nWeek         = -1;
     this.m_nYear         = 0;
     this.m_nMonth        = 0;
     this.m_nDay          = 0;
     this.m_nStartTime    = 0;
     this.m_nDurationTime = 0;
     this.m_nEndYear      = 0;
     this.m_nEndMonth     = 0;
     this.m_nEndDay       = 0;
     this.m_nEndTime      = 0;
     this.m_eEventType    = eBUNNING_EVENT.eBUNNING_EVENT_NONE;
     this.m_nExplain      = 0;
     this.m_nTitleText    = 0;
     this.m_strRewardType = string.Empty;
     this.m_nItemUnique   = 0;
     this.m_nRewardCount  = 0;
     this.m_nRewardIcon   = 0;
     this.m_nLimitCount   = 0;
     this.m_strImage      = string.Empty;
     this.m_strSolTalkImg = string.Empty;
     this.m_nLimitLevel   = 0;
     this.m_nShowList     = 0;
 }
    public bool IsHaveReward(eBUNNING_EVENT eBurnningEvent)
    {
        if (eBurnningEvent <= eBUNNING_EVENT.eBUNNING_EVENT_NONE || eBurnningEvent >= eBUNNING_EVENT.eBUNNING_EVENT_MAX)
        {
            return(false);
        }
        bool          flag          = false;
        SUBDATA_UNION sUBDATA_UNION = default(SUBDATA_UNION);
        NrMyCharInfo  kMyCharInfo   = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        sUBDATA_UNION.nSubData = kMyCharInfo.GetCharDetail(15);
        int num = -1;

        if (eBurnningEvent != eBUNNING_EVENT.eBUNNING_EVENT_BABELPARTY)
        {
            if (eBurnningEvent == eBUNNING_EVENT.eBUNNING_EVENT_COLOSSEUM)
            {
                int num2 = (int)sUBDATA_UNION.n8SubData_1;
                num  = num2 % 2;
                flag = (num > 0);
            }
        }
        else
        {
            int num2 = (int)sUBDATA_UNION.n8SubData_0;
            num  = num2 % 2;
            flag = (num > 0);
        }
        return(num >= 0 && flag);
    }
 public BUNNING_EVENT_REFLASH_INFO Get_Value(eBUNNING_EVENT eEventType)
 {
     if (this.m_sdCollection.ContainsKey(eEventType))
     {
         return(this.m_sdCollection[eEventType]);
     }
     return(null);
 }
 public BUNNING_EVENT_INFO GetValue(eBUNNING_EVENT eBurnningEvent)
 {
     if (eBurnningEvent <= eBUNNING_EVENT.eBUNNING_EVENT_NONE || eBurnningEvent >= eBUNNING_EVENT.eBUNNING_EVENT_MAX)
     {
         return(null);
     }
     return(this.m_BunningEvent[(int)eBurnningEvent]);
 }
 public void Set_Value(eBUNNING_EVENT eBurnningEvent, BUNNING_EVENT_INFO value)
 {
     if (eBurnningEvent <= eBUNNING_EVENT.eBUNNING_EVENT_NONE || eBurnningEvent >= eBUNNING_EVENT.eBUNNING_EVENT_MAX)
     {
         return;
     }
     this.m_BunningEvent[(int)eBurnningEvent] = value;
 }
Пример #6
0
 public void SetEventReflashInfo(int nStartTime, int nEndTime, eBUNNING_EVENT eEventType, int nLimitCount, int nTitleText, int nExplain)
 {
     this.m_nStartTime  = nStartTime;
     this.m_nEndTime    = nEndTime;
     this.m_eEventType  = eEventType;
     this.m_nLimitCount = nLimitCount;
     this.m_nTitleText  = nTitleText;
     this.m_nExplain    = nExplain;
 }
Пример #7
0
 public void InitEventReflashInfo()
 {
     this.m_nStartTime  = 0;
     this.m_nEndTime    = 0;
     this.m_eEventType  = eBUNNING_EVENT.eBUNNING_EVENT_NONE;
     this.m_nLimitCount = 0;
     this.m_nTitleText  = 0;
     this.m_nExplain    = 0;
 }
    public int GetLimitCount(eBUNNING_EVENT eBurnningEvent)
    {
        int result = -1;

        if (eBurnningEvent <= eBUNNING_EVENT.eBUNNING_EVENT_NONE || eBurnningEvent >= eBUNNING_EVENT.eBUNNING_EVENT_MAX)
        {
            return(result);
        }
        SUBDATA_UNION sUBDATA_UNION = default(SUBDATA_UNION);
        NrMyCharInfo  kMyCharInfo   = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        sUBDATA_UNION.nSubData = kMyCharInfo.GetCharDetail(15);
        EVENT_INFO eventInfoFromType = this.GetEventInfoFromType((int)eBurnningEvent);

        if (eventInfoFromType == null)
        {
            return(result);
        }
        int nMaxLimitCount = eventInfoFromType.m_nMaxLimitCount;
        int num            = nMaxLimitCount * 2;

        if (eBurnningEvent != eBUNNING_EVENT.eBUNNING_EVENT_BABELPARTY)
        {
            if (eBurnningEvent == eBUNNING_EVENT.eBUNNING_EVENT_COLOSSEUM)
            {
                int num2 = (int)sUBDATA_UNION.n8SubData_1;
                result = (num - num2 + 1) / 2;
            }
        }
        else
        {
            int num2 = (int)sUBDATA_UNION.n8SubData_0;
            result = (num - num2 + 1) / 2;
        }
        return(result);
    }