M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Engine.MBDebug Class Reference

Public Types

enum  MessageBoxTypeFlag {
  Ok = 0x00000001 ,
  Warning = 0x00000002 ,
  Error = 0x00000004 ,
  OkCancel = 0x00000008 ,
  RetryCancel = 0x00000010 ,
  YesNo = 0x00000020 ,
  YesNoCancel = 0x00000040 ,
  Information = 0x00000080 ,
  Exclamation = 0x00000100 ,
  Question = 0x00000200 ,
  AssertFailed = 0x00000400
}
 

Static Public Member Functions

static string DisableUI (List< string > strings)
 
static void AssertMemoryUsage (int memoryMB)
 
static void AbortGame (int ExitCode=5)
 
static void ShowWarning (string message)
 
static void ShowError (string message)
 
static void ShowMessageBox (string lpText, string lpCaption, uint uType)
 
static void Assert (bool condition, string message, [CallerFilePath] string callerFile="", [CallerMemberName] string callerMethod="", [CallerLineNumber] int callerLine=0)
 
static void FailedAssert (string message, [CallerFilePath] string callerFile="", [CallerMemberName] string callerMethod="", [CallerLineNumber] int callerLine=0)
 
static void SilentAssert (bool condition, string message="", bool getDump=false, [CallerFilePath] string callerFile="", [CallerMemberName] string callerMethod="", [CallerLineNumber] int callerLine=0)
 
static void AssertConditionOrCallerClassName (bool condition, string name)
 
static void AssertConditionOrCallerClassNameSearchAllCallstack (bool condition, string name)
 
static void Print (string message, int logLevel=0, TaleWorlds.Library.Debug.DebugColor color=TaleWorlds.Library.Debug.DebugColor.White, UInt64 debugFilter=(UInt64) Library.Debug.DebugSystemFilter.Mono)
 
static void ConsolePrint (string message, TaleWorlds.Library.Debug.DebugColor color=TaleWorlds.Library.Debug.DebugColor.White, UInt64 debugFilter=(UInt64) Library.Debug.DebugSystemFilter.Mono)
 Prints a message to Console.
 
static void WriteDebugLineOnScreen (string str)
 
static void RenderDebugText (float screenX, float screenY, string text, uint color=0xFFFFFFFF, float time=0.0f)
 
static void RenderText (float screenX, float screenY, string text, uint color=0xFFFFFFFF, float time=0.0f)
 
static void RenderDebugRect (float left, float bottom, float right, float top)
 
static void RenderDebugRectWithColor (float left, float bottom, float right, float top, uint color=0xFFFFFFFF)
 
static void RenderDebugFrame (MatrixFrame frame, float lineLength, float time=0.0f)
 
static void RenderDebugText3D (Vec3 worldPosition, string str, uint color=0xFFFFFFFF, int screenPosOffsetX=0, int screenPosOffsetY=0, float time=0.0f)
 
static void RenderDebugDirectionArrow (Vec3 position, Vec3 direction, uint color=0xFFFFFFFF, bool depthCheck=false)
 
static void RenderDebugLine (Vec3 position, Vec3 direction, uint color=0xFFFFFFFF, bool depthCheck=false, float time=0.0f)
 
static void RenderDebugSphere (Vec3 position, float radius, uint color=0xFFFFFFFF, bool depthCheck=false, float time=0.0f)
 
static void RenderDebugCapsule (Vec3 p0, Vec3 p1, float radius, uint color=0xFFFFFFFF, bool depthCheck=false, float time=0.0f)
 
static void ClearRenderObjects ()
 
static void RenderDebugBoxObject (Vec3 min, Vec3 max, uint color=0xFFFFFFFF, bool depthCheck=false, float time=0.0f)
 
static void RenderDebugBoxObject (Vec3 min, Vec3 max, MatrixFrame frame, uint color=0xFFFFFFFF, bool depthCheck=false, float time=0.0f)
 
static void PostWarningLine (string line)
 
static bool IsErrorReportModeActive ()
 
static bool IsErrorReportModePauseMission ()
 
static void SetErrorReportScene (Scene scene)
 
static void SetDumpGenerationDisabled (bool value)
 
static string ClearConsole (List< String > strings)
 
static bool IsTestMode ()
 

Static Public Attributes

static bool DisableAllUI = false
 
