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

Function AdvanceGameTime

ogsr_engine/xrGame/level_script.cpp:716–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714
715#include "game_sv_single.h"
716void AdvanceGameTime(u32 _ms)
717{
718 auto game = smart_cast<game_sv_Single*>(Level().Server->game);
719 game->alife().time_manager().advance_game_time(_ms);
720
721 Level().game->SetGameTimeFactor(ai().get_alife() ? ai().alife().time().game_time() : Level().GetGameTime(), Level().game->GetGameTimeFactor());
722 GamePersistent().Environment().SetGameTime(Level().GetEnvironmentGameDayTimeSec(), Level().game->GetEnvironmentGameTimeFactor());
723}
724
725//
726void send_event_key_press(int dik) //Нажатие клавиши

Callers

nothing calls this directly

Calls 11

advance_game_timeMethod · 0.80
get_alifeMethod · 0.80
game_timeMethod · 0.80
SetGameTimeMethod · 0.80
EnvironmentMethod · 0.80
SetGameTimeFactorMethod · 0.45
timeMethod · 0.45
GetGameTimeMethod · 0.45
GetGameTimeFactorMethod · 0.45

Tested by

no test coverage detected