#include "serverscriptservice.h" #include "objects/script.h" #include "objects/workspace.h" ServerScriptService::ServerScriptService(): Service(&TYPE) { } ServerScriptService::~ServerScriptService() = default; void ServerScriptService::InitService() { if (initialized) return; initialized = true; } void ServerScriptService::OnRun() { auto workspace = dataModel().value()->GetService(); for (auto it = workspace->GetDescendantsStart(); it != workspace->GetDescendantsEnd(); it++) { if (!it->IsA