Пример #1
0
        private static void WriteLog(params string[] message)
        {
            lock (QueuedLines)
            {
                if (message.Length == 1)
                {
                    // Write to AppData folder
                    QueuedLines.Add(message[0]);

                    // Write to ModAPI log file
                    ModAPI.Log.Write(message[0]);
                }
                else if (message.Length > 1)
                {
                    var messages = new List <string>(message);
                    messages.Reverse();

                    // Write to AppData folder
                    QueuedLines.AddRange(messages);

                    // Write to ModAPI log file
                    foreach (var line in messages)
                    {
                        ModAPI.Log.Write(line);
                    }
                }
            }

            foreach (var line in message)
            {
                Console.Write(line, GriefClientPro.ModName);
            }
        }
Пример #2
0
        private static void WriteLog(params string[] message)
        {
            lock (QueuedLines)
            {
                if (message.Length == 1)
                {
                    QueuedLines.Add(message[0]);
                }
                else if (message.Length > 1)
                {
                    var messages = new List <string>(message);
                    messages.Reverse();
                    QueuedLines.AddRange(messages);
                }
            }

            foreach (var line in message)
            {
                Console.Write(line, GriefClientPro.ModName);
            }
        }