DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс MissionBaseWorld

Защищенные члены

void MissionBase ()
 
void ~MissionBase ()
 
override ObjectSnapCallback GetInventoryDropCallback ()
 
override void OnUpdate (float timeslice)
 
override void OnEvent (EventType eventTypeId, Param params)
 
void InitialiseWorldData ()
 
void InitWorldYieldDataDefaults (CatchYieldBank bank)
 Used to initialize defaults to WorldData base class from 4_World module. For proper init of your custom world, use 'InitYieldBank' method in the inherited world data.
 
override WorldLighting GetWorldLighting ()
 
override WorldData GetWorldData ()
 
override DynamicMusicPlayer GetDynamicMusicPlayer ()
 
override UIScriptedMenu CreateScriptedMenu (int id)
 
void SpawnItems ()
 
void UpdateInputDevicesAvailability ()
 
override void OnKeyPress (int key)
 
void DumpCurrentUILayout ()
 
void DumpWidget (Widget w, int tabs)
 
override void OnKeyRelease (int key)
 
override void OnMouseButtonPress (int button)
 
override void OnMouseButtonRelease (int button)
 
void OnLog (string msg_log)
 
void UpdateDummyScheduler ()
 
override void AddDummyPlayerToScheduler (Man player)
 

Защищенные данные

ref DynamicMusicPlayer m_DynamicMusicPlayer
 
ref DynamicMusicPlayerRegistry m_DynamicMusicPlayerRegistry
 
int m_WidgetsTotal
 
int m_WidgetsInvisible
 
PluginAdditionalInfo m_ModuleServerInfo
 DEPRECATED.
 

Закрытые данные

PluginDeveloper m_ModuleDeveloper
 
PluginKeyBinding m_ModuleKeyBinding ref WidgetEventHandler m_WidgetEventHandler
 
ref WorldData m_WorldData
 
ref WorldLighting m_WorldLighting
 
ref array< PlayerBasem_DummyPlayers = new array<PlayerBase>
 
autoptr ObjectSnapCallback m_InventoryDropCallback
 

Подробное описание

Конструктор(ы)

◆ ~MissionBase()

void ~MissionBase ( )
inlineprotected
50 {
51 GetDayZGame().GetYieldDataInitInvoker().Remove(InitWorldYieldDataDefaults);
52
54
55 if ( GetGame().IsClient() )
56 {
57 GetDayZGame().GetAnalyticsClient().UnregisterEvents();
58 }
60 }
DayZGame GetDayZGame()
Definition DayZGame.c:3817
void PluginManagerDelete()
Definition PluginManager.c:297
void InitWorldYieldDataDefaults(CatchYieldBank bank)
Used to initialize defaults to WorldData base class from 4_World module. For proper init of your cust...
Definition missionBase.c:121
Definition TriggerEffectManager.c:4
static void DestroyInstance()
Definition TriggerEffectManager.c:15
proto native CGame GetGame()

Перекрестные ссылки TriggerEffectManager::DestroyInstance(), GetDayZGame(), GetGame() и PluginManagerDelete().

Методы

◆ AddDummyPlayerToScheduler()

override void AddDummyPlayerToScheduler ( Man player)
inlineprotected
463 {
464 m_DummyPlayers.Insert(PlayerBase.Cast( player ));
465 }
ref array< PlayerBase > m_DummyPlayers
Definition missionBase.c:10
Definition EntityAI.c:95
Definition PlayerBaseClient.c:2

◆ CreateScriptedMenu()

