49 return obj.GetDebugNameNative();
51 return entity.GetDebugName();
138 if (
res.Length() > 0)
148 if (
res.Length() > 0)
158 if (
res.Length() > 0)
168 if (
res.Length() > 0)
178 if (
res.Length() > 0)
188 if (
res.Length() > 0)
198 if (
res.Length() > 0)
208 if (
res.Length() > 0)
218 if (
res.Length() > 0)
228 if (
res.Length() > 0)
238 if (
res.Length() > 0)
248 if (
res.Length() > 0)
273 if (
res.Length() > 0)
286 if (
res.Length() > 0)
306 if (
res.Length() > 0)
326 if (
res.Length() > 0)
346 if (
res.Length() > 0)
358 for (
int i = 0;
i <
arr.Count();
i++)
362 if (
res.Length() > 0)
374 for (
int i = 0;
i <
arr.Count();
i++)
378 if (
res.Length() > 0)
595 string env =
"Client";
596 string msg =
string.Empty;
668 string date =
month.ToStringLen(2) +
"-" +
day.ToStringLen(2) +
" " +
hour.ToStringLen(2) +
":" +
minute.ToStringLen(2) +
":" +
second.ToStringLen(2);
863 for (
int i = 0;
i <
items.Count();
i++)
Dispatcher GetDispatcher()
const CallID CALL_ID_SEND_LOG
const CallID CALL_ID_SCR_CNSL_ADD_PRINT
Param CallMethod(CallID call_id, Param params)
static ref Param1< string > PARAM1_STRING
ref array< Shape > m_DebugShapes
const string LOG_DEBUG_MELEE
const string LOG_DEBUG_BLEEDING_CHANCES
static void BaseBuildingLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
const string LOG_DEBUG_INV_RESERVATION
static void TFLog(string message=LOG_DEFAULT, TestFramework caller=null, string function="")
static Shape DrawLines(vector[] positions, int count, int color=0xFFFFFFFF, int flags=0)
static void QuickbarLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
const string LOG_DEBUG_ACTION
static void GetBaseConfigClasses(out TStringArray base_classes)
Returns some of base config classes strings like CfgVehicles, CfgWeapons, etc. for searching purposes...
static CanvasWidget m_CanvasDebug
const string LOG_DEBUG_PARTICLE
static void SymptomLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static Shape DrawCylinder(vector pos, float radius, float height=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
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 ParticleLog(string message=LOG_DEFAULT, Managed caller=null, string function="", Managed entity=null)
static Shape DrawBox(vector pos1, vector pos2, int color=0x1fff7f7f)
static string GetFileName()
const string LOG_DEBUG_WEIGHT
const string LOG_DEBUG_TF
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 CanvasDrawLine(float x1, float y1, float x2, float y2, float width, int color)
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.
const string LOG_DEBUG_WEATHER
static void BleedingChancesLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static Shape DrawSphere(vector pos, float size=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
static void GetFiltredConfigClasses(string search_string, out TStringArray filtered_classes, bool only_public=true)
Returns config classes containing search_string in name.
static void WeightLog(string message=LOG_DEFAULT, Managed caller=null, string function="", Managed entity=null)
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 MeleeLog(Entity entity, string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT)
static Shape DrawFrustum(float horizontalAngle, float verticalAngle, float length, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.WIREFRAME)
const string LOG_DEBUG_BASEBUILDING
const string LOG_DEBUG_TRIGGER
const string LOG_DEBUG_QUICKBAR
static Shape DrawCube(vector pos, float size=1, int color=0x1fff7f7f)
void SaveLog(string log_message)
static void ClearCanvas()
const string LOG_DEBUG_SYMPTOM
static void ReceivedLogMessageFromServer(string message)
static Shape DrawArrow(vector from, vector to, float size=0.5, int color=0xFFFFFFFF, int flags=0)
static void TriggerLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
const string LOG_DEBUG_INV_MOVE
static array< Shape > DrawCone(vector pos, float lenght, float halfAngle, float offsetAngle, int color=0xFFFFFFFF, int flags=0)
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...
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 DestroyAllShapes()
static Shape DrawBoxEx(vector pos1, vector pos2, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOZWRITE)
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 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 LogArrayInt(array< int > arr=NULL, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static void ClearScriptLogs()
static Widget m_DebugLayoutCanvas
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 InventoryMoveLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static void RemoveShape(out Shape shape)
static string GetDebugName(Managed entity)
const string LOG_DEBUG_INV_HFSM
string LogMessage(string level, string plugin, string entity, string author, string label, string message)
DEPRECATED.
static Shape DrawLine(vector from, vector to, int color=0xFFFFFFFF, int flags=0)
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Param CallMethod(CallID call_id, Param params)
script counterpart to engine's class Inventory
static void InventoryHFSMLogEnable(bool enable)
static void InventoryReservationLogEnable(bool enable)
static void SymptomLogEnable(bool enable)
static void SyncLogEnable(bool enable)
static bool IsWeaponLogEnable()
static void BleedingChancesLogEnable(bool enable)
static bool m_DoActionDebugLog
static bool m_DoInventoryHFSMLog
static void WeaponLogEnable(bool enable)
static bool m_DoSymptomDebugLog
static bool IsBaseBuildingLogEnable()
static bool m_DoInventoryReservationLog
static bool IsWeatherLogEnabled()
static void SetLogsEnabled(bool enable)
static bool IsInventoryReservationLogEnable()
static bool IsSymptomLogEnable()
static bool IsSyncLogEnable()
static bool IsInventoryHFSMLogEnable()
static bool IsLogsEnable()
static bool m_DoBleedingChanceLog
static bool m_DoBaseBuildingLog
static void QuickbarLogEnable(bool enable)
static void ActionLogEnable(bool enable)
static void InventoryMoveLogEnable(bool enable)
static bool m_DoWeatherLog
static bool IsBleedingChancesLogEnable()
static bool IsInventoryMoveLogEnable()
static bool IsActionLogEnable()
static void BaseBuildingLogEnable(bool enable)
static bool m_DoWeaponLog
static bool IsQuickbarLogEnable()
static bool m_DoInventoryMoveLog
static bool m_DoQuickbarLog
void AddCalcDetails(string details)
void SetCalcDetails(string details)
void SetWeight(float weight)
void WeightDebugData(EntityAI entity)
override string GetDebugName()
InventoryTraversalType
tree traversal type, for more see http://en.wikipedia.org/wiki/Tree_traversal
proto native CGame GetGame()
const string CFG_FILE_SCRIPT_LOG_EXT
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!...
array< string > TStringArray
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.
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.
static const string Empty
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.
proto native bool IsCLIParam(string param)
Returns if command line argument is present.