DayZ 1.24
Loading...
Searching...
No Matches
SqfDebugWatcher.c
Go to the documentation of this file.
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;
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
27 {
28 return m_SqfCommand;
29 }
30
32 {
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}
void SetId(int id)
void SetSqfCommand(string sqf_command)
void SqfDebugWatcher(int id, string sqf_command)