示例#1
0
 public bool SetQuestReady(ClientQuest quest)
 {
     if (IsNotCompleted(quest.id))
     {
         if (m_ActiveQuests.ContainsKey(quest.id))
         {
             m_ActiveQuests[quest.id] = quest;
             return(true);
         }
     }
     return(false);
 }
示例#2
0
 public bool SetQuestAccepted(ClientQuest quest)
 {
     if (IsNotCompleted(quest.id))
     {
         if (m_ActiveQuests.ContainsKey(quest.id))
         {
             m_ActiveQuests[quest.id] = quest;
         }
         else
         {
             m_ActiveQuests.Add(quest.id, quest);
         }
         return(true);
     }
     return(false);
 }
示例#3
0
 public bool SetQuestCompleted(ClientQuest quest)
 {
     return(SetQuestCompleted(quest.id));
 }