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

◆ GetAlarmInMin()

int GetAlarmInMin ( )
protected

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

54 {
55 int alarm_hand_in_mins = ConvertAlarmHand01ToMins12h(m_AlarmTime01);
56
57 int pass, hour, minute;
58 GetGame().GetWorld().GetDate(pass, pass, pass, hour, minute);
59
60 int curr_time_in_minutes = ConvertTimeToMins12h(hour, minute);
61 int ring_in_mins = GetTimeDiffInMins12h(curr_time_in_minutes, alarm_hand_in_mins);
62 return ring_in_mins;
63 }
enum EAlarmClockState m_AlarmTime01
static int GetTimeDiffInMins12h(int from_mins, int to_mins)
Определения ClockBase.c:88
static int ConvertAlarmHand01ToMins12h(float time01)
Определения ClockBase.c:65
static int ConvertTimeToMins12h(int hour, int minute)
Определения ClockBase.c:81
proto native World GetWorld()
proto void GetDate(out int year, out int month, out int day, out int hour, out int minute)
Get actual ingame world time.
proto native CGame GetGame()

Перекрестные ссылки ConvertAlarmHand01ToMins12h(), ConvertTimeToMins12h(), World::GetDate(), GetGame(), GetTimeDiffInMins12h(), CGame::GetWorld() и m_AlarmTime01.

Используется в AlarmClock_ColorBase::GetDebugText().