DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
3_Game/DayZ/tools/Debug.c
См. документацию.
1class Debug
2{
3 private static const string LOG_DEBUG = "Debug";
4 private static const string LOG_DEBUG_ACTION = "Action";
5 private static const string LOG_DEBUG_SYMPTOM = "Symptom";
6 private static const string LOG_DEBUG_INV_MOVE = "Inv Move";
7 private static const string LOG_DEBUG_INV_RESERVATION = "Inv Rrsv";
8 private static const string LOG_DEBUG_INV_HFSM = "HFSM";
9 private static const string LOG_DEBUG_QUICKBAR = "Quickbar";
10 private static const string LOG_DEBUG_BASEBUILDING = "Base Building";
11 private static const string LOG_DEBUG_BLEEDING_CHANCES = "Bleeding";
12 private static const string LOG_DEBUG_TRIGGER = "Trigger";
13 private static const string LOG_DEBUG_PARTICLE = "Particle";
14 private static const string LOG_DEBUG_TF = "TestFramework";
15 private static const string LOG_DEBUG_WEIGHT = "Weight";
16 private static const string LOG_DEBUG_MELEE = "Melee";
17 private static const string LOG_DEBUG_WEATHER = "Weather";
18 private static const string LOG_DEBUG_RADIO_GAMEPLAY = "RadioGameplay";
19 private static const string LOG_DEBUG_AUTOTEST = "Autotest";
20 private static const string LOG_INFO = "Info";
21 private static const string LOG_WARNING = "Warning";
22 private static const string LOG_ERROR = "Error";
23 private static const string LOG_DEFAULT = "n/a";
24
25 private static ref array<Shape> m_DebugShapes;
28
30 static CanvasWidget m_CanvasDebug;
31
32 static string GetDebugName(Managed entity)
33 {
34 if (!entity)
35 return "";
36
37 Object obj;
38 if (CastTo(obj, entity))
39 return obj.GetDebugNameNative();
40
41 return entity.GetDebugName();
42 }
43
44 static void InitCanvas()
45 {
47 {
48 m_DebugLayoutCanvas = g_Game.GetWorkspace().CreateWidgets("gui/layouts/debug/day_z_debugcanvas.layout");
49 m_CanvasDebug = CanvasWidget.Cast( m_DebugLayoutCanvas.FindAnyWidget( "CanvasWidget" ) );
50 }
51 }
52
53 static void ClearCanvas()
54 {
55 if (m_CanvasDebug)
56 m_CanvasDebug.Clear();
57 }
58
59 static void CanvasDrawLine(float x1, float y1, float x2, float y2, float width, int color)
60 {
61 InitCanvas();
62 m_CanvasDebug.DrawLine(x1, y1, x2, y2, width, color);
63 }
64
75
76 static void CanvasDrawPoint(float x1, float y1, int color)
77 {
78 CanvasDrawLine(x1, y1, x1+1, y1, 1, color);
79 }
80
87
88 static void DestroyAll()
89 {
93 }
94
95 static void DestroyAllShapes()
96 {
97 foreach (Shape debugShape : m_DebugShapes)
98 debugShape.Destroy();
99
100 m_DebugShapes.Clear();
101 }
102
103 static void DestroyAllTextSS()
104 {
105 m_DebugTextsSS.Clear();
106 }
107
108 static void DestroyAllTextWS()
109 {
110 m_DebugTextsWS.Clear();
111 }
112
113 static void RemoveShape(out Shape shape)
114 {
115 if (!shape)
116 return;
117
118 int nDebugShapes = m_DebugShapes.Count();
119 for (int i = 0; i < nDebugShapes; ++i)
120 {
121 Shape foundShape = m_DebugShapes.Get(i);
122
123 if (foundShape && foundShape == shape)
124 {
125 foundShape.Destroy();
126 m_DebugShapes.Remove(i); // Mandatory! Otherwise the Destroy() function causes crash!
127 shape = null;
128 return;
129 }
130 }
131 }
132
133 static void RemoveTextSS(out DebugTextScreenSpace text)
134 {
135 if (!text)
136 return;
137
138 int nDebugTextsSS = m_DebugTextsSS.Count();
139 for (int i = 0; i < nDebugTextsSS; ++i)
140 {
141 DebugTextScreenSpace foundText = m_DebugTextsSS.Get(i);
142
143 if (foundText && foundText == text)
144 {
145 foundText = null;
146 m_DebugTextsSS.Remove(i);
147 text = null;
148 return;
149 }
150 }
151 }
152
153 static void RemoveTextWS(out DebugTextWorldSpace text)
154 {
155 if (!text)
156 return;
157
158 int nDebugTextsWS = m_DebugTextsWS.Count();
159 for (int i = 0; i < nDebugTextsWS; ++i)
160 {
161 DebugTextWorldSpace foundText = m_DebugTextsWS.Get(i);
162
163 if (foundText && foundText == text)
164 {
165 foundText = null;
166 m_DebugTextsWS.Remove(i);
167 text = null;
168 return;
169 }
170 }
171 }
172
183 static void Log(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
184 {
185 LogMessage(LOG_DEBUG, plugin, entity, author, label, message);
186 }
187
188 static void ActionLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
189 {
190 LogMessage(LOG_DEBUG_ACTION, plugin, entity, author, label, message);
191 }
192
193 static void SymptomLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
194 {
195 LogMessage(LOG_DEBUG_SYMPTOM, plugin, entity, author, label, message);
196 }
197
198 static void InventoryMoveLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
199 {
200 LogMessage(LOG_DEBUG_INV_MOVE, plugin, entity, author, label, message);
201 }
202
203 static void InventoryReservationLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
204 {
205 LogMessage(LOG_DEBUG_INV_RESERVATION, plugin, entity, author, label, message);
206 }
207
208 static void InventoryHFSMLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
209 {
210 LogMessage(LOG_DEBUG_INV_HFSM, plugin, entity, author, label, message);
211 }
212
213 static void QuickbarLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
214 {
215 LogMessage(LOG_DEBUG_QUICKBAR, plugin, entity, author, label, message);
216 }
217
218 static void BaseBuildingLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
219 {
220 LogMessage(LOG_DEBUG_BASEBUILDING, plugin, entity, author, label, message);
221 }
222
223 static void BleedingChancesLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
224 {
225 LogMessage(LOG_DEBUG_BLEEDING_CHANCES, plugin, entity, author, label, message);
226 }
227
228 static void TriggerLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
229 {
230 LogMessage(LOG_DEBUG_TRIGGER, plugin, entity, author, label, message);
231 }
232
233 static void ParticleLog(string message = LOG_DEFAULT, Managed caller = null, string function = "", Managed entity = null)
234 {
235 LogMessage(LOG_DEBUG_PARTICLE, GetDebugName(caller), GetDebugName(entity), "", function, message);
236 }
237
238 static void TFLog(string message = LOG_DEFAULT, TestFramework caller = null, string function = "")
239 {
240 LogMessage(LOG_DEBUG_TF, GetDebugName(caller), "", "", function, message);
241 }
242
243 static void WeightLog(string message = LOG_DEFAULT, Managed caller = null, string function = "", Managed entity = null)
244 {
245 /*
246 LogMessage(LOG_DEBUG_WEIGHT, GetDebugName(caller), GetDebugName(entity), "", function, message);
247 */
248 }
249
250 static void MeleeLog(Entity entity, string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT)
251 {
252 string logMessage = string.Format("%1: %2", entity.GetSimulationTimeStamp(), message);
253 LogMessage(LOG_DEBUG_MELEE, plugin, GetDebugName(entity), author, label, logMessage);
254 }
255
256 static void WeatherLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
257 {
259 {
260 return;
261 }
262
263 LogMessage(LOG_DEBUG_WEATHER, plugin, entity, author, label, message);
264 }
265
266
267 static void RadioGameplayLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
268 {
269 LogMessage(LOG_DEBUG_RADIO_GAMEPLAY, plugin, entity, author, label, message);
270 }
271
272 static void AutotestLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
273 {
274 #ifdef AUTOTEST
275 LogMessage(LOG_DEBUG_AUTOTEST, plugin, entity, author, label, message);
276 #endif
277 }
278
288 static void LogInfo(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
289 {
290 LogMessage(LOG_INFO, plugin, entity, author, label, message);
291 }
292
303 static void LogWarning(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
304 {
305 LogMessage(LOG_WARNING, plugin, entity, author, label, message);
306 }
307
318 static void LogError(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
319 {
320 LogMessage(LOG_ERROR, plugin, entity, author, label, message);
321 }
322
323 static void LogArrayInt(array<int> arr = NULL, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
324 {
325 if (arr == null)
326 return;
327
328 int nArr = arr.Count();
329 for (int i = 0; i < nArr; ++i)
330 {
331 LogMessage(LOG_DEBUG, plugin, entity, author, label, arr.Get(i).ToString());
332 }
333 }
334
335 static void LogArrayString(array<string> arr = NULL, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
336 {
337 if (arr == null)
338 return;
339
340 int nArr = arr.Count();
341 for (int i = 0; i < nArr; ++i)
342 {
343 LogMessage(LOG_DEBUG, plugin, entity, author, label, arr.Get(i));
344 }
345 }
346
347 static void ReceivedLogMessageFromServer(string message)
348 {
350 {
351 return;
352 }
353
354 SaveLog(message);
355 }
356
357 static void ClearScriptLogs()
358 {
359 ClearLogs();
360 }
361
362 static Shape DrawBox(vector pos1, vector pos2, int color = 0x1fff7f7f)
363 {
364 return DrawBoxEx(pos1, pos2, color, ShapeFlags.TRANSP|ShapeFlags.NOZWRITE);
365 }
366
367 static Shape DrawBoxEx(vector pos1, vector pos2, int color = 0x1fff7f7f, ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.NOZWRITE)
368 {
369 Shape shape = Shape.Create(ShapeType.BBOX, color, flags, pos1, pos2);
370 if (( flags & ShapeFlags.ONCE ) == 0)
371 m_DebugShapes.Insert(shape);
372 return shape;
373 }
374
375 static Shape DrawCube(vector pos, float size = 1, int color = 0x1fff7f7f)
376 {
377 vector min = pos;
378 vector max = pos;
379
380 float size_h = size * 0.5;
381
382 min[0] = min[0] - size_h;
383 min[1] = min[1] - size_h;
384 min[2] = min[2] - size_h;
385
386 max[0] = max[0] + size_h;
387 max[1] = max[1] + size_h;
388 max[2] = max[2] + size_h;
389
390 Shape shape = Shape.Create(ShapeType.DIAMOND, color, ShapeFlags.TRANSP|ShapeFlags.NOZWRITE, min, max);
391 m_DebugShapes.Insert(shape);
392 return shape;
393 }
394
395 static Shape DrawSphere(vector pos, float size = 1, int color = 0x1fff7f7f, ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
396 {
397 Shape shape = Shape.CreateSphere(color, flags, pos, size);
398 if (( flags & ShapeFlags.ONCE ) == 0)
399 m_DebugShapes.Insert(shape);
400 return shape;
401 }
402
403 static Shape DrawFrustum(float horizontalAngle, float verticalAngle, float length, int color = 0x1fff7f7f, ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.WIREFRAME)
404 {
405 Shape shape = Shape.CreateFrustum(horizontalAngle, verticalAngle, length, color, flags);
406 if (( flags & ShapeFlags.ONCE ) == 0)
407 m_DebugShapes.Insert(shape);
408 return shape;
409 }
410
411 static Shape DrawCylinder(vector pos, float radius, float height = 1, int color = 0x1fff7f7f, ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE )
412 {
413 Shape shape = Shape.CreateCylinder(color, flags, pos, radius, height);
414 if (( flags & ShapeFlags.ONCE ) == 0)
415 m_DebugShapes.Insert(shape);
416 return shape;
417 }
418
419 static array<Shape> DrawCone(vector pos, float lenght, float halfAngle, float offsetAngle, int color = 0xFFFFFFFF, int flags = 0)
420 {
421 array<Shape> shapes = new array<Shape>;
422
423 vector endL, endR;
424 Math3D.ConePoints(pos, lenght, halfAngle, offsetAngle, endL, endR);
425
426 // Left side
427 shapes.Insert( Debug.DrawLine(pos, endL, color, flags) );
428 // Rigth side
429 shapes.Insert( Debug.DrawLine(pos, endR, color, flags) );
430 // Top side
431 shapes.Insert( Debug.DrawLine(endL, endR, color, flags) );
432 // Middle (height) line
433 shapes.Insert( Debug.DrawLine(pos, pos + Vector(Math.Cos(offsetAngle), 0, Math.Sin(offsetAngle)).Normalized() * lenght, color, flags) );
434
435 return shapes;
436 }
437
438 static void CleanupDrawShapes(array<Shape> shapes)
439 {
440 foreach (Shape shape : shapes)
441 shapes.RemoveItem(shape);
442
443 shapes.Clear();
444 }
445
447 {
448 foreach (DebugTextScreenSpace text : texts)
449 texts.RemoveItem(text);
450
451 texts.Clear();
452 }
453
455 {
456 foreach (DebugTextWorldSpace text : texts)
457 texts.RemoveItem(text);
458
459 texts.Clear();
460 }
461
474 static Shape DrawLine(vector from, vector to, int color = 0xFFFFFFFF, int flags = 0)
475 {
476 vector pts[2]
477 pts[0] = from;
478 pts[1] = to;
479
480 Shape shape = Shape.CreateLines(color, flags, pts, 2);
481 if (( flags & ShapeFlags.ONCE ) == 0)
482 m_DebugShapes.Insert(shape);
483 //m_DebugShapes.Debug();
484 return shape;
485 }
486
487 static Shape DrawLines(vector[] positions, int count, int color = 0xFFFFFFFF, int flags = 0)
488 {
489
490 Shape shape = Shape.CreateLines(color, flags, positions, count);
491 if (( flags & ShapeFlags.ONCE ) == 0)
492 m_DebugShapes.Insert(shape);
493 return shape;
494 }
495
496 static Shape DrawArrow(vector from, vector to, float size = 0.5, int color = 0xFFFFFFFF, int flags = 0)
497 {
498 Shape shape = Shape.CreateArrow(from, to, size, color, flags);
499 m_DebugShapes.Insert(shape);
500 return shape;
501 }
502
503
504
505 static DebugTextScreenSpace DrawTextSS(string text, float x, float y, float size = 20.0, int color = 0xFFFFFFFF, int bgColor = 0x00000000, DebugTextFlags flags = DebugTextFlags.DEFAULT, int priority = 1000)
506 {
507 DebugTextScreenSpace textSS = DebugTextScreenSpace.Create(text, flags, x, y, size, color, bgColor, priority);
508 if ((flags & DebugTextFlags.ONCE) == 0)
509 m_DebugTextsSS.Insert(textSS);
510
511 return textSS;
512 }
513
514 static DebugTextWorldSpace DrawTextWS(string text, vector position, float size = 20.0, int color = 0xFFFFFFFF, int bgColor = 0x00000000, DebugTextFlags flags = DebugTextFlags.DEFAULT, int priority = 1000)
515 {
516 DebugTextWorldSpace textWS = DebugTextWorldSpace.Create(text, flags, position[0], position[1], position[2], size, color, bgColor, priority);
517 if ((flags & DebugTextFlags.ONCE) == 0)
518 m_DebugTextsWS.Insert(textWS);
519
520 return textWS;
521 }
522
527 static void GetBaseConfigClasses( out TStringArray base_classes )
528 {
529 base_classes.Clear();
530 base_classes.Insert(CFG_VEHICLESPATH);
531 base_classes.Insert(CFG_WEAPONSPATH);
532 base_classes.Insert(CFG_MAGAZINESPATH);
533 base_classes.Insert(CFG_AMMO);
534 base_classes.Insert(CFG_WORLDS);
535 base_classes.Insert(CFG_SURFACES);
536 base_classes.Insert(CFG_SOUND_SETS);
537 base_classes.Insert(CFG_SOUND_SHADERS);
538 base_classes.Insert(CFG_NONAI_VEHICLES);
539 base_classes.Insert(CFG_SOUND_TABLES);
540 }
541
548 static void GetFiltredConfigClasses( string search_string, out TStringArray filtered_classes, bool only_public = true )
549 {
550 TStringArray searching_in = new TStringArray;
551 GetBaseConfigClasses( searching_in );
552
553 filtered_classes.Clear();
554
555 search_string.ToLower();
556
557 int nSearchingIn = searching_in.Count();
558 for ( int s = 0; s < nSearchingIn; ++s )
559 {
560 string config_path = searching_in.Get(s);
561
562 int objects_count = g_Game.ConfigGetChildrenCount(config_path);
563 for (int i = 0; i < objects_count; i++)
564 {
565 string childName;
566 g_Game.ConfigGetChildName(config_path, i, childName);
567
568 if ( only_public )
569 {
570 int scope = g_Game.ConfigGetInt( config_path + " " + childName + " scope" );
571 if ( scope == 0 )
572 {
573 continue;
574 }
575 }
576
577 string nchName = childName;
578 nchName.ToLower();
579
580 if ( nchName.Contains(search_string) != -1)
581 {
582 filtered_classes.Insert(childName);
583 }
584 }
585 }
586 }
587
588 //---------------------------------------------------------------
589 //-------private
590
591 private static bool m_EnabledLogs;
592
593 private static string LogMessage(string level, string plugin, string entity, string author, string label, string message)
594 {
595 if (g_Game == null || !LogManager.IsLogsEnable())
596 return string.Empty;
597
598 bool is_server_log = ( g_Game.IsServer() && g_Game.IsMultiplayer() );
599
600
601 // Formation output to external file
602 // %date{MM-dd HH:mm:ss} | %Enviroment | %Level | %Module | %Entity | %Author | %Label | %Message
603 string date = GetDate();
604 string env = "Client";
605 string msg = string.Empty;
606
607 if ( is_server_log )
608 {
609 env = "Server";
610 }
611
612 msg = string.Format("%1 | %2 | %3 | %4 | %5 | %6 | %7", date, env, level, plugin, entity, label, message);
613
614 if ( is_server_log )
615 {
616 SaveLog(msg);
617
618#ifdef DIAG_DEVELOPER // do not send log to clients on retail
619 Param1<string> msg_p = new Param1<string>(msg);
621#endif
622 }
623 else
624 {
625 SaveLog(msg);
626 }
627
628 return msg;
629 }
630
631 private static void SaveLog(string log_message)
632 {
633 if (log_message.Length() == 0)
634 return;
635
637#ifdef DIAG_DEVELOPER
638#ifndef SERVER
639 CachedObjectsParams.PARAM1_STRING.param1 = log_message;
641#endif
642#endif
643
646#ifdef LOG_TO_FILE
647 FileHandle fileHandle = OpenFile(GetFileName(), FileMode.APPEND);
648 if (fileHandle != 0)
649 {
650 FPrintln(fileHandle, log_message);
651 CloseFile(fileHandle);
652 }
653#endif
654
656#ifdef LOG_TO_RPT
657 PrintToRPT("" + log_message);
658#endif
659
661#ifdef LOG_TO_SCRIPT
662 Print(string.Format("%1", log_message));
663#endif
664 }
665
666 static void ClearLogs()
667 {
668 if (FileExist(GetFileName()))
669 {
670 FileHandle fileHandle = OpenFile(GetFileName(), FileMode.WRITE);
671 if (fileHandle == 0)
672 return;
673
674 FPrintln(fileHandle, "");
675 CloseFile(fileHandle);
676 }
677 }
678
679 static string GetFileName()
680 {
682 }
683
684 private static string GetDate()
685 {
686 int year;
687 int month;
688 int day;
689 int hour;
690 int minute;
691 int second;
692
693 GetYearMonthDay(year, month, day);
694 GetHourMinuteSecond(hour, minute, second);
695
696 string date = month.ToStringLen(2) + "-" + day.ToStringLen(2) + " " + hour.ToStringLen(2) + ":" + minute.ToStringLen(2) + ":" + second.ToStringLen(2);
697
698 return date;
699 }
700};
701
703{
704 static bool m_DoLogs;
710 static bool m_DoSyncLog;
711 static bool m_DoQuickbarLog;
713 static bool m_DoWeaponLog;
714 static bool m_DoWeatherLog;
717
718 static void Init()
719 {
720 #ifdef ENABLE_LOGGING
721 m_DoLogs = true;
722 #else
723 m_DoLogs = IsCLIParam("doLogs");
724 #endif
725
726 m_DoActionDebugLog = IsCLIParam("doActionLog");
727 m_DoSymptomDebugLog = IsCLIParam("doSymptomLog");
728 m_DoInventoryMoveLog = IsCLIParam("doInvMoveLog");
729 m_DoInventoryReservationLog = IsCLIParam("doInvReservLog");
730 m_DoInventoryHFSMLog = IsCLIParam("doInvHFSMLog");
731 m_DoSyncLog = IsCLIParam("doSyncLog");
732 m_DoQuickbarLog = IsCLIParam("doQuickbarLog");
733 m_DoBaseBuildingLog = IsCLIParam("doBaseBuildingLog");
734 m_DoWeaponLog = IsCLIParam("doWeaponLog");
735 m_DoWeatherLog = IsCLIParam("doWeatherLog");
736 m_DoRadioGameplayLog = IsCLIParam("doRadioGameplayLog");
737 }
738
739 static bool IsLogsEnable()
740 {
741 return m_DoLogs;
742 }
743
744 static void SetLogsEnabled(bool enable)
745 {
746 m_DoLogs = enable;
747 }
748
749 static bool IsActionLogEnable()
750 {
751 return m_DoActionDebugLog;
752 }
753
754 static void ActionLogEnable(bool enable)
755 {
756 m_DoActionDebugLog = enable;
757 }
758
760 {
762 }
763
764 static void InventoryMoveLogEnable(bool enable)
765 {
766 m_DoInventoryMoveLog = enable;
767 }
768
773
774 static void InventoryReservationLogEnable(bool enable)
775 {
777 }
778
780 {
782 }
783
784 static void InventoryHFSMLogEnable(bool enable)
785 {
786 m_DoInventoryHFSMLog = enable;
787 }
788
789 static bool IsSyncLogEnable()
790 {
791 return m_DoSyncLog;
792 }
793
794 static void SyncLogEnable(bool enable)
795 {
796 m_DoSyncLog = enable;
797 }
798
800 {
801 return m_DoQuickbarLog;
802 }
803
804 static void QuickbarLogEnable(bool enable)
805 {
806 m_DoQuickbarLog = enable;
807 }
808
810 {
811 return m_DoBaseBuildingLog;
812 }
813
814 static void BaseBuildingLogEnable(bool enable)
815 {
816 m_DoBaseBuildingLog = enable;
817 }
818
819 static bool IsSymptomLogEnable()
820 {
821 return m_DoSymptomDebugLog;
822 }
823
824 static void SymptomLogEnable(bool enable)
825 {
826 m_DoSymptomDebugLog = enable;
827 }
828
829 static bool IsWeaponLogEnable()
830 {
831 return m_DoWeaponLog;
832 }
833
834 static void WeaponLogEnable(bool enable)
835 {
836 m_DoWeaponLog = enable;
837 }
838
840 {
841 return m_DoWeatherLog;
842 }
843
845 {
847 }
848
850 {
852 }
853
854 static void BleedingChancesLogEnable(bool enable)
855 {
856 m_DoBleedingChanceLog = enable;
857 }
858}
859
860enum WeightDebugType
861{
862 NONE = 0,
867}
868
869class WeightDebug
870{
872 static WeightDebugType m_VerbosityFlags;
873
874 //-------------------------------------------------------------
876 {
877 if (!m_WeightDebugData.Get(entity))
878 {
879 WeightDebugData data = new WeightDebugData(entity);
880 m_WeightDebugData.Insert(entity,data);
881 return data;
882 }
883 return m_WeightDebugData.Get(entity);
884 }
885 //-------------------------------------------------------------
886 static void ClearWeightDebug()
887 {
888 m_WeightDebugData.Clear();
889 }
890 //-------------------------------------------------------------
891 static void PrintAll(EntityAI entity)
892 {
893 GameInventory inv = entity.GetInventory();
894 if (!inv)
895 return;
897 inv.EnumerateInventory(InventoryTraversalType.PREORDER, items);
898 int nItems = items.Count();
899 for(int i = 0; i < nItems; ++i)
900 {
901 EntityAI item = items.Get(i);
902 WeightDebugData data = m_WeightDebugData.Get(item);
903 if (data)
904 {
905 data.Output();
906 }
907 }
908 }
909 //-------------------------------------------------------------
910 static void SetVerbosityFlags(WeightDebugType type)
911 {
912 m_VerbosityFlags = type;
913 }
914}
915
917{
919 string m_Weight;
922 //-------------------------------------------------------------
924 {
925 m_Classname = entity.GetType();
926 m_InventoryDepth = entity.GetHierarchyLevel();
927 }
928 //-------------------------------------------------------------
929 void SetWeight(float weight)
930 {
931 m_Weight = weight.ToString();
932 }
933 //-------------------------------------------------------------
934 void SetCalcDetails(string details)
935 {
936 m_CalcDetails = details;
937 }
938
939 //-------------------------------------------------------------
940 void AddCalcDetails(string details)
941 {
942 m_CalcDetails += "+ "+details;
943 }
944 //-------------------------------------------------------------
945 void Output()
946 {
947 string spaces;
948 for(int i = 0; i < m_InventoryDepth;i++)
949 spaces+="--------";
950
951 Print(spaces+">" + m_Classname + " Overall entity weight: "+ m_Weight + " Calculation details:" + m_CalcDetails);
952 }
953 //-------------------------------------------------------------
954
955}
static void ClearWeightDebug()
Определения 3_Game/DayZ/tools/Debug.c:886
class LogManager RECALC_FORCED
static void PrintAll(EntityAI entity)
Определения 3_Game/DayZ/tools/Debug.c:891
static WeightDebugData GetWeightDebug(EntityAI entity)
Определения 3_Game/DayZ/tools/Debug.c:875
static void SetVerbosityFlags(WeightDebugType type)
Определения 3_Game/DayZ/tools/Debug.c:910
class LogManager SET_DIRTY_FLAG
class LogManager DUMP_STACK
class LogManager RECALC_DIRTY
static WeightDebugType m_VerbosityFlags
Определения 3_Game/DayZ/tools/Debug.c:872
class LogManager m_WeightDebugData
class LogManager EntityAI
map
Определения ControlsXboxNew.c:4
DayZGame g_Game
Определения DayZGame.c:4074
Dispatcher GetDispatcher()
Определения Dispatcher.c:20
const CallID CALL_ID_SEND_LOG
Определения Dispatcher.c:3
const CallID CALL_ID_SCR_CNSL_ADD_PRINT
Определения Dispatcher.c:6
Param CallMethod(CallID call_id, Param params)
Определения Dispatcher.c:36
vector position
Определения DustKickupEffects.c:20
Icon x
Icon y
void TestFramework()
Определения TestFramework.c:217
static ref Param1< string > PARAM1_STRING
Определения UtilityClasses.c:14
static ref array< Shape > m_DebugShapes
Определения 3_Game/DayZ/tools/Debug.c:25
static const string LOG_DEBUG_MELEE
Определения 3_Game/DayZ/tools/Debug.c:16
static const string LOG_DEBUG_BLEEDING_CHANCES
Определения 3_Game/DayZ/tools/Debug.c:11
static void CleanupTextsWS(array< ref DebugTextWorldSpace > texts)
Определения 3_Game/DayZ/tools/Debug.c:454
static void BaseBuildingLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:218
static const string LOG_DEBUG_INV_RESERVATION
Определения 3_Game/DayZ/tools/Debug.c:7
static void TFLog(string message=LOG_DEFAULT, TestFramework caller=null, string function="")
Определения 3_Game/DayZ/tools/Debug.c:238
static Shape DrawLines(vector[] positions, int count, int color=0xFFFFFFFF, int flags=0)
Определения 3_Game/DayZ/tools/Debug.c:487
static const string LOG_DEBUG_AUTOTEST
Определения 3_Game/DayZ/tools/Debug.c:19
static void InitCanvas()
Определения 3_Game/DayZ/tools/Debug.c:44
static void RemoveTextWS(out DebugTextWorldSpace text)
Определения 3_Game/DayZ/tools/Debug.c:153
static bool m_EnabledLogs
Определения 3_Game/DayZ/tools/Debug.c:591
static void QuickbarLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:213
static const string LOG_DEBUG_ACTION
Определения 3_Game/DayZ/tools/Debug.c:4
static void GetBaseConfigClasses(out TStringArray base_classes)
Returns some of base config classes strings like CfgVehicles, CfgWeapons, etc. for searching purposes...
Определения 3_Game/DayZ/tools/Debug.c:527
static const string LOG_DEBUG
Определения 3_Game/DayZ/tools/Debug.c:3
static CanvasWidget m_CanvasDebug
Определения 3_Game/DayZ/tools/Debug.c:30
static const string LOG_DEBUG_PARTICLE
Определения 3_Game/DayZ/tools/Debug.c:13
static void SymptomLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:193
static Shape DrawCylinder(vector pos, float radius, float height=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
Определения 3_Game/DayZ/tools/Debug.c:411
static void DestroyAll()
Определения 3_Game/DayZ/tools/Debug.c:88
static DebugTextWorldSpace DrawTextWS(string text, vector position, float size=20.0, int color=0xFFFFFFFF, int bgColor=0x00000000, DebugTextFlags flags=DebugTextFlags.DEFAULT, int priority=1000)
Определения 3_Game/DayZ/tools/Debug.c:514
static void InventoryReservationLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:203
static void ParticleLog(string message=LOG_DEFAULT, Managed caller=null, string function="", Managed entity=null)
Определения 3_Game/DayZ/tools/Debug.c:233
static Shape DrawBox(vector pos1, vector pos2, int color=0x1fff7f7f)
Определения 3_Game/DayZ/tools/Debug.c:362
static ref array< ref DebugTextScreenSpace > m_DebugTextsSS
Определения 3_Game/DayZ/tools/Debug.c:26
static string GetFileName()
Определения 3_Game/DayZ/tools/Debug.c:679
static const string LOG_DEBUG_WEIGHT
Определения 3_Game/DayZ/tools/Debug.c:15
static const string LOG_DEBUG_TF
Определения 3_Game/DayZ/tools/Debug.c:14
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.
Определения 3_Game/DayZ/tools/Debug.c:303
static void CanvasDrawLine(float x1, float y1, float x2, float y2, float width, int color)
Определения 3_Game/DayZ/tools/Debug.c:59
static void ClearLogs()
Определения 3_Game/DayZ/tools/Debug.c:666
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.
Определения 3_Game/DayZ/tools/Debug.c:288
static const string LOG_DEBUG_WEATHER
Определения 3_Game/DayZ/tools/Debug.c:17
static DebugTextScreenSpace DrawTextSS(string text, float x, float y, float size=20.0, int color=0xFFFFFFFF, int bgColor=0x00000000, DebugTextFlags flags=DebugTextFlags.DEFAULT, int priority=1000)
Определения 3_Game/DayZ/tools/Debug.c:505
static void BleedingChancesLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:223
static Shape DrawSphere(vector pos, float size=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
Определения 3_Game/DayZ/tools/Debug.c:395
static void DestroyAllTextWS()
Определения 3_Game/DayZ/tools/Debug.c:108
static void GetFiltredConfigClasses(string search_string, out TStringArray filtered_classes, bool only_public=true)
Returns config classes containing search_string in name.
Определения 3_Game/DayZ/tools/Debug.c:548
static void AutotestLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:272
static void RemoveTextSS(out DebugTextScreenSpace text)
Определения 3_Game/DayZ/tools/Debug.c:133
static void WeightLog(string message=LOG_DEFAULT, Managed caller=null, string function="", Managed entity=null)
Определения 3_Game/DayZ/tools/Debug.c:243
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.
Определения 3_Game/DayZ/tools/Debug.c:318
static const string LOG_DEBUG_RADIO_GAMEPLAY
Определения 3_Game/DayZ/tools/Debug.c:18
static void MeleeLog(Entity entity, string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:250
static Shape DrawFrustum(float horizontalAngle, float verticalAngle, float length, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.WIREFRAME)
Определения 3_Game/DayZ/tools/Debug.c:403
static const string LOG_DEBUG_BASEBUILDING
Определения 3_Game/DayZ/tools/Debug.c:10
static const string LOG_DEBUG_TRIGGER
Определения 3_Game/DayZ/tools/Debug.c:12
static void SaveLog(string log_message)
Определения 3_Game/DayZ/tools/Debug.c:631
static const string LOG_DEBUG_QUICKBAR
Определения 3_Game/DayZ/tools/Debug.c:9
static Shape DrawCube(vector pos, float size=1, int color=0x1fff7f7f)
Определения 3_Game/DayZ/tools/Debug.c:375
static const string LOG_INFO
Определения 3_Game/DayZ/tools/Debug.c:20
static void ClearCanvas()
Определения 3_Game/DayZ/tools/Debug.c:53
static const string LOG_DEBUG_SYMPTOM
Определения 3_Game/DayZ/tools/Debug.c:5
static void ReceivedLogMessageFromServer(string message)
Определения 3_Game/DayZ/tools/Debug.c:347
static Shape DrawArrow(vector from, vector to, float size=0.5, int color=0xFFFFFFFF, int flags=0)
Определения 3_Game/DayZ/tools/Debug.c:496
static void TriggerLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:228
static void CleanupDrawShapes(array< Shape > shapes)
Определения 3_Game/DayZ/tools/Debug.c:438
static const string LOG_DEBUG_INV_MOVE
Определения 3_Game/DayZ/tools/Debug.c:6
static array< Shape > DrawCone(vector pos, float lenght, float halfAngle, float offsetAngle, int color=0xFFFFFFFF, int flags=0)
Определения 3_Game/DayZ/tools/Debug.c:419
static void CleanupTextsSS(array< ref DebugTextScreenSpace > texts)
Определения 3_Game/DayZ/tools/Debug.c:446
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++) { f...
Определения 3_Game/DayZ/tools/Debug.c:76
static const string LOG_WARNING
Определения 3_Game/DayZ/tools/Debug.c:21
static void InventoryHFSMLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:208
static string GetDate()
Определения 3_Game/DayZ/tools/Debug.c:684
static void DestroyAllShapes()
Определения 3_Game/DayZ/tools/Debug.c:95
static Shape DrawBoxEx(vector pos1, vector pos2, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOZWRITE)
Определения 3_Game/DayZ/tools/Debug.c:367
static void WeatherLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:256
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.
Определения 3_Game/DayZ/tools/Debug.c:183
static void LogArrayInt(array< int > arr=NULL, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:323
static void ClearScriptLogs()
Определения 3_Game/DayZ/tools/Debug.c:357
static const string LOG_DEFAULT
Определения 3_Game/DayZ/tools/Debug.c:23
static void RadioGameplayLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:267
static ref array< ref DebugTextWorldSpace > m_DebugTextsWS
Определения 3_Game/DayZ/tools/Debug.c:27
static Widget m_DebugLayoutCanvas
Определения 3_Game/DayZ/tools/Debug.c:29
static void Init()
Определения 3_Game/DayZ/tools/Debug.c:81
static void LogArrayString(array< string > arr=NULL, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:335
static void InventoryMoveLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:198
static const string LOG_ERROR
Определения 3_Game/DayZ/tools/Debug.c:22
static void RemoveShape(out Shape shape)
Определения 3_Game/DayZ/tools/Debug.c:113
static string GetDebugName(Managed entity)
Определения 3_Game/DayZ/tools/Debug.c:32
static const string LOG_DEBUG_INV_HFSM
Определения 3_Game/DayZ/tools/Debug.c:8
static Shape DrawLine(vector from, vector to, int color=0xFFFFFFFF, int flags=0)
Определения 3_Game/DayZ/tools/Debug.c:474
static string LogMessage(string level, string plugin, string entity, string author, string label, string message)
DEPRECATED.
Определения 3_Game/DayZ/tools/Debug.c:593
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:188
static void DestroyAllTextSS()
Определения 3_Game/DayZ/tools/Debug.c:103
Определения 3_Game/DayZ/tools/Debug.c:2
static proto DebugTextScreenSpace Create(string text, DebugTextFlags flags, float x, float y, float size=20.0, int color=0xFFFFFFFF, int bgColor=0x00000000, int priority=1000)
static proto DebugTextWorldSpace Create(string text, DebugTextFlags flags, float x, float y, float z, float size=20.0, int color=0xFFFFFFFF, int bgColor=0x00000000, int priority=1000)
Param CallMethod(CallID call_id, Param params)
Определения Dispatcher.c:15
Определения Camera.c:2
proto native bool EnumerateInventory(InventoryTraversalType tt, out array< EntityAI > items)
enumerate inventory using traversal type and filling items array
script counterpart to engine's class Inventory
static void InventoryHFSMLogEnable(bool enable)
Определения 3_Game/DayZ/tools/Debug.c:784
static void InventoryReservationLogEnable(bool enable)
Определения 3_Game/DayZ/tools/Debug.c:774
static void SymptomLogEnable(bool enable)
Определения 3_Game/DayZ/tools/Debug.c:824
static void SyncLogEnable(bool enable)
Определения 3_Game/DayZ/tools/Debug.c:794
static bool IsWeaponLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:829
static bool m_DoSyncLog
Определения 3_Game/DayZ/tools/Debug.c:710
static void BleedingChancesLogEnable(bool enable)
Определения 3_Game/DayZ/tools/Debug.c:854
static bool m_DoActionDebugLog
Определения 3_Game/DayZ/tools/Debug.c:705
static bool m_DoLogs
Определения 3_Game/DayZ/tools/Debug.c:704
static bool m_DoInventoryHFSMLog
Определения 3_Game/DayZ/tools/Debug.c:709
static void WeaponLogEnable(bool enable)
Определения 3_Game/DayZ/tools/Debug.c:834
static void Init()
Определения 3_Game/DayZ/tools/Debug.c:718
static bool m_DoSymptomDebugLog
Определения 3_Game/DayZ/tools/Debug.c:706
static bool IsBaseBuildingLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:809
static bool m_DoInventoryReservationLog
Определения 3_Game/DayZ/tools/Debug.c:708
static bool IsWeatherLogEnabled()
Определения 3_Game/DayZ/tools/Debug.c:839
static void SetLogsEnabled(bool enable)
Определения 3_Game/DayZ/tools/Debug.c:744
static bool IsRadioGameplayLogEnabled()
Определения 3_Game/DayZ/tools/Debug.c:844
static bool IsInventoryReservationLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:769
static bool IsSymptomLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:819
static bool IsSyncLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:789
static bool IsInventoryHFSMLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:779
static bool IsLogsEnable()
Определения 3_Game/DayZ/tools/Debug.c:739
static bool m_DoBleedingChanceLog
Определения 3_Game/DayZ/tools/Debug.c:716
static bool m_DoBaseBuildingLog
Определения 3_Game/DayZ/tools/Debug.c:712
static void QuickbarLogEnable(bool enable)
Определения 3_Game/DayZ/tools/Debug.c:804
static void ActionLogEnable(bool enable)
Определения 3_Game/DayZ/tools/Debug.c:754
static void InventoryMoveLogEnable(bool enable)
Определения 3_Game/DayZ/tools/Debug.c:764
static bool m_DoWeatherLog
Определения 3_Game/DayZ/tools/Debug.c:714
static bool IsBleedingChancesLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:849
static bool IsInventoryMoveLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:759
static bool IsActionLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:749
static void BaseBuildingLogEnable(bool enable)
Определения 3_Game/DayZ/tools/Debug.c:814
static bool m_DoWeaponLog
Определения 3_Game/DayZ/tools/Debug.c:713
static bool IsQuickbarLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:799
static bool m_DoInventoryMoveLog
Определения 3_Game/DayZ/tools/Debug.c:707
static bool m_DoRadioGameplayLog
Определения 3_Game/DayZ/tools/Debug.c:715
static bool m_DoQuickbarLog
Определения 3_Game/DayZ/tools/Debug.c:711
TODO doc.
Определения EnScript.c:118
Определения EnMath3D.c:28
Определения EnMath.c:7
Определения ObjectTyped.c:2
string m_Weight
Определения 3_Game/DayZ/tools/Debug.c:919
string m_CalcDetails
Определения 3_Game/DayZ/tools/Debug.c:921
void AddCalcDetails(string details)
Определения 3_Game/DayZ/tools/Debug.c:940
string m_Classname
Определения 3_Game/DayZ/tools/Debug.c:918
void SetCalcDetails(string details)
Определения 3_Game/DayZ/tools/Debug.c:934
void Output()
Определения 3_Game/DayZ/tools/Debug.c:945
void SetWeight(float weight)
Определения 3_Game/DayZ/tools/Debug.c:929
void WeightDebugData(EntityAI entity)
Определения 3_Game/DayZ/tools/Debug.c:923
int m_InventoryDepth
Определения 3_Game/DayZ/tools/Debug.c:920
Определения EnWidgets.c:190
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto string ToString(bool simple=true)
Определения Transport.c:70
Определения EnConvert.c:119
override string GetDebugName()
Определения dayzplayer.c:1191
InventoryTraversalType
tree traversal type, for more see http://en.wikipedia.org/wiki/Tree_traversal
Определения gameplay.c:6
const string CFG_FILE_SCRIPT_LOG_EXT
Определения 3_Game/DayZ/constants.c:256
proto void Print(void var)
Prints content of variable to console/log.
DebugTextFlags
Определения DebugTextFlags.c:8
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...
ShapeType
Определения EnDebug.c:116
ShapeFlags
Определения EnDebug.c:126
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead
class array< Class T > TStringArray
FileMode
Определения EnSystem.c:383
proto void CloseFile(FileHandle file)
Close the File.
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.
int[] FileHandle
Определения EnSystem.c:390
proto bool FileExist(string name)
Check existence of file.
proto void FPrintln(FileHandle file, void var)
Write to file and add new line.
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.
const string CFG_SOUND_SETS
Определения 3_Game/DayZ/constants.c:236
const string CFG_AMMO
Определения 3_Game/DayZ/constants.c:231
const string CFG_VEHICLESPATH
Определения 3_Game/DayZ/constants.c:228
const string CFG_NONAI_VEHICLES
Определения 3_Game/DayZ/constants.c:237
const string CFG_SOUND_SHADERS
Определения 3_Game/DayZ/constants.c:235
const string CFG_SOUND_TABLES
Определения 3_Game/DayZ/constants.c:238
const string CFG_SURFACES
Определения 3_Game/DayZ/constants.c:233
const string CFG_WEAPONSPATH
Определения 3_Game/DayZ/constants.c:229
const string CFG_WORLDS
Определения 3_Game/DayZ/constants.c:232
const string CFG_MAGAZINESPATH
Определения 3_Game/DayZ/constants.c:230
@ NONE
body is not in simulation, nor in collision world
Определения SimulationState.c:15
proto native int Length()
Returns length of string.
bool Contains(string sample)
Returns true if sample is substring of string.
Определения EnString.c:286
static const string Empty
Определения EnString.c:7
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.
proto int ToLower()
Changes string to lowercase. Returns length.
proto void GetYearMonthDay(out int year, out int month, out int day)
Returns system date.
proto void GetHourMinuteSecond(out int hour, out int minute, out int second)
Returns system time.
proto native bool IsCLIParam(string param)
Returns if command line argument is present.