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

◆ GetTimeOfDayEnum()

int ServerBrowserTab::GetTimeOfDayEnum ( string time_of_day)
inlineprotected

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

637 {
638 m_TempTime.Clear();
639
640 time_of_day.Split( ":", m_TempTime );
641
642 int minutes = 0;
643
644 if ( m_TempTime.Count() > 0 )
645 {
646 int h = m_TempTime[0].ToInt();
647
648 if ( h >= 5 )
649 {
650 h -= 5;
651 }
652 else
653 {
654 h += 24;
655 }
656
657 minutes = h * 60;
658 }
659
660 if ( m_TempTime.Count() > 1 )
661 {
662 int m = m_TempTime[0].ToInt();
663 minutes += m;
664 }
665
666 return minutes;
667 }
ref TStringArray m_TempTime
Определения ServerBrowserTabPc.c:26
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.
Определения EnString.c:396

Перекрестные ссылки m_TempTime и string::Split().

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