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

◆ GetTimeOfDayEnum()

int ServerBrowserTab::GetTimeOfDayEnum ( string time_of_day)
inlineprotected

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

634 {
635 m_TempTime.Clear();
636
637 time_of_day.Split( ":", m_TempTime );
638
639 int minutes = 0;
640
641 if ( m_TempTime.Count() > 0 )
642 {
643 int h = m_TempTime[0].ToInt();
644
645 if ( h >= 5 )
646 {
647 h -= 5;
648 }
649 else
650 {
651 h += 24;
652 }
653
654 minutes = h * 60;
655 }
656
657 if ( m_TempTime.Count() > 1 )
658 {
659 int m = m_TempTime[0].ToInt();
660 minutes += m;
661 }
662
663 return minutes;
664 }
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().