static bool TestModeEnabled = false
 
static bool ShouldAssertThrowException = false
 
static bool IsDisplayingHighLevelAI
 
static bool DisableLogging = false
 

Properties

static Vec3 DebugVector [get]
 
static int ShowDebugInfoState [get, set]
 

Member Enumeration Documentation

◆ MessageBoxTypeFlag

enum TaleWorlds.Engine.MBDebug.MessageBoxTypeFlag
Enumerator
Ok 
Warning 
Error 
OkCancel 
RetryCancel 
YesNo 
YesNoCancel 
Information 
Exclamation 
Question 
AssertFailed 

Member Function Documentation

◆ DisableUI()

static string TaleWorlds.Engine.MBDebug.DisableUI ( List< string >  strings)
static

◆ AssertMemoryUsage()

static void TaleWorlds.Engine.MBDebug.AssertMemoryUsage ( int  memoryMB)
static

◆ AbortGame()

static void TaleWorlds.Engine.MBDebug.AbortGame ( int  ExitCode = 5)
static

◆ ShowWarning()

static void TaleWorlds.Engine.MBDebug.ShowWarning ( string  message)
static

◆ ShowError()

static void TaleWorlds.Engine.MBDebug.ShowError ( string  message)
static

◆ ShowMessageBox()

static void TaleWorlds.Engine.MBDebug.ShowMessageBox ( string  lpText,
string  lpCaption,
uint  uType 
)
static

◆ Assert()

static void TaleWorlds.Engine.MBDebug.Assert ( bool  condition,
string  message,
[CallerFilePath] string  callerFile = "",
[CallerMemberName] string  callerMethod = "",
[CallerLineNumber] int  callerLine = 0 
)
static

◆ FailedAssert()

static void TaleWorlds.Engine.MBDebug.FailedAssert ( string  message,
[CallerFilePath] string  callerFile = "",
[CallerMemberName] string  callerMethod = "",
[CallerLineNumber] int  callerLine = 0 
)
static

◆ SilentAssert()

static void TaleWorlds.Engine.MBDebug.SilentAssert ( bool  condition,
string  message = "",
bool  getDump = false,
[CallerFilePath] string  callerFile = "",
[CallerMemberName] string  callerMethod = "",
[CallerLineNumber] int  callerLine = 0 
)
static

◆ AssertConditionOrCallerClassName()

static void TaleWorlds.Engine.MBDebug.AssertConditionOrCallerClassName ( bool  condition,
string  name 
)
static

◆ AssertConditionOrCallerClassNameSearchAllCallstack()

static void TaleWorlds.Engine.MBDebug.AssertConditionOrCallerClassNameSearchAllCallstack ( bool  condition,
string  name 
)
static

◆ Print()

static void TaleWorlds.Engine.MBDebug.Print ( string  message,
int  logLevel = 0,
TaleWorlds::Library::Debug::DebugColor  color = TaleWorlds::Library::Debug::DebugColor::White,
UInt64  debugFilter = (UInt64)Library::Debug::DebugSystemFilter::Mono 
)
static

◆ ConsolePrint()

static void TaleWorlds.Engine.MBDebug.ConsolePrint ( string  message,
TaleWorlds::Library::Debug::DebugColor  color = TaleWorlds::Library::Debug::DebugColor::White,
UInt64  debugFilter = (UInt64)Library::Debug::DebugSystemFilter::Mono 
)
static
Parameters
messageMessage to be printed.
colorColor of the message. Default is white.
debugFilterFilters the message. Default is mono.

◆ WriteDebugLineOnScreen()

static void TaleWorlds.Engine.MBDebug.WriteDebugLineOnScreen ( string  str)
static

◆ RenderDebugText()

static void TaleWorlds.Engine.MBDebug.RenderDebugText ( float  screenX,
float  screenY,
string  text,
uint  color = 0xFFFFFFFF,
float  time = 0::0f 
)
static

◆ RenderText()

static void TaleWorlds.Engine.MBDebug.RenderText ( float  screenX,
float  screenY,
string  text,
uint  color = 0xFFFFFFFF,
float  time = 0::0f 
)
static

◆ RenderDebugRect()

static void TaleWorlds.Engine.MBDebug.RenderDebugRect ( float  left,
float  bottom,
float  right,
float  top 
)
static

◆ RenderDebugRectWithColor()

