diff options
Diffstat (limited to 'src/crepe/api/BehaviorScript.h')
-rw-r--r-- | src/crepe/api/BehaviorScript.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/crepe/api/BehaviorScript.h b/src/crepe/api/BehaviorScript.h index 756c2ca..b8263ca 100644 --- a/src/crepe/api/BehaviorScript.h +++ b/src/crepe/api/BehaviorScript.h @@ -7,7 +7,7 @@ namespace crepe { class ScriptSystem; class ComponentManager; -} +} // namespace crepe namespace crepe::api { @@ -17,11 +17,12 @@ class BehaviorScript : public Component { protected: friend class crepe::ComponentManager; BehaviorScript(); + public: virtual ~BehaviorScript() = default; public: - template<class T> + template <class T> BehaviorScript & set_script(); protected: @@ -29,7 +30,6 @@ protected: std::unique_ptr<Script> script = nullptr; }; -} +} // namespace crepe::api #include "BehaviorScript.hpp" - |