Some refactoring

This commit is contained in:
Vladislav Khorev committed 2026-04-16 20:06:03 +03:00
1 parent f2f56125f0
commit 92ba3f2b60
7 files changed
+847 -485

No files matched your search

+4 -3
View File
@@ -4,7 +4,8 @@
namespace ZL {
class Game;
class Location;
class Inventory;
class ScriptEngine {
public:
@@ -12,7 +13,7 @@ public:
~ScriptEngine();
// Must be called once, after the Game's NPCs are ready.
void init(Game* game);
void init(Location* game, Inventory* inventory);
// Execute a Lua script file. Logs errors to stderr.
void runScript(const std::string& path);
@@ -21,7 +22,7 @@ public:
void callActivateFunction(const std::string& functionName);
void showInventory(Game* game);
//void showInventory(Game* game);
void callNpcInteractCallback(int npcIndex);
private: