public static void Warning(string msg, bool showOnScreen = false, AssemblyName callingAssembly = null)
        {
            Console.WriteLine($"[{(callingAssembly ?? ModName).Name}:WARN] {msg}");

            if (showOnScreen)
            {
                ErrorMessage.AddWarning(msg);
            }
        }
Example #2
0
        public static void Warning(string msg, bool showOnScreen = false, Assembly callingAssembly = null)
        {
            string name = (callingAssembly ?? Assembly.GetCallingAssembly()).GetName().Name;

            Console.WriteLine($"[{name}:WARN] {msg}");

            if (showOnScreen)
                ErrorMessage.AddWarning(msg);
        }
Example #3
0
        public static void Warning(string msg, bool showOnScreen = false)
        {
            string name = Assembly.GetCallingAssembly().GetName().Name;

            Console.WriteLine($"[{name}] WARN: {msg}");

            if (showOnScreen)
            {
                ErrorMessage.AddWarning(msg);
            }
        }