DayZ 1.24
Loading...
Searching...
No Matches
PluginBase.c
Go to the documentation of this file.
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
16 {
17 return ClassName();
18 }
19
20 typename GetModuleType()
21 {
22 return GetModuleName().ToType();
23 }
24}
25
Definition Debug.c:14
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
void PluginBase()
void ~PluginBase()
void OnDestroy()
void OnInit()
void Log(string msg, string label)
Definition PluginBase.c:10
string GetModuleName()
Definition PluginBase.c:15
void OnUpdate(float delta_time)
proto native ToType()
Returns internal type representation. Can be used in runtime, or cached in variables and used for fas...