mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-03 20:03:50 +00:00
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:
parent
6e02b4451c
commit
a916270a13
21 changed files with 6183 additions and 6700 deletions
|
|
@ -13,7 +13,7 @@ public:
|
|||
AddonManager();
|
||||
~AddonManager();
|
||||
|
||||
bool initialize(game::GameHandler* gameHandler);
|
||||
bool initialize(game::GameHandler* gameHandler, const LuaServices& services = {});
|
||||
void scanAddons(const std::string& addonsPath);
|
||||
void loadAllAddons();
|
||||
bool runScript(const std::string& code);
|
||||
|
|
@ -35,6 +35,7 @@ private:
|
|||
LuaEngine luaEngine_;
|
||||
std::vector<TocFile> addons_;
|
||||
game::GameHandler* gameHandler_ = nullptr;
|
||||
LuaServices luaServices_;
|
||||
std::string addonsPath_;
|
||||
|
||||
bool loadAddon(const TocFile& addon);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue