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

Function GetHash

TombEngine/Specific/trutils.cpp:175–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 }
174
175 int GetHash(const std::string& string)
176 {
177 if (string.empty())
178 return 0;
179
180 unsigned int hash = 2166136261u;
181 for (char c : string)
182 {
183 hash ^= static_cast<unsigned char>(c);
184 hash *= 16777619u;
185 }
186
187 return static_cast<int>(hash);
188 }
189
190 Vector2 GetAspectCorrect2DPosition(const Vector2& pos)
191 {

Callers 6

DrawExaminesMethod · 0.85
DoFlareLightFunction · 0.85
UpdateSparksFunction · 0.85
EmitLightFunction · 0.85
EmitSpotLightFunction · 0.85
EmitFogBulbFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected