Split navigator settings into subtypes

Mostly to distinguish settings that affect properties of the generated navmesh.
This commit is contained in:
elsid 2021-11-06 13:46:43 +01:00
parent 33bb18850d
commit 01c712d5f1
No known key found for this signature in database
GPG key ID: D27B8E8D10A2896B
38 changed files with 327 additions and 304 deletions

View file

@ -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);