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

◆ GetTimeOfDayEnum()

int ServerBrowserTab::GetTimeOfDayEnum ( string time_of_day)
inlineprotected

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

620 {
621 m_TempTime.Clear();
622
623 time_of_day.Split( ":", m_TempTime );
624
625 int minutes = 0;
626
627 if ( m_TempTime.Count() > 0 )
628 {
629 int h = m_TempTime[0].ToInt();
630
631 if ( h >= 5 )
632 {
633 h -= 5;
634 }
635 else
636 {
637 h += 24;
638 }
639
640 minutes = h * 60;
641 }
642
643 if ( m_TempTime.Count() > 1 )
644 {
645 int m = m_TempTime[0].ToInt();
646 minutes += m;
647 }
648
649 return minutes;
650 }
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().