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

Method InitGeneral

engine/Poseidon/World/WorldInit.cpp:190–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188#endif
189
190void World::InitGeneral()
191{
192 _wantedOvercast = 0.3;
193 _actualOvercast = _wantedOvercast;
194 _wantedFog = 0.0;
195 _actualFog = _wantedFog;
196 _speedOvercast = 1.0 / (60 * 60);
197 _speedFog = 1.0 / (60 * 60);
198 _weatherTime = 0;
199 _nextWeatherChange = 0;
200 _firstFrame = true;
201
202 Glob.clock.SetTimeInYear(8 * OneHour + 130 * OneDay);
203 LightSun* sun = _scene.MainLight();
204 sun->Recalculate(this);
205}
206
207void World::InitGeneral(const ParamEntry& cfg)
208{

Callers 14

PrepareGameMethod · 0.80
SimulateDSMethod · 0.80
RetryMissionMethod · 0.80
DisplayIntroMethod · 0.80
DisplayOutroMethod · 0.80
DisplayAwardMethod · 0.80
DisplayCampaignIntroMethod · 0.80
StartAutoTestFunction · 0.80
PlayCreditsCutsceneFunction · 0.80
OnSimulateMethod · 0.80
OnChildDestroyedMethod · 0.80
StartRandomCutsceneFunction · 0.80

Calls 10

fabsFunction · 0.85
GetDaysInMonthFunction · 0.85
SetTimeInYearMethod · 0.80
MainLightMethod · 0.80
ScanDateTimeMethod · 0.80
SetYearMethod · 0.80
MainLightChangedMethod · 0.80
SetTimeOfDayMethod · 0.80
TimeClass · 0.50
RecalculateMethod · 0.45

Tested by

no test coverage detected