override UIScriptedMenu CreateScriptedMenu ( int id)
inlineprotected
165 {
167
168 switch (id)
169 {
170 case MENU_MAIN:
171#ifdef PLATFORM_CONSOLE
172 menu = new MainMenuConsole;
173#else
174 menu = new MainMenu;
175#endif
176 break;
177 case MENU_INGAME:
178#ifdef PLATFORM_CONSOLE
179 menu = new InGameMenuXbox;
180#else
181 menu = new InGameMenu;
182#endif
183 break;
184 case MENU_CHARACTER:
185 menu = new CharacterCreationMenu;
186 break;
187 case MENU_OPTIONS:
188 menu = new OptionsMenu;
189 break;
190 case MENU_STARTUP:
191 menu = new StartupMenu;
192 break;
193 case MENU_LOADING:
194 menu = new LoadingMenu;
195 break;
196 case MENU_INVENTORY:
197 menu = new InventoryMenu;
198 break;
199 case MENU_INSPECT:
200 menu = new InspectMenuNew;
201 break;
202 case MENU_EARLYACCESS:
203 menu = new EarlyAccessMenu;
204 break;
206 menu = new ScriptConsole;
207 break;
209 menu = new ScriptConsoleNewPresetDialog;
210 break;
212 menu = new ScriptConsoleRenamePresetDialog;
213 break;
215 menu = new ScriptConsoleUniversalInfoDialog;
216 break;
217 case MENU_CHAT_INPUT:
218 menu = new ChatInputMenu;
219 break;
221 menu = new PresetsMenu;
222 break;
223 case MENU_NOTE:
224 menu = new NoteMenu;
225 break;
226 case MENU_MAP:
227 menu = new MapMenu;
228 break;
229 case MENU_BOOK:
230 menu = new BookMenu;
231 break;
233 menu = new SceneEditorMenu;
234 break;
235 case MENU_HELP_SCREEN:
236 menu = new HelpScreen;
237 break;
238 case MENU_GESTURES:
239 menu = new GesturesMenu;
240 break;
241 case MENU_LOGOUT:
242 menu = new LogoutMenu;
243 break;
245 menu = new TitleScreenMenu;
246 break;
248 menu = new ControlsXboxNew;
249 break;
251 menu = new RadialQuickbarMenu;
252 break;
255 break;
256 case MENU_LOGIN_QUEUE:
257 menu = new LoginQueueBase;
258 break;
259 case MENU_LOGIN_TIME:
260 menu = new LoginTimeBase;
261 break;
263 menu = new CameraToolsMenu;
264 break;
265 case MENU_VIDEO:
266 menu = new MainMenuVideo;
267 break;
268 case MENU_KEYBINDINGS:
269 menu = new KeybindingsMenu;
270 break;
271 case MENU_TUTORIAL:
272 menu = new TutorialsMenu;
273 break;
274 case MENU_CREDITS:
275 menu = new CreditsMenu;
276 break;
278 menu = new InviteMenu;
279 break;
282 break;
284 menu = new InputDeviceDisconnectWarningMenu;
285 break;
288 break;
290 menu = new RespawnDialogue;
291 break;
294 break;
295 case MENU_LOC_ADD:
296 menu = new ScriptConsoleAddLocation;
297 break;
299 menu = new MissionLoader;
300 break;
301 }
302
303 if (menu)
304 {
305 menu.SetID(id);
306 }
307
308 return menu;
309 }
void LoginQueueBase()
Definition DayZGame.c:112
void InventoryMenu()
Definition InventoryMenu.c:20
Definition ConnectErrorScriptModule.c:52
LoginTime when using -connect since mission is not created yet.
Definition DayZGame.c:324
Definition ItemDropWarningMenu.c:122
Definition DayZGame.c:64
const int MENU_CONNECT_ERROR
Definition constants.c:209
const int MENU_TUTORIAL
Definition constants.c:202
const int MENU_HELP_SCREEN
Definition constants.c:191
const int MENU_TITLE_SCREEN
Definition constants.c:194
const int MENU_KEYBINDINGS
Definition constants.c:201
const int MENU_XBOX_CONTROLS
Definition constants.c:195
const int MENU_SCRIPTCONSOLE
Definition constants.c:183
const int MENU_WARNING_TELEPORT
Definition constants.c:208
const int MENU_LOGOUT
Definition constants.c:193
const int MENU_INSPECT
Definition constants.c:177
const int MENU_LOGIN_TIME
Definition constants.c:205
const int MENU_MAP
Definition constants.c:189
const int MENU_MAIN
Definition constants.c:180
const int MENU_SERVER_BROWSER
Definition constants.c:198
const int MENU_WARNING_ITEMDROP
Definition constants.c:206
const int MENU_MISSION_LOADER
Definition constants.c:212
const int MENU_SCRIPTCONSOLE_UNIVERSAL_INFO_DIALOG
Definition constants.c:211
const int MENU_STARTUP
Definition constants.c:182
const int MENU_RESPAWN_DIALOGUE
Definition constants.c:207
const int MENU_OPTIONS
Definition constants.c:181
const int MENU_CREDITS
Definition constants.c:203
const int MENU_CAMERA_TOOLS
Definition constants.c:199
const int MENU_CHARACTER
Definition constants.c:172
const int MENU_INVITE_TIMER
Definition constants.c:204
const int MENU_GESTURES
Definition constants.c:192
const int MENU_LOGIN_QUEUE
Definition constants.c:197
const int MENU_SCENE_EDITOR
Definition constants.c:175
const int MENU_SCRIPTCONSOLE_DIALOG_PRESET_NAME
Definition constants.c:185
const int MENU_WARNING_INPUTDEVICE_DISCONNECT
Definition constants.c:210
const int MENU_CONTROLS_PRESET
Definition constants.c:187
const int MENU_EARLYACCESS
Definition constants.c:174
const int MENU_SCRIPTCONSOLE_DIALOG_PRESET_RENAME
Definition constants.c:186
const int MENU_INVENTORY
Definition constants.c:178
const int MENU_NOTE
Definition constants.c:188
const int MENU_LOADING
Definition constants.c:179
const int MENU_RADIAL_QUICKBAR
Definition constants.c:196
const int MENU_BOOK
Definition constants.c:190
const int MENU_LOC_ADD
Definition constants.c:170
const int MENU_INGAME
Definition constants.c:176
const int MENU_CHAT_INPUT
Definition constants.c:184
const int MENU_VIDEO
Definition constants.c:200

