diff --git a/src/services/impl/lua_script_service.hpp b/src/services/impl/lua_script_service.hpp index 90aeef0..6296058 100644 --- a/src/services/impl/lua_script_service.hpp +++ b/src/services/impl/lua_script_service.hpp @@ -1,6 +1,7 @@ #pragma once #include "../interfaces/i_script_service.hpp" +#include "../interfaces/i_logger.hpp" #include "../../script/script_engine.hpp" #include "../../di/lifecycle.hpp" #include @@ -18,7 +19,7 @@ class LuaScriptService : public IScriptService, public di::IInitializable, public di::IShutdownable { public: - explicit LuaScriptService(const std::filesystem::path& scriptPath, bool debugEnabled = false); + explicit LuaScriptService(const std::filesystem::path& scriptPath, std::shared_ptr logger, bool debugEnabled = false); ~LuaScriptService() override; // Lifecycle @@ -44,6 +45,7 @@ public: std::string GetLuaError() override; private: + std::shared_ptr logger_; std::unique_ptr engine_; std::filesystem::path scriptPath_; bool debugEnabled_ = false;