diff options
Diffstat (limited to 'src/systems/scripting.h')
-rw-r--r-- | src/systems/scripting.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/systems/scripting.h b/src/systems/scripting.h index e330316..b119c3f 100644 --- a/src/systems/scripting.h +++ b/src/systems/scripting.h | |||
@@ -13,14 +13,20 @@ public: | |||
13 | 13 | ||
14 | void killScript(id_type entity); | 14 | void killScript(id_type entity); |
15 | 15 | ||
16 | id_type runBehaviorScript(id_type entity); | 16 | void startBehavior(id_type entity); |
17 | |||
18 | void stopBehavior(id_type entity); | ||
17 | 19 | ||
18 | void onTouch(id_type entity, id_type player); | 20 | void onTouch(id_type entity, id_type player); |
19 | 21 | ||
20 | private: | 22 | private: |
21 | 23 | ||
22 | template <typename... Args> | 24 | template <typename... Args> |
23 | id_type runScript(std::string event, id_type entity, Args&&... args); | 25 | sol::optional<id_type> runScript( |
26 | std::string table, | ||
27 | std::string event, | ||
28 | id_type entity, | ||
29 | Args&&... args); | ||
24 | 30 | ||
25 | sol::state engine_; | 31 | sol::state engine_; |
26 | }; | 32 | }; |