Перекрестные ссылки InventoryMenu(), LoginQueueBase(), MENU_BOOK, MENU_CAMERA_TOOLS, MENU_CHARACTER, MENU_CHAT_INPUT, MENU_CONNECT_ERROR, MENU_CONTROLS_PRESET, MENU_CREDITS, MENU_EARLYACCESS, MENU_GESTURES, MENU_HELP_SCREEN, MENU_INGAME, MENU_INSPECT, MENU_INVENTORY, MENU_INVITE_TIMER, MENU_KEYBINDINGS, MENU_LOADING, MENU_LOC_ADD, MENU_LOGIN_QUEUE, MENU_LOGIN_TIME, MENU_LOGOUT, MENU_MAIN, MENU_MAP, MENU_MISSION_LOADER, MENU_NOTE, MENU_OPTIONS, MENU_RADIAL_QUICKBAR, MENU_RESPAWN_DIALOGUE, MENU_SCENE_EDITOR, MENU_SCRIPTCONSOLE, MENU_SCRIPTCONSOLE_DIALOG_PRESET_NAME, MENU_SCRIPTCONSOLE_DIALOG_PRESET_RENAME, MENU_SCRIPTCONSOLE_UNIVERSAL_INFO_DIALOG, MENU_SERVER_BROWSER, MENU_STARTUP, MENU_TITLE_SCREEN, MENU_TUTORIAL, MENU_VIDEO, MENU_WARNING_INPUTDEVICE_DISCONNECT, MENU_WARNING_ITEMDROP, MENU_WARNING_TELEPORT и MENU_XBOX_CONTROLS.

◆ DumpCurrentUILayout()

void DumpCurrentUILayout ( )
inlineprotected
334 {
335 UIScriptedMenu current_menu = GetGame().GetUIManager().GetMenu();
336
337 if ( current_menu )
338 {
339 Widget widget_root = current_menu.GetLayoutRoot();
340
341 if ( widget_root )
342 {
343 m_WidgetsTotal = 0;
345
346 Print( widget_root.GetName() +" ("+ widget_root.GetTypeName() +")");
347
348 DumpWidget(widget_root.GetChildren(), 1);
349
350 Print( "Widgets TOTAL: "+ m_WidgetsTotal.ToString() +" INVISIBLE: "+ m_WidgetsInvisible.ToString() +" VISIBLE: "+ (m_WidgetsTotal - m_WidgetsInvisible).ToString() );
351 }
352 }
353 }
int m_WidgetsTotal
Definition missionBase.c:330
void DumpWidget(Widget w, int tabs)
Definition missionBase.c:355
int m_WidgetsInvisible
Definition missionBase.c:331
Definition EnWidgets.c:190
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки GetGame() и Print().

