DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс Debug

Закрытые статические члены

static string GetDebugName (Managed entity)
 
static void InitCanvas ()
 
static void ClearCanvas ()
 
static void CanvasDrawLine (float x1, float y1, float x2, float y2, float width, int color)
 
static void CanvasDrawPoint (float x1, float y1, int color)
 Draws a "point" on the screen at x,y coordinates Debug.ClearCanvas(); for(int i = 0; i < 700;i++) { float val = i/700; float y = Easing.EaseInOutExpo(val); Debug.CanvasDrawPoint(i,y*700,ARGBF( 0.6, 1, 1, 1 )); }.
 
static void Init ()
 
static void DestroyAllShapes ()
 
static void RemoveShape (out Shape shape)
 
static void Log (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 Prints debug message with normal prio.
 
static void ActionLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 
static void SymptomLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 
static void InventoryMoveLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 
static void InventoryReservationLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 
static void InventoryHFSMLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 
static void QuickbarLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 
static void BaseBuildingLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 
static void BleedingChancesLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 
static void TriggerLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 
static void ParticleLog (string message=LOG_DEFAULT, Managed caller=null, string function="", Managed entity=null)
 
static void TFLog (string message=LOG_DEFAULT, TestFramework caller=null, string function="")
 
static void WeightLog (string message=LOG_DEFAULT, Managed caller=null, string function="", Managed entity=null)
 
static void MeleeLog (Entity entity, string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT)
 
static void WeatherLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 
static void LogInfo (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 Prints debug message with normal prio.
 
static void LogWarning (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 Prints debug message as warning message.
 
static void LogError (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 Prints debug message as error message.
 
static void LogArrayInt (array< int > arr=NULL, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 
static void LogArrayString (array< string > arr=NULL, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
 
static void ReceivedLogMessageFromServer (string message)
 
static void ClearScriptLogs ()
 
static Shape DrawBox (vector pos1, vector pos2, int color=0x1fff7f7f)
 
static Shape DrawBoxEx (vector pos1, vector pos2, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOZWRITE)
 
static Shape DrawCube (vector pos, float size=1, int color=0x1fff7f7f)
 
static Shape DrawSphere (vector pos, float size=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
 
static Shape DrawFrustum (float horizontalAngle, float verticalAngle, float length, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.WIREFRAME)
 
static Shape DrawCylinder (vector pos, float radius, float height=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
 
static array< ShapeDrawCone (vector pos, float lenght, float halfAngle, float offsetAngle, int color=0xFFFFFFFF, int flags=0)
 
static Shape DrawLine (vector from, vector to, int color=0xFFFFFFFF, int flags=0)
 
static Shape DrawLines (vector[] positions, int count, int color=0xFFFFFFFF, int flags=0)
 
static Shape DrawArrow (vector from, vector to, float size=0.5, int color=0xFFFFFFFF, int flags=0)
 
static void GetBaseConfigClasses (out TStringArray base_classes)
 Returns some of base config classes strings like CfgVehicles, CfgWeapons, etc. for searching purposes.
 
static void GetFiltredConfigClasses (string search_string, out TStringArray filtered_classes, bool only_public=true)
 Returns config classes containing search_string in name.
 
string LogMessage (string level, string plugin, string entity, string author, string label, string message)
 DEPRECATED.
 
void SaveLog (string log_message)
 
static void ClearLogs ()
 
static string GetFileName ()
 
string GetDate ()
 

Закрытые статические данные

const string LOG_DEBUG = "Debug"
 
const string LOG_DEBUG_ACTION = "Action"
 
const string LOG_DEBUG_SYMPTOM = "Symptom"
 
const string LOG_DEBUG_INV_MOVE = "Inv Move"
 
const string LOG_DEBUG_INV_RESERVATION = "Inv Rrsv"
 
const string LOG_DEBUG_INV_HFSM = "HFSM"
 
const string LOG_DEBUG_QUICKBAR = "Quickbar"
 
const string LOG_DEBUG_BASEBUILDING = "Base Building"
 
const string LOG_DEBUG_BLEEDING_CHANCES = "Bleeding"
 
const string LOG_DEBUG_TRIGGER = "Trigger"
 
const string LOG_DEBUG_PARTICLE = "Particle"
 
const string LOG_DEBUG_TF = "TestFramework"
 
const string LOG_DEBUG_WEIGHT = "Weight"
 
const string LOG_DEBUG_MELEE = "Melee"
 
const string LOG_DEBUG_WEATHER = "Weather"
 
const string LOG_INFO = "Info"
 
const string LOG_WARNING = "Warning"
 
const string LOG_ERROR = "Error"
 
const string LOG_DEFAULT = "n/a"
 
ref array< Shapem_DebugShapes
 
static Widget m_DebugLayoutCanvas
 
static CanvasWidget m_CanvasDebug
 
bool m_EnabledLogs
 

Подробное описание

Методы

◆ ActionLog()

◆ BaseBuildingLog()

static void BaseBuildingLog ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate
172 {
174 }
const string LOG_DEBUG_BASEBUILDING
Definition Debug.c:22

Перекрестные ссылки LOG_DEBUG_BASEBUILDING и LogMessage().

◆ BleedingChancesLog()

static void BleedingChancesLog ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate
177 {
179 }
const string LOG_DEBUG_BLEEDING_CHANCES
Definition Debug.c:23

Перекрестные ссылки LOG_DEBUG_BLEEDING_CHANCES и LogMessage().

Используется в BleedChanceData::CalculateBleedChance() и BleedingSourcesManagerBase::ProcessHit().

◆ CanvasDrawLine()

static void CanvasDrawLine ( float x1,
float y1,
float x2,
float y2,
float width,
int color )
inlinestaticprivate
71 {
72 InitCanvas();
73 m_CanvasDebug.DrawLine(x1, y1, x2, y2, width, color);
74 }
static void InitCanvas()
Definition Debug.c:55
static CanvasWidget m_CanvasDebug
Definition Debug.c:39

Перекрестные ссылки InitCanvas() и m_CanvasDebug.

Используется в CanvasDrawPoint().

◆ CanvasDrawPoint()

static void CanvasDrawPoint ( float x1,
float y1,
int color )
inlinestaticprivate

Draws a "point" on the screen at x,y coordinates Debug.ClearCanvas(); for(int i = 0; i < 700;i++) { float val = i/700; float y = Easing.EaseInOutExpo(val); Debug.CanvasDrawPoint(i,y*700,ARGBF( 0.6, 1, 1, 1 )); }.

88 {
89 CanvasDrawLine(x1, y1, x1+1, y1, 1, color);
90 }
static void CanvasDrawLine(float x1, float y1, float x2, float y2, float width, int color)
Definition Debug.c:70

Перекрестные ссылки CanvasDrawLine().

◆ ClearCanvas()

static void ClearCanvas ( )
inlinestaticprivate
65 {
66 if (m_CanvasDebug)
67 m_CanvasDebug.Clear();
68 }

Перекрестные ссылки m_CanvasDebug.

◆ ClearLogs()

static void ClearLogs ( )
inlinestaticprivate
564 {
565 if (FileExist(GetFileName()))
566 {
568 if (fileHandle == 0)
569 return;
570
571 FPrintln(fileHandle, "");
573 }
574 }
static string GetFileName()
Definition Debug.c:576
FileMode
Definition EnSystem.c:383
proto void CloseFile(FileHandle file)
Close the File.
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.
proto bool FileExist(string name)
Check existence of file.
proto void FPrintln(FileHandle file, void var)
Write to file and add new line.

Перекрестные ссылки CloseFile(), FileExist(), FPrintln(), GetFileName() и OpenFile().

Используется в ScriptConsoleEnfScriptTab::Clear(), ScriptConsoleOutputTab::Clear() и ClearScriptLogs().

◆ ClearScriptLogs()

static void ClearScriptLogs ( )
inlinestaticprivate
296 {
297 ClearLogs();
298 }
static void ClearLogs()
Definition Debug.c:563

Перекрестные ссылки ClearLogs().

◆ DestroyAllShapes()

static void DestroyAllShapes ( )
inlinestaticprivate
98 {
99 for ( int i = 0; i < m_DebugShapes.Count(); ++i )
100 {
101 if ( m_DebugShapes.Get(i) )
102 {
103 m_DebugShapes.Get(i).Destroy();
104 }
105 }
106
107 m_DebugShapes.Clear();
108 }
ref array< Shape > m_DebugShapes
Definition Debug.c:36

Перекрестные ссылки m_DebugShapes.

◆ DrawArrow()

static Shape DrawArrow ( vector from,
vector to,
float size = 0.5,
int color = 0xFFFFFFFF,
int flags = 0 )
inlinestaticprivate
411 {
412 Shape shape = Shape.CreateArrow(from, to, size, color, flags);
413 m_DebugShapes.Insert(shape);
414 return shape;
415 }
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead

Перекрестные ссылки m_DebugShapes и Shape.

Используется в Component::DebugDirectionDraw(), PluginBase::DrawDebugs(), DrawDebugShape(), SceneObject::EditorLineAdd() и UIScriptedMenu::Update().

◆ DrawBox()

static Shape DrawBox ( vector pos1,
vector pos2,
int color = 0x1fff7f7f )
inlinestaticprivate
301 {
302 return DrawBoxEx(pos1, pos2, color, ShapeFlags.TRANSP|ShapeFlags.NOZWRITE);
303 }
static Shape DrawBoxEx(vector pos1, vector pos2, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOZWRITE)
Definition Debug.c:305
ShapeFlags
Definition EnDebug.c:126

Перекрестные ссылки DrawBoxEx().

Используется в Component::DebugBBoxDraw(), Transport::DebugFreeAreaAtDoor(), EntityAI::DebugFreeAreaAtDoor(), CfgPlayerRestrictedAreaHandler::DrawBoxesDebug(), DrawDebugCollisionBox() и SceneObject::EditorShapeAdd().

◆ DrawBoxEx()

static Shape DrawBoxEx ( vector pos1,
vector pos2,
int color = 0x1fff7f7f,
ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.NOZWRITE )
inlinestaticprivate
306 {
307 Shape shape = Shape.Create(ShapeType.BBOX, color, flags, pos1, pos2);
308 if (( flags & ShapeFlags.ONCE ) == 0)
309 m_DebugShapes.Insert(shape);
310 return shape;
311 }
ShapeType
Definition EnDebug.c:116

Перекрестные ссылки m_DebugShapes и Shape.

Используется в DrawBox().

◆ DrawCone()

static array< Shape > DrawCone ( vector pos,
float lenght,
float halfAngle,
float offsetAngle,
int color = 0xFFFFFFFF,
int flags = 0 )
inlinestaticprivate
358 {
360
363
364 // Left side
365 shapes.Insert( Debug.DrawLine(pos, endL, color, flags) );
366 // Rigth side
367 shapes.Insert( Debug.DrawLine(pos, endR, color, flags) );
368 // Top side
369 shapes.Insert( Debug.DrawLine(endL, endR, color, flags) );
370 // Middle (height) line
371 shapes.Insert( Debug.DrawLine(pos, pos + Vector(Math.Cos(offsetAngle), 0, Math.Sin(offsetAngle)).Normalized() * lenght, color, flags) );
372
373 return shapes;
374 }
Definition Debug.c:14
static Shape DrawLine(vector from, vector to, int color=0xFFFFFFFF, int flags=0)
Definition Debug.c:388
Definition EnMath3D.c:28
Definition EnMath.c:7
Definition EnConvert.c:106
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto void ConePoints(vector origin, float length, float halfAngle, float angleOffset, out vector leftPoint, out vector rightPoint)
Calculates the points of a right 2D cone in 3D space.
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static proto float Sin(float angle)
Returns sinus of angle in radians.

Перекрестные ссылки Math3D::ConePoints(), Math::Cos(), DrawLine(), Math::Sin() и Vector().

◆ DrawCube()

static Shape DrawCube ( vector pos,
float size = 1,
int color = 0x1fff7f7f )
inlinestaticprivate
314 {
315 vector min = pos;
316 vector max = pos;
317
318 float size_h = size * 0.5;
319
320 min[0] = min[0] - size_h;
321 min[1] = min[1] - size_h;
322 min[2] = min[2] - size_h;
323
324 max[0] = max[0] + size_h;
325 max[1] = max[1] + size_h;
326 max[2] = max[2] + size_h;
327
328 Shape shape = Shape.Create(ShapeType.DIAMOND, color, ShapeFlags.TRANSP|ShapeFlags.NOZWRITE, min, max);
329 m_DebugShapes.Insert(shape);
330 return shape;
331 }

Перекрестные ссылки m_DebugShapes и Shape.

◆ DrawCylinder()

static Shape DrawCylinder ( vector pos,
float radius,
float height = 1,
int color = 0x1fff7f7f,
ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE )
inlinestaticprivate
350 {
351 Shape shape = Shape.CreateCylinder(color, flags, pos, radius, height);
352 if (( flags & ShapeFlags.ONCE ) == 0)
353 m_DebugShapes.Insert(shape);
354 return shape;
355 }

Перекрестные ссылки m_DebugShapes и Shape.

Используется в PluginBase::DrawDebugs().

◆ DrawFrustum()

static Shape DrawFrustum ( float horizontalAngle,
float verticalAngle,
float length,
int color = 0x1fff7f7f,
ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.WIREFRAME )
inlinestaticprivate
342 {
343 Shape shape = Shape.CreateFrustum(horizontalAngle, verticalAngle, length, color, flags);
344 if (( flags & ShapeFlags.ONCE ) == 0)
345 m_DebugShapes.Insert(shape);
346 return shape;
347 }

Перекрестные ссылки m_DebugShapes и Shape.

◆ DrawLine()

static Shape DrawLine ( vector from,
vector to,
int color = 0xFFFFFFFF,
int flags = 0 )
inlinestaticprivate

DrawLine \nFlags:
ShapeFlags.NOZBUFFER
ShapeFlags.NOZUPDATE
ShapeFlags.DOUBLESIDE
ShapeFlags.WIREFRAME
ShapeFlags.TRANSP
ShapeFlags.ONCE
ShapeFlags.NOOUTLINE
ShapeFlags.NOCULL

389 {
390 vector pts[2]
391 pts[0] = from;
392 pts[1] = to;
393
394 Shape shape = Shape.CreateLines(color, flags, pts, 2);
395 if (( flags & ShapeFlags.ONCE ) == 0)
396 m_DebugShapes.Insert(shape);
397 //m_DebugShapes.Debug();
398 return shape;
399 }

Перекрестные ссылки m_DebugShapes и Shape.

Используется в CalculateBreadCrumbs(), CalculateLinePointFade(), DrawCone(), WeaponDebug::DrawLineOfFire(), WeaponDebug::DrawLineOfFireCameraHybrid(), WeaponDebug::DrawLineOfFireMuzzleToHit(), CfgPlayerRestrictedAreaHandler::DrawPolygonLinesDebug(), PluginBase::EditorUpdateRuler(), GatherSurfaces() и GetMeleeTargetEx().

◆ DrawLines()

static Shape DrawLines ( vector[] positions,
int count,
int color = 0xFFFFFFFF,
int flags = 0 )
inlinestaticprivate
402 {
403
404 Shape shape = Shape.CreateLines(color, flags, positions, count);
405 if (( flags & ShapeFlags.ONCE ) == 0)
406 m_DebugShapes.Insert(shape);
407 return shape;
408 }

Перекрестные ссылки m_DebugShapes и Shape.

Используется в WeaponDebug::OnPostFrameUpdate().

◆ DrawSphere()

◆ GetBaseConfigClasses()

static void GetBaseConfigClasses ( out TStringArray base_classes)
inlinestaticprivate

Returns some of base config classes strings like CfgVehicles, CfgWeapons, etc. for searching purposes.

Аргументы
base_classesout TStringArray Array containing some of base config classes
424 {
425 base_classes.Clear();
429 base_classes.Insert(CFG_AMMO);
430 base_classes.Insert(CFG_WORLDS);
436 }
const string CFG_SOUND_SETS
Definition constants.c:225
const string CFG_AMMO
Definition constants.c:220
const string CFG_VEHICLESPATH
Definition constants.c:217
const string CFG_NONAI_VEHICLES
Definition constants.c:226
const string CFG_SOUND_SHADERS
Definition constants.c:224
const string CFG_SOUND_TABLES
Definition constants.c:227
const string CFG_SURFACES
Definition constants.c:222
const string CFG_WEAPONSPATH
Definition constants.c:218
const string CFG_WORLDS
Definition constants.c:221
const string CFG_MAGAZINESPATH
Definition constants.c:219

Перекрестные ссылки CFG_AMMO, CFG_MAGAZINESPATH, CFG_NONAI_VEHICLES, CFG_SOUND_SETS, CFG_SOUND_SHADERS, CFG_SOUND_TABLES, CFG_SURFACES, CFG_VEHICLESPATH, CFG_WEAPONSPATH и CFG_WORLDS.

Используется в UIPopupScript::ClearHierarchy(), UIPopupScript::FindInHierarchy(), GetFiltredConfigClasses() и ScriptConsoleConfigTab::Init().

◆ GetDate()

string GetDate ( )
inlinestaticprivate
582 {
583 int year;
584 int month;
585 int day;
586 int hour;
587 int minute;
588 int second;
589
592
593 string date = month.ToStringLen(2) + "-" + day.ToStringLen(2) + " " + hour.ToStringLen(2) + ":" + minute.ToStringLen(2) + ":" + second.ToStringLen(2);
594
595 return date;
596 }
proto void GetYearMonthDay(out int year, out int month, out int day)
Returns world date.
proto void GetHourMinuteSecond(out int hour, out int minute, out int second)
Returns world time.

Перекрестные ссылки GetHourMinuteSecond() и GetYearMonthDay().

Используется в LogMessage().

◆ GetDebugName()

static string GetDebugName ( Managed entity)
inlinestaticprivate
44 {
45 if (!entity)
46 return "";
47
48 Object obj;
49 if (CastTo(obj, entity))
50 return obj.GetDebugNameNative();
51
52 return entity.GetDebugName();
53 }
Definition ObjectTyped.c:2

◆ GetFileName()

static string GetFileName ( )
inlinestaticprivate
577 {
579 }
const string CFG_FILE_SCRIPT_LOG_EXT
Definition constants.c:245

Перекрестные ссылки CFG_FILE_SCRIPT_LOG_EXT.

Используется в ClearLogs(), ScriptConsoleOutputTab::ReloadOutput() и SaveLog().

◆ GetFiltredConfigClasses()

static void GetFiltredConfigClasses ( string search_string,
out TStringArray filtered_classes,
bool only_public = true )
inlinestaticprivate

Returns config classes containing search_string in name.

Аргументы
search_stringstring String to search in class names
filtered_classesout TStringArray Array containing filtered classes based on search_string
only_publicbool Set to true to return only public classes, set to false to return all filtered classes
445 {
448
449 filtered_classes.Clear();
450
451 search_string.ToLower();
452
453 for ( int s = 0; s < searching_in.Count(); ++s )
454 {
455 string config_path = searching_in.Get(s);
456
457 int objects_count = GetGame().ConfigGetChildrenCount(config_path);
458 for (int i = 0; i < objects_count; i++)
459 {
460 string childName;
461 GetGame().ConfigGetChildName(config_path, i, childName);
462
463 if ( only_public )
464 {
465 int scope = GetGame().ConfigGetInt( config_path + " " + childName + " scope" );
466 if ( scope == 0 )
467 {
468 continue;
469 }
470 }
471
472 string nchName = childName;
473 nchName.ToLower();
474
475 if ( nchName.Contains(search_string) != -1)
476 {
478 }
479 }
480 }
481 }
static void GetBaseConfigClasses(out TStringArray base_classes)
Returns some of base config classes strings like CfgVehicles, CfgWeapons, etc. for searching purposes...
Definition Debug.c:423
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition IsBoxCollidingGeometryProxyClasses.c:28
proto native CGame GetGame()
array< string > TStringArray
Definition EnScript.c:685

Перекрестные ссылки GetBaseConfigClasses() и GetGame().

◆ Init()

static void Init ( )
inlinestaticprivate
93 {
95 }

Перекрестные ссылки m_DebugShapes.

Используется в CGame::DayZGame().

◆ InitCanvas()

static void InitCanvas ( )
inlinestaticprivate
56 {
58 {
59 m_DebugLayoutCanvas = GetGame().GetWorkspace().CreateWidgets("gui/layouts/debug/day_z_debugcanvas.layout");
60 m_CanvasDebug = CanvasWidget.Cast( m_DebugLayoutCanvas.FindAnyWidget( "CanvasWidget" ) );
61 }
62 }
static Widget m_DebugLayoutCanvas
Definition Debug.c:38

Перекрестные ссылки GetGame(), m_CanvasDebug и m_DebugLayoutCanvas.

Используется в CanvasDrawLine().

◆ InventoryHFSMLog()

◆ InventoryMoveLog()

◆ InventoryReservationLog()

static void InventoryReservationLog ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate
157 {
159 }
const string LOG_DEBUG_INV_RESERVATION
Definition Debug.c:19

Перекрестные ссылки LOG_DEBUG_INV_RESERVATION и LogMessage().

Используется в CGame::AddInventoryJunctureEx(), CGame::ClearJunctureEx() и TryAcquireTwoInventoryJuncturesFromServer().

◆ Log()

static void Log ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

Prints debug message with normal prio.

Аргументы
msgstring Debug message for print
Возвращает
void None
Debug.Log("Hello World");
>> [Log]: Hello World;
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Definition Debug.c:136
Definition World.c:2
137 {
139 }
const string LOG_DEBUG
Definition Debug.c:15

Перекрестные ссылки LOG_DEBUG и LogMessage().

Используется в InventoryItem::AddAction(), RecipeBase::ApplyModificationsResults(), Managed::BleedingIndicator(), PluginRecipesManagerBase::CallbackGenerateCache(), ChangePPEMaterial(), CheckContactCache(), PlayerSpawnHandler::CreateChildItem(), PPEManagerStatic::CreateManagerStatic(), DamageCrew(), Debug(), RecipeBase::Do(), ScriptConsoleItemsTab::DrawItems(), SpookyArea::EEInit(), EOnPostSimulate(), KeysToUIElements::GetKeyToUIElement(), GetName(), PlayerSpawnPreset::GetRandomCharacterType(), Managed::GetRequester(), Managed::GetRequester(), Managed::GetRequesterID(), Managed::GetRequesterTypename(), LogTemplates::GetTemplate(), GetValue(), ManBase::HideHairSelections(), InitZoneClient(), MissionBase::InvokeOnConnect(), MissionBase::InvokeOnDisconnect(), ItemBase::IsPlayerInVicinity(), PlayerSpawnPreset::IsValid(), IsValid(), PlayerSpawnPresetDiscreteItemSetSlotData::IsValid(), MessageReceiverBase::Log(), Entity::Log(), PluginBase::Log(), Environment::LogDryWetProcess(), Environment::LogItemHeat(), BloodTypes::MatchBloodCompatibility(), Entity::OnAction(), ManBase::OnConnect(), OnContact(), ManBase::OnDisconnect(), MissionBase::OnEvent(), ActionDigInStash::OnFinishProgressServer(), Icon::OnPerformRecipe(), ManBase::OnReconnect(), DayZPlayer::OnSoundEvent(), DayZPlayer::OnStepEvent(), OpenAndSwitchLambda::OnSuccess(), OnUpdate(), RecipeBase::PerformRecipe(), InventoryItem::PlayDeployFinishSound(), InventoryItem::PlayDeployLoopSoundEx(), InventoryItem::PlayDeploySound(), MissionBase::PlayerControlDisable(), InventoryItem::PlayPlaceSound(), PlayerAgentPool::PrintAgents(), PrintOut(), PluginRecipesManagerBase::PrintResultMasks(), ItemBase::PrintSlots(), PlayerSpawnHandler::ProcessCargoEquipment(), PlayerSpawnHandler::ProcessSlotsEquipment(), InventoryLocation::ReadFromContext(), Entity::RefreshTemperatureAccess(), GameplayEffectsData::RegisterData(), KeysToUIElements::RegisterKeyToUIElement(), LogTemplates::RegisterLogTamplate(), Managed::RegisterRequester(), PluginBase::Repair(), ManBase::Save(), CAContinuousRepeatFishing::SetNewSignalData(), PPERequesterBase::SetRequesterUpdating(), SetRequestUpdating(), Entity::SetTemperatureEx(), SetupAnimation(), PlayerSpawnHandler::SpawnComplexChildrenItems(), PlayerSpawnHandler::SpawnDiscreteSlotItemSet(), SpawnItems(), RecipeBase::SpawnItems(), PlayerSpawnHandler::SpawnSimpleChildrenItems(), TranslateAndValidateSlot(), PlayerRestrictedAreaInstance::TranslateSafePositions(), Entity::TryDelete(), PlayerRestrictedAreaInstance::ValidatePlayerRestrictedAreaPositions() и Managed::VerifyRequester().

◆ LogArrayInt()

static void LogArrayInt ( array< int > arr = NULL,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate
265 {
266 if (arr == null)
267 return;
268 for (int i = 0; i < arr.Count(); i++)
269 {
270 LogMessage(LOG_DEBUG, plugin, entity, author, label, arr.Get(i).ToString());
271 }
272 }

Перекрестные ссылки LOG_DEBUG и LogMessage().

◆ LogArrayString()

static void LogArrayString ( array< string > arr = NULL,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate
275 {
276 if (arr == null)
277 return;
278
279 for (int i = 0; i < arr.Count(); i++)
280 {
282 }
283 }

Перекрестные ссылки LOG_DEBUG и LogMessage().

Используется в PrintOut().

◆ LogError()

static void LogError ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

Prints debug message as error message.

Аргументы
msgstring Debug message for error print
Возвращает
void None
Debug.LogError("Hello World, this is error log");
>> [Error]: Hello World, this is error log
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
Definition Debug.c:259
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90
260 {
262 }
const string LOG_ERROR
Definition Debug.c:33

Перекрестные ссылки LOG_ERROR и LogMessage().

Используется в EntityAI::AddAction(), AddAction(), InventoryItem::AddAction(), BoatScript::AddAction(), ActionCollectBloodTargetLambda::CopyOldPropertiesToNew(), TanLeatherLambda::CopyOldPropertiesToNew(), ReplaceItemWithNewLambda::CopyOldPropertiesToNew(), DeveloperFreeCamera::DisableFreeCamera(), DeveloperFreeCamera::EnableFreeCamera(), FireworksLauncherClientEvent::FireworksLauncherClientEvent(), Entity::GetDefaultHitComponent(), Entity::GetDefaultHitPosition(), Entity::GetDefaultHitPositionComponent(), Entity::GetHitComponentForAI(), FireworksLauncherClientEvent::GetShotPos(), Entity::GetSuitableFinisherHitComponents(), LogError(), Entity::LogError(), Component::LogErrorBadCompType(), Component::LogThisError(), Component::LogWarningAlredyExist(), Normalize(), OnStoreLoad(), SymptomManager::OnSymptomExit(), OpenItem::OpenAndSwitch(), PlaySound() и Tick().

◆ LogInfo()

static void LogInfo ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

Prints debug message with normal prio.

Аргументы
msgstring Debug message for print
Возвращает
void None
Debug.Log("Hello World");
>> [Log]: Hello World;
230 {
232 }
const string LOG_INFO
Definition Debug.c:31

Перекрестные ссылки LOG_INFO и LogMessage().

Используется в LogInfo().

◆ LogMessage()

string LogMessage ( string level,
string plugin,
string entity,
string author,
string label,
string message )
inlinestaticprivate

DEPRECATED.

489 {
490 if (GetGame() == null || !LogManager.IsLogsEnable())
491 return string.Empty;
492
493 bool is_server_log = ( GetGame().IsServer() && GetGame().IsMultiplayer() );
494
495
496 // Formation output to external file
497 // %date{MM-dd HH:mm:ss} | %Enviroment | %Level | %Module | %Entity | %Author | %Label | %Message
498 string date = GetDate();
499 string env = "Client";
500 string msg = string.Empty;
501
502 if ( is_server_log )
503 {
504 env = "Server";
505 }
506
507 msg = string.Format("%1 | %2 | %3 | %4 | %5 | %6 | %7", date, env, level, plugin, entity, label, message);
508
509 if ( is_server_log )
510 {
511 SaveLog(msg);
512
513#ifdef DIAG_DEVELOPER // do not send log to clients on retail
516#endif
517 }
518 else
519 {
520 SaveLog(msg);
521 }
522
523 return msg;
524 }
const CallID CALL_ID_SEND_LOG
Definition Dispatcher.c:3
Param CallMethod(CallID call_id, Param params)
Definition Dispatcher.c:36
void SaveLog(string log_message)
Definition Debug.c:526
string GetDate()
Definition Debug.c:581
Definition Debug.c:600
static bool IsLogsEnable()
Definition Debug.c:634

Перекрестные ссылки CALL_ID_SEND_LOG, CallMethod(), string::Empty, GetDate(), GetGame(), LogManager::IsLogsEnable() и SaveLog().

Используется в ActionLog(), BaseBuildingLog(), BleedingChancesLog(), InventoryHFSMLog(), InventoryMoveLog(), InventoryReservationLog(), Log(), LogArrayInt(), LogArrayString(), LogError(), LogInfo(), LogWarning(), MeleeLog(), ParticleLog(), QuickbarLog(), SymptomLog(), TFLog(), TriggerLog() и WeatherLog().

◆ LogWarning()

static void LogWarning ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

Prints debug message as warning message.

Аргументы
msgstring Debug message for warning print
Возвращает
void None
Debug.LogWarning("Hello World, this is warning log");
static void LogWarning(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as warning message.
Definition Debug.c:244
245 {
247 }
const string LOG_WARNING
Definition Debug.c:32

Перекрестные ссылки LOG_WARNING и LogMessage().

Используется в Entity::CanDisplayAttachmentSlot(), Component::LogThisWarning(), LogWarning(), Entity::LogWarning() и DeveloperTeleport::TeleportAtCursor().

◆ MeleeLog()

static void MeleeLog ( Entity entity,
string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT )
inlinestaticprivate
204 {
205 string logMessage = string.Format("%1: %2", entity.GetSimulationTimeStamp(), message);
207 }
const string LOG_DEBUG_MELEE
Definition Debug.c:28
override string GetDebugName()
Definition dayzplayer.c:1170

Перекрестные ссылки GetDebugName(), LOG_DEBUG_MELEE и LogMessage().

◆ ParticleLog()

static void ParticleLog ( string message = LOG_DEFAULT,
Managed caller = null,
string function = "",
Managed entity = null )
inlinestaticprivate
187 {
189 }
const string LOG_DEBUG_PARTICLE
Definition Debug.c:25

Перекрестные ссылки GetDebugName(), LOG_DEBUG_PARTICLE и LogMessage().

Используется в PMTF::PrintActiveStats(), PMTF::PrintPMStats(), TestInvalidSize() и TestOwnership().

◆ QuickbarLog()

static void QuickbarLog ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate
167 {
169 }
const string LOG_DEBUG_QUICKBAR
Definition Debug.c:21

Перекрестные ссылки LOG_DEBUG_QUICKBAR и LogMessage().

◆ ReceivedLogMessageFromServer()

static void ReceivedLogMessageFromServer ( string message)
inlinestaticprivate
286 {
288 {
289 return;
290 }
291
293 }

Перекрестные ссылки LogManager::IsLogsEnable() и SaveLog().

Используется в PluginBase::OnRPCServerLogRecieved().

◆ RemoveShape()

static void RemoveShape ( out Shape shape)
inlinestaticprivate
111 {
112 if (!shape) return;
113 for ( int i = 0; i < m_DebugShapes.Count(); i++ )
114 {
116
117 if ( found_shape && found_shape == shape )
118 {
119 found_shape.Destroy();
120 m_DebugShapes.Remove(i); // Mandatory! Otherwise the Destroy() function causes crash!
121 shape = null;
122 return;
123 }
124 }
125 }

Перекрестные ссылки m_DebugShapes и Shape.

Используется в PluginBase::CleanupDebugShapes(), WeaponDebug::DrawLineOfFire(), WeaponDebug::DrawLineOfFireCameraHybrid(), WeaponDebug::DrawLineOfFireMuzzleToHit(), WeaponDebug::RemoveAllShapes() и RemoveDebugShape().

◆ SaveLog()

void SaveLog ( string log_message)
inlinestaticprivate

Only beneficial for diag and developers, removed on retail

Avoid writing to this file as it will grow indefinitely

Active when '-logToRpt=1' is set

Active when '-logToScript=1' is set

527 {
528 if (log_message.Length() == 0)
529 return;
530
532#ifdef DIAG_DEVELOPER
533#ifndef SERVER
536#endif
537#endif
538
540#ifdef DIAG_DEVELOPER
542#ifdef LOG_TO_FILE
544 if (fileHandle != 0)
545 {
548 }
549#endif
550#endif
551
553#ifdef LOG_TO_RPT
555#endif
556
558#ifdef LOG_TO_SCRIPT
559 Print(string.Format("%1", log_message));
560#endif
561 }
Dispatcher GetDispatcher()
Definition Dispatcher.c:20
const CallID CALL_ID_SCR_CNSL_ADD_PRINT
Definition Dispatcher.c:6
Definition UtilityClasses.c:10
static ref Param1< string > PARAM1_STRING
Definition UtilityClasses.c:14
Param CallMethod(CallID call_id, Param params)
Definition Dispatcher.c:15
proto void Print(void var)
Prints content of variable to console/log.
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...

Перекрестные ссылки CALL_ID_SCR_CNSL_ADD_PRINT, Dispatcher::CallMethod(), CloseFile(), FPrintln(), GetDispatcher(), GetFileName(), OpenFile(), CachedObjectsParams::PARAM1_STRING, Print() и PrintToRPT().

Используется в LogMessage() и ReceivedLogMessageFromServer().

◆ SymptomLog()

static void SymptomLog ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

◆ TFLog()

static void TFLog ( string message = LOG_DEFAULT,
TestFramework caller = null,
string function = "" )
inlinestaticprivate

◆ TriggerLog()

static void TriggerLog ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

◆ WeatherLog()

static void WeatherLog ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate
210 {
212 {
213 return;
214 }
215
217 }
const string LOG_DEBUG_WEATHER
Definition Debug.c:29
static bool IsWeatherLogEnabled()
Definition Debug.c:734

Перекрестные ссылки LogManager::IsWeatherLogEnabled(), LOG_DEBUG_WEATHER и LogMessage().

Используется в WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange() и SakhalData::WeatherOnBeforeChange().

◆ WeightLog()

static void WeightLog ( string message = LOG_DEFAULT,
Managed caller = null,
string function = "",
Managed entity = null )
inlinestaticprivate
197 {
198 /*
199 LogMessage(LOG_DEBUG_WEIGHT, GetDebugName(caller), GetDebugName(entity), "", function, message);
200 */
201 }

Поля

◆ LOG_DEBUG

const string LOG_DEBUG = "Debug"
staticprivate

Используется в Log(), LogArrayInt() и LogArrayString().

◆ LOG_DEBUG_ACTION

const string LOG_DEBUG_ACTION = "Action"
staticprivate

Используется в ActionLog().

◆ LOG_DEBUG_BASEBUILDING

const string LOG_DEBUG_BASEBUILDING = "Base Building"
staticprivate

Используется в BaseBuildingLog().

◆ LOG_DEBUG_BLEEDING_CHANCES

const string LOG_DEBUG_BLEEDING_CHANCES = "Bleeding"
staticprivate

Используется в BleedingChancesLog().

◆ LOG_DEBUG_INV_HFSM

const string LOG_DEBUG_INV_HFSM = "HFSM"
staticprivate

Используется в InventoryHFSMLog().

◆ LOG_DEBUG_INV_MOVE

const string LOG_DEBUG_INV_MOVE = "Inv Move"
staticprivate

Используется в InventoryMoveLog().

◆ LOG_DEBUG_INV_RESERVATION

const string LOG_DEBUG_INV_RESERVATION = "Inv Rrsv"
staticprivate

Используется в InventoryReservationLog().

◆ LOG_DEBUG_MELEE

const string LOG_DEBUG_MELEE = "Melee"
staticprivate

Используется в MeleeLog().

◆ LOG_DEBUG_PARTICLE

const string LOG_DEBUG_PARTICLE = "Particle"
staticprivate

Используется в ParticleLog().

◆ LOG_DEBUG_QUICKBAR

const string LOG_DEBUG_QUICKBAR = "Quickbar"
staticprivate

Используется в QuickbarLog().

◆ LOG_DEBUG_SYMPTOM

const string LOG_DEBUG_SYMPTOM = "Symptom"
staticprivate

Используется в SymptomLog().

◆ LOG_DEBUG_TF

const string LOG_DEBUG_TF = "TestFramework"
staticprivate

Используется в TFLog().

◆ LOG_DEBUG_TRIGGER

const string LOG_DEBUG_TRIGGER = "Trigger"
staticprivate

Используется в TriggerLog().

◆ LOG_DEBUG_WEATHER

const string LOG_DEBUG_WEATHER = "Weather"
staticprivate

Используется в WeatherLog().

◆ LOG_DEBUG_WEIGHT

const string LOG_DEBUG_WEIGHT = "Weight"
staticprivate

◆ LOG_DEFAULT

const string LOG_DEFAULT = "n/a"
staticprivate

◆ LOG_ERROR

const string LOG_ERROR = "Error"
staticprivate

Используется в LogError().

◆ LOG_INFO

const string LOG_INFO = "Info"
staticprivate

Используется в LogInfo().

◆ LOG_WARNING

const string LOG_WARNING = "Warning"
staticprivate

Используется в LogWarning().

◆ m_CanvasDebug

CanvasWidget m_CanvasDebug
staticprivate

Используется в CanvasDrawLine(), ClearCanvas() и InitCanvas().

◆ m_DebugLayoutCanvas

Widget m_DebugLayoutCanvas
staticprivate

Используется в InitCanvas().

◆ m_DebugShapes

◆ m_EnabledLogs

bool m_EnabledLogs
staticprivate

Объявления и описания членов класса находятся в файле: