Example #1
0
    public CollectEventInfo(RES_EVENT_COLLECT_INFO info)
    {
        this.m_value = info.userNum;

        this.m_eventIndex  = Mathf.Clamp(info.masterIdx, 1, info.masterIdx);
        this.m_masterTable = EventManager.instance.GetEventTable.GetEventCollectMasterInfo(this.m_eventIndex);

        this.m_startTime = info.s_time;
        this.m_endTime   = info.e_time;

        this.m_rewardBasicCount    = info.rewardCount;
        this.m_rewardCompleteIndex = Util.ToList <int>(info.rewardItem);

        this.m_rewardResultQueue = new Queue <CollectResult>();
    }
Example #2
0
    public void ResponseEventCollectInfo(RES_EVENT_COLLECT_INFO info)
    {
        m_isCollectEventUpdate = true;

        m_collectEventInfo = new CollectEventInfo(info);

        if (CheckWindowActive())
        {
            m_eventWindow.SetEventWindowGroup(EVENT_TYPE.EVENT_COLLECT, false);
        }
        else
        {
            OpenEventWindow(EVENT_TYPE.EVENT_COLLECT);
        }
    }