refactor: flatten app/ and util/ directory structure

This commit is contained in:
MatthewBeshay
2026-04-04 13:58:04 +11:00
committed by Tropical
parent 9c0dfd60d5
commit d814a78453
616 changed files with 1731 additions and 1747 deletions

View File

@@ -0,0 +1,21 @@
#include "LevelGenerators.h"
#include <algorithm>
#include "LevelGenerationOptions.h"
LevelGenerators::LevelGenerators() {}
void LevelGenerators::addLevelGenerator(const std::wstring& displayName,
LevelGenerationOptions* generator) {
if (!displayName.empty()) generator->setDisplayName(displayName);
m_levelGenerators.push_back(generator);
}
void LevelGenerators::removeLevelGenerator(LevelGenerationOptions* generator) {
std::vector<LevelGenerationOptions*>::iterator it;
while ((it = find(m_levelGenerators.begin(), m_levelGenerators.end(),
generator)) != m_levelGenerators.end()) {
m_levelGenerators.erase(it);
}
}