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

◆ DayZGame()

void CGame::DayZGame ( )
inlineprivate

См. определение в файле DayZGame.c строка 992

993 {
994 PPEManagerStatic.CreateManagerStatic();
995
996#ifdef PLATFORM_CONSOLE
997 SetMainMenuWorld("MainMenuSceneXbox");
998#endif
1000
1001 m_keyboard_handler = null;
1002
1003 #ifdef DEVELOPER
1005 #endif
1006
1007 for (int i = 0; i < CALL_CATEGORY_COUNT; i++)
1008 {
1009 m_callQueue[i] = new ScriptCallQueue();
1010 m_updateQueue[i] = new ScriptInvoker();
1011 m_timerQueue[i] = new TimerQueue();
1012
1013 m_postUpdateQueue[i] = new ScriptInvoker();
1014 }
1015
1016 m_dragQueue = new DragQueue;
1017
1018 m_LoginTime = 0;
1019
1020 string tmp;
1021 if (CommandlineGetParam("stresstest", tmp))
1022 {
1023 m_IsStressTest = true;
1024 }
1025
1026 if (CommandlineGetParam("doAimLogs", tmp))
1027 {
1028 m_AimLoggingEnabled = true;
1029 }
1030
1031 // initialize backlit effects
1032 m_Backlit = new Backlit();
1033 m_Backlit.OnInit(this);
1034
1036
1037 #ifndef NO_GUI
1038 if (m_loading == null)
1039 {
1040 m_loading = new LoadingScreen(this);
1041 }
1042
1043 if (m_loading)
1044 {
1045 m_loading.ShowEx(this);
1046 }
1047
1049 #endif
1050
1051 Debug.Init();
1052 Component.Init();
1053 CachedObjectsParams.Init();
1054 CachedObjectsArrays.Init();
1055 BleedChanceData.InitBleedChanceData();
1056 GetUApi().PresetSelect(GetUApi().PresetCurrent());
1057
1058 m_DayZProfileOptions = new DayZProfilesOptions();
1059
1062
1063 string path = "cfgVehicles";
1064 string child_name = "";
1065 int count = ConfigGetChildrenCount(path);
1066
1067 for (int p = 0; p < count; ++p)
1068 {
1069 ConfigGetChildName(path, p, child_name);
1070
1071 if (ConfigGetInt(path + " " + child_name + " scope") == 2 && IsKindOf(child_name, "SurvivorBase"))
1072 m_CharClassNames.Insert(child_name);
1073 }
1074
1075 m_IsConnecting = false;
1076 m_ConnectFromJoin = false;
1077 }
void LoadingScreen(DayZGame game)
Определения DayZGame.c:707
string path
Определения OptionSelectorMultistate.c:142
proto native UAInputAPI GetUApi()
void Debug()
Определения UniversalTemperatureSource.c:349
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
ref TimerQueue m_timerQueue[CALL_CATEGORY_COUNT]
Определения DayZGame.c:917
int m_MissionState
Определения DayZGame.c:902
ref array< string > m_CharClassNames
Определения DayZGame.c:972
ref DayZProfilesOptions m_DayZProfileOptions
Определения DayZGame.c:923
override ScriptCallQueue GetCallQueue(int call_category)
Определения DayZGame.c:1187
bool IsKindOf(string cfg_class_name, string cfg_parent_name)
Returns is class name inherited from parent class name.
Определения Game.c:1339
ref ScriptInvoker m_postUpdateQueue[CALL_CATEGORY_COUNT]
Определения DayZGame.c:920
void GlobalsInit()
Определения DayZGame.c:1112
bool m_early_access_dialog_accepted
Определения DayZGame.c:924
bool m_ConnectFromJoin
Определения DayZGame.c:945
bool m_IsStressTest
Определения DayZGame.c:939
proto native bool GetModToBeReported()
proto native void SetMainMenuWorld(string world)
bool m_IsConnecting
Определения DayZGame.c:944
static bool m_ReportModded
Определения DayZGame.c:938
ref ScriptCallQueue m_callQueue[CALL_CATEGORY_COUNT]
Определения DayZGame.c:918
proto native int ConfigGetInt(string path)
Get int value from config on path.
ref Backlit m_Backlit
Определения DayZGame.c:970
const int MISSION_STATE_GAME
Определения DayZGame.c:894
ref ScriptInvoker m_updateQueue[CALL_CATEGORY_COUNT]
Определения DayZGame.c:919
UIScriptedMenu m_keyboard_handler
Определения DayZGame.c:925
void RefreshMouseCursorVisibility()
Определения DayZGame.c:3828
int m_LoginTime
Определения DayZGame.c:914
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
ref DragQueue m_dragQueue
Определения DayZGame.c:921
proto bool CommandlineGetParam(string name, out string value)
Get command line parameter value.
void DeferredInit()
Определения DayZGame.c:1092
bool m_AimLoggingEnabled
Определения DayZGame.c:940
ref LoadingScreen m_loading
Определения DayZGame.c:911
proto void Call(func fn, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto native void PresetSelect(int index)
const int CALL_CATEGORY_GAMEPLAY
Определения tools.c:10
const int CALL_CATEGORY_GUI
Определения tools.c:9
const int CALL_CATEGORY_COUNT
Определения tools.c:12

Перекрестные ссылки ScriptCallQueue::Call(), CALL_CATEGORY_COUNT, CALL_CATEGORY_GAMEPLAY, CALL_CATEGORY_GUI, CommandlineGetParam(), ConfigGetChildName(), ConfigGetChildrenCount(), ConfigGetInt(), PPEManagerStatic::CreateManagerStatic(), DeferredInit(), GetCallQueue(), GetModToBeReported(), GetUApi(), GlobalsInit(), CachedObjectsArrays::Init(), CachedObjectsParams::Init(), Component::Init(), Debug::Init(), BleedChanceData::InitBleedChanceData(), IsKindOf(), LoadingScreen(), m_AimLoggingEnabled, m_Backlit, m_callQueue, m_CharClassNames, m_ConnectFromJoin, m_DayZProfileOptions, m_dragQueue, m_early_access_dialog_accepted, m_IsConnecting, m_IsStressTest, m_keyboard_handler, m_loading, m_LoginTime, m_MissionState, m_postUpdateQueue, m_ReportModded, m_timerQueue, m_updateQueue, MISSION_STATE_GAME, path, UAInputAPI::PresetSelect(), RefreshMouseCursorVisibility() и SetMainMenuWorld().

Используется в IsMissionMainMenu().