mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Split navigator settings into subtypes
Mostly to distinguish settings that affect properties of the generated navmesh.
This commit is contained in:
parent
33bb18850d
commit
01c712d5f1
38 changed files with 327 additions and 304 deletions
|
@ -79,6 +79,15 @@ int Manager::getInt (const std::string& setting, const std::string& category)
|
|||
return number;
|
||||
}
|
||||
|
||||
std::int64_t Manager::getInt64 (const std::string& setting, const std::string& category)
|
||||
{
|
||||
const std::string& value = getString(setting, category);
|
||||
std::stringstream stream(value);
|
||||
std::size_t number = 0;
|
||||
stream >> number;
|
||||
return number;
|
||||
}
|
||||
|
||||
bool Manager::getBool (const std::string& setting, const std::string& category)
|
||||
{
|
||||
const std::string& string = getString(setting, category);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue