Exemple #1
0
    public void UpdateQuestList(CliProto.SC_GIFT_DAY_UPD netMsg)
    {
        foreach (QuestInfo item in m_questInfos)
        {
            if (item.questType == netMsg.m_Info.m_QuestId)
            {
                item.questFinishedTimes = netMsg.m_Info.m_FinishProgress;


                if (netMsg.m_Info.m_ScoreReceived == 0)
                {
                    item.finished = false;
                }
                else
                {
                    m_curScore   += item.questScroe;
                    item.finished = true;
                }

                break;
            }
        }

        RefreshDirt();

        if (m_goWndRoot != null && _bWndOpen)
        {
            RefreshAwardBox();
            RefreshQuestList(false);
        }
    }
Exemple #2
0
 private static void msg_SC_GIFT_DAY_UPDATE(int iMsgID, ref CMessage msg)
 {
     CliProto.SC_GIFT_DAY_UPD netMsg = (CliProto.SC_GIFT_DAY_UPD)msg;
     EverydayQuestWnd.Instance.UpdateQuestList(netMsg);
 }