static void TaleWorlds.Engine.MBDebug.RenderDebugRectWithColor ( float  left,
float  bottom,
float  right,
float  top,
uint  color = 0xFFFFFFFF 
)
static

◆ RenderDebugFrame()

static void TaleWorlds.Engine.MBDebug.RenderDebugFrame ( MatrixFrame  frame,
float  lineLength,
float  time = 0::0f 
)
static

◆ RenderDebugText3D()

static void TaleWorlds.Engine.MBDebug.RenderDebugText3D ( Vec3  worldPosition,
string  str,
uint  color = 0xFFFFFFFF,
int  screenPosOffsetX = 0,
int  screenPosOffsetY = 0,
float  time = 0::0f 
)
static

◆ RenderDebugDirectionArrow()

static void TaleWorlds.Engine.MBDebug.RenderDebugDirectionArrow ( Vec3  position,
Vec3  direction,
uint  color = 0xFFFFFFFF,
bool  depthCheck = false 
)
static

◆ RenderDebugLine()

static void TaleWorlds.Engine.MBDebug.RenderDebugLine ( Vec3  position,
Vec3  direction,
uint  color = 0xFFFFFFFF,
bool  depthCheck = false,
float  time = 0::0f 
)
static

◆ RenderDebugSphere()

static void TaleWorlds.Engine.MBDebug.RenderDebugSphere ( Vec3  position,
float  radius,
uint  color = 0xFFFFFFFF,
bool  depthCheck = false,
float  time = 0::0f 
)
static

◆ RenderDebugCapsule()

static void TaleWorlds.Engine.MBDebug.RenderDebugCapsule ( Vec3  p0,
Vec3  p1,
float  radius,
uint  color = 0xFFFFFFFF,
bool  depthCheck = false,
float  time = 0::0f 
)
static

◆ ClearRenderObjects()

static void TaleWorlds.Engine.MBDebug.ClearRenderObjects ( )
static

◆ RenderDebugBoxObject() [1/2]

static void TaleWorlds.Engine.MBDebug.RenderDebugBoxObject ( Vec3  min,
Vec3  max,
uint  color = 0xFFFFFFFF,
bool  depthCheck = false,
float  time = 0::0f 
)
static

◆ RenderDebugBoxObject() [2/2]

static void TaleWorlds.Engine.MBDebug.RenderDebugBoxObject ( Vec3  min,
Vec3  max,
MatrixFrame  frame,
uint  color = 0xFFFFFFFF,
bool  depthCheck = false,
float  time = 0::0f 
)
static

◆ PostWarningLine()

static void TaleWorlds.Engine.MBDebug.PostWarningLine ( string  line)
static

◆ IsErrorReportModeActive()

static bool TaleWorlds.Engine.MBDebug.IsErrorReportModeActive ( )
static

◆ IsErrorReportModePauseMission()

static bool TaleWorlds.Engine.MBDebug.IsErrorReportModePauseMission ( )
static

◆ SetErrorReportScene()

static void TaleWorlds.Engine.MBDebug.SetErrorReportScene ( Scene  scene)
static

◆ SetDumpGenerationDisabled()

static void TaleWorlds.Engine.MBDebug.SetDumpGenerationDisabled ( bool  value)
static

◆ ClearConsole()

static string TaleWorlds.Engine.MBDebug.ClearConsole ( List< String >  strings)
static

◆ IsTestMode()

static bool TaleWorlds.Engine.MBDebug.IsTestMode ( )
static

Member Data Documentation

◆ DisableAllUI

bool TaleWorlds.Engine.MBDebug.DisableAllUI = false
static

◆ TestModeEnabled

bool TaleWorlds.Engine.MBDebug.TestModeEnabled = false
static

◆ ShouldAssertThrowException

bool TaleWorlds.Engine.MBDebug.ShouldAssertThrowException = false
static

◆ IsDisplayingHighLevelAI

bool TaleWorlds.Engine.MBDebug.IsDisplayingHighLevelAI
static

◆ DisableLogging

bool TaleWorlds.Engine.MBDebug.DisableLogging = false
static

Property Documentation

◆ DebugVector

Vec3 TaleWorlds.Engine.MBDebug.DebugVector
staticget

◆ ShowDebugInfoState

int TaleWorlds.Engine.MBDebug.ShowDebugInfoState
staticgetset