diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-13 15:40:01 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-13 15:40:01 +0100 |
commit | 7ec392eda3345606f0de75a432954b221cee82ce (patch) | |
tree | 48689f986a3c4042ec6b7704dad053f25ef898bf /src/crepe/api/BehaviorScript.h | |
parent | 202725f481e64c4d95e370102ab93d4f8cf4af93 (diff) |
add doxygen + check const correctness
Diffstat (limited to 'src/crepe/api/BehaviorScript.h')
-rw-r--r-- | src/crepe/api/BehaviorScript.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/crepe/api/BehaviorScript.h b/src/crepe/api/BehaviorScript.h index c20842d..4160a72 100644 --- a/src/crepe/api/BehaviorScript.h +++ b/src/crepe/api/BehaviorScript.h @@ -10,6 +10,13 @@ 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; @@ -24,6 +31,7 @@ public: protected: friend class crepe::ScriptSystem; + //! Script instance std::unique_ptr<Script> script = nullptr; }; |