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

◆ AddVisitedServer()

void CGame::AddVisitedServer ( string ip,
int port )
inlineprotected

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

2600 {
2601 string uid = ip + ":" + port;
2602 if (m_Visited)
2603 {
2604 int pos = m_Visited.Find(uid);
2605
2606 if (pos < 0)
2607 {
2608 if (m_Visited.Count() == MAX_VISITED)
2609 m_Visited.Remove(0);
2610 m_Visited.Insert(uid);
2611 }
2612 else
2613 {
2614 // if item is not saved as last server, move it
2615 if (pos != (m_Visited.Count() - 1))
2616 {
2617 m_Visited.Remove(pos);
2618 m_Visited.Insert(uid);
2619 }
2620 }
2621 SetProfileStringList("SB_Visited", m_Visited);
2622 SaveProfile();
2623 }
2624 }
ref TStringArray m_Visited
Определения DayZGame.c:2125
const int MAX_VISITED
Определения DayZGame.c:2124
proto native void SaveProfile()
Saves profile on disk.
proto native void SetProfileStringList(string name, TStringArray values)
Sets array of strings to profile variable.

Перекрестные ссылки m_Visited, MAX_VISITED, SaveProfile() и SetProfileStringList().

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