Пример #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);
        }