예제 #1
0
        /// <summary>
        /// Return a list of message recieved since the last time it was caled.
        /// </summary>
        /// <returns> List of ChatEntry </returns>
        public static List <LokiPoe.InGameState.ChatPanel.ChatEntry> GetNewChatMessages()
        {
            var tempMsg = LokiPoe.InGameState.ChatPanel.Messages;
            var result  = new IndexedList <LokiPoe.InGameState.ChatPanel.ChatEntry>();

            result.AddRange(tempMsg.Where(msg => !_oldMessages.Contains(msg)));

            _oldMessages = tempMsg;

            return(result);
        }