diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-16 17:21:04 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-16 17:21:04 +0200 |
commit | 1f82ffa4d3ee8355215d43bf43edf8cecaca0d1d (patch) | |
tree | 218b7f87df6edd5a5e2a13ca5bbcca43b7a717a3 /src/crepe/ComponentManager.h | |
parent | f9aa198eef7b85eeba3bac4c4fe2d4578b836bbf (diff) |
fix user script implementation
Diffstat (limited to 'src/crepe/ComponentManager.h')
-rw-r--r-- | src/crepe/ComponentManager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/ComponentManager.h b/src/crepe/ComponentManager.h index eab9b45..38f32e4 100644 --- a/src/crepe/ComponentManager.h +++ b/src/crepe/ComponentManager.h @@ -23,7 +23,7 @@ public: public: //! Add a component of a specific type template <typename T, typename... Args> - void add_component(uint32_t id, Args &&... args); + T & add_component(uint32_t id, Args &&... args); //! Deletes all components of a specific type and id template <typename T> void delete_components_by_id(uint32_t id); |