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

Method GetFloat

engine/Poseidon/Core/Config/Configuration.cpp:257–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257float ConfigurationSystem::GetFloat(const char* key, float defaultValue) const
258{
259 auto it = m_config.find(key);
260 if (it == m_config.end())
261 {
262 return defaultValue;
263 }
264 return static_cast<float>(atof(it->second.value.c_str()));
265}
266
267bool ConfigurationSystem::HasKey(const char* key) const
268{

Callers 6

RenderEntryValueFunction · 0.45
WriteArrayValueJsonMethod · 0.45
EntryToGameValueFunction · 0.45
test_paramfile.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected