DayZ
1.24
Loading...
Searching...
No Matches
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
}
Param3
Definition
EntityAI.c:95
SqfDebugWatcher
Definition
SqfDebugWatcher.c:2
SqfDebugWatcher::GetSqfCommand
string GetSqfCommand()
Definition
SqfDebugWatcher.c:26
SqfDebugWatcher::IsRunning
bool IsRunning()
Definition
SqfDebugWatcher.c:36
SqfDebugWatcher::Stop
void Stop()
Definition
SqfDebugWatcher.c:46
SqfDebugWatcher::SetId
void SetId(int id)
Definition
SqfDebugWatcher.c:21
SqfDebugWatcher::Execute
void Execute()
Definition
SqfDebugWatcher.c:51
SqfDebugWatcher::SetSqfCommand
void SetSqfCommand(string sqf_command)
Definition
SqfDebugWatcher.c:31
SqfDebugWatcher::Run
void Run()
Definition
SqfDebugWatcher.c:41
SqfDebugWatcher::SqfDebugWatcher
void SqfDebugWatcher(int id, string sqf_command)
Definition
SqfDebugWatcher.c:9
SqfDebugWatcher::m_SqfCommand
string m_SqfCommand
Definition
SqfDebugWatcher.c:4
SqfDebugWatcher::m_IsRunning
bool m_IsRunning
Definition
SqfDebugWatcher.c:6
SqfDebugWatcher::GetId
int GetId()
Definition
SqfDebugWatcher.c:16
SqfDebugWatcher::m_Id
int m_Id
Definition
SqfDebugWatcher.c:3
scripts
4_World
Classes
SqfDebugWatcher.c
Generated by
1.10.0