53 void initialize(
const std::string& scenariosBaseDir);
66 const std::string& terrainName);
std::string currentScenarioFolder() const
Returns the path to the currently active scenario data folder. Useful for diagnostics; empty until in...
static std::string extractFilename(const std::string &path)
Returns the scenario key from a path (e.g. "BombMission" for "BombMission.scnx"). Returns an empty st...
std::string myScenariosBaseDir
Definition: scenarioDataManager.h:82
void initialize(const std::string &scenariosBaseDir)
Sets the base directory for scenario data and primes all subsystems with the "default" folder...
static DtScenarioDataManager & getInstance()
Returns the process-wide singleton instance.
void onScenarioChanged(const std::string &vrfScenarioPath, const std::string &terrainName)
Called whenever the active VRF scenario or terrain changes.
std::string myCurrentScenarioFolder
Definition: scenarioDataManager.h:83
DtScenarioDataManager()=default
DtScenarioDataManager — manages per-scenario data stored by the web server.
Definition: scenarioDataManager.h:44
static char pathSep()
Returns the path separator character for the current platform.