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

Public Types

enum  DebugColor {
  DarkRed = 0 ,
  DarkGreen ,
  DarkBlue ,
  Red ,
  Green ,
  Blue ,
  DarkCyan ,
  Cyan ,
  DarkYellow ,
  Yellow ,
  Purple ,
  Magenta ,
  White ,
  BrightWhite
}
 
enum  DebugUserFilter : ulong {
  None = (0ul << 0) ,
  Unused0 = (1ul << 0) ,
  Unused1 = (1ul << 1) ,
  Koray = (1ul << 2) ,
  Armagan = (1ul << 3) ,
  Intern = (1ul << 4) ,
  Mustafa = (1ul << 5) ,
  Oguzhan = (1ul << 6) ,
  Omer = (1ul << 7) ,
  Ates = (1ul << 8) ,
  Unused3 = (1ul << 9) ,
  Basak = (1ul << 10) ,
  Can = (1ul << 11) ,
  Unused4 = (1ul << 12) ,
  Cem = (1ul << 13) ,
  Unused5 = (1ul << 14) ,
  Unused6 = (1ul << 15) ,
  Emircan = (1ul << 16) ,
  Unused7 = (1ul << 17) ,
  All = 0x00000000FFFFFFFFul ,
  Default = None ,
  DamageDebug = Oguzhan | Armagan
}
 
enum  DebugSystemFilter : ulong {
  None = (0ul << 0) ,
  Graphics = (1ul << 32) ,
  ArtificialIntelligence = (1ul << 33) ,
  MultiPlayer = (1ul << 34) ,
  IO = (1ul << 35) ,
  Network = (1ul << 36) ,
  CampaignEvents = (1ul << 37) ,
  MemoryManager = (1ul << 38) ,
  TCP = (1ul << 39) ,
  FileManager = (1ul << 40) ,
  NaturalInteractionDevice = (1ul << 41) ,
  UDP = (1ul << 42) ,
  ResourceManager = (1ul << 43) ,
  Mono = (1ul << 44) ,
  ONO = (1ul << 45) ,
  Old = (1ul << 46) ,
  Sound = (1ul << 48) ,
  CombatLog = (1ul << 49) ,
  Notifications = (1ul << 50) ,
  Quest = (1ul << 51) ,
  Dialog = (1ul << 52) ,
  Steam = (1ul << 53) ,
  All = 0xFFFFFFFF00000000ul ,
  DefaultMask = All
}
 

Static Public Member Functions

static uint GetTelemetryLevelMask ()
 
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 StartTelemetryConnection (bool showErrors)
 
static void StopTelemetryConnection ()
 
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]
 
static ITelemetryManager TelemetryManager [get, set]
 

Events

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

Member Enumeration Documentation

◆ DebugColor

enum TaleWorlds.Library.Debug.DebugColor
Enumerator
DarkRed 
DarkGreen 
DarkBlue 
Red 
Green 
Blue 
DarkCyan 
Cyan 
DarkYellow 
Yellow 
Purple 
Magenta 
White 
BrightWhite 

◆ DebugUserFilter

enum TaleWorlds.Library.Debug.DebugUserFilter : ulong
Enumerator
None 
Unused0 
Unused1 
Koray 
Armagan 
Intern 
Mustafa 
Oguzhan 
Omer 
Ates 
Unused3 
Basak 
Can 
Unused4 
Cem 
Unused5 
Unused6 
Emircan 
Unused7 
All 
Default 
DamageDebug 

◆ DebugSystemFilter

enum TaleWorlds.Library.Debug.DebugSystemFilter : ulong
Enumerator
None 
Graphics 
ArtificialIntelligence 
MultiPlayer 
IO 
Network 
CampaignEvents 
MemoryManager 
TCP 
FileManager 
NaturalInteractionDevice 
UDP 
ResourceManager 
Mono 
ONO 
Old 
Sound 
CombatLog 
Notifications 
Quest 
Dialog 
Steam 
All 
DefaultMask 

Member Function Documentation

◆ GetTelemetryLevelMask()

static uint TaleWorlds.Library.Debug.GetTelemetryLevelMask ( )
static

◆ 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

◆ StartTelemetryConnection()

static void TaleWorlds.Library.Debug.StartTelemetryConnection ( bool  showErrors)
static

◆ StopTelemetryConnection()

static void TaleWorlds.Library.Debug.StopTelemetryConnection ( )
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

◆ TelemetryManager

ITelemetryManager TaleWorlds.Library.Debug.TelemetryManager
staticgetset

Event Documentation

◆ OnPrint

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