Пример #1
0
        private static void Main(string[] args)
        {
            FFXIVLIB instance = new FFXIVLIB();
            Chatlog  c        = instance.GetChatlog();

            while (true)
            {
                if (c.IsNewLine())
                {
                    List <Chatlog.Entry> test = c.GetChatLogLines();
                    if (test.Count > 0)
                    {
                        Console.WriteLine("{0} new log lines", test.Count);
                    }
                    foreach (Chatlog.Entry line in test)
                    {
                        Console.WriteLine("{0}[{1}] -> {2}", line.Timestamp, line.Code, line.Text);
                    }
                }
                Thread.Sleep(300);
            }
// ReSharper disable once FunctionNeverReturns
        }