Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
dispatcher.c
Go to the documentation of this file.
1 typedef int CallID;
2 
12 
14 {
15  Param CallMethod(CallID call_id, Param params){}
16 }
17 
19 
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 }
30 
31 void SetDispatcher(Dispatcher dispatcher)
32 {
33  g_Dispatcher = dispatcher;
34 }
35 
36 Param CallMethod( CallID call_id, Param params )
37 {
38  Dispatcher dis = GetDispatcher();
39  if ( dis )
40  {
41  return dis.CallMethod(call_id, params);
42  }
43 
44  return NULL;
45 }
Param
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition: param.c:11
Dispatcher
Definition: dispatcher.c:13
CALL_ID_SCENE_EDITOR_COMMAND
const CallID CALL_ID_SCENE_EDITOR_COMMAND
Definition: dispatcher.c:9
SetDispatcher
void SetDispatcher(Dispatcher dispatcher)
Definition: dispatcher.c:31
CallMethod
Param CallMethod(CallID call_id, Param params)
Definition: dispatcher.c:36
Param3
Definition: entityai.c:95
CALL_ID_HIDE_INVENTORY
const CallID CALL_ID_HIDE_INVENTORY
Definition: dispatcher.c:10
CALL_ID_SEND_LOG
const CallID CALL_ID_SEND_LOG
Definition: dispatcher.c:3
CALL_ID_SCR_CNSL_SET_SQF_WATCHER_RESULT
const CallID CALL_ID_SCR_CNSL_SET_SQF_WATCHER_RESULT
Definition: dispatcher.c:8
CALL_ID_SCR_CNSL_HISTORY_BACK
const CallID CALL_ID_SCR_CNSL_HISTORY_BACK
Definition: dispatcher.c:4
CALL_ID_SCR_CNSL_HISTORY_NEXT
const CallID CALL_ID_SCR_CNSL_HISTORY_NEXT
Definition: dispatcher.c:5
CALL_ID_SCR_CNSL_GETSELECTEDITEM
const CallID CALL_ID_SCR_CNSL_GETSELECTEDITEM
Definition: dispatcher.c:11
CALL_ID_SCR_CNSL_ADD_PRINT
const CallID CALL_ID_SCR_CNSL_ADD_PRINT
Definition: dispatcher.c:6
GetDispatcher
Dispatcher GetDispatcher()
Definition: dispatcher.c:20
g_Dispatcher
class Dispatcher g_Dispatcher
CALL_ID_SCR_CNSL_GET_SQF_WATCHER
const CallID CALL_ID_SCR_CNSL_GET_SQF_WATCHER
Definition: dispatcher.c:7
CallID
int CallID
Definition: dispatcher.c:1