Exemplo n.º 1
0
        public PageEntry(Mobile sender, string message, PageType type)
        {
            m_Sender       = sender;
            m_Sent         = DateTime.UtcNow;
            m_Message      = Utility.FixHtml(message);
            m_Type         = type;
            m_PageLocation = sender.Location;
            m_PageMap      = sender.Map;

            PlayerMobile pm = sender as PlayerMobile;

            if (pm != null && pm.SpeechLog != null && Array.IndexOf(SpeechLogAttachment, type) >= 0)
            {
                m_SpeechLog = new List <SpeechLogEntry>(pm.SpeechLog);
            }

            m_Timer = new InternalTimer(this);
            m_Timer.Start();

            StaffHistory history = Reports.Reports.StaffHistory;

            if (history != null)
            {
                m_PageInfo = new PageInfo(this);

                history.AddPage(m_PageInfo);
            }
        }