refactor: Introduce script engine and related services for enhanced scripting capabilities

This commit is contained in:
2026-01-04 15:39:07 +00:00
parent 0a893172c1
commit 41b58afc69
29 changed files with 627 additions and 47 deletions

View File

@@ -0,0 +1,22 @@
#include "gui_script_service.hpp"
#include <utility>
namespace sdl3cpp::services::impl {
GuiScriptService::GuiScriptService(std::shared_ptr<IScriptEngineService> engineService)
: engineService_(std::move(engineService)) {
}
std::vector<script::GuiCommand> GuiScriptService::LoadGuiCommands() {
return engineService_->GetEngine().LoadGuiCommands();
}
void GuiScriptService::UpdateGuiInput(const script::GuiInputSnapshot& input) {
engineService_->GetEngine().UpdateGuiInput(input);
}
bool GuiScriptService::HasGuiCommands() const {
return engineService_->GetEngine().HasGuiCommands();
}
} // namespace sdl3cpp::services::impl