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

◆ ValidateItems()

static void CfgGameplayHandler::ValidateItems ( )
inlinestaticprivate

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

15 {
16 foreach (ITEM_DataBase item : m_Items)
17 {
18 if (!item.ValidateServer())
19 {
20 string itemName = item.Type().ToString();
21 itemName.Replace("ITEM_", "");
22 PrintToRPT("Validation failed during loading of 'cfggameplay.json' for " + itemName);
23 item.InitServer();
24 }
25 }
26 }
void ITEM_DataBase()
Определения CfgGameplayDataJson.c:45
static ref array< ref ITEM_DataBase > m_Items
Определения CfgGameplayHandler.c:4
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.

Перекрестные ссылки m_Items, PrintToRPT() и string::Replace().

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