Exemplo n.º 1
0
        public static void Log(string s)
        {
            string namesection = GetNameSection();

            Native_Log(namesection, s);
            CumConsole.RunLogCallbacks(namesection, s);
        }
Exemplo n.º 2
0
        internal static void LogCumError(string msg, string modname)
        {
            string namesection = (string.IsNullOrEmpty(modname) ? "" : ("[" + modname.Replace(" ", "_") + "] "));

            Native_LogCumError(namesection, msg);
            CumConsole.RunErrorCallbacks(namesection, msg);
        }
Exemplo n.º 3
0
        public static void Log(ConsoleColor color, string s)
        {
            string namesection = GetNameSection();

            Native_LogColor(namesection, s, color);
            CumConsole.RunLogCallbacks(namesection, s);
        }
Exemplo n.º 4
0
        public static void LogError(string s, params object[] args)
        {
            string namesection = GetNameSection();
            string fmt         = string.Format(s, args);

            Native_LogError(namesection, fmt);
            CumConsole.RunErrorCallbacks(namesection, fmt);
        }
Exemplo n.º 5
0
        public static void Log(ConsoleColor color, string s, params object[] args)
        {
            string namesection = GetNameSection();
            string fmt         = string.Format(s, args);

            Native_LogColor(namesection, fmt, color);
            CumConsole.RunLogCallbacks(namesection, fmt);
        }