diff options
Diffstat (limited to 'src/script_system.h')
-rw-r--r-- | src/script_system.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/script_system.h b/src/script_system.h index 6a28430..0718e90 100644 --- a/src/script_system.h +++ b/src/script_system.h | |||
@@ -19,9 +19,11 @@ public: | |||
19 | 19 | ||
20 | void tick(double dt) override; | 20 | void tick(double dt) override; |
21 | 21 | ||
22 | void destroySprite(int spriteId) override; | ||
23 | |||
22 | bool mapHasScript(std::string mapName, std::string scriptName); | 24 | bool mapHasScript(std::string mapName, std::string scriptName); |
23 | 25 | ||
24 | void runScript(std::string mapName, std::string scriptName); | 26 | void runScript(std::string mapName, std::string scriptName, int linkedSprite = -1); |
25 | 27 | ||
26 | void runDebugScript(std::string script); | 28 | void runDebugScript(std::string script); |
27 | 29 | ||
@@ -33,6 +35,7 @@ private: | |||
33 | std::unique_ptr<sol::thread> runner; | 35 | std::unique_ptr<sol::thread> runner; |
34 | std::unique_ptr<sol::coroutine> callable; | 36 | std::unique_ptr<sol::coroutine> callable; |
35 | std::string debugInfo; | 37 | std::string debugInfo; |
38 | int linkedSprite = -1; | ||
36 | }; | 39 | }; |
37 | 40 | ||
38 | Game& game_; | 41 | Game& game_; |