Пример #1
0
        public EvidenceStoryInfo GetTriggeredEvidenceStory()
        {
            EvidenceStoryInfo info = null;

            if (m_triggerEvidenceStory.Count > 0)
            {
                info = m_triggerEvidenceStory[0];
                m_triggerEvidenceStory.RemoveAt(0);
            }
            return(info);
        }
Пример #2
0
        private void InitEvidenceStoryInfo()
        {
            m_evidenceStoryInfos.Clear();
            var configs = EvidenceStoryConfig.GetAllConfig();

            foreach (var evidenceStoryConfig in configs)
            {
                if (m_removedEvidenceStoryId.Contains(evidenceStoryConfig.Key))
                {
                    continue;
                }

                var info = new EvidenceStoryInfo(evidenceStoryConfig.Value);
                if (info.lackEvidenceID.Count == 0)
                {
                    m_triggerEvidenceStory.Add(info);
                    continue;
                }
                m_evidenceStoryInfos.Add(evidenceStoryConfig.Key, info);
            }
        }
Пример #3
0
 public void RemoveEvidenceStory(EvidenceStoryInfo storyInfo)
 {
     m_triggerEvidenceStory.Remove(storyInfo);
 }