diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-22 13:31:15 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-22 13:31:15 +0100 |
commit | c0f0cc3d95eed2b24d19a157933c2a0ff5d2d4c2 (patch) | |
tree | fecc238a33a5e0cc663bef7bb93ddea694c50cb0 /src/crepe/api/BehaviorScript.h | |
parent | 07bca38a27f794ed6a2f74536f7a909530ce7df0 (diff) | |
parent | 25054cca2a8d06d1ceb60451db8dc383bc629eb8 (diff) |
Merge branch 'loek/scripts'
Diffstat (limited to 'src/crepe/api/BehaviorScript.h')
-rw-r--r-- | src/crepe/api/BehaviorScript.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/crepe/api/BehaviorScript.h b/src/crepe/api/BehaviorScript.h index 9d85d4c..d556fe5 100644 --- a/src/crepe/api/BehaviorScript.h +++ b/src/crepe/api/BehaviorScript.h @@ -39,11 +39,14 @@ public: * \brief Set the concrete script of this component * * \tparam T Concrete script type (derived from \c crepe::Script) + * \tparam Args Arguments for concrete script constructor + * + * \param args Arguments for concrete script constructor (forwarded using perfect forwarding) * * \returns Reference to BehaviorScript component (`*this`) */ - template <class T> - BehaviorScript & set_script(); + template <class T, typename... Args> + BehaviorScript & set_script(Args &&... args); protected: //! Script instance |