public void ResetCache()
        {
            Liveness = 0;
            DailyQuestList.Clear();
            ReceiveBoxList.Clear();
            var taskSet = new ShareCacheStruct <Config_Task>();

            for (TaskType type = TaskType.Login; type <= TaskType.BuyGold; ++type)
            {
                var taskcfg = taskSet.Find(t => (t.id == type));
                if (taskcfg == null)
                {
                    continue;
                }
                var dailyQuest = new UserDailyQuestData();
                dailyQuest.ID     = type;
                dailyQuest.Count  = 0;
                dailyQuest.Status = TaskStatus.No;

                DailyQuestList.Add(dailyQuest);
            }
        }
 public UserDailyQuestData FindTask(TaskType id)
 {
     return(DailyQuestList.Find(t => t.ID == id));
 }