#include "EditMode.h" #include #include "CharacterComponent.h" #include "Game.h" #include "GeneralUtils.h" #include "dConfig.h" eGameMasterLevel EditMode::RequiredLevel() { const auto level = GeneralUtils::TryParse(Game::config->GetValue("editor_gm_level")).value_or(CharacterComponent::DEFAULT_EDITOR_GM_LEVEL); return static_cast(std::clamp(level, 1, 9)); }