Class MBDebug
- Namespace
- TaleWorlds.Engine
- Assembly
- TaleWorlds.Engine.dll
public static class MBDebug
- Inheritance
-
MBDebug
- Inherited Members
Fields
DisableAllUI
public static bool DisableAllUI
Field Value
DisableLogging
public static bool DisableLogging
Field Value
IsDisplayingHighLevelAI
public static bool IsDisplayingHighLevelAI
Field Value
ShouldAssertThrowException
public static bool ShouldAssertThrowException
Field Value
TestModeEnabled
public static bool TestModeEnabled
Field Value
Properties
DebugVector
public static Vec3 DebugVector { get; }
Property Value
ShowDebugInfoState
public static int ShowDebugInfoState { get; set; }
Property Value
Methods
AbortGame(int)
public static void AbortGame(int ExitCode = 5)
Parameters
ExitCodeint
Assert(bool, string, string, string, int)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void Assert(bool condition, string message, string callerFile = "", string callerMethod = "", int callerLine = 0)
Parameters
AssertConditionOrCallerClassName(bool, string)
[Conditional("DEBUG_MORE")]
public static void AssertConditionOrCallerClassName(bool condition, string name)
Parameters
AssertConditionOrCallerClassNameSearchAllCallstack(bool, string)
[Conditional("DEBUG_MORE")]
public static void AssertConditionOrCallerClassNameSearchAllCallstack(bool condition, string name)
Parameters
AssertMemoryUsage(int)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void AssertMemoryUsage(int memoryMB)
Parameters
memoryMBint
ClearConsole(List<string>)
[CommandLineFunctionality.CommandLineArgumentFunction("clear", "console")]
public static string ClearConsole(List<string> strings)
Parameters
Returns
ClearRenderObjects()
[Conditional("_RGL_KEEP_ASSERTS")]
public static void ClearRenderObjects()
ConditionalContentWarning(bool, string)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void ConditionalContentWarning(bool condition, string message)
Parameters
ConsolePrint(string, DebugColor, ulong)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void ConsolePrint(string message, Debug.DebugColor color = DebugColor.White, ulong debugFilter = 17592186044416)
Parameters
messagestringcolorDebug.DebugColordebugFilterulong
ContentWarning(string)
public static void ContentWarning(string message)
Parameters
messagestring
DisableUI(List<string>)
[CommandLineFunctionality.CommandLineArgumentFunction("toggle_ui", "ui")]
public static string DisableUI(List<string> strings)
Parameters
Returns
EchoCommandWindow(List<string>)
[CommandLineFunctionality.CommandLineArgumentFunction("echo_command_window", "console")]
public static string EchoCommandWindow(List<string> strings)
Parameters
Returns
EchoCommandWindow(string)
public static void EchoCommandWindow(string content)
Parameters
contentstring
EchoCommandWindowTest(List<string>)
[CommandLineFunctionality.CommandLineArgumentFunction("echo_command_window_test", "console")]
public static string EchoCommandWindowTest(List<string> strings)
Parameters
Returns
FailedAssert(string, string, string, int)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void FailedAssert(string message, string callerFile = "", string callerMethod = "", int callerLine = 0)
Parameters
IsErrorReportModeActive()
public static bool IsErrorReportModeActive()
Returns
IsErrorReportModePauseMission()
public static bool IsErrorReportModePauseMission()
Returns
IsTestMode()
public static bool IsTestMode()
Returns
PostWarningLine(string)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void PostWarningLine(string line)
Parameters
linestring
Print(string, int, DebugColor, ulong)
public static void Print(string message, int logLevel = 0, Debug.DebugColor color = DebugColor.White, ulong debugFilter = 17592186044416)
Parameters
messagestringlogLevelintcolorDebug.DebugColordebugFilterulong
RenderDebugBoxObject(Vec3, Vec3, uint, bool, float)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugBoxObject(Vec3 min, Vec3 max, uint color = 4294967295, bool depthCheck = false, float time = 0)
Parameters
RenderDebugBoxObject(Vec3, Vec3, MatrixFrame, uint, bool, float)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugBoxObject(Vec3 min, Vec3 max, MatrixFrame frame, uint color = 4294967295, bool depthCheck = false, float time = 0)
Parameters
RenderDebugCapsule(Vec3, Vec3, float, uint, bool, float)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugCapsule(Vec3 p0, Vec3 p1, float radius, uint color = 4294967295, bool depthCheck = false, float time = 0)
Parameters
RenderDebugDirectionArrow(Vec3, Vec3, uint, bool)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugDirectionArrow(Vec3 position, Vec3 direction, uint color = 4294967295, bool depthCheck = false)
Parameters
RenderDebugFrame(MatrixFrame, float, float)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugFrame(MatrixFrame frame, float lineLength, float time = 0)
Parameters
frameMatrixFramelineLengthfloattimefloat
RenderDebugLine(Vec3, Vec3, uint, bool, float)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugLine(Vec3 position, Vec3 direction, uint color = 4294967295, bool depthCheck = false, float time = 0)
Parameters
RenderDebugRect(float, float, float, float)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugRect(float left, float bottom, float right, float top)
Parameters
RenderDebugRectWithColor(float, float, float, float, uint)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugRectWithColor(float left, float bottom, float right, float top, uint color = 4294967295)
Parameters
RenderDebugSphere(Vec3, float, uint, bool, float)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugSphere(Vec3 position, float radius, uint color = 4294967295, bool depthCheck = false, float time = 0)
Parameters
RenderDebugText(float, float, string, uint, float)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugText(float screenX, float screenY, string text, uint color = 4294967295, float time = 0)
Parameters
RenderDebugText3D(Vec3, string, uint, int, int, float)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugText3D(Vec3 worldPosition, string str, uint color = 4294967295, int screenPosOffsetX = 0, int screenPosOffsetY = 0, float time = 0)
Parameters
RenderText(float, float, string, uint, float)
public static void RenderText(float screenX, float screenY, string text, uint color = 4294967295, float time = 0)
Parameters
SetDumpGenerationDisabled(bool)
public static void SetDumpGenerationDisabled(bool value)
Parameters
valuebool
SetErrorReportScene(Scene)
public static void SetErrorReportScene(Scene scene)
Parameters
sceneScene
ShowError(string)
public static void ShowError(string message)
Parameters
messagestring
ShowMessageBox(string, string, uint)
public static void ShowMessageBox(string lpText, string lpCaption, uint uType)
Parameters
ShowWarning(string)
public static void ShowWarning(string message)
Parameters
messagestring
SilentAssert(bool, string, bool, string, string, int)
public static void SilentAssert(bool condition, string message = "", bool getDump = false, string callerFile = "", string callerMethod = "", int callerLine = 0)
Parameters
WriteDebugLineOnScreen(string)
[Conditional("_RGL_KEEP_ASSERTS")]
public static void WriteDebugLineOnScreen(string str)
Parameters
strstring
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).