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

◆ Play() [3/3]

void UIScriptedMenu::Play ( bool warnAboutMissingDLC = true)
inlineprotected
Аргументы
warnAboutMissingDLCwhen false the store is opened right away, used where the player has already been told the DLC is missing

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

702 {
704 {
705 string mapNM = m_SelectedServer.GetMapToRun();
706 ContentDLC contentDLC = g_Game.GetContentDLCService();
707 EDLCId dlcId = contentDLC.GetDLCFromWorld(mapNM);
708 if (ContentDLC.IsValidDLCID(dlcId))
709 {
710 if (!contentDLC.UseDLC(dlcId))
711 {
712 if (warnAboutMissingDLC)
713 ContentDLCStorePrompt.WarnAndOpenStore(dlcId);
714 else
715 contentDLC.BuyDLC(dlcId);
716
717 return;
718 }
719 }
720
721 string ip = m_SelectedServer.GetIP();
722 int port = m_SelectedServer.GetPort();
723 int steamQueryPort = m_SelectedServer.GetSteamQueryPort();
724 g_Game.ConnectFromServerBrowserEx(ip, port, steamQueryPort, "");
725 }
726 }
EDLCId
Определения ContentDLC.c:4
DayZGame g_Game
Определения DayZGame.c:4074
proto EDLCId GetDLCFromWorld(string world)
proto bool UseDLC(EDLCId dlcId)
proto bool BuyDLC(EDLCId dlcId)
ServerBrowserEntry m_SelectedServer
Определения ServerBrowserMenuNew.c:27

Перекрестные ссылки ContentDLC::BuyDLC(), g_Game, ContentDLC::GetDLCFromWorld(), ContentDLC::IsValidDLCID(), m_SelectedServer, ContentDLC::UseDLC() и ContentDLCStorePrompt::WarnAndOpenStore().