Exemplo n.º 1
0
        /// <summary>
        /// Logs an error to console
        /// </summary>
        /// <param name="format"></param>
        /// <param name="args"></param>
        public static void LogError(string format, params object[] args)
        {
#if UNIT_TESTING
            System.Console.WriteLine(format, args);
#else
            DebugInterop.Log(String.Format(format, args), LogType.Error);
#endif
        }
Exemplo n.º 2
0
        /// <summary>
        /// Logs a message to the console, regardless of log_verbosity settings
        /// </summary>
        public static void LogError(string msg)
        {
#if UNIT_TESTING
            System.Console.WriteLine(msg);
#else
            DebugInterop.Log(msg, LogType.Error);
#endif
        }
Exemplo n.º 3
0
        /// <summary>
        /// Logs a message to the console
        /// </summary>
        /// <param name="format"></param>
        /// <param name="args"></param>
        public static void Log(string format, LogType type = LogType.Message, params object[] args)
        {
#if UNIT_TESTING
            System.Console.WriteLine(format, args);
#else
            DebugInterop.Log(String.Format(format, args), type);
#endif
        }
Exemplo n.º 4
0
        /// <summary>
        /// Logs a message to the console
        /// </summary>
        public static void Log(string msg, LogType type = LogType.Message)
        {
#if UNIT_TESTING
            System.Console.WriteLine(msg);
#else
            DebugInterop.Log(msg, type);
#endif
        }
Exemplo n.º 5
0
        /// <summary>
        /// Outputs a warning message
        /// </summary>
        /// <param name="format"></param>
        /// <param name="args"></param>
        public static void LogWarning(string format, params object[] args)
        {
#if UNIT_TESTING
            System.Console.WriteLine(format, args);
#else
            DebugInterop.Warning(String.Format(format, args));
#endif
        }
Exemplo n.º 6
0
        /// <summary>
        /// Outputs a warning message
        /// </summary>
        public static void LogWarning(string msg)
        {
#if UNIT_TESTING
            System.Console.WriteLine("[Warning]" + msg);
#else
            DebugInterop.Warning(msg);
#endif
        }
Exemplo n.º 7
0
 public static void DrawBoundingBox(Vector3 pos, BoundingBox bbox, ColorSingle color, float timeout)
 {
     DebugInterop.AddAABB(pos, bbox, color, timeout);
 }
Exemplo n.º 8
0
 public static void DrawLine(Vector3 startPos, Vector3 endPos, ColorSingle color, float timeout)
 {
     DebugInterop.AddPersistentLine(startPos, endPos, color, timeout);
 }
Exemplo n.º 9
0
 public static void DrawText(string text, float size, ColorSingle color, float timeout)
 {
     DebugInterop.AddPersistentText2D(text, size, color, timeout);
 }
Exemplo n.º 10
0
 public static void DrawDirection(Vector3 pos, float radius, Vector3 dir, ColorSingle color, float timeout)
 {
     DebugInterop.AddDirection(pos, radius, dir, color, timeout);
 }
Exemplo n.º 11
0
 public static void DrawSphere(Vector3 pos, float radius, ColorSingle color, float timeout)
 {
     DebugInterop.AddPersistentSphere(pos, radius, color, timeout);
 }