DayZ 1.24
Loading...
Searching...
No Matches
Dispatcher.c File Reference

Go to the source code of this file.

Classes

class  Dispatcher
 

Typedefs

typedef int CallID
 

Functions

Dispatcher GetDispatcher ()
 
void SetDispatcher (Dispatcher dispatcher)
 
Param CallMethod (CallID call_id, Param params)
 

Variables

const CallID CALL_ID_SEND_LOG = 0
 
const CallID CALL_ID_SCR_CNSL_HISTORY_BACK = 1
 
const CallID CALL_ID_SCR_CNSL_HISTORY_NEXT = 2
 
const CallID CALL_ID_SCR_CNSL_ADD_PRINT = 3
 
const CallID CALL_ID_SCR_CNSL_GET_SQF_WATCHER = 4
 
const CallID CALL_ID_SCR_CNSL_SET_SQF_WATCHER_RESULT = 5
 
const CallID CALL_ID_SCENE_EDITOR_COMMAND = 6
 
const CallID CALL_ID_HIDE_INVENTORY = 7
 
const CallID CALL_ID_SCR_CNSL_GETSELECTEDITEM = 8
 
class Dispatcher g_Dispatcher
 

Typedef Documentation

◆ CallID

Definition at line 1 of file Dispatcher.c.

Function Documentation

◆ CallMethod()

◆ GetDispatcher()

Dispatcher GetDispatcher ( )

Definition at line 20 of file Dispatcher.c.

21{
22 if (g_Dispatcher == NULL)
23 {
24 //Print("[Dispatcher.h]=>GetDispatcher(): g_Dispatcher is NULL!!");
25 return NULL;
26 }
27
28 return g_Dispatcher;
29}
class Dispatcher g_Dispatcher

References g_Dispatcher.

Referenced by CallMethod(), PluginDayzPlayerDebug_Weapons::OnClick(), and Debug::SaveLog().

◆ SetDispatcher()

void SetDispatcher ( Dispatcher dispatcher)

Definition at line 31 of file Dispatcher.c.

32{
34}

References g_Dispatcher.

Referenced by MissionBaseWorld::MissionBase(), and CGame::~DayZGame().

Variable Documentation

◆ CALL_ID_HIDE_INVENTORY

const CallID CALL_ID_HIDE_INVENTORY = 7

Definition at line 10 of file Dispatcher.c.

Referenced by Dispatcher::CallMethod().

◆ CALL_ID_SCENE_EDITOR_COMMAND

◆ CALL_ID_SCR_CNSL_ADD_PRINT

const CallID CALL_ID_SCR_CNSL_ADD_PRINT = 3

Definition at line 6 of file Dispatcher.c.

Referenced by Dispatcher::CallMethod(), PluginBase::PrintLogClient(), and Debug::SaveLog().

◆ CALL_ID_SCR_CNSL_GET_SQF_WATCHER

const CallID CALL_ID_SCR_CNSL_GET_SQF_WATCHER = 4

Definition at line 7 of file Dispatcher.c.

◆ CALL_ID_SCR_CNSL_GETSELECTEDITEM

const CallID CALL_ID_SCR_CNSL_GETSELECTEDITEM = 8

Definition at line 11 of file Dispatcher.c.

Referenced by Dispatcher::CallMethod(), and PluginDayzPlayerDebug_Weapons::OnClick().

◆ CALL_ID_SCR_CNSL_HISTORY_BACK

const CallID CALL_ID_SCR_CNSL_HISTORY_BACK = 1

Definition at line 4 of file Dispatcher.c.

Referenced by Dispatcher::CallMethod(), and PluginBase::ScriptHistoryBack().

◆ CALL_ID_SCR_CNSL_HISTORY_NEXT

const CallID CALL_ID_SCR_CNSL_HISTORY_NEXT = 2

Definition at line 5 of file Dispatcher.c.

Referenced by Dispatcher::CallMethod(), and PluginBase::ScriptHistoryNext().

◆ CALL_ID_SCR_CNSL_SET_SQF_WATCHER_RESULT

const CallID CALL_ID_SCR_CNSL_SET_SQF_WATCHER_RESULT = 5

Definition at line 8 of file Dispatcher.c.

◆ CALL_ID_SEND_LOG

const CallID CALL_ID_SEND_LOG = 0

Definition at line 3 of file Dispatcher.c.

Referenced by Dispatcher::CallMethod(), and Debug::LogMessage().

◆ g_Dispatcher

class Dispatcher g_Dispatcher

Referenced by GetDispatcher(), and SetDispatcher().