mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-30 00:24:59 +00:00
refactor: Introduce script engine and related services for enhanced scripting capabilities
This commit is contained in:
22
src/services/impl/gui_script_service.cpp
Normal file
22
src/services/impl/gui_script_service.cpp
Normal 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
|
||||
Reference in New Issue
Block a user