예제 #1
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
            NativeDebugMethods.Log(msg, LogType.Error);
#endif
        }
예제 #2
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
            NativeDebugMethods.Log(msg, type);
#endif
        }
예제 #3
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
            NativeDebugMethods.Log(String.Format(format, args), LogType.Error);
#endif
        }
예제 #4
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
            NativeDebugMethods.Warning(String.Format(format, args));
#endif
        }
예제 #5
0
        /// <summary>
        /// Outputs a warning message
        /// </summary>
        public static void LogWarning(string msg)
        {
#if UNIT_TESTING
            System.Console.WriteLine("[Warning]" + msg);
#else
            NativeDebugMethods.Warning(msg);
#endif
        }
예제 #6
0
        /// <summary>
        /// Logs a message to the console, regardless of log_verbosity settings
        /// </summary>
        public static void LogAlways(string msg)
        {
#if UNIT_TESTING
            System.Console.WriteLine(msg);
#else
            NativeDebugMethods.LogAlways(msg);
#endif
        }
예제 #7
0
 public void DeleteSection(FrameProfilerSection profilerSection)
 {
     NativeDebugMethods.DeleteFrameProfilerSection(profilerSection.Handle);
 }
예제 #8
0
 public FrameProfilerSection CreateSection()
 {
     return(new FrameProfilerSection(NativeDebugMethods.CreateFrameProfilerSection(Handle), this));
 }
예제 #9
0
 public static FrameProfiler Create(string name)
 {
     return(new FrameProfiler(NativeDebugMethods.CreateFrameProfiler(name)));
 }
예제 #10
0
파일: Debug.cs 프로젝트: yonder/CryMono
 public static void DrawBoundingBox(Vec3 pos, BoundingBox bbox, Color color, float timeout)
 {
     NativeDebugMethods.AddAABB(pos, bbox, color, timeout);
 }
예제 #11
0
파일: Debug.cs 프로젝트: yonder/CryMono
 public static void DrawLine(Vec3 startPos, Vec3 endPos, Color color, float timeout)
 {
     NativeDebugMethods.AddPersistentLine(startPos, endPos, color, timeout);
 }
예제 #12
0
파일: Debug.cs 프로젝트: yonder/CryMono
 public static void DrawText(string text, float size, Color color, float timeout)
 {
     NativeDebugMethods.AddPersistentText2D(text, size, color, timeout);
 }
예제 #13
0
파일: Debug.cs 프로젝트: yonder/CryMono
 public static void DrawDirection(Vec3 pos, float radius, Vec3 dir, Color color, float timeout)
 {
     NativeDebugMethods.AddDirection(pos, radius, dir, color, timeout);
 }
예제 #14
0
파일: Debug.cs 프로젝트: yonder/CryMono
 public static void DrawSphere(Vec3 pos, float radius, Color color, float timeout)
 {
     NativeDebugMethods.AddPersistentSphere(pos, radius, color, timeout);
 }