public void SetAbandonedCount(int questId, int count) { QuestMetaData orCreateQuestMetaData = GetOrCreateQuestMetaData(questId); orCreateQuestMetaData.AbandonedCount = count; orCreateQuestMetaData.PstAbandonDate = null; }
public void SetCompletedDate(int questId, DateTime utcTime) { QuestMetaData orCreateQuestMetaData = GetOrCreateQuestMetaData(questId); if (orCreateQuestMetaData.UtcCompletedTimes == null) { orCreateQuestMetaData.UtcCompletedTimes = new List <DateTime>(); } orCreateQuestMetaData.UtcCompletedTimes.Add(utcTime); }
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); }