private static void AddChat(LogLevels.LogLevel Level, string Message) { var Text = $"({Level.Name}) {Message}"; if (Level.PrintConsole) { System.Console.ForegroundColor = Level.Color; System.Console.WriteLine(Text); System.Console.ForegroundColor = ConsoleColor.White; } if (!Level.PrintChat || HudManager.Instance == null) { return; } if (HudManager.Instance.Chat != null) { HudManager.Instance.Chat.AddChat(Text); } }
public static void Log(LogLevels.LogLevel Level, string Message) { AddChat(Level, Message); }