DayZ 1.24
Loading...
Searching...
No Matches
Dispatcher Class Reference

Private Member Functions

Param CallMethod (CallID call_id, Param params)
 
void SendLogAtClient (Param1< string > p)
 
void ScriptConsoleAddPrint (Param1< string > p)
 
void ScriptConsoleHistoryBack ()
 
void ScriptConsoleHistoryForward ()
 
void SceneEditorCommand (Param params)
 
void MissionGameplayHideInventory ()
 
override Param CallMethod (CallID call_id, Param params)
 

Detailed Description

Definition at line 13 of file Dispatcher.c.

Member Function Documentation

◆ CallMethod() [1/2]

Param Dispatcher::CallMethod ( CallID call_id,
Param params )
inlineprivate

Definition at line 15 of file Dispatcher.c.

15{}

Referenced by Debug::SaveLog().

◆ CallMethod() [2/2]

override Param Dispatcher::CallMethod ( CallID call_id,
Param params )
inlineprivate

Definition at line 65 of file DispatcherCaller.c.

66 {
67 switch (call_id)
68 {
71 break;
74 break;
77 break;
80 break;
85 break;
88 break;
89 }
90
91
92 return null;
93 }
const CallID CALL_ID_SCR_CNSL_GETSELECTEDITEM
Definition Dispatcher.c:11
const CallID CALL_ID_SCR_CNSL_HISTORY_NEXT
Definition Dispatcher.c:5
const CallID CALL_ID_SCENE_EDITOR_COMMAND
Definition Dispatcher.c:9
const CallID CALL_ID_SEND_LOG
Definition Dispatcher.c:3
const CallID CALL_ID_SCR_CNSL_HISTORY_BACK
Definition Dispatcher.c:4
const CallID CALL_ID_SCR_CNSL_ADD_PRINT
Definition Dispatcher.c:6
const CallID CALL_ID_HIDE_INVENTORY
Definition Dispatcher.c:10
void ScriptConsoleHistoryBack()
void MissionGameplayHideInventory()
void ScriptConsoleAddPrint(Param1< string > p)
void ScriptConsoleHistoryForward()
void SceneEditorCommand(Param params)
void SendLogAtClient(Param1< string > p)
static string GetLastSelectedObject()

References CALL_ID_HIDE_INVENTORY, CALL_ID_SCENE_EDITOR_COMMAND, CALL_ID_SCR_CNSL_ADD_PRINT, CALL_ID_SCR_CNSL_GETSELECTEDITEM, CALL_ID_SCR_CNSL_HISTORY_BACK, CALL_ID_SCR_CNSL_HISTORY_NEXT, CALL_ID_SEND_LOG, and ScriptConsoleItemsTab::GetLastSelectedObject().

◆ MissionGameplayHideInventory()

void Dispatcher::MissionGameplayHideInventory ( )
inlineprivate

Definition at line 58 of file DispatcherCaller.c.

59 {
60 MissionGameplay mission = MissionGameplay.Cast(GetGame().GetMission());
61 if (mission)
63 }
Mission mission
void HideInventory()
Definition gameplay.c:784
proto native CGame GetGame()

References GetGame(), Mission::HideInventory(), and mission.

◆ SceneEditorCommand()

void Dispatcher::SceneEditorCommand ( Param params)
inlineprivate

Definition at line 48 of file DispatcherCaller.c.

49 {
50 UIScriptedMenu ui_menu = GetGame().GetUIManager().GetMenu();
51 if (ui_menu && ui_menu.GetID() == MENU_SCENE_EDITOR)
52 {
53 SceneEditorMenu editor_menu = SceneEditorMenu.Cast(ui_menu);
54 editor_menu.SceneEditorCommand(params);
55 }
56 }
const int MENU_SCENE_EDITOR
Definition constants.c:167

References GetGame(), and MENU_SCENE_EDITOR.

◆ ScriptConsoleAddPrint()

void Dispatcher::ScriptConsoleAddPrint ( Param1< string > p)
inlineprivate

Definition at line 11 of file DispatcherCaller.c.

12 {
13 UIScriptedMenu ui_menu = GetGame().GetUIManager().GetMenu();
14 if (ui_menu && ui_menu.GetID() == MENU_SCRIPTCONSOLE)
15 {
16 ScriptConsole scripted_console = ScriptConsole.Cast(ui_menu);
18 if (tab)
19 tab.Add(p.param1);
20 }
21 }
const int MENU_SCRIPTCONSOLE
Definition constants.c:175

References GetGame(), and MENU_SCRIPTCONSOLE.

◆ ScriptConsoleHistoryBack()

void Dispatcher::ScriptConsoleHistoryBack ( )
inlineprivate

Definition at line 23 of file DispatcherCaller.c.

24 {
25 UIScriptedMenu ui_menu = GetGame().GetUIManager().GetMenu();
26 if (ui_menu.GetID() == MENU_SCRIPTCONSOLE)
27 {
28 ScriptConsole scriptConsole = ScriptConsole.Cast(ui_menu);
30 if (handler)
31 handler.HistoryBack();
32 }
33 }

References GetGame(), and MENU_SCRIPTCONSOLE.

◆ ScriptConsoleHistoryForward()

void Dispatcher::ScriptConsoleHistoryForward ( )
inlineprivate

Definition at line 35 of file DispatcherCaller.c.

36 {
37 UIScriptedMenu ui_menu = GetGame().GetUIManager().GetMenu();
38 if (ui_menu.GetID() == MENU_SCRIPTCONSOLE)
39 {
40 ScriptConsole scriptConsole = ScriptConsole.Cast(ui_menu);
42 if (handler)
43 handler.HistoryForward();
44
45 }
46 }

References GetGame(), and MENU_SCRIPTCONSOLE.

◆ SendLogAtClient()

void Dispatcher::SendLogAtClient ( Param1< string > p)
inlineprivate

Definition at line 3 of file DispatcherCaller.c.

4 {
5 PluginDeveloper m = PluginDeveloper.Cast(GetPlugin(PluginDeveloper));
6
7 if (m != NULL)
8 m.SendServerLogToClient(p.param1);
9 }
PluginBase GetPlugin(typename plugin_type)

References GetPlugin().


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