◆ DumpWidget()

void DumpWidget ( Widget w,
int tabs )
inlineprotected
356 {
357 if ( !w )
358 {
359 return;
360 }
361
363
364 string tmp;
365 for (int i = 0; i < tabs; i++)
366 {
367 tmp += " ";
368 }
369
370 string invisible = "";
371
372 if ( !w.IsVisibleHierarchy() )
373 {
374 invisible = "[invisible]";
376 }
377
378 Print( tmp +"- "+ w.GetName() +" ("+ w.GetTypeName() +") "+ invisible );
379
380 bool collapse = false;
381 if ( w.GetChildren() )
382 {
383 collapse = true;
384 Print(tmp +"{");
385 }
386
387 DumpWidget(w.GetChildren(), tabs + 1);
388
389 if ( collapse )
390 {
391 Print(tmp +"}");
392 }
393
394 DumpWidget(w.GetSibling(), tabs);
395 }

Перекрестные ссылки Print().

◆ GetDynamicMusicPlayer()

override DynamicMusicPlayer GetDynamicMusicPlayer ( )
inlineprotected
160 {
162 }
ref DynamicMusicPlayer m_DynamicMusicPlayer
Definition missionBase.c:14

◆ GetInventoryDropCallback()

override ObjectSnapCallback GetInventoryDropCallback ( )
inlineprotected
63 {
65 }
autoptr ObjectSnapCallback m_InventoryDropCallback
Definition missionBase.c:12

◆ GetWorldData()

override WorldData GetWorldData ( )
inlineprotected
155 {
156 return m_WorldData;
157 }
ref WorldData m_WorldData
Definition missionBase.c:7

◆ GetWorldLighting()

override WorldLighting GetWorldLighting ( )
inlineprotected
150 {
151 return m_WorldLighting;
152 }
ref WorldLighting m_WorldLighting
Definition missionBase.c:8

◆ InitialiseWorldData()

void InitialiseWorldData ( )
inlineprotected
84 {
85 string worldName = "empty";
86 GetGame().GetWorldName(worldName);
87 worldName.ToLower();
88
89 switch (worldName)
90 {
91 case "chernarusplus":
94 break;
95
96 case "enoch":
97 m_WorldData = new EnochData();
99 break;
100
101 case "sakhal":
102 m_WorldData = new SakhalData();
104 break;
105
106 #ifdef PLATFORM_CONSOLE
107 case "mainmenuscenexbox":
110 break
111 #endif
112
113 default:
116 break;
117 }
118 }
Definition DynamicMusicPlayerRegistryChernarus.c:2
Definition DynamicMusicPlayerRegistryEnoch.c:2
Definition DynamicMusicPlayerRegistry.c:2
Definition DynamicMusicPlayerRegistrySakhal.c:2
Definition Enoch.c:3
ref DynamicMusicPlayerRegistry m_DynamicMusicPlayerRegistry
Definition missionBase.c:15
Definition Sakhal.c:3

Перекрестные ссылки GetGame() и m_DynamicMusicPlayerRegistry.

◆ InitWorldYieldDataDefaults()

void InitWorldYieldDataDefaults ( CatchYieldBank bank)
inlineprotected

Used to initialize defaults to WorldData base class from 4_World module. For proper init of your custom world, use 'InitYieldBank' method in the inherited world data.

