MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / get_time_days

Function get_time_days

ogsr_engine/xrGame/level_script.cpp:161–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159ESingleGameDifficulty get_game_difficulty() { return g_SingleGameDifficulty; }
160
161u32 get_time_days()
162{
163 u32 year = 0, month = 0, day = 0, hours = 0, mins = 0, secs = 0, milisecs = 0;
164 split_time((g_pGameLevel && Level().game) ? Level().GetGameTime() : ai().alife().time_manager().game_time(), year, month, day, hours, mins, secs, milisecs);
165 return day;
166}
167
168u32 get_time_hours()
169{

Callers

nothing calls this directly

Calls 3

split_timeFunction · 0.85
game_timeMethod · 0.80
GetGameTimeMethod · 0.45

Tested by

no test coverage detected