Exemplo n.º 1
0
        // Token: 0x06000077 RID: 119 RVA: 0x00005C34 File Offset: 0x00003E34
        public static void Print <T>(T obj, string color = "FFFFFF", bool force = false)
        {
            bool flag = Tools.verbose || force;

            if (flag)
            {
                string[] array = obj.ToString().Split(new char[]
                {
                    '\n'
                });
                foreach (string text in array)
                {
                    Tools.LogToConsole(string.Concat(new string[]
                    {
                        "<color=#",
                        color,
                        ">[",
                        Tools.modID,
                        "] ",
                        text,
                        "</color>"
                    }));
                }
            }
            Tools.Log <string>(obj.ToString());
        }
Exemplo n.º 2
0
        // Token: 0x06000078 RID: 120 RVA: 0x00005CD8 File Offset: 0x00003ED8
        public static void PrintRaw <T>(T obj, bool force = false)
        {
            bool flag = Tools.verbose || force;

            if (flag)
            {
                Tools.LogToConsole(obj.ToString());
            }
            Tools.Log <string>(obj.ToString());
        }
Exemplo n.º 3
0
 // Token: 0x06000079 RID: 121 RVA: 0x00005D18 File Offset: 0x00003F18
 public static void PrintError <T>(T obj, string color = "FF0000")
 {
     string[] array = obj.ToString().Split(new char[]
     {
         '\n'
     });
     foreach (string text in array)
     {
         Tools.LogToConsole(string.Concat(new string[]
         {
             "<color=#",
             color,
             ">[",
             Tools.modID,
             "] ",
             text,
             "</color>"
         }));
     }
     Tools.Log <string>(obj.ToString());
 }
Exemplo n.º 4
0
        // Token: 0x0600007A RID: 122 RVA: 0x00005DB0 File Offset: 0x00003FB0
        public static void PrintException(Exception e, string color = "FF0000")
        {
            string text = e.Message + "\n" + e.StackTrace;

            string[] array = text.Split(new char[]
            {
                '\n'
            });
            foreach (string text2 in array)
            {
                Tools.LogToConsole(string.Concat(new string[]
                {
                    "<color=#",
                    color,
                    ">[",
                    Tools.modID,
                    "] ",
                    text2,
                    "</color>"
                }));
            }
            Tools.Log <string>(e.Message);
            Tools.Log <string>("\t" + e.StackTrace);
        }