MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / Clear

Method Clear

TombEngine/Game/effects/weather.cpp:64–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 void EnvironmentController::Clear()
65 {
66 // Clear storm variables.
67 StormTimer = 0;
68 StormSkyColor = 1;
69 StormSkyColor2 = 1;
70
71 // Clear wind variables.
72 WindCurrent =
73 WindX =
74 WindZ = 0;
75 WindAngle =
76 WindDAngle = 2048;
77
78 // Clear flash variables.
79 FlashProgress = 0.0f;
80 FlashColorBase = Vector3::Zero;
81
82 // Clear weather.
83 Particles.clear();
84
85 // Clear starfield.
86 ResetStarField = true;
87 Stars.clear();
88 Meteors.clear();
89 }
90
91 void EnvironmentController::Flash(int r, int g, int b, float speed)
92 {

Callers 1

ExplodingDeathFunction · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected