DayZ 1.24
Loading...
Searching...
No Matches
SqfDebugWatcher Class Reference
Collaboration diagram for SqfDebugWatcher:
[legend]

Private Member Functions

void SqfDebugWatcher (int id, string sqf_command)
 
int GetId ()
 
void SetId (int id)
 
string GetSqfCommand ()
 
void SetSqfCommand (string sqf_command)
 
bool IsRunning ()
 
void Run ()
 
void Stop ()
 
void Execute ()
 

Private Attributes

int m_Id
 
string m_SqfCommand
 
bool m_IsRunning
 

Detailed Description

Definition at line 1 of file SqfDebugWatcher.c.

Constructor & Destructor Documentation

◆ SqfDebugWatcher()

void SqfDebugWatcher::SqfDebugWatcher ( int id,
string sqf_command )
inlineprivate

Definition at line 9 of file SqfDebugWatcher.c.

10 {
11 m_Id = id;
13 m_IsRunning = false;
14 }

References m_Id, m_IsRunning, and m_SqfCommand.

Member Function Documentation

◆ Execute()

void SqfDebugWatcher::Execute ( )
inlineprivate

Definition at line 51 of file SqfDebugWatcher.c.

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 }

References m_IsRunning, and m_SqfCommand.

◆ GetId()

int SqfDebugWatcher::GetId ( )
inlineprivate

Definition at line 16 of file SqfDebugWatcher.c.

17 {
18 return m_Id;
19 }

References m_Id.

◆ GetSqfCommand()

string SqfDebugWatcher::GetSqfCommand ( )
inlineprivate

Definition at line 26 of file SqfDebugWatcher.c.

27 {
28 return m_SqfCommand;
29 }

References m_SqfCommand.

◆ IsRunning()

bool SqfDebugWatcher::IsRunning ( )
inlineprivate

Definition at line 36 of file SqfDebugWatcher.c.

37 {
38 return m_IsRunning;
39 }

References m_IsRunning.

◆ Run()

void SqfDebugWatcher::Run ( )
inlineprivate

Definition at line 41 of file SqfDebugWatcher.c.

42 {
43 m_IsRunning = true;
44 }

References m_IsRunning.

◆ SetId()

void SqfDebugWatcher::SetId ( int id)
inlineprivate

Definition at line 21 of file SqfDebugWatcher.c.

22 {
23 m_Id = id;
24 }

References m_Id.

◆ SetSqfCommand()

void SqfDebugWatcher::SetSqfCommand ( string sqf_command)
inlineprivate

Definition at line 31 of file SqfDebugWatcher.c.

32 {
34 }

References m_SqfCommand.

◆ Stop()

void SqfDebugWatcher::Stop ( )
inlineprivate

Definition at line 46 of file SqfDebugWatcher.c.

47 {
48 m_IsRunning = false;
49 }

References m_IsRunning.

Member Data Documentation

◆ m_Id

int SqfDebugWatcher::m_Id
private

Definition at line 3 of file SqfDebugWatcher.c.

Referenced by GetId(), SetId(), and SqfDebugWatcher().

◆ m_IsRunning

bool SqfDebugWatcher::m_IsRunning
private

Definition at line 6 of file SqfDebugWatcher.c.

Referenced by Execute(), IsRunning(), Run(), SqfDebugWatcher(), and Stop().

◆ m_SqfCommand

string SqfDebugWatcher::m_SqfCommand
private

Definition at line 4 of file SqfDebugWatcher.c.

Referenced by Execute(), GetSqfCommand(), SetSqfCommand(), and SqfDebugWatcher().


The documentation for this class was generated from the following file: