chore(lua): refactor addon Lua engine API + progress docs

- Refactor Lua addon integration:
  - Update CMakeLists.txt for addon build paths
  - Enhance addons API headers and Lua engine interface
  - Add new Lua API addon modules (`lua_api_helpers`, `lua_api_registrations`, `lua_services`, `lua_action_api`, `lua_inventory_api`, `lua_quest_api`, `lua_social_api`, `lua_spell_api`, `lua_system_api`, `lua_unit_api`)
  - Update implementation in addon_manager.cpp, lua_engine.cpp, application.cpp, game_handler.cpp
This commit is contained in:
Paul 2026-04-03 07:31:06 +03:00
parent 6e02b4451c
commit a916270a13
21 changed files with 6183 additions and 6700 deletions

View file

@ -10,10 +10,12 @@ namespace wowee::addons {
AddonManager::AddonManager() = default;
AddonManager::~AddonManager() { shutdown(); }
bool AddonManager::initialize(game::GameHandler* gameHandler) {
bool AddonManager::initialize(game::GameHandler* gameHandler, const LuaServices& services) {
gameHandler_ = gameHandler;
luaServices_ = services;
if (!luaEngine_.initialize()) return false;
luaEngine_.setGameHandler(gameHandler);
luaEngine_.setLuaServices(luaServices_);
return true;
}
@ -155,6 +157,7 @@ bool AddonManager::reload() {
return false;
}
luaEngine_.setGameHandler(gameHandler_);
luaEngine_.setLuaServices(luaServices_);
if (!addonsPath_.empty()) {
scanAddons(addonsPath_);