diff options
Diffstat (limited to 'src/crepe/api/BehaviorScript.h')
| -rw-r--r-- | src/crepe/api/BehaviorScript.h | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/src/crepe/api/BehaviorScript.h b/src/crepe/api/BehaviorScript.h index 6b1fec7..4160a72 100644 --- a/src/crepe/api/BehaviorScript.h +++ b/src/crepe/api/BehaviorScript.h @@ -10,13 +10,20 @@ class ScriptSystem;  class ComponentManager;  class Script; +/** + * \brief Script component + * + * This class acts as a (component) wrapper around an instance of (a class + * derivatived from) \c Script. \c BehaviorScript is the only ECS component + * that stores member function implementations as data. + */  class BehaviorScript : public Component {  protected:  	friend class crepe::ComponentManager;  	using Component::Component;  public: -	virtual ~BehaviorScript() = default; +	~BehaviorScript() = default;  public:  	template <class T> @@ -24,6 +31,7 @@ public:  protected:  	friend class crepe::ScriptSystem; +	//! Script instance  	std::unique_ptr<Script> script = nullptr;  }; |