122 {
123 //catch yield data beyond 3_Game level, defaults used for ChernarusPlusData
124 if (bank)
125 {
126 //fishies
127 bank.RegisterYieldItem(new YieldItemCarp(15));
128 bank.RegisterYieldItem(new YieldItemMackerel(15));
129 bank.RegisterYieldItem(new YieldItemSardines(15));
130 bank.RegisterYieldItem(new YieldItemBitterlings(15));
131
132 //fishy junk
133 bank.RegisterYieldItem(new YieldItemJunk(1,"Wellies_Brown"));
134 bank.RegisterYieldItem(new YieldItemJunk(1,"Wellies_Grey"));
135 bank.RegisterYieldItem(new YieldItemJunk(1,"Wellies_Green"));
136 bank.RegisterYieldItem(new YieldItemJunk(1,"Wellies_Black"));
137 bank.RegisterYieldItem(new YieldItemJunkEmpty(1,"Pot"));
138
139 //non-fishies
140 bank.RegisterYieldItem(new YieldItemDeadRabbit(4));
141 bank.RegisterYieldItem(new YieldItemDeadRooster(1));
142 bank.RegisterYieldItem(new YieldItemDeadChicken_White(1));
143 bank.RegisterYieldItem(new YieldItemDeadChicken_Spotted(1));
144 bank.RegisterYieldItem(new YieldItemDeadChicken_Brown(1));
145 bank.RegisterYieldItem(new YieldItemDeadFox(2));
146 }
147 }
void YieldItemJunk(int baseWeight, string type)
Definition YieldsFishingJunk.c:37
Definition YieldsLandAnimals.c:183
Definition YieldsLandAnimals.c:165
Definition YieldsLandAnimals.c:18
Definition YieldsFish.c:72
Definition YieldsFish.c:100

Перекрестные ссылки YieldItemJunk().

◆ MissionBase()

void MissionBase ( )
inlineprotected
18 {
20
22
24
27
28 GetDayZGame().GetYieldDataInitInvoker().Insert(InitWorldYieldDataDefaults);
30
31 #ifndef SERVER
32 GetDayZGame().GetAnalyticsClient().RegisterEvents();
34
36 #ifdef DIAG_DEVELOPER
37 GetOnTimeChanged().Insert(m_DynamicMusicPlayer.SetTimeOfDate);
38 #endif
39 #endif
40
41 GetOnInputDeviceConnected().Insert(UpdateInputDevicesAvailability);
42 GetOnInputDeviceDisconnected().Insert(UpdateInputDevicesAvailability);
43
44 // There is a possibility different maps/servers may be using different effects
46 GetUApi().UpdateControls();
47 }
void SetDispatcher(Dispatcher dispatcher)
Definition Dispatcher.c:31
void DynamicMusicPlayer(DynamicMusicPlayerRegistry configuration)
Definition DynamicMusicPlayer.c:110
void PluginManagerInit()
Definition PluginManager.c:287
proto native UAInputAPI GetUApi()
Definition EntityPlacementCallback.c:2
PluginKeyBinding m_ModuleKeyBinding ref WidgetEventHandler m_WidgetEventHandler
Definition missionBase.c:6
void InitialiseWorldData()
Definition missionBase.c:83
void UpdateInputDevicesAvailability()
Definition missionBase.c:313
Manager class for managing Effect (EffectParticle, EffectSound)
Definition EffectManager.c:6
static void Cleanup()
Cleanup method to properly clean up the static data.
Definition EffectManager.c:518
Definition SoundSetMap.c:2
static void Init()
Definition SoundSetMap.c:6
Definition WidgetEventHandler.c:2
Definition WorldLighting.c:2

Перекрестные ссылки SEffectManager::Cleanup(), DynamicMusicPlayer(), GetDayZGame(), GetUApi(), SoundSetMap::Init(), m_DynamicMusicPlayerRegistry, PluginManagerInit(), SetDispatcher() и MissionBase::UpdateInputDevicesAvailability().

◆ OnEvent()

override void OnEvent ( EventType eventTypeId,
Param params )
inlineprotected
77 {
78 super.OnEvent(eventTypeId, params);
79
81 }

◆ OnKeyPress()

override void OnKeyPress ( int key)
inlineprotected
319 {
320 super.OnKeyPress(key);
321
322#ifdef DIAG_DEVELOPER
323 if ( PluginKeyBinding.instance )
324 {
325 PluginKeyBinding.instance.OnKeyPress(key);
326 }
327#endif
328 }

