MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / SkipDayTime

Function SkipDayTime

engine/Poseidon/Game/Commands/GameStateExtUi.cpp:1752–1764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1750{
1751 TITLE_PREFIX
1752
1753 GWorld->SetCutEffect(CreateTitleEffectObj(name, Pars >> "CfgTitles" >> effect));
1754 return NOTHING;
1755}
1756
1757GameValue SkipDayTime(const GameState* state, GameValuePar oper1)
1758{
1759 float time = oper1;
1760
1761 if (Glob.clock.AdvanceTime(time * OneHour))
1762 {
1763 GScene->MainLight()->Recalculate();
1764 GScene->MainLightChanged();
1765 GLandscape->OnTimeSkipped();
1766 }
1767

Callers

nothing calls this directly

Calls 5

MainLightMethod · 0.80
MainLightChangedMethod · 0.80
AdvanceTimeMethod · 0.45
RecalculateMethod · 0.45
OnTimeSkippedMethod · 0.45

Tested by

no test coverage detected