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

Static Private Member Functions

static JsonMissionLoaderData GetData ()
 

Private Attributes

ref TStringArray MissionPaths
 

Detailed Description

Definition at line 1 of file MissionLoader.c.

Member Function Documentation

◆ GetData()

static JsonMissionLoaderData JsonMissionLoaderData::GetData ( )
inlinestaticprivate

Definition at line 5 of file MissionLoader.c.

6 {
8
9 string path;
10 string errorMessage;
11
12 if (GetCLIParam("missionLoaderPath", path) == false)
14
15 if (!FileExist(path))
16 {
17 DayZGame dzg = GetDayZGame();
18
20 data.MissionPaths = {dzg.GetMissionFolderPath()};
23 }
24 else
25 {
28 }
29
30 return data;
31 }
DayZGame GetDayZGame()
Definition DayZGame.c:3530
const string CFG_FILE_MISSION_LIST
Definition constants.c:240
enum ShapeType ErrorEx
proto bool FileExist(string name)
Check existence of file.
proto bool GetCLIParam(string param, out string val)
Returns command line argument.

References CFG_FILE_MISSION_LIST, ErrorEx, FileExist(), GetCLIParam(), GetDayZGame(), and path.

Referenced by Init().

Member Data Documentation

◆ MissionPaths

ref TStringArray JsonMissionLoaderData::MissionPaths
private

Definition at line 3 of file MissionLoader.c.


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