M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Library.Debug Class Reference

Public Types

enum  DebugColor
 
enum  DebugUserFilter : ulong
 
enum  DebugSystemFilter : ulong
 

Static Public Member Functions

static void SetCrashReportCustomString (string customString)
 
static void SetCrashReportCustomStack (string customStack)
 
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 ShowError (string message)
 
static void ShowWarning (string message)
 
static void ReportMemoryBookmark (string message)
 
static void Print (string message, int logLevel=0, DebugColor color=DebugColor.White, ulong debugFilter=(ulong) DebugSystemFilter.Mono)
 
static void ShowMessageBox (string lpText, string lpCaption, uint uType)
 
static void PrintWarning (string warning, ulong debugFilter=(ulong) DebugSystemFilter.Mono)
 
static void PrintError (string error, string stackTrace=null, ulong debugFilter=(ulong) DebugSystemFilter.Mono)
 
static void DisplayDebugMessage (string message)
 
static void WatchVariable (string name, object value)
 
static void WriteDebugLineOnScreen (string message)
 
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 RenderDebugFrame (MatrixFrame frame, float lineLength, float time=0.0f)
 
static void RenderDebugText (float screenX, float screenY, string text, uint color=0xFFFFFFFF, float time=0.0f)
 
static void RenderDebugRectWithColor (float left, float bottom, float right, float top, uint color=0xFFFFFFFF)
 
static void RenderDebugText3D (Vec3 position, string text, uint color=0xFFFFFFFF, int screenPosOffsetX=0, int screenPosOffsetY=0, float time=0.0f)
 
static Vec3 GetDebugVector ()
 
static void SetTestModeEnabled (bool testModeEnabled)
 
static void AbortGame ()
 

Properties

static IDebugManager DebugManager [get, set]
 

Events

static Action< string, ulong > OnPrint
 Used externally for debugging purposed. More...
 

Member Enumeration Documentation

◆ DebugColor

enum TaleWorlds.Library.Debug.DebugColor

◆ DebugUserFilter

enum TaleWorlds.Library.Debug.DebugUserFilter : ulong

◆ DebugSystemFilter

enum TaleWorlds.Library.Debug.DebugSystemFilter : ulong

Member Function Documentation

◆ SetCrashReportCustomString()

static void TaleWorlds.Library.Debug.SetCrashReportCustomString ( string  customString)
static

◆ SetCrashReportCustomStack()

static void TaleWorlds.Library.Debug.SetCrashReportCustomStack ( string  customStack)
static

◆ Assert()

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

◆ FailedAssert()

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

◆ SilentAssert()

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

◆ ShowError()

static void TaleWorlds.Library.Debug.ShowError ( string  message)
static

◆ ShowWarning()

static void TaleWorlds.Library.Debug.ShowWarning ( string  message)
static

◆ ReportMemoryBookmark()

static void TaleWorlds.Library.Debug.ReportMemoryBookmark ( string  message)
static

◆ Print()

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

◆ ShowMessageBox()

static void TaleWorlds.Library.Debug.ShowMessageBox ( string  lpText,
string  lpCaption,
uint  uType 
)
static

◆ PrintWarning()

static void TaleWorlds.Library.Debug.PrintWarning ( string  warning,
ulong  debugFilter = (ulong)DebugSystemFilter.Mono 
)
static

◆ PrintError()

static void TaleWorlds.Library.Debug.PrintError ( string  error,
string  stackTrace = null,
ulong  debugFilter = (ulong)DebugSystemFilter.Mono 
)
static

◆ DisplayDebugMessage()

static void TaleWorlds.Library.Debug.DisplayDebugMessage ( string  message)
static

◆ WatchVariable()

static void TaleWorlds.Library.Debug.WatchVariable ( string  name,
object  value 
)
static

◆ WriteDebugLineOnScreen()

static void TaleWorlds.Library.Debug.WriteDebugLineOnScreen ( string  message)
static

◆ RenderDebugLine()

static void TaleWorlds.Library.Debug.RenderDebugLine ( Vec3  position,
Vec3  direction,
uint  color = 0xFFFFFFFF,
bool  depthCheck = false,
float  time = 0.0f 
)
static

◆ RenderDebugSphere()

static void TaleWorlds.Library.Debug.RenderDebugSphere ( Vec3  position,
float  radius,
uint  color = 0xFFFFFFFF,
bool  depthCheck = false,
float  time = 0.0f 
)
static

◆ RenderDebugFrame()

static void TaleWorlds.Library.Debug.RenderDebugFrame ( MatrixFrame  frame,
float  lineLength,
float  time = 0.0f 
)
static

◆ RenderDebugText()

static void TaleWorlds.Library.Debug.RenderDebugText ( float  screenX,
float  screenY,
string  text,
uint  color = 0xFFFFFFFF,
float  time = 0.0f 
)
static

◆ RenderDebugRectWithColor()

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

◆ RenderDebugText3D()

static void TaleWorlds.Library.Debug.RenderDebugText3D ( Vec3  position,
string  text,
uint  color = 0xFFFFFFFF,
int  screenPosOffsetX = 0,
int  screenPosOffsetY = 0,
float  time = 0.0f 
)
static

◆ GetDebugVector()

static Vec3 TaleWorlds.Library.Debug.GetDebugVector ( )
static

◆ SetTestModeEnabled()

static void TaleWorlds.Library.Debug.SetTestModeEnabled ( bool  testModeEnabled)
static

◆ AbortGame()

static void TaleWorlds.Library.Debug.AbortGame ( )
static

Property Documentation

◆ DebugManager

IDebugManager TaleWorlds.Library.Debug.DebugManager
staticgetset

Event Documentation

◆ OnPrint

Action<string, ulong> TaleWorlds.Library.Debug.OnPrint
static