Exemplo n.º 1
0
        public void AddLogEntry(ELogEntryPhase p_phase, LogEntryEventArgs p_args)
        {
            List <LogEntryEventArgs> list = new List <LogEntryEventArgs>();

            if (m_logEntries.ContainsKey(p_phase))
            {
                list = m_logEntries[p_phase];
            }
            list.Add(p_args);
            m_logEntries[p_phase] = list;
        }
Exemplo n.º 2
0
        public void FlushActionLog(ELogEntryPhase p_phase)
        {
            if (!m_logEntries.ContainsKey(p_phase))
            {
                return;
            }
            List <LogEntryEventArgs> list = m_logEntries[p_phase];

            foreach (LogEntryEventArgs p_args in list)
            {
                LegacyLogic.Instance.ActionLog.PushEntry(p_args);
            }
            list.Clear();
            m_logEntries[p_phase] = list;
        }