示例#1
0
        public void SetAbandonedCount(int questId, int count)
        {
            QuestMetaData orCreateQuestMetaData = GetOrCreateQuestMetaData(questId);

            orCreateQuestMetaData.AbandonedCount = count;
            orCreateQuestMetaData.PstAbandonDate = null;
        }
示例#2
0
        public void SetCompletedDate(int questId, DateTime utcTime)
        {
            QuestMetaData orCreateQuestMetaData = GetOrCreateQuestMetaData(questId);

            if (orCreateQuestMetaData.UtcCompletedTimes == null)
            {
                orCreateQuestMetaData.UtcCompletedTimes = new List <DateTime>();
            }

            orCreateQuestMetaData.UtcCompletedTimes.Add(utcTime);
        }
示例#3
0
        public QuestMetaData GetOrCreateQuestMetaData(int questId)
        {
            QuestMetaData questMetaData;

            if (!QuestMetaDatas.TryGetValue(questId, out questMetaData))
            {
                questMetaData = new QuestMetaData();
                questMetaData.UtcCompletedTimes = new List <DateTime>();
                QuestMetaDatas[questId]         = questMetaData;
            }

            return(questMetaData);
        }