Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
sqfdebugwatcher.c
Go to the documentation of this file.
1
class
SqfDebugWatcher
2
{
3
private
int
m_Id;
4
private
string
m_SqfCommand;
5
6
private
bool
m_IsRunning;
7
8
9
void
SqfDebugWatcher
(
int
id
,
string
sqf_command )
10
{
11
m_Id
= id;
12
m_SqfCommand = sqf_command;
13
m_IsRunning
=
false
;
14
}
15
16
int
GetId()
17
{
18
return
m_Id
;
19
}
20
21
void
SetId(
int
id
)
22
{
23
m_Id
= id;
24
}
25
26
string
GetSqfCommand()
27
{
28
return
m_SqfCommand;
29
}
30
31
void
SetSqfCommand(
string
sqf_command )
32
{
33
m_SqfCommand = sqf_command;
34
}
35
36
bool
IsRunning()
37
{
38
return
m_IsRunning
;
39
}
40
41
void
Run()
42
{
43
m_IsRunning
=
true
;
44
}
45
46
void
Stop()
47
{
48
m_IsRunning
=
false
;
49
}
50
51
void
Execute()
52
{
53
if
(
m_IsRunning
&& m_SqfCommand !=
""
)
54
{
55
// string sqf_command = "_result = " + m_SqfCommand + "; _resultStr = format ['%1', _result]; null = callFunction ['OnSqfDebugWatcherResult', " + m_Id.ToString() + ", _resultStr];";
56
// GetGame().ExecuteSQF( sqf_command );
57
}
58
}
59
}
SqfDebugWatcher
Definition:
sqfdebugwatcher.c:1
m_Id
class GetServerModListResult m_Id
GetServersResultRow the output structure of the GetServers operation that represents one game server.
m_IsRunning
protected bool m_IsRunning
Definition:
pperequestplatformsbase.c:2
DAYZ
scripts_v1.24.157551
scripts
world
classes
sqfdebugwatcher.c
Generated by
1.8.17