DayZ
1.24
Loading...
Searching...
No Matches
PluginBase.c
Go to the documentation of this file.
1
class
PluginBase
2
{
3
void
PluginBase
();
4
void
~PluginBase
();
5
6
void
OnInit
();
7
void
OnUpdate
(
float
delta_time
);
8
void
OnDestroy
();
9
10
void
Log
(
string
msg
,
string
label
)
11
{
12
Debug
.
Log
(
msg
,
GetModuleName
(),
"n/a"
,
label
,
"n/a"
);
13
}
14
15
string
GetModuleName
()
16
{
17
return
ClassName();
18
}
19
20
typename
GetModuleType
()
21
{
22
return
GetModuleName
().
ToType
();
23
}
24
}
25
Debug
Definition
Debug.c:14
Debug::Log
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:133
Param3
Definition
EntityAI.c:95
PluginBase
Definition
PluginBase.c:2
PluginBase::PluginBase
void PluginBase()
PluginBase::~PluginBase
void ~PluginBase()
PluginBase::OnDestroy
void OnDestroy()
PluginBase::OnInit
void OnInit()
PluginBase::Log
void Log(string msg, string label)
Definition
PluginBase.c:10
PluginBase::GetModuleName
string GetModuleName()
Definition
PluginBase.c:15
PluginBase::OnUpdate
void OnUpdate(float delta_time)
PluginBase::GetModuleType
GetModuleType()
Definition
PluginBase.c:20
string::ToType
proto native ToType()
Returns internal type representation. Can be used in runtime, or cached in variables and used for fas...
scripts
4_World
Plugins
PluginBase.c
Generated by
1.10.0