◆ OnKeyRelease()

override void OnKeyRelease ( int key)
inlineprotected
398 {
399 super.OnKeyRelease(key);
400
401 if ( GetGame().IsDebug() )
402 {
403 if ( PluginKeyBinding.instance != NULL )
404 {
405 PluginKeyBinding.instance.OnKeyRelease(key);
406 }
407 }
408 }

Перекрестные ссылки GetGame().

◆ OnLog()

void OnLog ( string msg_log)
inlineprotected
437 {
438 if ( PluginDeveloper.GetInstance() )
439 {
440 if ( GetGame().IsServer() && !GetGame().IsMultiplayer() )
441 {
442 PluginDeveloper.GetInstance().PrintLogClient(msg_log);
443 }
444 else if ( GetGame().IsMultiplayer() && GetGame().IsClient() )
445 {
446 PluginDeveloper.GetInstance().PrintLogClient(msg_log);
447 }
448 }
449 }

Перекрестные ссылки GetGame() и MissionBase::IsServer().

◆ OnMouseButtonPress()

override void OnMouseButtonPress ( int button)
inlineprotected
411 {
412 super.OnMouseButtonPress(button);
413
414 if ( GetGame().IsDebug() )
415 {
416 if ( PluginKeyBinding.instance != NULL )
417 {
418 PluginKeyBinding.instance.OnMouseButtonPress(button);
419 }
420 }
421 }

Перекрестные ссылки GetGame().

◆ OnMouseButtonRelease()

override void OnMouseButtonRelease ( int button)
inlineprotected
424 {
425 super.OnMouseButtonRelease(button);
426
427 if ( GetGame().IsDebug() )
428 {
429 if ( PluginKeyBinding.instance != NULL )
430 {
431 PluginKeyBinding.instance.OnMouseButtonRelease(button);
432 }
433 }
434 }

Перекрестные ссылки GetGame().

◆ OnUpdate()

override void OnUpdate ( float timeslice)
inlineprotected
68 {
69 super.OnUpdate(timeslice);
70
71 #ifndef SERVER
73 #endif
74 }

◆ SpawnItems()

void SpawnItems ( )
protected

◆ UpdateDummyScheduler()

void UpdateDummyScheduler ( )
inlineprotected
452 {
453 for(int i = 0; i < m_DummyPlayers.Count(); i++)
454 {
455 if (m_DummyPlayers.Get(i))
456 {
457 m_DummyPlayers.Get(i).OnTick();
458 }
459 }
460 }

◆ UpdateInputDevicesAvailability()

void UpdateInputDevicesAvailability ( )
inlineprotected
314 {
315 g_Game.RefreshMouseCursorVisibility();
316 }
DayZGame g_Game
Definition DayZGame.c:3815

Перекрестные ссылки g_Game.

Поля

◆ m_DummyPlayers

ref array<PlayerBase> m_DummyPlayers = new array<PlayerBase>
private

◆ m_DynamicMusicPlayer

ref DynamicMusicPlayer m_DynamicMusicPlayer
protected

◆ m_DynamicMusicPlayerRegistry

ref DynamicMusicPlayerRegistry m_DynamicMusicPlayerRegistry
protected

◆ m_InventoryDropCallback

autoptr ObjectSnapCallback m_InventoryDropCallback
private

◆ m_ModuleDeveloper

PluginDeveloper m_ModuleDeveloper
private

◆ m_ModuleServerInfo

PluginAdditionalInfo m_ModuleServerInfo
protected

DEPRECATED.

◆ m_WidgetEventHandler

PluginKeyBinding m_ModuleKeyBinding ref WidgetEventHandler m_WidgetEventHandler
private

◆ m_WidgetsInvisible

int m_WidgetsInvisible
protected

◆ m_WidgetsTotal

int m_WidgetsTotal
protected

◆ m_WorldData

ref WorldData m_WorldData
private

◆ m_WorldLighting

ref WorldLighting m_WorldLighting
private

Объявления и описания членов класса находятся в файле: