Improved handling of late initialisation for component objects

This commit is contained in:
Nav
2021-12-31 19:45:15 +00:00
parent d24587b992
commit 49383eb448
9 changed files with 109 additions and 72 deletions

View File

@@ -34,15 +34,11 @@ namespace Bloom
class TargetController: public Thread
{
public:
explicit TargetController(EventManager& eventManager): eventManager(eventManager) {};
void setProjectConfig(const ProjectConfig& projectConfig) {
this->projectConfig = projectConfig;
}
void setEnvironmentConfig(const EnvironmentConfig& environmentConfig) {
this->environmentConfig = environmentConfig;
}
explicit TargetController(
EventManager& eventManager,
const ProjectConfig& projectConfig,
const EnvironmentConfig& environmentConfig
): eventManager(eventManager), projectConfig(projectConfig), environmentConfig(environmentConfig) {};
/**
* Entry point for the TargetController.