aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/BehaviorScript.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/BehaviorScript.h')
-rw-r--r--src/crepe/api/BehaviorScript.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crepe/api/BehaviorScript.h b/src/crepe/api/BehaviorScript.h
index 3909b96..52a7cbf 100644
--- a/src/crepe/api/BehaviorScript.h
+++ b/src/crepe/api/BehaviorScript.h
@@ -33,6 +33,11 @@ protected:
//! Only ComponentManager is allowed to instantiate BehaviorScript
friend class ComponentManager;
+ BehaviorScript(const BehaviorScript &);
+ BehaviorScript(BehaviorScript &&);
+ BehaviorScript & operator = (const BehaviorScript &);
+ BehaviorScript & operator = (BehaviorScript &&);
+
public:
/**
* \brief Set the concrete script of this component
@@ -48,6 +53,7 @@ public:
BehaviorScript & set_script(Args &&... args);
protected:
+ std::string name = "unknown script";
//! Script instance
std::unique_ptr<Script> script = nullptr;
//! ScriptSystem needs direct access to the script instance