11 static private void RegisterLogTamplate(
LogTemplateID template_id,
string author,
string plugin,
string label)
13 if ( m_LogTemplates == NULL )
18 if ( m_LogTemplates.Contains(template_id) )
20 Debug.Log(
"Template ID: "+
string.
ToString(template_id)+
" is alredy exist!",
"LogTemplate.h -> OnInit()",
"System",
"Template Registration",
"None");
25 m_LogTemplates.Set(template_id, params);
45 RegisterLogTamplate( TEMPLATE_UNKNOWN ,
"Unknown" ,
"Unknown" ,
"Unknown" );
46 RegisterLogTamplate( TEMPLATE_JANOSIK ,
"Janosik" ,
"GUI" ,
"None" );
47 RegisterLogTamplate( TEMPLATE_PLAYER_WEIGHT ,
"Unknown" ,
"PlayerBase" ,
"Weight" );
48 RegisterLogTamplate( TEMPLATE_BROADCAST ,
"Unknown" ,
"PluginMessageManager" ,
"Broadcast" );
54 if ( m_LogTemplates && m_LogTemplates.Contains(template_id) )
56 return m_LogTemplates.Get(template_id);
59 Debug.Log(
"Template ID: "+
string.
ToString(template_id)+
" does not exist!",
"LogTemplate.h -> GetTemplate()",
"System",
"Get Log Template",
"None");
79 Debug.Log(message, log_template.param2, log_template.param1, log_template.param3);
97 Debug.LogInfo(message, log_template.param2, log_template.param1, log_template.param3);
115 Debug.LogWarning(message, log_template.param2, log_template.param1, log_template.param3);
133 Debug.LogError(message, log_template.param2, log_template.param1, log_template.param3);